@dub/ui 0.2.38 → 0.2.40
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/charts/index.mjs +1 -1
- package/dist/chunk-53UBH4V2.mjs +6 -0
- package/dist/chunk-7JIIDGZG.mjs +2 -0
- package/dist/chunk-BAD3TXZN.mjs +2 -0
- package/dist/chunk-CVPBL3LI.mjs +2 -0
- package/dist/chunk-GJAOTO5M.mjs +2 -0
- package/dist/chunk-T3QGZKZR.mjs +6 -0
- package/dist/chunk-X33DDNL7.mjs +6 -0
- package/dist/icons/index.d.ts +5 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{$ as Vm,$a as Sp,$b as ua,$c as Lr,A as _t,Aa as cp,Ab as ia,Ac as I0,Ad as Tf,B as bm,Ba as dp,Bb as sa,Bc as z0,Bd as Lf,C as xm,Ca as up,Cb as la,Cc as O0,Cd as Ef,D as ym,Da as mp,Db as qp,Dc as _0,Dd as Af,E as wm,Ea as pp,Eb as Zp,Ec as H0,Ed as Df,F as Fo,Fa as Zo,Fb as Xp,Fc as Wt,Fd as If,G as Uo,Ga as Xo,Gb as Jp,Gc as V0,Gd as zf,H as Go,Ha as Jo,Hb as Qp,Hc as B0,Hd as Of,I as $o,Ia as Qo,Ib as e0,Ic as W0,Id as _f,J as Ko,Ja as ea,Jb as ca,Jc as F0,Jd as Ut,K as Cm,Ka as fp,Kb as t0,Kc as U0,Kd as Hf,L as Nm,La as gp,Lb as r0,Lc as G0,Ld as Vf,M as km,Ma as hp,Mb as o0,Mc as $0,Md as Bf,N as Pm,Na as ta,Nb as a0,Nc as wa,Nd as Wf,O as Sm,Oa as ra,Ob as n0,Oc as K0,Od as ka,P as Mm,Pa as oa,Pb as i0,Pc as j0,Pd as Ff,Q as Rm,Qa as vp,Qb as s0,Qc as Y0,Qd as Uf,R as Tm,Ra as bp,Rb as l0,Rc as q0,Rd as Gf,S as Lm,Sa as xp,Sb as c0,Sc as Z0,Sd as $f,T as Em,Ta as yp,Tb as d0,Tc as X0,Td as Kf,U as Am,Ua as wp,Ub as u0,Uc as J0,Ud as jf,V as Dm,Va as Tr,Vb as m0,Vc as Q0,Vd as Yf,W as Im,Wa as Cp,Wb as p0,Wc as Ft,X as zm,Xa as Np,Xb as f0,Xc as ef,Y as Om,Ya as kp,Yb as da,Yc as tf,Z as _m,Za as aa,Zb as g0,Zc as rf,_ as Hm,_a as Pp,_b as h0,_c as of,a as Do,aa as Bm,ab as Mp,ac as v0,ad as af,b as im,ba as Wm,bb as Ht,bc as ma,bd as nf,c as sm,ca as Fm,cb as Rp,cc as b0,cd as Ca,d as Io,da as Um,db as Tp,dc as x0,dd as sf,e as zo,ea as Gm,eb as Lp,ec as y0,ed as lf,f as lm,fa as $m,fb as Ep,fc as w0,fd as cf,g as Oo,ga as Km,gb as Ap,gc as C0,gd as df,h as _o,ha as jo,hb as Dp,hc as pa,hd as uf,i as Ho,ia as jm,ib as Ip,ic as fa,id as mf,j as Vo,ja as Ym,jb as Vt,jc as ga,jd as pf,k as bt,ka as qm,kb as zp,kc as N0,kd as ff,l as cm,la as Zm,lb as Op,lc as ha,ld as gf,m as Ne,ma as Xm,mb as _p,mc as k0,md as hf,n as dm,na as Jm,nb as Hp,nc as va,nd as vf,o as It,oa as Qm,ob as Vp,oc as P0,od as bf,p as um,pa as ep,pb as Bt,pc as ba,pd as xf,q as mm,qa as Yo,qb as Bp,qc as xa,qd as yf,r as zt,ra as tp,rb as Wp,rc as S0,rd as wf,s as pm,sa as rp,sb as Fp,sc as M0,sd as Cf,t as Bo,ta as op,tb as Up,tc as R0,td as Nf,u as Wo,ua as ap,ub as Gp,uc as T0,ud as kf,v as fm,va as qo,vb as na,vc as ya,vd as Pf,w as gm,wa as np,wb as $p,wc as L0,wd as Sf,x as hm,xa as ip,xb as Kp,xc as E0,xd as Na,y as Ot,ya as sp,yb as jp,yc as A0,yd as Mf,z as vm,za as lp,zb as Yp,zc as D0,zd as Rf}from"./chunk-KUH4JTXP.mjs";import{a as q}from"./chunk-NWME2ANF.mjs";import{a as So,b as Mo,c as Ro,d as ht,e as vt,f as Rr,g as To,h as z,i as Ce,j as Lo,k as ge,l as i,m as At,n as Dt,o as Eo,p as Ao}from"./chunk-U3W6WDH2.mjs";import*as ie from"@radix-ui/react-accordion";import{ChevronDown as gi}from"lucide-react";import*as $t from"react";import{jsx as Gt,jsxs as xi}from"react/jsx-runtime";var e1=ie.Root,hi=$t.forwardRef(({className:e,...t},r)=>Gt(ie.Item,{ref:r,className:i("border-b border-b-slate-200 py-3 last:border-none",e),...t}));hi.displayName="AccordionItem";var vi=$t.forwardRef(({className:e,children:t,variant:r="chevron",...o},a)=>{let c=r==="chevron"?gi:Ft;return Gt(ie.Header,{className:"flex",children:xi(ie.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":r==="chevron","[&[data-state=open]>svg]:rotate-45":r==="plus"},e),...o,children:[t,Gt(c,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});vi.displayName=ie.Trigger.displayName;var bi=$t.forwardRef(({className:e,children:t,...r},o)=>Gt(ie.Content,{ref:o,className:i("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-neutral-500 transition-all sm:text-base",e),...r,children:t}));bi.displayName=ie.Content.displayName;import{cva as yi}from"class-variance-authority";import*as Kt from"react";import{jsx as Er}from"react/jsx-runtime";var wi=yi("relative w-full rounded-lg border px-4 py-6 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive border-red-500 dark:border-red-500"}},defaultVariants:{variant:"default"}}),Ci=Kt.forwardRef(({className:e,variant:t,...r},o)=>Er("div",{ref:o,role:"alert",className:i(wi({variant:t}),e),...r}));Ci.displayName="Alert";var Ni=Kt.forwardRef(({className:e,...t},r)=>Er("h5",{ref:r,className:i("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));Ni.displayName="AlertTitle";var ki=Kt.forwardRef(({className:e,...t},r)=>Er("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));ki.displayName="AlertDescription";import{sha256 as Pi}from"js-sha256";import{useState as Si}from"react";import{jsx as Ar}from"react/jsx-runtime";function Mi(e){if(e!=null&&e.image)return e.image;if(!(e!=null&&e.id))return"https://api.dub.co/og/avatar";let t=`https://api.dub.co/og/avatar?seed=${encodeURIComponent(e.id)}`,r=`https://api.dub.co/og/avatar${encodeURIComponent(`?seed=${encodeURIComponent(e.id)}`)}`;return e.email?`https://www.gravatar.com/avatar/${Pi(e.email)}?d=${encodeURIComponent(r)}`:t}function l1({user:e={},className:t}){if(!e)return Ar("div",{className:i("h-10 w-10 animate-pulse rounded-full border border-neutral-300 bg-neutral-100",t)});let[r,o]=Si(Mi(e));return Ar("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:r,className:i("h-10 w-10 rounded-full border border-neutral-300",t),draggable:!1,onError:()=>{o(`https://api.dub.co/og/avatar?seed=${e.id}`)}})}function c1({id:e,className:t}){return Ar("img",{src:`https://api.dicebear.com/9.x/shapes/svg?seed=${e}`,alt:"avatar",className:i("h-10 w-10 rounded-full",t),draggable:!1})}import{cva as Ri}from"class-variance-authority";import{jsx as Li}from"react/jsx-runtime";var Ti=Ri("max-w-fit rounded-full border px-2 py-px text-xs font-medium whitespace-nowrap",{variants:{variant:{default:"border-neutral-400 text-neutral-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",green:"border-green-100 bg-green-100 text-green-900",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-neutral-200 bg-neutral-100 text-neutral-800",neutral:"border-neutral-400 text-neutral-500",amber:"border-amber-800 bg-amber-800 text-white",blueGradient:"bg-gradient-to-r from-blue-100 via-blue-100/50 to-blue-100 border border-blue-200 text-blue-900",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function jt({className:e,variant:t,...r}){return Li("span",{className:i(Ti({variant:t}),e),...r})}import{cva as zi}from"class-variance-authority";import{forwardRef as Oi}from"react";import*as he from"@radix-ui/react-tooltip";import Ei from"linkify-react";import{HelpCircle as Ai}from"lucide-react";import Di from"next/link";import{useState as Ii}from"react";import{jsx as $,jsxs as Je}from"react/jsx-runtime";function N1({children:e}){return $(he.Provider,{delayDuration:150,children:e})}function J({children:e,content:t,contentClassName:r,side:o="top",disableHoverableContent:a,delayDuration:c=0,...s}){let[l,u]=Ii(!1);return Je(he.Root,{open:l,onOpenChange:u,delayDuration:c,disableHoverableContent:a,children:[$(he.Trigger,{asChild:!0,onClick:()=>{u(!0)},onBlur:()=>{u(!1)},children:e}),$(he.Portal,{children:$(he.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade pointer-events-auto z-[99] items-center overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-sm",collisionPadding:0,...s,children:typeof t=="string"?$("span",{className:i("block max-w-xs text-pretty px-4 py-2 text-center text-sm text-neutral-700",r),children:t}):typeof t=="function"?t({setOpen:u}):t})})]})}function k1({title:e,cta:t,href:r,target:o,onClick:a}){return Je("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[$("p",{className:"text-sm text-neutral-700",children:e}),t&&(r?$(Di,{href:r,...o?{target:o}:{},className:i(se({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:t}):a?$(le,{onClick:a,text:t,variant:"primary",className:"h-9"}):null)]})}function P1({title:e,cta:t,href:r}){return Je("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[e," ",$("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),className:"inline-flex text-neutral-500 underline underline-offset-4 hover:text-neutral-800",children:t})]})}function S1({children:e,className:t,tooltipClassName:r}){return $("div",{className:i("block max-w-xs whitespace-pre-wrap text-balance px-4 py-2 text-center text-sm text-neutral-700",r),children:$(Ei,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:i("underline underline-offset-4 text-neutral-400 hover:text-neutral-700",t)},children:e})})}function M1(e){return $(J,{...e,children:$(Ai,{className:"h-4 w-4 text-neutral-500"})})}function R1({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:$(J,{content:Je("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[Je("p",{className:"text-sm font-semibold text-neutral-700",children:[r,At(e||0,{full:!0})," ",t]}),a&&Je("p",{className:"mt-1 text-xs text-neutral-500",suppressHydrationWarning:!0,children:["Last clicked ",Mo(a,{withAgo:!0})]})]}),children:o})}function T1({children:e,content:t,...r}){return $(J,{content:t,...r,children:$("div",{className:"flex cursor-pointer items-center",children:$(jt,{variant:"gray",className:"border-neutral-300 transition-all hover:bg-neutral-200",children:e})})})}function L1({children:e,tooltipProps:t,...r}){return $(J,{...t,children:$("button",{type:"button",...r,className:i("flex h-6 w-6 items-center justify-center rounded-md text-neutral-500 transition-colors duration-75 hover:bg-neutral-100 active:bg-neutral-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",r.className),children:e})})}function Yt({children:e,tooltipProps:t}){return t?$(J,{...t,children:$("div",{children:e})}):e}import{jsx as Qe,jsxs as Pa}from"react/jsx-runtime";var se=zi("transition-all",{variants:{variant:{primary:"border-black bg-black dark:bg-white dark:border-white text-content-inverted hover:bg-inverted hover:ring-4 hover:ring-border-subtle",secondary:i("border-border-subtle bg-white dark:bg-black text-content-emphasis hover:bg-bg-muted focus-visible:border-border-emphasis outline-none","data-[state=open]:border-border-emphasis data-[state=open]:ring-4 data-[state=open]:ring-border-subtle"),outline:"border-transparent text-content-default hover:bg-bg-subtle",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),le=Oi(({text:e,variant:t="primary",className:r,textWrapperClassName:o,shortcutClassName:a,loading:c,icon:s,shortcut:l,disabledTooltip:u,right:d,...n},m)=>u?Qe(J,{content:u,children:Pa("div",{className:i("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-neutral-200 bg-neutral-100 px-4 text-sm text-neutral-400 transition-all focus:outline-none",{"border-transparent bg-transparent":t==null?void 0:t.endsWith("outline")},r),children:[s,e&&Qe("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Qe("kbd",{className:i("hidden rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-400 md:inline-block",{"bg-neutral-100":t==null?void 0:t.endsWith("outline")},a),children:l})]})}):Pa("button",{ref:m,type:n.onClick?"button":"submit",className:i("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",n.disabled||c?"cursor-not-allowed border-neutral-200 bg-neutral-100 text-neutral-400 outline-none":se({variant:t}),r),disabled:n.disabled||c,...n,children:[c?Qe(Ne,{}):s||null,e&&Qe("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Qe("kbd",{className:i("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-neutral-700 text-neutral-400 group-hover:bg-neutral-600 group-hover:text-neutral-300":t==="primary","bg-neutral-200 text-neutral-400 group-hover:bg-neutral-100 group-hover:text-neutral-500":t==="secondary","bg-neutral-100 text-neutral-500 group-hover:bg-neutral-200":t==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":t==="danger-outline"},a),children:l}),d]}));le.displayName="Button";import{cva as _i}from"class-variance-authority";import{createContext as Hi}from"react";import{jsx as Sa}from"react/jsx-runtime";var Vi=_i("group/card-list w-full flex flex-col transition-[gap,opacity] min-w-0",{variants:{variant:{compact:"gap-0",loose:"gap-4"},loading:{true:"opacity-50"}}}),xt=Hi({variant:"loose"});function Ma({variant:e="loose",loading:t=!1,className:r,children:o}){return Sa("ul",{className:i(Vi({variant:e,loading:t}),r),"data-variant":e,children:Sa(xt.Provider,{value:{variant:e},children:o})})}import{cva as Bi}from"class-variance-authority";import{createContext as Wi,useContext as Fi,useEffect as Ui,useRef as Gi,useState as $i}from"react";import{jsx as Ra,jsxs as Yi}from"react/jsx-runtime";var Ki=Bi("w-full group/card border-neutral-200 bg-white",{variants:{variant:{compact:"first-of-type:rounded-t-xl last-of-type:rounded-b-xl first-of-type:border-t border-b border-x data-[hover-state-enabled=true]:hover:bg-neutral-50 transition-colors",loose:"border rounded-xl transition-[filter] data-[hover-state-enabled=true]:hover:drop-shadow-card-hover"}}}),ji="w-full py-2.5 px-4",Dr=Wi({hovered:!1});function Ta({outerClassName:e,innerClassName:t,children:r,onClick:o,onAuxClick:a,hoverStateEnabled:c=!0,banner:s}){let{variant:l}=Fi(xt),u=Gi(null),[d,n]=$i(!1);Ui(()=>{if(!d||!u.current)return;let f=setInterval(()=>{var b;((b=u.current)==null?void 0:b.matches(":hover"))===!1&&n(!1)},1e3);return()=>clearInterval(f)},[d]);let m=f=>!(document.getElementById("modal-backdrop")||vt(f));return Yi("li",{ref:u,className:i(Ki({variant:l}),e),onPointerEnter:()=>n(!0),onPointerLeave:()=>n(!1),"data-hover-state-enabled":c,children:[s,Ra("div",{className:i(ji,t),onClick:o?f=>{m(f)&&o(f)}:void 0,onAuxClick:a?f=>{m(f)&&a(f)}:void 0,children:Ra(Dr.Provider,{value:{hovered:d},children:r})})]})}var eg=Object.assign(Ma,{Card:Object.assign(Ta,{Context:Dr}),Context:xt});import qi from"embla-carousel-autoplay";import Zi from"embla-carousel-react";import{ArrowLeft as Xi,ArrowRight as Ji}from"lucide-react";import{createContext as Qi,forwardRef as wt,useCallback as yt,useContext as es,useEffect as Ir,useState as zr}from"react";import{jsx as ke,jsxs as Aa}from"react/jsx-runtime";var Or=2e3,La=Qi(null);function ve(){let e=es(La);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function Ea(){let{api:e}=ve(),[t,r]=zr(0),o=yt(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return Ir(()=>{!e||(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),t}var ts=wt(({orientation:e="horizontal",opts:t,setApi:r,autoplay:o,plugins:a,className:c,children:s,...l},u)=>{let[d,n]=Zi({...t,axis:e==="horizontal"?"x":"y"},[...o?[qi(typeof o=="object"?o:{delay:Or})]:[],...a||[]]),[m,f]=zr(!1),[b,v]=zr(!1),h=yt(M=>{!M||(f(M.canScrollPrev()),v(M.canScrollNext()))},[]),g=yt(()=>{n==null||n.scrollPrev()},[n]),C=yt(()=>{n==null||n.scrollNext()},[n]),N=yt(M=>{M.key==="ArrowLeft"?(M.preventDefault(),g()):M.key==="ArrowRight"&&(M.preventDefault(),C())},[g,C]);return Ir(()=>{!n||!r||r(n)},[n,r]),Ir(()=>{if(!!n)return h(n),n.on("reInit",h),n.on("select",h),()=>{n==null||n.off("select",h)}},[n,h]),ke(La.Provider,{value:{carouselRef:d,api:n,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:C,canScrollPrev:m,canScrollNext:b},children:ke("div",{ref:u,onKeyDownCapture:N,className:i("relative",c),role:"region","aria-roledescription":"carousel",...l,children:s})})});ts.displayName="Carousel";var rs=wt(({className:e,...t},r)=>{let{carouselRef:o,orientation:a}=ve();return ke("div",{ref:o,className:"overflow-hidden",children:ke("div",{ref:r,className:i("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});rs.displayName="CarouselContent";var os=wt(({className:e,...t},r)=>{let{orientation:o}=ve();return ke("div",{ref:r,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});os.displayName="CarouselItem";var as=wt(({className:e,...t},r)=>{let{orientation:o,scrollPrev:a,canScrollPrev:c}=ve();return Aa("button",{ref:r,className:i("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",se({variant:"secondary",className:"p-2"}),e),disabled:!c,onClick:a,...t,children:[ke(Xi,{className:"h-4 w-4"}),ke("span",{className:"sr-only",children:"Previous slide"})]})});as.displayName="CarouselPrevious";var ns=wt(({className:e,...t},r)=>{let{orientation:o,scrollNext:a,canScrollNext:c}=ve();return Aa("button",{ref:r,className:i("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",se({variant:"secondary",className:"p-2"}),e),disabled:!c,onClick:a,...t,children:[ke(Ji,{className:"h-4 w-4"}),ke("span",{className:"sr-only",children:"Next slide"})]})});ns.displayName="CarouselNext";import{cva as is}from"class-variance-authority";import{motion as ss}from"framer-motion";import{ChevronLeft as ls,ChevronRight as cs}from"lucide-react";import*as Ee from"react";import{jsx as Ue,jsxs as Ct}from"react/jsx-runtime";var ds=is("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-neutral-800/10 bg-white sm:bottom-6 "}}}),bg=({variant:e="simple",className:t})=>{var v;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:c,api:s}=ve(),l=(v=s==null?void 0:s.plugins())==null?void 0:v.autoplay,[u,d]=Ee.useState(0),[n,m]=Ee.useState(!1),f=Ee.useCallback(h=>{d((h==null?void 0:h.selectedScrollSnap())??0)},[]),b=Ee.useCallback(h=>()=>{l&&l.isPlaying()&&l.stop(),h()},[l]);return Ee.useEffect(()=>{!s||(f(s),m((l==null?void 0:l.isPlaying())??!1),s.on("reInit",f),s.on("select",f),s.on("autoplay:play",()=>m(!0)),s.on("autoplay:stop",()=>m(!1)))},[s,l,f]),Ct("div",{className:i(ds({variant:e}),t),children:[e!=="simple"&&Ct("button",{className:"cursor-pointer rounded-full p-2 hover:bg-neutral-50 active:bg-neutral-100",disabled:!c,onClick:b(o),children:[Ue(ls,{className:"h-4 w-4"}),Ue("span",{className:"sr-only",children:"Previous slide"})]}),s!=null&&Ue("div",{className:"flex items-center gap-1",children:s.slideNodes().map((h,g)=>Ct("button",{onClick:b(()=>s.scrollTo(g)),className:"rounded-full p-0.5 hover:bg-neutral-100 active:bg-neutral-200 sm:p-1.5",children:[Ue("div",{className:i("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",g===u?"bg-black":"bg-black/20",n&&g===u&&"w-6 bg-black/20"),children:n&&g===u&&Ue(ss.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((l==null?void 0:l.options.delay)??Or)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),Ct("span",{className:"sr-only",children:["Slide ",g+1]})]},g))}),e!=="simple"&&Ct("button",{className:"cursor-pointer rounded-full p-2 hover:bg-neutral-50 active:bg-neutral-100",disabled:!a,onClick:b(r),children:[Ue(cs,{className:"h-4 w-4"}),Ue("span",{className:"sr-only",children:"Next slide"})]})]})};import us from"embla-carousel-react";import{forwardRef as ms,useCallback as ps,useEffect as fs}from"react";import{jsx as qt}from"react/jsx-runtime";var Mg=({className:e,...t})=>{let{api:r}=ve(),[o,a]=us({dragFree:!0}),c=ps(s=>{!s||!a||a==null||a.scrollTo(s.selectedScrollSnap())},[a]);return fs(()=>{if(!(!r||!a))return c(r),r.on("reInit",c),r.on("select",c),()=>{r==null||r.off("reInit",c),r==null||r.off("select",c)}},[r,a,c]),qt("div",{className:"overflow-hidden",ref:o,children:qt("div",{className:i("mx-4 flex gap-4",e),...t})})},Rg=ms(({index:e,className:t,...r},o)=>{let{api:a}=ve(),c=Ea();return qt("div",{ref:o,children:qt("button",{type:"button",onClick:()=>{var l;if(!a)return;let s=(l=a.plugins())==null?void 0:l.autoplay;s&&s.isPlaying()&&s.stop(),a.scrollTo(e)},className:typeof t=="function"?t({active:e===c}):t,...r})})});import*as Nt from"@radix-ui/react-checkbox";import{Check as gs}from"lucide-react";import*as Da from"react";import{jsx as _r}from"react/jsx-runtime";var hs=Da.forwardRef(({className:e,...t},r)=>_r(Nt.Root,{ref:r,className:i("peer h-5 w-5 shrink-0 rounded-md border border-neutral-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",e),...t,children:_r(Nt.Indicator,{className:"flex items-center justify-center",children:_r(gs,{className:"h-3 w-3 text-white"})})}));hs.displayName=Nt.Root.displayName;import{Command as Pt,CommandInput as sl,CommandItem as ll,useCommandState as cl}from"cmdk";import{ChevronDown as dl}from"lucide-react";import{forwardRef as ul,isValidElement as ml,useCallback as pl,useEffect as Qt,useRef as fl,useState as kt}from"react";import{motion as al}from"framer-motion";import{forwardRef as nl,useRef as il}from"react";import Hr from"js-cookie";import{useEffect as vs,useState as bs}from"react";function zg(e,t,r){let[o,a]=bs(()=>{let s=Hr.get(e);return s?JSON.parse(s):t});return vs(()=>{let s=()=>{let l=Hr.get(e);l&&a(JSON.parse(l))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[o,s=>{a(s),Hr.set(e,JSON.stringify(s),r)}]}import{useCallback as xs,useEffect as ys,useRef as ws,useState as Cs}from"react";var et=(e=3e3)=>{let t=ws(null),[r,o]=Cs(!1),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},c=xs(async(s,{onSuccess:l,throwOnError:u}={})=>{a();try{typeof s=="string"?await navigator.clipboard.writeText(s):s instanceof ClipboardItem&&await navigator.clipboard.write([s]),o(!0),l==null||l(),Number.isFinite(e)&&e>=0&&(t.current=setTimeout(()=>o(!1),e))}catch(d){if(console.error("Failed to copy: ",d),u)throw d}},[e]);return ys(()=>()=>a(),[]),[r,c]};import{useEffect as Ns,useState as ks}from"react";function Bg(){let[e,t]=ks(null);return Ns(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let o=r.offsetTop-1,a=new IntersectionObserver(l=>{var m,f,b;let u=l[0];if(!u)return;let d=(((m=u.rootBounds)==null?void 0:m.height)||0)*.3+o;for(let v=1;v<l.length;v++){let h=l[v];if(!h)break;(h.boundingClientRect.top<u.boundingClientRect.top||u.boundingClientRect.bottom<o)&&(u=h)}let n=u.target;for(;n&&n.getBoundingClientRect().bottom<o;)n=(f=c.get(n))==null?void 0:f.next;for(;n&&n.getBoundingClientRect().top>d;)n=(b=c.get(n))==null?void 0:b.prev;n&&t(n.getAttribute("href"))},{threshold:1,rootMargin:`-${o}px 0px 0px 0px`}),c=new Map;return(r==null?void 0:r.querySelectorAll("[data-mdx-heading]")).forEach(l=>a.observe(l)),()=>{a.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useCallback as Ps}from"react";function Gg(e){return{handleKeyDown:Ps(r=>{if(r.key==="Enter"&&r.metaKey){if(r.preventDefault(),e!=null&&e.current){e.current.requestSubmit();return}let o=r.target.form;o==null||o.requestSubmit()}},[])}}import{useEffect as Ss,useState as Ms}from"react";function Yg(e,t={}){let{root:r,defaultValue:o}=t,[a,c]=Ms(o??!1);return Ss(()=>{let s=()=>{let u=e.current;if(!u)return;let d=r==null?void 0:r.current,n=u.getBoundingClientRect(),m=d?d.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};c(n.top<m.bottom&&n.bottom>m.top&&n.left<m.right&&n.right>m.left)};((r==null?void 0:r.current)||window).addEventListener("scroll",s),window.addEventListener("resize",s);let l=null;return e.current&&(l=new IntersectionObserver(s),l.observe(e.current)),s(),()=>{((r==null?void 0:r.current)||window).removeEventListener("scroll",s),window.removeEventListener("resize",s),l==null||l.disconnect()}},[e,r]),a}import{useEffect as Rs,useState as Ts}from"react";function Xg(){let[e,t]=Ts(!1);return Rs(()=>{let r=()=>{let o=document.activeElement;t((o==null?void 0:o.tagName)!=null&&["INPUT","TEXTAREA"].includes(o.tagName))};return window.addEventListener("focusin",r),window.addEventListener("focusout",r),()=>{window.removeEventListener("focusin",r),window.removeEventListener("focusout",r)}},[]),e}import{useEffect as Ls,useState as Es}from"react";function th(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:a=!1}={}){let[c,s]=Es(),l=(c==null?void 0:c.isIntersecting)&&a,u=([d])=>{s(d)};return Ls(()=>{let d=e==null?void 0:e.current;if(!!!window.IntersectionObserver||l||!d)return;let m={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(u,m);return f.observe(d),()=>f.disconnect()},[e,JSON.stringify(t),r,o,l]),c}import{createContext as As,useCallback as Ds,useContext as Is,useEffect as Ia,useId as zs,useState as Os}from"react";import{jsx as _s}from"react/jsx-runtime";var za=As({listeners:[],setListeners:()=>{}});function sh({children:e}){let[t,r]=Os([]);return _s(za.Provider,{value:{listeners:t,setListeners:r},children:e})}function tt(e,t,r={}){let o=zs(),{listeners:a,setListeners:c}=Is(za),s=Ds(l=>{if(r.enabled===!1)return;let u=l.target,d=document.getElementById("modal-backdrop"),n=document.querySelector("[data-sheet-overlay]");if(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||!!d!=!!r.modal||!!n!=!!r.sheet)return;let m=[...l.metaKey?["meta"]:[],...l.ctrlKey?["ctrl"]:[],...l.altKey?["alt"]:[],l.key].join("+");if(Array.isArray(e)?!e.includes(m):m!==e)return;let f=a.filter(v=>v.enabled!==!1&&!!d==!!v.modal&&!!n==!!v.sheet&&(Array.isArray(v.key)?v.key.includes(m):v.key===m));!f.length||So(f,(v,h)=>(h.priority??0)-(v.priority??0))[0].id!==o||(l.preventDefault(),t(l))},[e,a,o,t,r.enabled,r.modal,r.sheet]);Ia(()=>(document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)),[s]),Ia(()=>(c(l=>[...l.filter(u=>u.id!==o),{id:o,key:e,...r}]),()=>c(l=>l.filter(u=>u.id!==o))),[JSON.stringify(e),r.enabled,r.priority])}import{useEffect as Hs,useState as Vs}from"react";function Oa(e){if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}function dh(e,t){let[r,o]=Vs(Oa(e)??t);return Hs(()=>{let c=Oa(e);c&&o(c)},[e]),[r,c=>{o(c),window.localStorage.setItem(e,JSON.stringify(c))}]}import{toast as Bs}from"sonner";import Ws from"swr";function gh(e,t){let{data:r,isLoading:o,mutate:a}=Ws(e,ge);return{data:r,isLoading:o,update:async(c,s)=>Bs.promise(a(c(r),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(t==null?void 0:t.loading)||"Updating...",success:(t==null?void 0:t.success)||"Successfully updated",error:(t==null?void 0:t.error)||"Failed to update"})}}import{useEffect as Ba,useMemo as js}from"react";import{useEffect as _a,useState as Fs}from"react";function Ha({pageSize:e,page:t,onPageChange:r}){let[o,a]=Fs({pageIndex:t,pageSize:e});return _a(()=>{a(c=>({...c,pageIndex:t}))},[t]),_a(()=>{r==null||r(o.pageIndex)},[o]),{pagination:o,setPagination:a}}import{usePathname as Us,useRouter as Gs,useSearchParams as $s}from"next/navigation";import{useCallback as Ks}from"react";function Va(){let e=Us(),t=Gs(),r=$s(),o=Object.fromEntries(r),a=(s,l)=>{let u=new URLSearchParams(r);if((l==null?void 0:l.include)&&Array.isArray(l.include)){let n=new URLSearchParams;r.forEach((m,f)=>{var b;(b=l.include)!=null&&b.includes(f)&&n.set(f,m)}),u=n}(l==null?void 0:l.exclude)&&Array.isArray(l.exclude)&&l.exclude.forEach(n=>u.delete(n)),s&&Object.entries(s).forEach(([n,m])=>u.set(n,m));let d=u.toString();return d.length>0?`?${d}`:""},c=Ks(({set:s,del:l,replace:u,scroll:d=!0,getNewPath:n,arrayDelimiter:m=","})=>{let f=new URLSearchParams(r);s&&Object.entries(s).forEach(([h,g])=>f.set(h,Array.isArray(g)?g.join(m):g)),l&&(Array.isArray(l)?l.forEach(h=>f.delete(h)):f.delete(l));let b=f.toString(),v=`${e}${b.length>0?`?${b}`:""}`;if(n)return v;u?t.replace(v,{scroll:!1}):t.push(v,{scroll:d})},[r,e,t]);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:c,getQueryString:a}}function Mh(e=Eo){let{searchParams:t,queryParams:r}=Va(),o=js(()=>parseInt(t.get("page")||"1")||1,[t.get("page")]),{pagination:a,setPagination:c}=Ha({pageSize:e,page:o,onPageChange:s=>{r(s===1?{del:"page"}:{set:{page:s.toString()}})}});return Ba(()=>{let s=parseInt(t.get("page")||"1")||1;c(l=>({...l,pageIndex:s}))},[t.get("page")]),Ba(()=>{r(a.pageIndex===1?{del:"page"}:{set:{page:a.pageIndex.toString()}})},[a]),{pagination:a,setPagination:c}}import{useEffect as Ys}from"react";function Lh(){Ys(()=>{let e=new URL(window.location.href);e.searchParams.has("_gl")&&setTimeout(()=>{e.searchParams.delete("_gl"),window.history.replaceState({},"",e.toString())},2e3)},[])}import{useEffect as qs,useState as Zs}from"react";function Zt(e){let[t,r]=Zs(),o=([a])=>{r(a)};return qs(()=>{let a=e==null?void 0:e.current;if(!a)return;let c=new ResizeObserver(o);return c.observe(a),()=>c.disconnect()},[e]),t}import{useCallback as Xs,useEffect as Wa,useState as Js}from"react";function Fa(e){let[t,r]=Js(!1),o=Xs(()=>{r(window.scrollY>e)},[e]);return Wa(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),Wa(()=>{o()},[o]),t}import{useCallback as Qs,useEffect as el,useState as tl}from"react";function Ae(e){let[t,r]=tl(1),o=Qs(()=>{if(!e.current)return;let{scrollTop:c,scrollHeight:s,clientHeight:l}=e.current;r(s===l?1:Math.min(c/(s-l),1))},[]),a=Zt(e);return el(o,[a]),{scrollProgress:t,updateScrollProgress:o}}import{useEffect as rl}from"react";import{toast as Ga}from"sonner";import{jsx as Xt,jsxs as Ua}from"react/jsx-runtime";function ol({id:e,message:t,undo:r}){let o=()=>{r(),Ga.dismiss(e)},a=c=>{c.key==="z"&&(c.ctrlKey||c.metaKey)&&o()};return rl(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[]),Ua("div",{className:"flex w-full items-center justify-between space-x-2",children:[Ua("div",{className:"flex items-center space-x-2",children:[Xt(Ho,{}),Xt("p",{className:"font-medium",children:t})]}),Xt("button",{className:"whitespace-nowrap rounded border border-black bg-black px-2 py-1 text-xs font-normal text-white transition-all duration-75 active:scale-95",onClick:o,children:"Undo"})]})}function Gh(){return({id:t,message:r,undo:o,duration:a})=>Ga(Xt(ol,{id:t,message:r,undo:o}),{id:t,...a&&{duration:a}})}import{jsx as $a}from"react/jsx-runtime";var Pe=nl(({width:e=!1,height:t=!1,className:r,transition:o,children:a,...c},s)=>{var d,n;let l=il(null),u=Zt(l);return $a(al.div,{ref:s,className:i("overflow-hidden",r),animate:{width:e?((d=u==null?void 0:u.contentRect)==null?void 0:d.width)??"auto":"auto",height:t?((n=u==null?void 0:u.contentRect)==null?void 0:n.height)??"auto":"auto"},transition:o??{type:"spring",duration:.3},...c,children:$a("div",{ref:l,className:i(t&&"h-max",e&&"w-max"),children:a})})});Pe.displayName="AnimatedSizeContainer";import*as De from"@radix-ui/react-popover";import{Drawer as rt}from"vaul";import{jsx as Se,jsxs as Jt}from"react/jsx-runtime";function ot({children:e,content:t,align:r="center",side:o="bottom",openPopover:a,setOpenPopover:c,mobileOnly:s,popoverContentClassName:l,onOpenAutoFocus:u,collisionBoundary:d,sticky:n,onEscapeKeyDown:m,onWheel:f}){let{isMobile:b}=q();return s||b?Jt(rt.Root,{open:a,onOpenChange:c,children:[Se(rt.Trigger,{className:"sm:hidden",asChild:!0,children:e}),Jt(rt.Portal,{children:[Se(rt.Overlay,{className:"bg-bg-subtle fixed inset-0 z-50 bg-opacity-10 backdrop-blur"}),Jt(rt.Content,{className:"border-border-subtle bg-bg-default fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t",onEscapeKeyDown:m,onPointerDownOutside:v=>{v.target instanceof Element&&v.target.closest("[data-sonner-toast]")&&v.preventDefault()},children:[Se("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:Se("div",{className:"bg-border-default my-3 h-1 w-12 rounded-full"})}),Se("div",{className:"bg-bg-default flex min-h-[150px] w-full items-center justify-center overflow-hidden pb-8 align-middle shadow-xl",children:t})]}),Se(rt.Overlay,{})]})]}):Jt(De.Root,{open:a,onOpenChange:c,children:[Se(De.Trigger,{className:"sm:inline-flex",asChild:!0,children:e}),Se(De.Portal,{children:Se(De.Content,{sideOffset:8,align:r,side:o,className:i("animate-slide-up-fade border-border-subtle bg-bg-default z-50 items-center rounded-lg border drop-shadow-lg sm:block",l),sticky:n,collisionBoundary:d,onOpenAutoFocus:u,onEscapeKeyDown:m,onWheel:f,children:t})})]})}import{Fragment as er,jsx as L,jsxs as Me}from"react/jsx-runtime";function gl(e,t){return e===!0}function xv({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:c="Select...",searchPlaceholder:s="Search...",emptyState:l,createLabel:u,onCreate:d,buttonProps:n,shortcutHint:m,caret:f,side:b,open:v,onOpenChange:h,onSearchChange:g,shouldFilter:C=!0,inputRight:N,inputClassName:M,optionRight:k,optionClassName:w,matchTriggerWidth:U,hideSearch:R=!1,children:x}){let T=gl(e,r),B=Array.isArray(t)?t:t?[t]:[],{isMobile:P}=q(),[I,X]=kt(!1),A=v??I,me=h??X,[G,Pr]=kt(""),[No,Sr]=kt(!1),[Mr,mi]=kt(void 0),[pi,ko]=kt(!1),fi=_=>{var Xe;if(T){let We=B.some(({value:Fe})=>Fe===_.value);r(We?B.filter(({value:Fe})=>Fe!==_.value):[...B,_])}else r(B.length&&((Xe=B[0])==null?void 0:Xe.value)===_.value?null:_),me(!1)},Po=pl((_,Xe)=>Xe===""?[..._.filter(We=>We.first&&!B.some(Fe=>Fe.value===We.value)),...B,..._.filter(We=>!We.first&&!B.some(Fe=>Fe.value===We.value))]:_,[B]);return Qt(()=>{No&&(mi(o&&Po(o,G)),Sr(!1))},[No,o,Po,G]),Qt(()=>{Sr(!0)},[o]),Qt(()=>{A||(Pr(""),Sr(!0))},[A]),Qt(()=>g==null?void 0:g(G),[G]),L(ot,{openPopover:A,setOpenPopover:me,align:"start",side:b,onWheel:_=>{_.stopPropagation()},popoverContentClassName:i(U&&"sm:w-[var(--radix-popover-trigger-width)]"),content:L(Pe,{width:!P&&!U,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:Me(Pt,{loop:!0,shouldFilter:C,children:[!R&&Me("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-neutral-200",children:[L(sl,{placeholder:s,value:G,onValueChange:Pr,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-neutral-400 focus:ring-0 sm:text-sm",M),onKeyDown:_=>{(_.key==="Escape"||_.key==="Backspace"&&!G)&&(_.preventDefault(),_.stopPropagation(),me(!1))}}),N&&L("div",{className:"mr-2",children:N}),m&&L("kbd",{className:"mr-2 hidden shrink-0 rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-500 md:block",children:m})]}),L(hl,{children:L(Pt.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:Mr!==void 0?Me(er,{children:[Mr.map(_=>L(vl,{option:_,multiple:T,selected:B.some(({value:Xe})=>Xe===_.value),onSelect:()=>fi(_),right:k==null?void 0:k(_),className:w},`${_.label}, ${_.value}`)),G.length>0&&d&&Me(ll,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-neutral-700","data-[selected=true]:bg-neutral-100",w),onSelect:async()=>{ko(!0),await(d==null?void 0:d(G))&&(Pr(""),me(!1)),ko(!1)},children:[pi?L(Ne,{className:"size-4 shrink-0"}):L(Ft,{className:"size-4 shrink-0"}),L("div",{className:"grow truncate",children:(u==null?void 0:u(G))||`Create "${G}"`})]}),C?L(xl,{className:"flex min-h-12 items-center justify-center text-sm text-neutral-500",children:l||"No matches"}):Mr.length===0?L("div",{className:"flex min-h-12 items-center justify-center text-sm text-neutral-500",children:l||"No matches"}):null]}):L(Pt.Loading,{children:L("div",{className:"flex h-12 items-center justify-center",children:L(Ne,{})})})})})]})}),children:L(le,{variant:"secondary",...n,className:i(n==null?void 0:n.className,"flex gap-2"),textWrapperClassName:i(n==null?void 0:n.textWrapperClassName,"w-full flex items-center justify-start"),text:Me(er,{children:[L("div",{className:"min-w-0 grow truncate text-left",children:x||B.map(_=>_.label).join(", ")||c}),f&&(f===!0?L(dl,{className:"ml-1 size-4 shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"}):f)]}),icon:a?Ka(a)?a:L(a,{className:"size-4 shrink-0"}):void 0})})}var hl=({children:e})=>{let t=fl(null),{scrollProgress:r,updateScrollProgress:o}=Ae(t);return Me(er,{children:[L("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:t,onScroll:o,children:e}),L("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(r,2)}})]})};function vl({option:e,onSelect:t,multiple:r,selected:o,right:a,className:c}){return Me(er,{children:[L(bl,{disabledTooltip:e.disabledTooltip,children:Me(Pt.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-neutral-100",Boolean(e.disabledTooltip)&&"cursor-not-allowed opacity-50",c),disabled:!!e.disabledTooltip,onSelect:t,value:e.label+(e==null?void 0:e.value),children:[r&&L("div",{className:"shrink-0 text-neutral-600",children:o?L(Jo,{className:"size-4 text-neutral-600"}):L(Qo,{className:"size-4 text-neutral-400"})}),Me("div",{className:"flex min-w-0 grow items-center gap-1",children:[e.icon&&L("span",{className:"shrink-0 text-neutral-600",children:Ka(e.icon)?e.icon:L(e.icon,{className:"h-4 w-4"})}),L("span",{className:"grow truncate",children:e.label})]}),a,!r&&o&&L(Xo,{className:"size-4 shrink-0 text-neutral-600"})]})}),e.separatorAfter&&L(Pt.Separator,{className:"-mx-1 my-1 h-px bg-neutral-200"})]})}var bl=({children:e,disabledTooltip:t})=>t?L(J,{content:t,children:L("div",{children:e})}):e,Ka=e=>ml(e),xl=ul((e,t)=>cl(o=>o.filtered.count===0)?L("div",{ref:t,"cmdk-empty":"",role:"presentation",...e}):null);import{addYears as tr,format as yl,isSameMonth as wl}from"date-fns";import{ChevronLeft as ja,ChevronRight as Ya,ChevronsLeft as Cl,ChevronsRight as Nl}from"lucide-react";import{forwardRef as kl,useRef as Pl}from"react";import{DayPicker as Sl,useDayPicker as Ml,useDayRender as Rl,useNavigation as Tl}from"react-day-picker";import{Fragment as Ll,jsx as oe,jsxs as rr}from"react/jsx-runtime";var St=kl(({onClick:e,icon:t,disabled:r,...o},a)=>oe("button",{ref:a,type:"button",disabled:r,className:i("flex size-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-neutral-200 text-neutral-600 hover:text-neutral-800","hover:bg-neutral-50 active:bg-neutral-100","disabled:pointer-events-none disabled:text-neutral-400"),onClick:e,...o,children:oe(t,{className:"h-full w-full shrink-0"})}));St.displayName="NavigationButton";function qa({mode:e="single",weekStartsOn:t=1,numberOfMonths:r=1,showYearNavigation:o=!1,disableNavigation:a,locale:c,className:s,classNames:l,...u}){return oe(Sl,{mode:e,weekStartsOn:t,numberOfMonths:r,locale:c,showOutsideDays:r===1,className:s,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-neutral-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-neutral-900",day:i("relative size-10 rounded-md text-sm text-neutral-900","hover:bg-neutral-100 active:bg-neutral-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-neutral-300 line-through disabled:hover:bg-transparent",day_outside:"text-neutral-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...l},components:{IconLeft:()=>oe(ja,{className:"h-4 w-4"}),IconRight:()=>oe(Ya,{className:"h-4 w-4"}),Caption:({...d})=>{let{goToMonth:n,nextMonth:m,previousMonth:f,currentMonth:b,displayMonths:v}=Tl(),{numberOfMonths:h,fromDate:g,toDate:C}=Ml(),N=v.findIndex(T=>wl(d.displayMonth,T)),M=N===0,k=N===v.length-1,w=h>1&&(M||!k),U=h>1&&(k||!M),R=()=>{let T=tr(b,-1);f&&(!g||T.getTime()>=g.getTime())&&n(T)},x=()=>{let T=tr(b,1);m&&(!C||T.getTime()<=C.getTime())&&n(T)};return rr("div",{className:"flex items-center justify-between",children:[rr("div",{className:"flex items-center gap-1",children:[o&&!U&&oe(St,{disabled:a||!f||g&&tr(b,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:Cl}),!U&&oe(St,{disabled:a||!f,"aria-label":"Go to previous month",onClick:()=>f&&n(f),icon:ja})]}),oe("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-neutral-900",children:yl(d.displayMonth,"LLLL yyy",{locale:c})}),rr("div",{className:"flex items-center gap-1",children:[!w&&oe(St,{disabled:a||!m,"aria-label":"Go to next month",onClick:()=>m&&n(m),icon:Ya}),o&&!w&&oe(St,{disabled:a||!m||C&&tr(b,1).getTime()>C.getTime(),"aria-label":"Go to next year",onClick:x,icon:Nl})]})]})},Day:({date:d,displayMonth:n})=>{let m=Pl(null),{activeModifiers:f,buttonProps:b,divProps:v,isButton:h,isHidden:g}=Rl(d,n,m),{selected:C,today:N,disabled:M,range_middle:k}=f;if(g)return oe(Ll,{});if(!h)return oe("div",{...v,className:i("flex items-center justify-center",v.className)});let{children:w,...U}=b;return rr("button",{ref:m,...U,type:"button",children:[w,N&&oe("span",{className:i("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!C,"!bg-white":C,"!bg-blue-400":C&&k,"text-neutral-400":M})})]})}},...u})}import{enUS as Wl}from"date-fns/locale";import{useEffect as Gr,useMemo as Xa,useRef as Fl,useState as ar}from"react";import{Command as Vr}from"cmdk";import{Lock as El}from"lucide-react";import{jsx as Ge,jsxs as Al}from"react/jsx-runtime";var Br=({presets:e,onSelect:t,currentValue:r,currentPresetId:o})=>{let a=d=>"dateRange"in d,c=d=>"date"in d,s=(d,n)=>d.getDate()===n.getDate()&&d.getMonth()===n.getMonth()&&d.getFullYear()===n.getFullYear(),l=(d,n)=>{let m=d.from,f=n.from,b=!1;m&&f&&s(m,f)&&(b=!0);let v=d.to,h=n.to,g=!1;return v&&h&&s(v,h)&&(g=!0),b&&g},u=d=>{if(o)return o===d.id;if(a(d)){let n=r;return n&&l(n,d.dateRange)}else if(c(d)){let n=r;return n&&s(n,d.date)}return!1};return Ge(Vr,{className:"w-full rounded ring-neutral-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:Ge(Vr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,n)=>Al(Vr.Item,{disabled:d.requiresUpgrade,onSelect:()=>t(d),title:d.label,value:d.id,className:i("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-neutral-200","px-2.5 py-1.5 text-left text-sm text-neutral-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-neutral-100",u(d)&&"font-semibold text-neutral-800"),children:[Ge("span",{children:d.label}),d.requiresUpgrade?Ge(El,{className:"h-3.5 w-3.5","aria-hidden":"true"}):d.shortcut?Ge("kbd",{className:"text-neutral-4000 hidden rounded bg-neutral-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-neutral-200 md:block",children:d.shortcut.toUpperCase()}):null,d.requiresUpgrade&&d.tooltipContent&&Ge(J,{side:"bottom",content:d.tooltipContent,children:Ge("div",{className:"absolute inset-0 cursor-not-allowed"})})]},n))})})};Br.displayName="DatePicker.Presets";import{format as Ie}from"date-fns";import{createContext as Dl}from"react";var Wr=Dl({isOpen:!1,setIsOpen:()=>{}}),Il=()=>{let e=typeof window<"u"?window.navigator.language:"en-US",t=new Intl.DateTimeFormat(e,{hour:"numeric"}).format();return Number.isInteger(Number(t))},Fr=(e,t,r=!1)=>{let o=!Il(),a;return r?a=o?Ie(e,"d MMM, yyyy h:mm a",{locale:t}):Ie(e,"d MMM, yyyy HH:mm",{locale:t}):a=Ie(e,"d MMM, yyyy",{locale:t}),a},Za=(e,t)=>{let{toYear:r,fromYear:o,fromMonth:a,toMonth:c,fromDay:s,toDay:l}=t;if(e&&e.length>0){let u=o,d=r;e.forEach(n=>{var m,f,b,v,h,g;if("date"in n){let C=n.date.getFullYear();if(o&&C<o)throw new Error(`Preset ${n.label} is before fromYear ${u}.`);if(r&&C>r)throw new Error(`Preset ${n.label} is after toYear ${d}.`);if(a&&n.date.getMonth()<a.getMonth())throw new Error(`Preset ${n.label} is before fromMonth ${a}.`);if(c&&n.date.getMonth()>c.getMonth())throw new Error(`Preset ${n.label} is after toMonth ${c}.`);if(s&&n.date.getDate()<s.getDate())throw new Error(`Preset ${n.label} is before fromDay ${s}.`);if(l&&n.date.getDate()>l.getDate())throw new Error(`Preset ${n.label} is after toDay ${Ie(l,"MMM dd, yyyy")}.`)}if("dateRange"in n){let C=(m=n.dateRange.from)==null?void 0:m.getFullYear(),N=(f=n.dateRange.to)==null?void 0:f.getFullYear();if(C&&o&&C<o)throw new Error(`Preset ${n.label}'s 'from' is before fromYear ${u}.`);if(N&&r&&N>r)throw new Error(`Preset ${n.label}'s 'to' is after toYear ${d}.`);if(a){let M=(b=n.dateRange.from)==null?void 0:b.getMonth();if(M&&M<a.getMonth())throw new Error(`Preset ${n.label}'s 'from' is before fromMonth ${Ie(a,"MMM, yyyy")}.`)}if(c){let M=(v=n.dateRange.to)==null?void 0:v.getMonth();if(M&&M>c.getMonth())throw new Error(`Preset ${n.label}'s 'to' is after toMonth ${Ie(c,"MMM, yyyy")}.`)}if(s){let M=(h=n.dateRange.from)==null?void 0:h.getDate();if(M&&M<s.getDate())throw new Error(`Preset ${n.dateRange.from}'s 'from' is before fromDay ${Ie(s,"MMM dd, yyyy")}.`)}if(l){let M=(g=n.dateRange.to)==null?void 0:g.getDate();if(M&&M>l.getDate())throw new Error(`Preset ${n.label}'s 'to' is after toDay ${Ie(l,"MMM dd, yyyy")}.`)}}})}};import{cva as zl}from"class-variance-authority";import{Calendar as Ol,ChevronDown as _l}from"lucide-react";import{forwardRef as Hl}from"react";import{jsx as or,jsxs as Bl}from"react/jsx-runtime";var Vl=zl(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-neutral-200 text-neutral-900 placeholder-neutral-400 transition-all","disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-400","focus-visible:border-neutral-500 data-[state=open]:border-neutral-500 data-[state=open]:ring-4 data-[state=open]:ring-neutral-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),Ur=Hl(({className:e,children:t,placeholder:r,hasError:o,...a},c)=>Bl("button",{ref:c,className:i(Vl({hasError:o}),e),...a,children:[or(Ol,{className:i("h-4 w-4 shrink-0 text-neutral-400",!!t&&"text-neutral-900")}),or("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-neutral-900",children:t||(r?or("span",{className:"text-neutral-400",children:r}):null)}),or(_l,{className:"h-4 w-4 flex-shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));Ur.displayName="DatePicker.Trigger";import{jsx as ae,jsxs as Ja}from"react/jsx-runtime";var Ul=({value:e,defaultValue:t,presetId:r,onChange:o,presets:a,disabled:c,disableNavigation:s,disabledDays:l,showYearNavigation:u=!1,locale:d=Wl,placeholder:n="Select date range",hasError:m,align:f="center",className:b,...v})=>{let{isDesktop:h}=q(),[g,C]=ar(!1),[N,M]=ar(a&&r?a==null?void 0:a.find(({id:A})=>A===r):void 0),[k,w]=ar((N==null?void 0:N.dateRange)??e??t??void 0),[U,R]=ar(k==null?void 0:k.to),x=Xa(()=>k,[g]);Gr(()=>{w(e)},[e]),Gr(()=>{let A=a==null?void 0:a.find(({id:me})=>me===r);M(A),w((A==null?void 0:A.dateRange)??e??t)},[a,r]),Gr(()=>{g?k&&R(k.to):R(k==null?void 0:k.to)},[g]);let T=(A,me)=>{let G=(k==null?void 0:k.from)&&(k==null?void 0:k.to)?{from:me}:A;w(G),M(void 0),(G==null?void 0:G.from)&&(G==null?void 0:G.to)&&(o==null||o(G),C(!1))},B=A=>{w(A.dateRange),M(A),o==null||o(A.dateRange,A),C(!1)},P=()=>{w(x),C(!1)},I=A=>{A||P(),C(A)},X=Xa(()=>k?`${k.from?Fr(k.from,d):""} - ${k.to?Fr(k.to,d):""}`:null,[k,d]);return tt((a==null?void 0:a.filter(A=>A.shortcut).map(A=>A.shortcut))??[],A=>{let me=a==null?void 0:a.find(G=>G.shortcut===A.key);me&&B(me)}),ae(Wr.Provider,{value:{isOpen:g,setIsOpen:C},children:ae(ot,{align:f,openPopover:g,setOpenPopover:I,popoverContentClassName:"rounded-xl",content:ae("div",{className:"flex w-full",children:Ja("div",{className:"scrollbar-hide relative flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[a&&a.length>0&&ae(Gl,{children:ae("div",{className:"absolute px-3 sm:inset-0 sm:left-0",children:ae("div",{className:"sm:py-3",children:ae(Br,{currentPresetId:r,currentValue:k,presets:a,onSelect:B})})})}),ae("div",{className:"scrollbar-hide overflow-x-scroll",children:ae(qa,{mode:"range",selected:k,onSelect:T,month:U,onMonthChange:R,numberOfMonths:h?2:1,disabled:l,disableNavigation:s,showYearNavigation:u,locale:d,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-neutral-200 overflow-x-scroll scrollbar-hide"},...v})})]})}),children:ae(Ur,{placeholder:n,disabled:c,className:b,hasError:m,"aria-required":v.required||v["aria-required"],"aria-invalid":v["aria-invalid"],"aria-label":v["aria-label"],"aria-labelledby":v["aria-labelledby"],children:(N==null?void 0:N.label)??X})})})};function o2({presets:e,...t}){return e&&Za(e,t),ae(Ul,{presets:e,...t})}function Gl({children:e}){let t=Fl(null),{scrollProgress:r,updateScrollProgress:o}=Ae(t);return Ja("div",{className:"relative sm:h-full",children:[ae("div",{ref:t,onScroll:o,className:i("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-neutral-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:e}),ae("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(r,2)}})]})}import $l from"next/link";import{useEffect as Kl,useState as Qa}from"react";import jl from"swr";import{jsx as $r,jsxs as en}from"react/jsx-runtime";function tn({className:e}){let{data:t}=jl("https://status.dub.co/api/v1/summary",ge),[r,o]=Qa("bg-neutral-200"),[a,c]=Qa("Loading status...");return Kl(()=>{if(!t)return;let{ongoing_incidents:s}=t;if(s.length>0){let{current_worst_impact:l,name:u}=s[0],d=l==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(u),o(d)}else c("All systems operational"),o("bg-green-500")},[t]),en($l,{href:"https://status.dub.co",target:"_blank",className:i("group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",e),children:[en("div",{className:"relative size-2",children:[$r("div",{className:i("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),$r("div",{className:i("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),$r("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}import{jsx as nr,jsxs as rn}from"react/jsx-runtime";function g2({icon:e,title:t,description:r,learnMore:o,children:a}){return rn("div",{className:"flex flex-col items-center justify-center gap-y-4",children:[nr("div",{className:"flex size-16 items-center justify-center rounded-2xl border border-neutral-200 bg-neutral-50",children:nr(e,{className:"size-6 text-neutral-800"})}),nr("p",{className:"text-center text-base font-medium text-neutral-950",children:t}),r&&rn("p",{className:"max-w-sm text-balance text-center text-sm text-neutral-500",children:[r," ",o&&nr("a",{href:o,target:"_blank",className:"underline underline-offset-2 hover:text-neutral-800",children:"Learn more \u2197"})]}),a]})}import{cva as Yl}from"class-variance-authority";import{useState as on}from"react";import{toast as an}from"sonner";import{Fragment as Zl,jsx as be,jsxs as jr}from"react/jsx-runtime";var nn=["application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv"],Kr={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"},csv:{types:["text/csv"],errorMessage:"File type not supported (.csv only)"},documents:{types:nn,errorMessage:"File type not supported (document files only)"},programResourceImages:{types:["image/svg+xml","image/png","image/jpeg"],errorMessage:"File type not supported (.svg., .png, or .jpg only)"},programResourceFiles:{types:[...nn,"application/zip"],errorMessage:"File type not supported (document or zip files only)"}},ql=Yl("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-neutral-50",{variants:{variant:{default:"rounded-md border border-neutral-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function S2({id:e,readFile:t,onChange:r,variant:o,className:a,iconClassName:c,previewClassName:s,icon:l=aa,customPreview:u,accept:d="any",imageSrc:n,loading:m=!1,clickToUpload:f=!0,showHoverOverlay:b=!0,content:v,maxFileSizeMB:h=0,targetResolution:g,accessibilityLabel:C="File upload",disabled:N=!1}){let[M,k]=on(!1),[w,U]=on(null),R=async x=>{let T="dataTransfer"in x?x.dataTransfer.files&&x.dataTransfer.files[0]:x.target.files&&x.target.files[0];if(!T)return;if(U(T.name),h>0&&T.size/1024/1024>h){an.error(`File size too big (max ${h} MB)`);return}let B=Kr[d].types;if(B.length&&!B.includes(T.type)){an.error(Kr[d].errorMessage??"File type not supported");return}let P=T;if(g&&T.type.startsWith("image/"))try{let I=await Ro(T,g),X=await fetch(I).then(A=>A.blob());P=new File([X],T.name,{type:T.type})}catch(I){console.error("Error resizing image:",I)}if(t){let I=new FileReader;I.onload=X=>{var A;return r==null?void 0:r({src:(A=X.target)==null?void 0:A.result,file:P})},I.readAsDataURL(P);return}r==null||r({file:P})};return jr("label",{className:i(ql({variant:o}),N?"cursor-not-allowed":i(f&&"cursor-pointer"),a),children:[m&&be("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:be(bt,{})}),be("div",{className:"absolute inset-0 z-[5]",onDragOver:x=>{x.preventDefault(),x.stopPropagation(),k(!0)},onDragEnter:x=>{x.preventDefault(),x.stopPropagation(),k(!0)},onDragLeave:x=>{x.preventDefault(),x.stopPropagation(),k(!1)},onDrop:async x=>{x.preventDefault(),x.stopPropagation(),R(x),k(!1)}}),jr("div",{className:i("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] border-2 border-transparent bg-white transition-all",N&&"bg-neutral-50",M&&!N&&"cursor-copy border-black bg-neutral-50 opacity-100",n?i("opacity-0",b&&!N&&"group-hover:opacity-100"):i(!N&&"group-hover:bg-neutral-50")),children:[be(l,{className:i("size-7 transition-all duration-75",N?"text-neutral-400":i("text-neutral-500 group-hover:scale-110 group-active:scale-95",M?"scale-110":"scale-100"),c)}),v!==null&&be("div",{className:i("mt-2 text-center text-sm text-neutral-500",N&&"text-neutral-400"),children:v??be(Zl,{children:jr("p",{children:["Drag and drop ",f&&"or click"," to upload."]})})}),be("span",{className:"sr-only",children:C})]}),n&&(u??be("img",{src:n,alt:"Preview",className:i("h-full w-full rounded-[inherit] object-cover",s)})),f&&be("div",{className:"sr-only mt-1 flex shadow-sm",children:be("input",{id:e,type:"file",accept:Kr[d].types.join(","),onChange:R,disabled:N},w)})]})}import{AnimatePresence as Xl,motion as sn}from"framer-motion";import{X as Jl}from"lucide-react";import Ql from"next/link";import{useParams as ec}from"next/navigation";import{isValidElement as tc}from"react";import{Fragment as rc,jsx as Q,jsxs as Mt}from"react/jsx-runtime";function cn({filters:e,activeFilters:t,onRemove:r,onRemoveAll:o,className:a}){let{slug:c}=ec();return tt("Escape",o,{priority:1}),Q(Pe,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:Mt("div",{className:i("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",a),children:[Q("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:Q(Xl,{children:t==null?void 0:t.map(({key:s,value:l})=>{if(s==="loader")return Q(sn.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-neutral-200 bg-white"},`loader-${l}`);let u=e.find(n=>n.key===s);if(!u)return console.error("Filter.List received an activeFilter without a corresponding filter"),null;let d=c&&s==="link"?`/${c}/links/${l}`:void 0;return(u.multiple&&Array.isArray(l)?l:[l]).map(n=>{var v,h,g;let m=(v=u.options)==null?void 0:v.find(C=>typeof C.value=="string"&&typeof n=="string"?C.value.toLowerCase()===n.toLowerCase():C.value===n),f=(m==null?void 0:m.icon)??((h=u.getOptionIcon)==null?void 0:h.call(u,n,{key:u.key,option:m}))??u.icon,b=(m==null?void 0:m.label)??((g=u.getOptionLabel)==null?void 0:g.call(u,n,{key:u.key,option:m}))??n;return Mt(sn.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-neutral-200 bg-white text-sm text-black",children:[Mt("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[Q("span",{className:"shrink-0 text-neutral-600",children:ln(u.icon)?u.icon:Q(u.icon,{className:"h-4 w-4"})}),u.label]}),Q("div",{className:"px-3 py-2 text-neutral-500",children:"is"}),Q("div",{className:"flex items-center gap-2.5 px-3 py-2",children:u.options?Mt(rc,{children:[Q("span",{className:"shrink-0 text-neutral-600",children:ln(f)?f:Q(f,{className:"h-4 w-4"})}),d?Q(Ql,{href:d,target:"_blank",className:"cursor-alias decoration-dotted underline-offset-2 hover:underline",children:ht(b,30)}):ht(b,30)]}):Q("div",{className:"h-5 w-12 animate-pulse rounded-md bg-neutral-200"})}),Q("button",{type:"button",className:"h-full rounded-r-md p-2 text-neutral-500 ring-inset ring-neutral-500 hover:bg-neutral-100 hover:text-neutral-800 focus:outline-none focus-visible:ring-1",onClick:()=>r(s,n),children:Q(Jl,{className:"h-3.5 w-3.5"})})]},`${s}-${n}`)})})})}),(t==null?void 0:t.length)!==0&&Mt("button",{type:"button",className:"group mt-px flex items-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-neutral-500 ring-inset ring-neutral-500 transition-colors hover:border-neutral-200 hover:bg-white hover:text-black focus:outline-none",onClick:o,children:["Clear Filters",Q("kbd",{className:"rounded-md border border-neutral-200 px-1.5 py-0.5 text-xs text-neutral-950 group-hover:bg-neutral-50",children:"ESC"})]})]})})}var ln=e=>tc(e);import{Command as ze,useCommandState as oc}from"cmdk";import{ChevronDown as ac,ListFilter as nc}from"lucide-react";import{Fragment as ic,forwardRef as sc,isValidElement as un,useCallback as ir,useEffect as sr,useImperativeHandle as lc,useRef as qr,useState as Yr}from"react";import{Fragment as fc,jsx as H,jsxs as xe}from"react/jsx-runtime";function mn({filters:e,onSelect:t,onRemove:r,onOpenFilter:o,onSearchChange:a,onSelectedFilterChange:c,activeFilters:s,askAI:l,children:u,emptyState:d,className:n}){var T,B;let{isMobile:m}=q(),f=qr(null),b=qr(),[v,h]=Yr(!1);tt("f",()=>h(!0),{enabled:!v});let[g,C]=Yr(""),[N,M]=Yr(null),k=ir(()=>{C(""),M(null)},[]);sr(()=>{v||k()},[v]);let w=N?e.find(({key:P})=>P===N):null,U=ir(P=>{f.current&&(b.current={width:f.current.clientWidth,height:f.current.clientHeight}),C(""),M(P),o==null||o(P)},[]),R=ir(P=>{if(!w||!s)return!1;let I=s.find(({key:X})=>X===N);return(I==null?void 0:I.value)===P||I&&w.multiple&&Array.isArray(I.value)&&I.value.includes(P)},[w]),x=ir(P=>{w&&(R(P)?r(w.key,P):t(w.key,P),w.multiple||h(!1))},[s,w,l]);return sr(()=>{a==null||a(g)},[g]),sr(()=>{c==null||c(N)},[N]),sr(()=>{(w==null?void 0:w.options)&&f.current&&(b.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:v,setOpenPopover:h,onEscapeKeyDown:P=>{N&&(P.preventDefault(),k())},content:H(Pe,{width:!m,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:xe(ze,{loop:!0,shouldFilter:!w||w.shouldFilter!==!1,children:[xe("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-neutral-200",children:[H(dc,{placeholder:`${(w==null?void 0:w.label)||"Filter"}...`,value:g,onValueChange:C,onKeyDown:P=>{(P.key==="Escape"||P.key==="Backspace"&&!g)&&(P.preventDefault(),P.stopPropagation(),N?k():h(!1))},emptySubmit:P=>{P.preventDefault(),P.stopPropagation(),l?(t("ai",w?`${w.label} ${g}`:g),h(!1)):x(g)}}),!w&&H("kbd",{className:"mr-2 hidden shrink-0 rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-500 md:block",children:"F"})]}),H(uc,{ref:f,children:xe(ze.List,{className:i("flex w-full flex-col gap-1 p-1",w?"min-w-[100px]":"min-w-[180px]"),children:[w?((B=(T=w.options)==null?void 0:T.filter(P=>!g||!P.hideDuringSearch))==null?void 0:B.map(P=>{let I=R(P.value);return H(dn,{filter:w,option:P,right:I?H(Zo,{className:"h-4 w-4"}):P.right,onSelect:()=>x(P.value)},P.value)}))??H(ze.Loading,{children:H("div",{className:"-m-1 flex items-center justify-center",style:b.current,children:H(Ne,{})})}):e.map(P=>xe(ic,{children:[H(dn,{filter:P,onSelect:()=>U(P.key)}),P.separatorAfter&&H(ze.Separator,{className:"-mx-1 my-1 border-b border-neutral-200"})]},P.key)),(!w||w.options)&&H(mc,{search:g,askAI:l,children:d?cc(d)?(d==null?void 0:d[N??"default"])??"No matches":d:"No matches"})]})},N)]})}),children:xe("button",{type:"button",className:i("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-neutral-200 bg-white text-neutral-900 placeholder-neutral-400","focus-visible:border-neutral-500 data-[state=open]:border-neutral-500 data-[state=open]:ring-4 data-[state=open]:ring-neutral-200",n),children:[H(nc,{className:"size-4 shrink-0"}),H("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-neutral-900",children:u??"Filter"}),s!=null&&s.length?H("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:s.length}):H(ac,{className:"size-4 shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function cc(e){return typeof e=="object"&&e!==null&&!un(e)}var dc=e=>{let t=oc(r=>r.filtered.count===0);return H(ze.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-neutral-400 focus:ring-0 sm:text-sm",onKeyDown:r=>{var o,a;(o=e.onKeyDown)==null||o.call(e,r),r.key==="Enter"&&t&&((a=e.emptySubmit)==null||a.call(e,r))},autoCapitalize:"none"})},uc=sc(({children:e},t)=>{let r=qr(null);lc(t,()=>r.current);let{scrollProgress:o,updateScrollProgress:a}=Ae(r);return xe(fc,{children:[H("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:r,onScroll:a,children:e}),H("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(o,2)}})]})});function dn({filter:e,option:t,right:r,onSelect:o}){var l,u;let{isMobile:a}=q(),c=t?t.icon??((l=e.getOptionIcon)==null?void 0:l.call(e,t.value,{key:e.key,option:t}))??e.icon:e.icon,s=t?t.label??((u=e.getOptionLabel)==null?void 0:u.call(e,t.value,{key:e.key,option:t})):e.label;return xe(ze.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-neutral-100"),onPointerDown:d=>{d.preventDefault()},onPointerUp:d=>{d.preventDefault(),a?setTimeout(o,100):o()},onSelect:o,value:s+(t==null?void 0:t.value),children:[H("span",{className:"shrink-0 text-neutral-600",children:pc(c)?c:H(c,{className:"h-4 w-4"})}),ht(s,48),H("div",{className:"ml-1 flex shrink-0 grow justify-end text-neutral-500",children:r})]})}var mc=({search:e,askAI:t,children:r})=>t&&e?xe(ze.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-neutral-100 px-3 py-2",children:[H(zo,{className:"h-4 w-4"}),xe("p",{className:"text-center text-sm text-neutral-600",children:["Ask AI ",xe("span",{className:"text-black",children:['"',e,'"']})]})]}):H(ze.Empty,{className:"p-2 text-center text-sm text-neutral-400",children:r}),pc=e=>un(e);var J2={Select:mn,List:cn};import{useMemo as gc,useState as pn}from"react";import{jsx as $e,jsxs as lr}from"react/jsx-runtime";function nb({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:c,handleSubmit:s}){let[l,u]=pn(r.defaultValue),[d,n]=pn(!1),m=gc(()=>d||!l||l===r.defaultValue,[d,l,r.defaultValue]);return lr("form",{onSubmit:async f=>{f.preventDefault(),n(!0),await s({[r.name]:l}),n(!1)},className:"rounded-lg border border-neutral-200 bg-white",children:[lr("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[lr("div",{className:"flex flex-col space-y-3",children:[$e("h2",{className:"text-xl font-medium",children:e}),$e("p",{className:"text-sm text-neutral-500",children:t})]}),typeof r.defaultValue=="string"?$e("input",{...r,type:r.type||"text",required:!0,disabled:!!c,onChange:f=>u(f.target.value),className:i("w-full max-w-md rounded-md border border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",{"cursor-not-allowed bg-neutral-100 text-neutral-400":c})}):$e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-neutral-200"})]}),lr("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-neutral-200 bg-neutral-50 p-3 sm:px-10",children:[typeof o=="string"?$e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-neutral-700 text-neutral-500 transition-colors",dangerouslySetInnerHTML:{__html:o||""}}):o,$e("div",{className:"shrink-0",children:$e(le,{text:a,loading:d,disabled:m,disabledTooltip:c})})]})]})}import{useId as hc}from"react";import{jsx as cr,jsxs as vc}from"react/jsx-runtime";function fn({cellSize:e=12,strokeWidth:t=1,patternOffset:r=[0,0],className:o}){let a=hc();return vc("svg",{className:i("pointer-events-none absolute inset-0 text-black/10",o),width:"100%",height:"100%",children:[cr("defs",{children:cr("pattern",{id:`grid-${a}`,x:r[0]-1,y:r[1]-1,width:e,height:e,patternUnits:"userSpaceOnUse",children:cr("path",{d:`M ${e} 0 L 0 0 0 ${e}`,fill:"transparent",stroke:"currentColor",strokeWidth:t})})}),cr("rect",{fill:`url(#grid-${a})`,width:"100%",height:"100%"})]})}import{AlertCircle as bc}from"lucide-react";import xc,{useCallback as yc,useState as wc}from"react";import{jsx as Ke,jsxs as Zr}from"react/jsx-runtime";var Cc=xc.forwardRef(({className:e,type:t,...r},o)=>{let[a,c]=wc(!1),s=yc(()=>c(!a),[a,c]);return Zr("div",{children:[Zr("div",{className:"relative flex",children:[Ke("input",{type:a?"text":t,className:i("w-full max-w-md rounded-md border border-neutral-300 text-neutral-900 placeholder-neutral-400 read-only:bg-neutral-100 read-only:text-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",e),ref:o,...r}),Zr("div",{className:"group",children:[r.error&&Ke("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:Ke(bc,{className:i("size-5 text-white",t==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),t==="password"&&Ke("button",{className:i("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>s(),"aria-label":a?"Hide password":"Show Password",children:a?Ke(ia,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0}):Ke(sa,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0})})]})]}),r.error&&Ke("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});Cc.displayName="Input";import{flip as Sc,offset as Mc,size as Rc,useDismiss as Tc,useFloating as Lc,useInteractions as Ec}from"@floating-ui/react";import{Command as Re,useCommandState as Ac}from"cmdk";import{Check as Dc,ChevronDown as Ic,Search as zc,X as Oc}from"lucide-react";import{createContext as _c,forwardRef as xn,useContext as eo,useEffect as Xr,useMemo as hn,useRef as vn,useState as Jr}from"react";import{Drawer as at}from"vaul";import Nc from"next/image";import{useEffect as kc,useState as gn}from"react";import{jsx as Pc}from"react/jsx-runtime";function Rt(e){let[t,r]=gn(!0),[o,a]=gn(e.src);kc(()=>a(e.src),[e.src]);let c=s=>{r(!1);let l=s.target;l.naturalWidth<=16&&l.naturalHeight<=16&&a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)};return Pc(Nc,{...e,src:o,alt:e.alt,className:i(t?"blur-[2px]":"blur-0",e.className),onLoad:c,onError:()=>{a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)},unoptimized:!0})}import{jsx as D,jsxs as ce}from"react/jsx-runtime";var dr=_c({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function zb({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:c,icon:s,inputAttrs:l,noItemsElement:u}){let{isMobile:d}=q(),n=vn(null),[m,f]=Jr(!1),[b,v]=Jr(""),[h,g]=Jr(!1);Xr(()=>{m&&g(!1)},[m]),Xr(()=>g(!0),[b]),Xr(()=>{t&&v(t.value)},[t]);let C=hn(()=>{let I=b.toLowerCase();return h?e.filter(X=>X.value.toLowerCase().includes(I)):b?e.sort((X,A)=>(A.value.toLowerCase().includes(I)?1:0)-(X.value.toLowerCase().includes(I)?1:0)):e},[h,b,e]),{refs:N,floatingStyles:M,context:k}=Lc({open:m,onOpenChange:f,middleware:[Mc(8),Rc({apply({elements:{floating:I},availableHeight:X}){Object.assign(I.style,{maxHeight:`${Math.max(75,Math.min(X,290))}px`})},padding:8}),Sc({fallbackStrategy:"initialPlacement",padding:8})]}),w=Tc(k,{enabled:!d||!c}),{getReferenceProps:U,getFloatingProps:R}=Ec([w]),x=vn(null),{scrollProgress:T,updateScrollProgress:B}=Ae(x),P=hn(()=>t&&t.icon?t.icon:t&&t.image?D(Rt,{src:t.image,alt:t.value,className:"size-4 rounded-full",width:16,height:16}):s||D(zc,{className:"size-4 text-neutral-400"}),[t,s]);return D(dr.Provider,{value:{inputAttrs:l||{},openCommandList:m,setOpenCommandList:f,inputValue:b,setInputValue:v,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:d&&c?ce(at.Root,{open:m,onOpenChange:f,children:[D(at.Trigger,{className:"sm:hidden",asChild:!0,children:D(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:D(Qr,{className:o,iconElement:P})})}),D(at.Overlay,{className:"fixed inset-0 z-40 bg-neutral-100 bg-opacity-10 backdrop-blur"}),ce(at.Portal,{children:[D(at.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-neutral-200 bg-white",onPointerDownOutside:I=>{I.target instanceof Element&&I.target.closest("[data-sonner-toast]")&&I.preventDefault()},children:ce(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D("div",{className:"p-2",children:D(Qr,{className:o,iconElement:P})}),m&&ce(Re.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&b===""&&(u?D("div",{children:u}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),b!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."}),D(bn,{items:C})]})]})}),D(at.Overlay,{})]})]}):ce(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D(Qr,{className:o,iconElement:P,ref:N.setReference,...U()}),m&&ce("div",{ref:N.setFloating,style:M,...R(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-neutral-200 bg-white shadow-md",children:[ce("div",{ref:x,onScroll:B,className:"grow overflow-y-auto p-2",children:[ce(Re.List,{children:[e.length===0&&b===""&&(u?D("div",{children:u}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),b!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."})]}),D(bn,{items:C})]}),D("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(T,2)}})]})]})})}var Qr=xn(({iconElement:e,className:t,...r},o)=>ce("label",{ref:o,className:i("group relative flex cursor-pointer gap-2 rounded-md border border-neutral-200 bg-white px-1 pl-3 transition-all focus-within:border-neutral-500 focus-within:ring-4 focus-within:ring-neutral-200",t),...r,children:[D("div",{className:"flex shrink-0 items-center justify-center text-neutral-400",children:e}),ce("div",{className:"flex h-10 grow",children:[D(Hc,{}),D(Vc,{})]})]})),Hc=xn((e,t)=>{let r=Ac(d=>d.filtered.count===0),{inputAttrs:o,openCommandList:a,setOpenCommandList:c,inputValue:s,setInputValue:l,disabled:u}=eo(dr);return D(Re.Input,{ref:t,placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:a,onFocus:()=>c(!0),value:s,onValueChange:l,onKeyDown:d=>{d.key==="Escape"?(d.preventDefault(),c(!1)):d.key==="Enter"&&r?c(!1):d.key.match(/^[a-z0-9]$/i)&&!d.metaKey&&c(!0)},disabled:u,className:"block w-full truncate rounded-md border-none px-0 text-base text-neutral-900 placeholder-neutral-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function Vc(){let{setSelectedItem:e,openCommandList:t,setOpenCommandList:r,inputValue:o,setInputValue:a}=eo(dr);return D("button",{type:"button",onClick:()=>{r(c=>!c),e(null),a("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:o.length>0?D(Oc,{className:"size-4 text-neutral-400 transition-all hover:text-neutral-700"}):D(Ic,{className:i("size-4 text-neutral-400 transition-all hover:text-neutral-700",{"rotate-180 transform":t})})})}function bn({items:e}){let{setSelectedItem:t,setOpenCommandList:r,setInputValue:o}=eo(dr);return e.map(a=>ce(Re.Item,{value:a.value,disabled:a.disabled,onSelect:()=>{t(a),o(a.value),r(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-neutral-900 hover:bg-neutral-100 hover:text-neutral-900 active:bg-neutral-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-neutral-100 aria-selected:text-neutral-900",children:[ce("div",{className:"flex items-center space-x-2",children:[a.icon||a.image&&D(Rt,{src:a.image,alt:a.value,className:"size-4 rounded-full",width:16,height:16}),D("p",{className:i("whitespace-nowrap py-0.5 text-sm",a.color&&"rounded-md px-2",a.color==="red"&&"bg-red-100 text-red-600",a.color==="yellow"&&"bg-yellow-100 text-yellow-600",a.color==="green"&&"bg-green-100 text-green-600",a.color==="blue"&&"bg-blue-100 text-blue-600",a.color==="purple"&&"bg-purple-100 text-purple-600",a.color==="brown"&&"bg-brown-100 text-brown-600"),children:a.value}),a.label&&D(jt,{className:"text-xs",variant:"neutral",children:a.label})]}),D(Dc,{className:"invisible h-5 w-5 text-neutral-500 aria-selected:visible"})]},a.id))}import*as to from"@radix-ui/react-label";import{cva as Bc}from"class-variance-authority";import*as yn from"react";import{jsx as Uc}from"react/jsx-runtime";var Wc=Bc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Fc=yn.forwardRef(({className:e,...t},r)=>Uc(to.Root,{ref:r,className:i(Wc(),e),...t}));Fc.displayName=to.Root.displayName;import{cva as Gc}from"class-variance-authority";import{isValidElement as $c}from"react";import{jsx as wn,jsxs as Cn}from"react/jsx-runtime";var Kc=Gc(["flex h-9 w-full rounded-md px-2 items-center justify-center gap-2 transition-colors","whitespace-nowrap text-sm font-medium text-content-default hover:bg-bg-subtle transition-colors"],{variants:{variant:{default:"text-content-default hover:bg-bg-subtle",danger:"text-content-error hover:bg-bg-error"}}});function jb({as:e,variant:t="default",children:r,icon:o,shortcut:a,className:c,...s}){return Cn(e||"button",{...e==="button"?{type:"button"}:{},className:i(Kc({variant:t}),c),...s,children:[Cn("div",{className:"flex grow items-center gap-2",children:[o&&(jc(o)?o:wn(o,{className:"size-4"})),r]}),a&&wn("kbd",{className:i("bg-bg-inverted/5 group-hover:bg-bg-inverted/10 hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:block"),children:a})]})}var jc=e=>$c(e);import{curveNatural as Nn}from"@visx/curve";import{LinearGradient as kn}from"@visx/gradient";import{Group as Yc}from"@visx/group";import{ParentSize as qc}from"@visx/responsive";import{scaleLinear as Zc,scaleUtc as Xc}from"@visx/scale";import{Area as Jc,AreaClosed as Qc}from"@visx/shape";import{motion as Pn}from"framer-motion";import{useId as ed,useMemo as Sn}from"react";import{jsx as ye,jsxs as ro}from"react/jsx-runtime";var td={top:8,right:2,bottom:2,left:2};function o4(e){return ye(qc,{className:"relative",children:({width:t,height:r})=>t>0&&r>0&&ye(rd,{...{width:t,height:r,...e}})})}function rd({width:e,height:t,data:r,curve:o=!0,color:a,padding:c}){let s={...td,...c},l=ed(),u=Sn(()=>r.map(({date:m})=>({date:m,value:0})),[r]),{yScale:d,xScale:n}=Sn(()=>{let m=r.map(({value:g})=>g),f=Math.max(...m),b=r.map(({date:g})=>g.getTime()),v=new Date(Math.min(...b)),h=new Date(Math.max(...b));return{yScale:Zc({domain:[-2,Math.max(f,2)],range:[t-s.top-s.bottom,0],nice:!0,clamp:!0}),xScale:Xc({domain:[v,h],range:[0,e-s.left-s.right],nice:!0})}},[r,t,e]);return ro("svg",{width:e,height:t,children:[ro("defs",{children:[ye(kn,{id:`${l}-color-gradient`,from:a||"#7D3AEC",to:a||"#DA2778",x1:0,x2:e-s.left-s.right,gradientUnits:"userSpaceOnUse"}),ye(kn,{id:`${l}-mask-gradient`,from:"white",to:"white",fromOpacity:.3,toOpacity:0,x1:0,x2:0,y1:0,y2:1}),ye("mask",{id:`${l}-mask`,maskContentUnits:"objectBoundingBox",children:ye("rect",{width:"1",height:"1",fill:`url(#${l}-mask-gradient)`})})]}),ro(Yc,{left:s.left,top:s.top,children:[ye(Jc,{data:r,x:({date:m})=>n(m),y:({value:m})=>d(m)??0,curve:o?Nn:void 0,children:({path:m})=>ye(Pn.path,{initial:{d:m(u)||"",opacity:0},animate:{d:m(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),ye(Qc,{data:r,x:({date:m})=>n(m),y:({value:m})=>d(m)??0,yScale:d,curve:o?Nn:void 0,children:({path:m})=>ye(Pn.path,{initial:{d:m(u)||"",opacity:0},animate:{d:m(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as de from"@radix-ui/react-dialog";import*as oo from"@radix-ui/react-visually-hidden";import{useRouter as od}from"next/navigation";import{Drawer as je}from"vaul";import{jsx as ne,jsxs as nt}from"react/jsx-runtime";function c4({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:c,preventDefaultClose:s,drawerRootProps:l}){let u=od(),d=({dragged:m}={})=>{s&&!m||(a&&a(),o?o(!1):u.back())},{isMobile:n}=q();return n&&!c?ne(je.Root,{open:o?r:!0,onOpenChange:m=>{m||d({dragged:!0})},...l,children:nt(je.Portal,{children:[ne(je.Overlay,{className:"fixed inset-0 z-50 bg-neutral-100 bg-opacity-10 backdrop-blur"}),ne(je.Content,{onPointerDownOutside:m=>{m.target instanceof Element&&m.target.closest("[data-sonner-toast]")&&m.preventDefault()},className:i("fixed bottom-0 left-0 right-0 z-50 flex flex-col","rounded-t-[10px] border-t border-neutral-200 bg-white",t),children:nt("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-t-[10px] bg-inherit",children:[nt(oo.Root,{children:[ne(je.Title,{children:"Modal"}),ne(je.Description,{children:"This is a modal"})]}),ne(ad,{}),e]})}),ne(je.Overlay,{})]})}):ne(de.Root,{open:o?r:!0,onOpenChange:m=>{m||d()},children:nt(de.Portal,{children:[ne(de.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-neutral-100 bg-opacity-50 backdrop-blur-md"}),nt(de.Content,{onOpenAutoFocus:m=>m.preventDefault(),onCloseAutoFocus:m=>m.preventDefault(),onPointerDownOutside:m=>{m.target instanceof Element&&m.target.closest("[data-sonner-toast]")&&m.preventDefault()},className:i("fixed inset-0 z-40 m-auto h-fit w-full max-w-md","border border-neutral-200 bg-white p-0 shadow-xl sm:rounded-2xl","scrollbar-hide animate-scale-in overflow-y-auto",t),children:[nt(oo.Root,{children:[ne(de.Title,{children:"Modal"}),ne(de.Description,{children:"This is a modal"})]}),e]})]})})}function ad(){return ne("div",{className:"sticky top-0 z-20 flex items-center justify-center rounded-t-[10px] bg-inherit",children:ne("div",{className:"my-3 h-1 w-12 rounded-full bg-neutral-300"})})}import{Fragment as nd,jsx as ur,jsxs as it}from"react/jsx-runtime";var Mn=i("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-neutral-200 bg-white px-2 text-sm text-neutral-600","outline-none hover:bg-neutral-50 focus-visible:border-neutral-500","disabled:cursor-not-allowed disabled:border-neutral-200 disabled:text-neutral-400 disabled:bg-neutral-100");function m4({pagination:e,setPagination:t,totalCount:r,unit:o=l=>`item${l?"s":""}`,className:a,children:c,showTotalCount:s=!0}){return it("div",{className:i("flex items-center justify-between gap-2 text-sm leading-6 text-neutral-600",a),children:[it("div",{className:"flex items-center gap-2",children:[it("div",{children:[ur("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",r>0&&it(nd,{children:[it("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,r)]})," ",s&&"of "]}),s&&ur("span",{className:"font-medium",children:At(r,{full:!0})})," ",typeof o=="function"?o(r!==1):o]}),c]}),it("div",{className:"flex items-center gap-2",children:[ur("button",{type:"button",className:Mn,onClick:()=>t({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),ur("button",{type:"button",className:Mn,onClick:()=>t({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=r,children:"Next"})]})]})}import*as Oe from"@radix-ui/react-radio-group";import{Circle as id}from"lucide-react";import*as ao from"react";import{jsx as mr}from"react/jsx-runtime";var sd=ao.forwardRef(({className:e,...t},r)=>mr(Oe.Root,{className:i("grid gap-2",e),...t,ref:r}));sd.displayName=Oe.Root.displayName;var ld=ao.forwardRef(({className:e,...t},r)=>mr(Oe.Item,{ref:r,className:i("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:mr(Oe.Indicator,{className:"flex items-center justify-center",children:mr(id,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ld.displayName=Oe.Item.displayName;import{Drawer as _e}from"vaul";import{jsx as Ye,jsxs as pd}from"react/jsx-runtime";function cd({children:e,contentProps:t,nested:r=!1,...o}){let a=r?_e.NestedRoot:_e.Root;return Ye(a,{direction:"right",handleOnly:!0,...o,children:pd(_e.Portal,{children:[Ye(_e.Overlay,{className:"fixed inset-0 bg-black/20","data-sheet-overlay":!0}),Ye(_e.Content,{...t,onPointerDownOutside:c=>{var s;c.target instanceof Element&&c.target.closest("[data-sonner-toast]")&&c.preventDefault(),(s=t==null?void 0:t.onPointerDownOutside)==null||s.call(t,c)},className:i("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",t==null?void 0:t.className),style:{"--initial-transform":"calc(100% + 8px)","user-select":"auto",...t==null?void 0:t.style},children:Ye("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:e})})]})})}function dd({className:e,...t}){return Ye(_e.Title,{className:i("text-xl font-medium text-zinc-900",e),...t})}function ud(e){return Ye(_e.Description,{...e})}function md(e){return Ye(_e.Close,{...e})}var y4=Object.assign(cd,{Title:dd,Description:ud,Close:md});import{useEffect as fd,useRef as gd,useState as hd}from"react";import{jsx as Rn}from"react/jsx-runtime";var vd=`
|
|
2
|
+
import{$ as Ym,$a as zp,$b as S0,$c as ff,A as Ht,Aa as bp,Ab as a0,Ac as U0,Ad as Hf,B as Mm,Ba as xp,Bb as da,Bc as G0,Bd as Vf,C as Rm,Ca as yp,Cb as ua,Cc as $0,Cd as Bf,D as Tm,Da as wp,Db as ma,Dc as K0,Dd as Wf,E as Lm,Ea as Cp,Eb as n0,Ec as j0,Ed as Ff,F as Ko,Fa as Np,Fb as i0,Fc as Y0,Fd as Uf,G as jo,Ga as ea,Gb as s0,Gc as Ft,Gd as Gf,H as Yo,Ha as ta,Hb as l0,Hc as q0,Hd as $f,I as qo,Ia as ra,Ib as c0,Ic as Z0,Id as Kf,J as Zo,Ja as oa,Jb as d0,Jc as X0,Jd as jf,K as Em,Ka as aa,Kb as pa,Kc as J0,Kd as Gt,L as Am,La as kp,Lb as u0,Lc as Q0,Ld as Yf,M as Dm,Ma as Pp,Mb as m0,Mc as ef,Md as qf,N as Im,Na as Sp,Nb as p0,Nc as tf,Nd as Zf,O as zm,Oa as na,Ob as f0,Oc as Pa,Od as Xf,P as Om,Pa as ia,Pb as g0,Pc as rf,Pd as Ra,Q as _m,Qa as sa,Qb as h0,Qc as of,Qd as Jf,R as Hm,Ra as Mp,Rb as v0,Rc as af,Rd as Qf,S as Vm,Sa as Rp,Sb as b0,Sc as nf,Sd as eg,T as Bm,Ta as Tp,Tb as x0,Tc as sf,Td as tg,U as Wm,Ua as Lp,Ub as y0,Uc as lf,Ud as rg,V as Fm,Va as Ep,Vb as w0,Vc as cf,Vd as og,W as Um,Wa as Ar,Wb as C0,Wc as df,Wd as ag,X as Gm,Xa as Ap,Xb as N0,Xc as Ut,Y as $m,Ya as Dp,Yb as k0,Yc as uf,Z as Km,Za as Ip,Zb as fa,Zc as mf,_ as jm,_a as la,_b as P0,_c as pf,a as _o,aa as qm,ab as Op,ac as ga,ad as Dr,b as gm,ba as Zm,bb as _p,bc as M0,bd as gf,c as hm,ca as Xm,cb as Vt,cc as ha,cd as hf,d as Ho,da as Jm,db as Hp,dc as R0,dd as Sa,e as Vo,ea as Qm,eb as Vp,ec as T0,ed as vf,f as vm,fa as ep,fb as Bp,fc as L0,fd as bf,g as Bo,ga as tp,gb as Wp,gc as E0,gd as xf,h as Wo,ha as rp,hb as Fp,hc as A0,hd as yf,i as Fo,ia as Xo,ib as Up,ic as va,id as wf,j as Uo,ja as op,jb as Gp,jc as ba,jd as Cf,k as xt,ka as ap,kb as Bt,kc as xa,kd as Nf,l as bm,la as np,lb as $p,lc as D0,ld as kf,m as Ne,ma as ip,mb as Kp,mc as ya,md as Pf,n as xm,na as sp,nb as jp,nc as I0,nd as Sf,o as zt,oa as lp,ob as Yp,oc as wa,od as Mf,p as ym,pa as cp,pb as qp,pc as z0,pd as Rf,q as wm,qa as dp,qb as Wt,qc as Ca,qd as Tf,r as Ot,ra as Jo,rb as Zp,rc as Na,rd as Lf,s as Cm,sa as up,sb as Xp,sc as O0,sd as Ef,t as Go,ta as mp,tb as Jp,tc as _0,td as Af,u as $o,ua as pp,ub as Qp,uc as H0,ud as Df,v as Nm,va as fp,vb as e0,vc as V0,vd as If,w as km,wa as Qo,wb as ca,wc as ka,wd as zf,x as Pm,xa as gp,xb as t0,xc as B0,xd as Of,y as _t,ya as hp,yb as r0,yc as W0,yd as Ma,z as Sm,za as vp,zb as o0,zc as F0,zd as _f}from"./chunk-CVPBL3LI.mjs";import{a as q}from"./chunk-NWME2ANF.mjs";import{a as ht,b as To,c as Lr,d as Lo,e as Eo,f as Ao,g as vt,h as bt,i as Er,j as Do,k as z,l as Ce,m as Io,n as ge,o as i,p as Dt,q as It,r as zo,s as Oo}from"./chunk-53UBH4V2.mjs";import*as ie from"@radix-ui/react-accordion";import{ChevronDown as yi}from"lucide-react";import*as Kt from"react";import{jsx as $t,jsxs as ki}from"react/jsx-runtime";var dg=ie.Root,wi=Kt.forwardRef(({className:e,...t},r)=>$t(ie.Item,{ref:r,className:i("border-b border-b-slate-200 py-3 last:border-none",e),...t}));wi.displayName="AccordionItem";var Ci=Kt.forwardRef(({className:e,children:t,variant:r="chevron",...o},a)=>{let c=r==="chevron"?yi:Ut;return $t(ie.Header,{className:"flex",children:ki(ie.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":r==="chevron","[&[data-state=open]>svg]:rotate-45":r==="plus"},e),...o,children:[t,$t(c,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});Ci.displayName=ie.Trigger.displayName;var Ni=Kt.forwardRef(({className:e,children:t,...r},o)=>$t(ie.Content,{ref:o,className:i("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-neutral-500 transition-all sm:text-base",e),...r,children:t}));Ni.displayName=ie.Content.displayName;import{cva as Pi}from"class-variance-authority";import*as jt from"react";import{jsx as Ir}from"react/jsx-runtime";var Si=Pi("relative w-full rounded-lg border px-4 py-6 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive border-red-500 dark:border-red-500"}},defaultVariants:{variant:"default"}}),Mi=jt.forwardRef(({className:e,variant:t,...r},o)=>Ir("div",{ref:o,role:"alert",className:i(Si({variant:t}),e),...r}));Mi.displayName="Alert";var Ri=jt.forwardRef(({className:e,...t},r)=>Ir("h5",{ref:r,className:i("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));Ri.displayName="AlertTitle";var Ti=jt.forwardRef(({className:e,...t},r)=>Ir("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));Ti.displayName="AlertDescription";import{sha256 as Li}from"js-sha256";import{useState as Ei}from"react";import{jsx as zr}from"react/jsx-runtime";function Ai(e){if(e!=null&&e.image)return e.image;if(!(e!=null&&e.id))return"https://api.dub.co/og/avatar";let t=`https://api.dub.co/og/avatar?seed=${encodeURIComponent(e.id)}`,r=`https://api.dub.co/og/avatar${encodeURIComponent(`?seed=${encodeURIComponent(e.id)}`)}`;return e.email?`https://www.gravatar.com/avatar/${Li(e.email)}?d=${encodeURIComponent(r)}`:t}function bg({user:e={},className:t}){if(!e)return zr("div",{className:i("h-10 w-10 animate-pulse rounded-full border border-neutral-300 bg-neutral-100",t)});let[r,o]=Ei(Ai(e));return zr("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:r,className:i("h-10 w-10 rounded-full border border-neutral-300",t),draggable:!1,onError:()=>{o(`https://api.dub.co/og/avatar?seed=${e.id}`)}})}function xg({id:e,className:t}){return zr("img",{src:`https://api.dicebear.com/9.x/shapes/svg?seed=${e}`,alt:"avatar",className:i("h-10 w-10 rounded-full",t),draggable:!1})}import{cva as Di}from"class-variance-authority";import{jsx as zi}from"react/jsx-runtime";var Ii=Di("max-w-fit rounded-full border px-2 py-px text-xs font-medium whitespace-nowrap",{variants:{variant:{default:"border-neutral-400 text-neutral-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",green:"border-green-100 bg-green-100 text-green-900",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-neutral-200 bg-neutral-100 text-neutral-800",neutral:"border-neutral-400 text-neutral-500",amber:"border-amber-800 bg-amber-800 text-white",blueGradient:"bg-gradient-to-r from-blue-100 via-blue-100/50 to-blue-100 border border-blue-200 text-blue-900",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function Yt({className:e,variant:t,...r}){return zi("span",{className:i(Ii({variant:t}),e),...r})}import{cva as Bi}from"class-variance-authority";import{forwardRef as Wi}from"react";import*as he from"@radix-ui/react-tooltip";import Oi from"linkify-react";import{HelpCircle as _i}from"lucide-react";import Hi from"next/link";import{useState as Vi}from"react";import{jsx as $,jsxs as Je}from"react/jsx-runtime";function Dg({children:e}){return $(he.Provider,{delayDuration:150,children:e})}function J({children:e,content:t,contentClassName:r,side:o="top",disableHoverableContent:a,delayDuration:c=0,...s}){let[l,u]=Vi(!1);return Je(he.Root,{open:l,onOpenChange:u,delayDuration:c,disableHoverableContent:a,children:[$(he.Trigger,{asChild:!0,onClick:()=>{u(!0)},onBlur:()=>{u(!1)},children:e}),$(he.Portal,{children:$(he.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade pointer-events-auto z-[99] items-center overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-sm",collisionPadding:0,...s,children:typeof t=="string"?$("span",{className:i("block max-w-xs text-pretty px-4 py-2 text-center text-sm text-neutral-700",r),children:t}):typeof t=="function"?t({setOpen:u}):t})})]})}function Ig({title:e,cta:t,href:r,target:o,onClick:a}){return Je("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[$("p",{className:"text-sm text-neutral-700",children:e}),t&&(r?$(Hi,{href:r,...o?{target:o}:{},className:i(se({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:t}):a?$(le,{onClick:a,text:t,variant:"primary",className:"h-9"}):null)]})}function zg({title:e,cta:t,href:r}){return Je("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[e," ",$("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),className:"inline-flex text-neutral-500 underline underline-offset-4 hover:text-neutral-800",children:t})]})}function Og({children:e,className:t,tooltipClassName:r}){return $("div",{className:i("block max-w-xs whitespace-pre-wrap text-balance px-4 py-2 text-center text-sm text-neutral-700",r),children:$(Oi,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:i("underline underline-offset-4 text-neutral-400 hover:text-neutral-700",t)},children:e})})}function _g(e){return $(J,{...e,children:$(_i,{className:"h-4 w-4 text-neutral-500"})})}function Hg({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:$(J,{content:Je("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[Je("p",{className:"text-sm font-semibold text-neutral-700",children:[r,Dt(e||0,{full:!0})," ",t]}),a&&Je("p",{className:"mt-1 text-xs text-neutral-500",suppressHydrationWarning:!0,children:["Last clicked ",Eo(a,{withAgo:!0})]})]}),children:o})}function Vg({children:e,content:t,...r}){return $(J,{content:t,...r,children:$("div",{className:"flex cursor-pointer items-center",children:$(Yt,{variant:"gray",className:"border-neutral-300 transition-all hover:bg-neutral-200",children:e})})})}function Bg({children:e,tooltipProps:t,...r}){return $(J,{...t,children:$("button",{type:"button",...r,className:i("flex h-6 w-6 items-center justify-center rounded-md text-neutral-500 transition-colors duration-75 hover:bg-neutral-100 active:bg-neutral-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",r.className),children:e})})}function qt({children:e,tooltipProps:t}){return t?$(J,{...t,children:$("div",{children:e})}):e}import{jsx as Qe,jsxs as Ta}from"react/jsx-runtime";var se=Bi("transition-all",{variants:{variant:{primary:"border-black bg-black dark:bg-white dark:border-white text-content-inverted hover:bg-inverted hover:ring-4 hover:ring-border-subtle",secondary:i("border-border-subtle bg-white dark:bg-black text-content-emphasis hover:bg-bg-muted focus-visible:border-border-emphasis outline-none","data-[state=open]:border-border-emphasis data-[state=open]:ring-4 data-[state=open]:ring-border-subtle"),outline:"border-transparent text-content-default hover:bg-bg-subtle",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),le=Wi(({text:e,variant:t="primary",className:r,textWrapperClassName:o,shortcutClassName:a,loading:c,icon:s,shortcut:l,disabledTooltip:u,right:d,...n},m)=>u?Qe(J,{content:u,children:Ta("div",{className:i("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-neutral-200 bg-neutral-100 px-4 text-sm text-neutral-400 transition-all focus:outline-none",{"border-transparent bg-transparent":t==null?void 0:t.endsWith("outline")},r),children:[s,e&&Qe("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Qe("kbd",{className:i("hidden rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-400 md:inline-block",{"bg-neutral-100":t==null?void 0:t.endsWith("outline")},a),children:l})]})}):Ta("button",{ref:m,type:n.onClick?"button":"submit",className:i("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",n.disabled||c?"cursor-not-allowed border-neutral-200 bg-neutral-100 text-neutral-400 outline-none":se({variant:t}),r),disabled:n.disabled||c,...n,children:[c?Qe(Ne,{}):s||null,e&&Qe("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Qe("kbd",{className:i("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-neutral-700 text-neutral-400 group-hover:bg-neutral-600 group-hover:text-neutral-300":t==="primary","bg-neutral-200 text-neutral-400 group-hover:bg-neutral-100 group-hover:text-neutral-500":t==="secondary","bg-neutral-100 text-neutral-500 group-hover:bg-neutral-200":t==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":t==="danger-outline"},a),children:l}),d]}));le.displayName="Button";import{cva as Fi}from"class-variance-authority";import{createContext as Ui}from"react";import{jsx as La}from"react/jsx-runtime";var Gi=Fi("group/card-list w-full flex flex-col transition-[gap,opacity] min-w-0",{variants:{variant:{compact:"gap-0",loose:"gap-4"},loading:{true:"opacity-50"}}}),yt=Ui({variant:"loose"});function Ea({variant:e="loose",loading:t=!1,className:r,children:o}){return La("ul",{className:i(Gi({variant:e,loading:t}),r),"data-variant":e,children:La(yt.Provider,{value:{variant:e},children:o})})}import{cva as $i}from"class-variance-authority";import{createContext as Ki,useContext as ji,useEffect as Yi,useRef as qi,useState as Zi}from"react";import{jsx as Aa,jsxs as Qi}from"react/jsx-runtime";var Xi=$i("w-full group/card border-neutral-200 bg-white",{variants:{variant:{compact:"first-of-type:rounded-t-xl last-of-type:rounded-b-xl first-of-type:border-t border-b border-x data-[hover-state-enabled=true]:hover:bg-neutral-50 transition-colors",loose:"border rounded-xl transition-[filter] data-[hover-state-enabled=true]:hover:drop-shadow-card-hover"}}}),Ji="w-full py-2.5 px-4",Or=Ki({hovered:!1});function Da({outerClassName:e,innerClassName:t,children:r,onClick:o,onAuxClick:a,hoverStateEnabled:c=!0,banner:s}){let{variant:l}=ji(yt),u=qi(null),[d,n]=Zi(!1);Yi(()=>{if(!d||!u.current)return;let f=setInterval(()=>{var b;((b=u.current)==null?void 0:b.matches(":hover"))===!1&&n(!1)},1e3);return()=>clearInterval(f)},[d]);let m=f=>!(document.getElementById("modal-backdrop")||bt(f));return Qi("li",{ref:u,className:i(Xi({variant:l}),e),onPointerEnter:()=>n(!0),onPointerLeave:()=>n(!1),"data-hover-state-enabled":c,children:[s,Aa("div",{className:i(Ji,t),onClick:o?f=>{m(f)&&o(f)}:void 0,onAuxClick:a?f=>{m(f)&&a(f)}:void 0,children:Aa(Or.Provider,{value:{hovered:d},children:r})})]})}var d1=Object.assign(Ea,{Card:Object.assign(Da,{Context:Or}),Context:yt});import es from"embla-carousel-autoplay";import ts from"embla-carousel-react";import{ArrowLeft as rs,ArrowRight as os}from"lucide-react";import{createContext as as,forwardRef as Ct,useCallback as wt,useContext as ns,useEffect as _r,useState as Hr}from"react";import{jsx as ke,jsxs as Oa}from"react/jsx-runtime";var Vr=2e3,Ia=as(null);function ve(){let e=ns(Ia);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function za(){let{api:e}=ve(),[t,r]=Hr(0),o=wt(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return _r(()=>{!e||(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),t}var is=Ct(({orientation:e="horizontal",opts:t,setApi:r,autoplay:o,plugins:a,className:c,children:s,...l},u)=>{let[d,n]=ts({...t,axis:e==="horizontal"?"x":"y"},[...o?[es(typeof o=="object"?o:{delay:Vr})]:[],...a||[]]),[m,f]=Hr(!1),[b,v]=Hr(!1),h=wt(M=>{!M||(f(M.canScrollPrev()),v(M.canScrollNext()))},[]),g=wt(()=>{n==null||n.scrollPrev()},[n]),C=wt(()=>{n==null||n.scrollNext()},[n]),N=wt(M=>{M.key==="ArrowLeft"?(M.preventDefault(),g()):M.key==="ArrowRight"&&(M.preventDefault(),C())},[g,C]);return _r(()=>{!n||!r||r(n)},[n,r]),_r(()=>{if(!!n)return h(n),n.on("reInit",h),n.on("select",h),()=>{n==null||n.off("select",h)}},[n,h]),ke(Ia.Provider,{value:{carouselRef:d,api:n,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:C,canScrollPrev:m,canScrollNext:b},children:ke("div",{ref:u,onKeyDownCapture:N,className:i("relative",c),role:"region","aria-roledescription":"carousel",...l,children:s})})});is.displayName="Carousel";var ss=Ct(({className:e,...t},r)=>{let{carouselRef:o,orientation:a}=ve();return ke("div",{ref:o,className:"overflow-hidden",children:ke("div",{ref:r,className:i("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ss.displayName="CarouselContent";var ls=Ct(({className:e,...t},r)=>{let{orientation:o}=ve();return ke("div",{ref:r,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});ls.displayName="CarouselItem";var cs=Ct(({className:e,...t},r)=>{let{orientation:o,scrollPrev:a,canScrollPrev:c}=ve();return Oa("button",{ref:r,className:i("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",se({variant:"secondary",className:"p-2"}),e),disabled:!c,onClick:a,...t,children:[ke(rs,{className:"h-4 w-4"}),ke("span",{className:"sr-only",children:"Previous slide"})]})});cs.displayName="CarouselPrevious";var ds=Ct(({className:e,...t},r)=>{let{orientation:o,scrollNext:a,canScrollNext:c}=ve();return Oa("button",{ref:r,className:i("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",se({variant:"secondary",className:"p-2"}),e),disabled:!c,onClick:a,...t,children:[ke(os,{className:"h-4 w-4"}),ke("span",{className:"sr-only",children:"Next slide"})]})});ds.displayName="CarouselNext";import{cva as us}from"class-variance-authority";import{motion as ms}from"framer-motion";import{ChevronLeft as ps,ChevronRight as fs}from"lucide-react";import*as Ee from"react";import{jsx as Ue,jsxs as Nt}from"react/jsx-runtime";var gs=us("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-neutral-800/10 bg-white sm:bottom-6 "}}}),R1=({variant:e="simple",className:t})=>{var v;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:c,api:s}=ve(),l=(v=s==null?void 0:s.plugins())==null?void 0:v.autoplay,[u,d]=Ee.useState(0),[n,m]=Ee.useState(!1),f=Ee.useCallback(h=>{d((h==null?void 0:h.selectedScrollSnap())??0)},[]),b=Ee.useCallback(h=>()=>{l&&l.isPlaying()&&l.stop(),h()},[l]);return Ee.useEffect(()=>{!s||(f(s),m((l==null?void 0:l.isPlaying())??!1),s.on("reInit",f),s.on("select",f),s.on("autoplay:play",()=>m(!0)),s.on("autoplay:stop",()=>m(!1)))},[s,l,f]),Nt("div",{className:i(gs({variant:e}),t),children:[e!=="simple"&&Nt("button",{className:"cursor-pointer rounded-full p-2 hover:bg-neutral-50 active:bg-neutral-100",disabled:!c,onClick:b(o),children:[Ue(ps,{className:"h-4 w-4"}),Ue("span",{className:"sr-only",children:"Previous slide"})]}),s!=null&&Ue("div",{className:"flex items-center gap-1",children:s.slideNodes().map((h,g)=>Nt("button",{onClick:b(()=>s.scrollTo(g)),className:"rounded-full p-0.5 hover:bg-neutral-100 active:bg-neutral-200 sm:p-1.5",children:[Ue("div",{className:i("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",g===u?"bg-black":"bg-black/20",n&&g===u&&"w-6 bg-black/20"),children:n&&g===u&&Ue(ms.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((l==null?void 0:l.options.delay)??Vr)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),Nt("span",{className:"sr-only",children:["Slide ",g+1]})]},g))}),e!=="simple"&&Nt("button",{className:"cursor-pointer rounded-full p-2 hover:bg-neutral-50 active:bg-neutral-100",disabled:!a,onClick:b(r),children:[Ue(fs,{className:"h-4 w-4"}),Ue("span",{className:"sr-only",children:"Next slide"})]})]})};import hs from"embla-carousel-react";import{forwardRef as vs,useCallback as bs,useEffect as xs}from"react";import{jsx as Zt}from"react/jsx-runtime";var _1=({className:e,...t})=>{let{api:r}=ve(),[o,a]=hs({dragFree:!0}),c=bs(s=>{!s||!a||a==null||a.scrollTo(s.selectedScrollSnap())},[a]);return xs(()=>{if(!(!r||!a))return c(r),r.on("reInit",c),r.on("select",c),()=>{r==null||r.off("reInit",c),r==null||r.off("select",c)}},[r,a,c]),Zt("div",{className:"overflow-hidden",ref:o,children:Zt("div",{className:i("mx-4 flex gap-4",e),...t})})},H1=vs(({index:e,className:t,...r},o)=>{let{api:a}=ve(),c=za();return Zt("div",{ref:o,children:Zt("button",{type:"button",onClick:()=>{var l;if(!a)return;let s=(l=a.plugins())==null?void 0:l.autoplay;s&&s.isPlaying()&&s.stop(),a.scrollTo(e)},className:typeof t=="function"?t({active:e===c}):t,...r})})});import*as kt from"@radix-ui/react-checkbox";import{Check as ys}from"lucide-react";import*as _a from"react";import{jsx as Br}from"react/jsx-runtime";var ws=_a.forwardRef(({className:e,...t},r)=>Br(kt.Root,{ref:r,className:i("peer h-5 w-5 shrink-0 rounded-md border border-neutral-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",e),...t,children:Br(kt.Indicator,{className:"flex items-center justify-center",children:Br(ys,{className:"h-3 w-3 text-white"})})}));ws.displayName=kt.Root.displayName;import{Command as St,CommandInput as ml,CommandItem as pl,useCommandState as fl}from"cmdk";import{ChevronDown as gl}from"lucide-react";import{forwardRef as hl,isValidElement as vl,useCallback as bl,useEffect as er,useRef as xl,useState as Pt}from"react";import{motion as cl}from"framer-motion";import{forwardRef as dl,useRef as ul}from"react";import Wr from"js-cookie";import{useEffect as Cs,useState as Ns}from"react";function $1(e,t,r){let[o,a]=Ns(()=>{let s=Wr.get(e);return s?JSON.parse(s):t});return Cs(()=>{let s=()=>{let l=Wr.get(e);l&&a(JSON.parse(l))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[o,s=>{a(s),Wr.set(e,JSON.stringify(s),r)}]}import{useCallback as ks,useEffect as Ps,useRef as Ss,useState as Ms}from"react";var et=(e=3e3)=>{let t=Ss(null),[r,o]=Ms(!1),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},c=ks(async(s,{onSuccess:l,throwOnError:u}={})=>{a();try{typeof s=="string"?await navigator.clipboard.writeText(s):s instanceof ClipboardItem&&await navigator.clipboard.write([s]),o(!0),l==null||l(),Number.isFinite(e)&&e>=0&&(t.current=setTimeout(()=>o(!1),e))}catch(d){if(console.error("Failed to copy: ",d),u)throw d}},[e]);return Ps(()=>()=>a(),[]),[r,c]};import{useEffect as Rs,useState as Ts}from"react";function Z1(){let[e,t]=Ts(null);return Rs(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let o=r.offsetTop-1,a=new IntersectionObserver(l=>{var m,f,b;let u=l[0];if(!u)return;let d=(((m=u.rootBounds)==null?void 0:m.height)||0)*.3+o;for(let v=1;v<l.length;v++){let h=l[v];if(!h)break;(h.boundingClientRect.top<u.boundingClientRect.top||u.boundingClientRect.bottom<o)&&(u=h)}let n=u.target;for(;n&&n.getBoundingClientRect().bottom<o;)n=(f=c.get(n))==null?void 0:f.next;for(;n&&n.getBoundingClientRect().top>d;)n=(b=c.get(n))==null?void 0:b.prev;n&&t(n.getAttribute("href"))},{threshold:1,rootMargin:`-${o}px 0px 0px 0px`}),c=new Map;return(r==null?void 0:r.querySelectorAll("[data-mdx-heading]")).forEach(l=>a.observe(l)),()=>{a.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useCallback as Ls}from"react";function eh(e){return{handleKeyDown:Ls(r=>{if(r.key==="Enter"&&r.metaKey){if(r.preventDefault(),e!=null&&e.current){e.current.requestSubmit();return}let o=r.target.form;o==null||o.requestSubmit()}},[])}}import{useEffect as Es,useState as As}from"react";function ah(e,t={}){let{root:r,defaultValue:o}=t,[a,c]=As(o??!1);return Es(()=>{let s=()=>{let u=e.current;if(!u)return;let d=r==null?void 0:r.current,n=u.getBoundingClientRect(),m=d?d.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};c(n.top<m.bottom&&n.bottom>m.top&&n.left<m.right&&n.right>m.left)};((r==null?void 0:r.current)||window).addEventListener("scroll",s),window.addEventListener("resize",s);let l=null;return e.current&&(l=new IntersectionObserver(s),l.observe(e.current)),s(),()=>{((r==null?void 0:r.current)||window).removeEventListener("scroll",s),window.removeEventListener("resize",s),l==null||l.disconnect()}},[e,r]),a}import{useEffect as Ds,useState as Is}from"react";function sh(){let[e,t]=Is(!1);return Ds(()=>{let r=()=>{let o=document.activeElement;t((o==null?void 0:o.tagName)!=null&&["INPUT","TEXTAREA"].includes(o.tagName))};return window.addEventListener("focusin",r),window.addEventListener("focusout",r),()=>{window.removeEventListener("focusin",r),window.removeEventListener("focusout",r)}},[]),e}import{useEffect as zs,useState as Os}from"react";function uh(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:a=!1}={}){let[c,s]=Os(),l=(c==null?void 0:c.isIntersecting)&&a,u=([d])=>{s(d)};return zs(()=>{let d=e==null?void 0:e.current;if(!!!window.IntersectionObserver||l||!d)return;let m={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(u,m);return f.observe(d),()=>f.disconnect()},[e,JSON.stringify(t),r,o,l]),c}import{createContext as _s,useCallback as Hs,useContext as Vs,useEffect as Ha,useId as Bs,useState as Ws}from"react";import{jsx as Fs}from"react/jsx-runtime";var Va=_s({listeners:[],setListeners:()=>{}});function vh({children:e}){let[t,r]=Ws([]);return Fs(Va.Provider,{value:{listeners:t,setListeners:r},children:e})}function tt(e,t,r={}){let o=Bs(),{listeners:a,setListeners:c}=Vs(Va),s=Hs(l=>{if(r.enabled===!1)return;let u=l.target,d=document.getElementById("modal-backdrop"),n=document.querySelector("[data-sheet-overlay]");if(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||!!d!=!!r.modal||!!n!=!!r.sheet)return;let m=[...l.metaKey?["meta"]:[],...l.ctrlKey?["ctrl"]:[],...l.altKey?["alt"]:[],l.key].join("+");if(Array.isArray(e)?!e.includes(m):m!==e)return;let f=a.filter(v=>v.enabled!==!1&&!!d==!!v.modal&&!!n==!!v.sheet&&(Array.isArray(v.key)?v.key.includes(m):v.key===m));!f.length||Lo(f,(v,h)=>(h.priority??0)-(v.priority??0))[0].id!==o||(l.preventDefault(),t(l))},[e,a,o,t,r.enabled,r.modal,r.sheet]);Ha(()=>(document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)),[s]),Ha(()=>(c(l=>[...l.filter(u=>u.id!==o),{id:o,key:e,...r}]),()=>c(l=>l.filter(u=>u.id!==o))),[JSON.stringify(e),r.enabled,r.priority])}import{useEffect as Us,useState as Gs}from"react";function Ba(e){if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}function yh(e,t){let[r,o]=Gs(Ba(e)??t);return Us(()=>{let c=Ba(e);c&&o(c)},[e]),[r,c=>{o(c),window.localStorage.setItem(e,JSON.stringify(c))}]}import{toast as $s}from"sonner";import Ks from"swr";function Ph(e,t){let{data:r,isLoading:o,mutate:a}=Ks(e,ge);return{data:r,isLoading:o,update:async(c,s)=>$s.promise(a(c(r),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(t==null?void 0:t.loading)||"Updating...",success:(t==null?void 0:t.success)||"Successfully updated",error:(t==null?void 0:t.error)||"Failed to update"})}}import{useEffect as Ga,useMemo as Js}from"react";import{useEffect as Wa,useState as js}from"react";function Fa({pageSize:e,page:t,onPageChange:r}){let[o,a]=js({pageIndex:t,pageSize:e});return Wa(()=>{a(c=>({...c,pageIndex:t}))},[t]),Wa(()=>{r==null||r(o.pageIndex)},[o]),{pagination:o,setPagination:a}}import{usePathname as Ys,useRouter as qs,useSearchParams as Zs}from"next/navigation";import{useCallback as Xs}from"react";function Ua(){let e=Ys(),t=qs(),r=Zs(),o=Object.fromEntries(r),a=(s,l)=>{let u=new URLSearchParams(r);if((l==null?void 0:l.include)&&Array.isArray(l.include)){let n=new URLSearchParams;r.forEach((m,f)=>{var b;(b=l.include)!=null&&b.includes(f)&&n.set(f,m)}),u=n}(l==null?void 0:l.exclude)&&Array.isArray(l.exclude)&&l.exclude.forEach(n=>u.delete(n)),s&&Object.entries(s).forEach(([n,m])=>u.set(n,m));let d=u.toString();return d.length>0?`?${d}`:""},c=Xs(({set:s,del:l,replace:u,scroll:d=!0,getNewPath:n,arrayDelimiter:m=","})=>{let f=new URLSearchParams(r);s&&Object.entries(s).forEach(([h,g])=>f.set(h,Array.isArray(g)?g.join(m):g)),l&&(Array.isArray(l)?l.forEach(h=>f.delete(h)):f.delete(l));let b=f.toString(),v=`${e}${b.length>0?`?${b}`:""}`;if(n)return v;u?t.replace(v,{scroll:!1}):t.push(v,{scroll:d})},[r,e,t]);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:c,getQueryString:a}}function _h(e=zo){let{searchParams:t,queryParams:r}=Ua(),o=Js(()=>parseInt(t.get("page")||"1")||1,[t.get("page")]),{pagination:a,setPagination:c}=Fa({pageSize:e,page:o,onPageChange:s=>{r(s===1?{del:"page"}:{set:{page:s.toString()}})}});return Ga(()=>{let s=parseInt(t.get("page")||"1")||1;c(l=>({...l,pageIndex:s}))},[t.get("page")]),Ga(()=>{r(a.pageIndex===1?{del:"page"}:{set:{page:a.pageIndex.toString()}})},[a]),{pagination:a,setPagination:c}}import{useEffect as Qs}from"react";function Bh(){Qs(()=>{let e=new URL(window.location.href);e.searchParams.has("_gl")&&setTimeout(()=>{e.searchParams.delete("_gl"),window.history.replaceState({},"",e.toString())},2e3)},[])}import{useEffect as el,useState as tl}from"react";function Xt(e){let[t,r]=tl(),o=([a])=>{r(a)};return el(()=>{let a=e==null?void 0:e.current;if(!a)return;let c=new ResizeObserver(o);return c.observe(a),()=>c.disconnect()},[e]),t}import{useCallback as rl,useEffect as $a,useState as ol}from"react";function Ka(e){let[t,r]=ol(!1),o=rl(()=>{r(window.scrollY>e)},[e]);return $a(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),$a(()=>{o()},[o]),t}import{useCallback as al,useEffect as nl,useState as il}from"react";function Ae(e){let[t,r]=il(1),o=al(()=>{if(!e.current)return;let{scrollTop:c,scrollHeight:s,clientHeight:l}=e.current;r(s===l?1:Math.min(c/(s-l),1))},[]),a=Xt(e);return nl(o,[a]),{scrollProgress:t,updateScrollProgress:o}}import{useEffect as sl}from"react";import{toast as Ya}from"sonner";import{jsx as Jt,jsxs as ja}from"react/jsx-runtime";function ll({id:e,message:t,undo:r}){let o=()=>{r(),Ya.dismiss(e)},a=c=>{c.key==="z"&&(c.ctrlKey||c.metaKey)&&o()};return sl(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[]),ja("div",{className:"flex w-full items-center justify-between space-x-2",children:[ja("div",{className:"flex items-center space-x-2",children:[Jt(Fo,{}),Jt("p",{className:"font-medium",children:t})]}),Jt("button",{className:"whitespace-nowrap rounded border border-black bg-black px-2 py-1 text-xs font-normal text-white transition-all duration-75 active:scale-95",onClick:o,children:"Undo"})]})}function ev(){return({id:t,message:r,undo:o,duration:a})=>Ya(Jt(ll,{id:t,message:r,undo:o}),{id:t,...a&&{duration:a}})}import{jsx as qa}from"react/jsx-runtime";var Pe=dl(({width:e=!1,height:t=!1,className:r,transition:o,children:a,...c},s)=>{var d,n;let l=ul(null),u=Xt(l);return qa(cl.div,{ref:s,className:i("overflow-hidden",r),animate:{width:e?((d=u==null?void 0:u.contentRect)==null?void 0:d.width)??"auto":"auto",height:t?((n=u==null?void 0:u.contentRect)==null?void 0:n.height)??"auto":"auto"},transition:o??{type:"spring",duration:.3},...c,children:qa("div",{ref:l,className:i(t&&"h-max",e&&"w-max"),children:a})})});Pe.displayName="AnimatedSizeContainer";import*as De from"@radix-ui/react-popover";import{Drawer as rt}from"vaul";import{jsx as Se,jsxs as Qt}from"react/jsx-runtime";function ot({children:e,content:t,align:r="center",side:o="bottom",openPopover:a,setOpenPopover:c,mobileOnly:s,popoverContentClassName:l,onOpenAutoFocus:u,collisionBoundary:d,sticky:n,onEscapeKeyDown:m,onWheel:f}){let{isMobile:b}=q();return s||b?Qt(rt.Root,{open:a,onOpenChange:c,children:[Se(rt.Trigger,{className:"sm:hidden",asChild:!0,children:e}),Qt(rt.Portal,{children:[Se(rt.Overlay,{className:"bg-bg-subtle fixed inset-0 z-50 bg-opacity-10 backdrop-blur"}),Qt(rt.Content,{className:"border-border-subtle bg-bg-default fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t",onEscapeKeyDown:m,onPointerDownOutside:v=>{v.target instanceof Element&&v.target.closest("[data-sonner-toast]")&&v.preventDefault()},children:[Se("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:Se("div",{className:"bg-border-default my-3 h-1 w-12 rounded-full"})}),Se("div",{className:"bg-bg-default flex min-h-[150px] w-full items-center justify-center overflow-hidden pb-8 align-middle shadow-xl",children:t})]}),Se(rt.Overlay,{})]})]}):Qt(De.Root,{open:a,onOpenChange:c,children:[Se(De.Trigger,{className:"sm:inline-flex",asChild:!0,children:e}),Se(De.Portal,{children:Se(De.Content,{sideOffset:8,align:r,side:o,className:i("animate-slide-up-fade border-border-subtle bg-bg-default z-50 items-center rounded-lg border drop-shadow-lg sm:block",l),sticky:n,collisionBoundary:d,onOpenAutoFocus:u,onEscapeKeyDown:m,onWheel:f,children:t})})]})}import{Fragment as tr,jsx as L,jsxs as Me}from"react/jsx-runtime";function yl(e,t){return e===!0}function Tv({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:c="Select...",searchPlaceholder:s="Search...",emptyState:l,createLabel:u,onCreate:d,buttonProps:n,shortcutHint:m,caret:f,side:b,open:v,onOpenChange:h,onSearchChange:g,shouldFilter:C=!0,inputRight:N,inputClassName:M,optionRight:k,optionClassName:w,matchTriggerWidth:U,hideSearch:R=!1,children:x}){let T=yl(e,r),B=Array.isArray(t)?t:t?[t]:[],{isMobile:P}=q(),[I,X]=Pt(!1),A=v??I,me=h??X,[G,Mr]=Pt(""),[So,Rr]=Pt(!1),[Tr,vi]=Pt(void 0),[bi,Mo]=Pt(!1),xi=_=>{var Xe;if(T){let We=B.some(({value:Fe})=>Fe===_.value);r(We?B.filter(({value:Fe})=>Fe!==_.value):[...B,_])}else r(B.length&&((Xe=B[0])==null?void 0:Xe.value)===_.value?null:_),me(!1)},Ro=bl((_,Xe)=>Xe===""?[..._.filter(We=>We.first&&!B.some(Fe=>Fe.value===We.value)),...B,..._.filter(We=>!We.first&&!B.some(Fe=>Fe.value===We.value))]:_,[B]);return er(()=>{So&&(vi(o&&Ro(o,G)),Rr(!1))},[So,o,Ro,G]),er(()=>{Rr(!0)},[o]),er(()=>{A||(Mr(""),Rr(!0))},[A]),er(()=>g==null?void 0:g(G),[G]),L(ot,{openPopover:A,setOpenPopover:me,align:"start",side:b,onWheel:_=>{_.stopPropagation()},popoverContentClassName:i(U&&"sm:w-[var(--radix-popover-trigger-width)]"),content:L(Pe,{width:!P&&!U,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:Me(St,{loop:!0,shouldFilter:C,children:[!R&&Me("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-neutral-200",children:[L(ml,{placeholder:s,value:G,onValueChange:Mr,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-neutral-400 focus:ring-0 sm:text-sm",M),onKeyDown:_=>{(_.key==="Escape"||_.key==="Backspace"&&!G)&&(_.preventDefault(),_.stopPropagation(),me(!1))}}),N&&L("div",{className:"mr-2",children:N}),m&&L("kbd",{className:"mr-2 hidden shrink-0 rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-500 md:block",children:m})]}),L(wl,{children:L(St.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:Tr!==void 0?Me(tr,{children:[Tr.map(_=>L(Cl,{option:_,multiple:T,selected:B.some(({value:Xe})=>Xe===_.value),onSelect:()=>xi(_),right:k==null?void 0:k(_),className:w},`${_.label}, ${_.value}`)),G.length>0&&d&&Me(pl,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-neutral-700","data-[selected=true]:bg-neutral-100",w),onSelect:async()=>{Mo(!0),await(d==null?void 0:d(G))&&(Mr(""),me(!1)),Mo(!1)},children:[bi?L(Ne,{className:"size-4 shrink-0"}):L(Ut,{className:"size-4 shrink-0"}),L("div",{className:"grow truncate",children:(u==null?void 0:u(G))||`Create "${G}"`})]}),C?L(kl,{className:"flex min-h-12 items-center justify-center text-sm text-neutral-500",children:l||"No matches"}):Tr.length===0?L("div",{className:"flex min-h-12 items-center justify-center text-sm text-neutral-500",children:l||"No matches"}):null]}):L(St.Loading,{children:L("div",{className:"flex h-12 items-center justify-center",children:L(Ne,{})})})})})]})}),children:L(le,{variant:"secondary",...n,className:i(n==null?void 0:n.className,"flex gap-2"),textWrapperClassName:i(n==null?void 0:n.textWrapperClassName,"w-full flex items-center justify-start"),text:Me(tr,{children:[L("div",{className:"min-w-0 grow truncate text-left",children:x||B.map(_=>_.label).join(", ")||c}),f&&(f===!0?L(gl,{className:"ml-1 size-4 shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"}):f)]}),icon:a?Za(a)?a:L(a,{className:"size-4 shrink-0"}):void 0})})}var wl=({children:e})=>{let t=xl(null),{scrollProgress:r,updateScrollProgress:o}=Ae(t);return Me(tr,{children:[L("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:t,onScroll:o,children:e}),L("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(r,2)}})]})};function Cl({option:e,onSelect:t,multiple:r,selected:o,right:a,className:c}){return Me(tr,{children:[L(Nl,{disabledTooltip:e.disabledTooltip,children:Me(St.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-neutral-100",Boolean(e.disabledTooltip)&&"cursor-not-allowed opacity-50",c),disabled:!!e.disabledTooltip,onSelect:t,value:e.label+(e==null?void 0:e.value),children:[r&&L("div",{className:"shrink-0 text-neutral-600",children:o?L(ra,{className:"size-4 text-neutral-600"}):L(oa,{className:"size-4 text-neutral-400"})}),Me("div",{className:"flex min-w-0 grow items-center gap-1",children:[e.icon&&L("span",{className:"shrink-0 text-neutral-600",children:Za(e.icon)?e.icon:L(e.icon,{className:"h-4 w-4"})}),L("span",{className:"grow truncate",children:e.label})]}),a,!r&&o&&L(ta,{className:"size-4 shrink-0 text-neutral-600"})]})}),e.separatorAfter&&L(St.Separator,{className:"-mx-1 my-1 h-px bg-neutral-200"})]})}var Nl=({children:e,disabledTooltip:t})=>t?L(J,{content:t,children:L("div",{children:e})}):e,Za=e=>vl(e),kl=hl((e,t)=>fl(o=>o.filtered.count===0)?L("div",{ref:t,"cmdk-empty":"",role:"presentation",...e}):null);import{addYears as rr,format as Pl,isSameMonth as Sl}from"date-fns";import{ChevronLeft as Xa,ChevronRight as Ja,ChevronsLeft as Ml,ChevronsRight as Rl}from"lucide-react";import{forwardRef as Tl,useRef as Ll}from"react";import{DayPicker as El,useDayPicker as Al,useDayRender as Dl,useNavigation as Il}from"react-day-picker";import{Fragment as zl,jsx as oe,jsxs as or}from"react/jsx-runtime";var Mt=Tl(({onClick:e,icon:t,disabled:r,...o},a)=>oe("button",{ref:a,type:"button",disabled:r,className:i("flex size-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-neutral-200 text-neutral-600 hover:text-neutral-800","hover:bg-neutral-50 active:bg-neutral-100","disabled:pointer-events-none disabled:text-neutral-400"),onClick:e,...o,children:oe(t,{className:"h-full w-full shrink-0"})}));Mt.displayName="NavigationButton";function Qa({mode:e="single",weekStartsOn:t=1,numberOfMonths:r=1,showYearNavigation:o=!1,disableNavigation:a,locale:c,className:s,classNames:l,...u}){return oe(El,{mode:e,weekStartsOn:t,numberOfMonths:r,locale:c,showOutsideDays:r===1,className:s,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-neutral-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-neutral-900",day:i("relative size-10 rounded-md text-sm text-neutral-900","hover:bg-neutral-100 active:bg-neutral-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-neutral-300 line-through disabled:hover:bg-transparent",day_outside:"text-neutral-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...l},components:{IconLeft:()=>oe(Xa,{className:"h-4 w-4"}),IconRight:()=>oe(Ja,{className:"h-4 w-4"}),Caption:({...d})=>{let{goToMonth:n,nextMonth:m,previousMonth:f,currentMonth:b,displayMonths:v}=Il(),{numberOfMonths:h,fromDate:g,toDate:C}=Al(),N=v.findIndex(T=>Sl(d.displayMonth,T)),M=N===0,k=N===v.length-1,w=h>1&&(M||!k),U=h>1&&(k||!M),R=()=>{let T=rr(b,-1);f&&(!g||T.getTime()>=g.getTime())&&n(T)},x=()=>{let T=rr(b,1);m&&(!C||T.getTime()<=C.getTime())&&n(T)};return or("div",{className:"flex items-center justify-between",children:[or("div",{className:"flex items-center gap-1",children:[o&&!U&&oe(Mt,{disabled:a||!f||g&&rr(b,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:Ml}),!U&&oe(Mt,{disabled:a||!f,"aria-label":"Go to previous month",onClick:()=>f&&n(f),icon:Xa})]}),oe("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-neutral-900",children:Pl(d.displayMonth,"LLLL yyy",{locale:c})}),or("div",{className:"flex items-center gap-1",children:[!w&&oe(Mt,{disabled:a||!m,"aria-label":"Go to next month",onClick:()=>m&&n(m),icon:Ja}),o&&!w&&oe(Mt,{disabled:a||!m||C&&rr(b,1).getTime()>C.getTime(),"aria-label":"Go to next year",onClick:x,icon:Rl})]})]})},Day:({date:d,displayMonth:n})=>{let m=Ll(null),{activeModifiers:f,buttonProps:b,divProps:v,isButton:h,isHidden:g}=Dl(d,n,m),{selected:C,today:N,disabled:M,range_middle:k}=f;if(g)return oe(zl,{});if(!h)return oe("div",{...v,className:i("flex items-center justify-center",v.className)});let{children:w,...U}=b;return or("button",{ref:m,...U,type:"button",children:[w,N&&oe("span",{className:i("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!C,"!bg-white":C,"!bg-blue-400":C&&k,"text-neutral-400":M})})]})}},...u})}import{enUS as Kl}from"date-fns/locale";import{useEffect as jr,useMemo as tn,useRef as jl,useState as nr}from"react";import{Command as Fr}from"cmdk";import{Lock as Ol}from"lucide-react";import{jsx as Ge,jsxs as _l}from"react/jsx-runtime";var Ur=({presets:e,onSelect:t,currentValue:r,currentPresetId:o})=>{let a=d=>"dateRange"in d,c=d=>"date"in d,s=(d,n)=>d.getDate()===n.getDate()&&d.getMonth()===n.getMonth()&&d.getFullYear()===n.getFullYear(),l=(d,n)=>{let m=d.from,f=n.from,b=!1;m&&f&&s(m,f)&&(b=!0);let v=d.to,h=n.to,g=!1;return v&&h&&s(v,h)&&(g=!0),b&&g},u=d=>{if(o)return o===d.id;if(a(d)){let n=r;return n&&l(n,d.dateRange)}else if(c(d)){let n=r;return n&&s(n,d.date)}return!1};return Ge(Fr,{className:"w-full rounded ring-neutral-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:Ge(Fr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,n)=>_l(Fr.Item,{disabled:d.requiresUpgrade,onSelect:()=>t(d),title:d.label,value:d.id,className:i("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-neutral-200","px-2.5 py-1.5 text-left text-sm text-neutral-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-neutral-100",u(d)&&"font-semibold text-neutral-800"),children:[Ge("span",{children:d.label}),d.requiresUpgrade?Ge(Ol,{className:"h-3.5 w-3.5","aria-hidden":"true"}):d.shortcut?Ge("kbd",{className:"text-neutral-4000 hidden rounded bg-neutral-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-neutral-200 md:block",children:d.shortcut.toUpperCase()}):null,d.requiresUpgrade&&d.tooltipContent&&Ge(J,{side:"bottom",content:d.tooltipContent,children:Ge("div",{className:"absolute inset-0 cursor-not-allowed"})})]},n))})})};Ur.displayName="DatePicker.Presets";import{format as Ie}from"date-fns";import{createContext as Hl}from"react";var Gr=Hl({isOpen:!1,setIsOpen:()=>{}}),Vl=()=>{let e=typeof window<"u"?window.navigator.language:"en-US",t=new Intl.DateTimeFormat(e,{hour:"numeric"}).format();return Number.isInteger(Number(t))},$r=(e,t,r=!1)=>{let o=!Vl(),a;return r?a=o?Ie(e,"d MMM, yyyy h:mm a",{locale:t}):Ie(e,"d MMM, yyyy HH:mm",{locale:t}):a=Ie(e,"d MMM, yyyy",{locale:t}),a},en=(e,t)=>{let{toYear:r,fromYear:o,fromMonth:a,toMonth:c,fromDay:s,toDay:l}=t;if(e&&e.length>0){let u=o,d=r;e.forEach(n=>{var m,f,b,v,h,g;if("date"in n){let C=n.date.getFullYear();if(o&&C<o)throw new Error(`Preset ${n.label} is before fromYear ${u}.`);if(r&&C>r)throw new Error(`Preset ${n.label} is after toYear ${d}.`);if(a&&n.date.getMonth()<a.getMonth())throw new Error(`Preset ${n.label} is before fromMonth ${a}.`);if(c&&n.date.getMonth()>c.getMonth())throw new Error(`Preset ${n.label} is after toMonth ${c}.`);if(s&&n.date.getDate()<s.getDate())throw new Error(`Preset ${n.label} is before fromDay ${s}.`);if(l&&n.date.getDate()>l.getDate())throw new Error(`Preset ${n.label} is after toDay ${Ie(l,"MMM dd, yyyy")}.`)}if("dateRange"in n){let C=(m=n.dateRange.from)==null?void 0:m.getFullYear(),N=(f=n.dateRange.to)==null?void 0:f.getFullYear();if(C&&o&&C<o)throw new Error(`Preset ${n.label}'s 'from' is before fromYear ${u}.`);if(N&&r&&N>r)throw new Error(`Preset ${n.label}'s 'to' is after toYear ${d}.`);if(a){let M=(b=n.dateRange.from)==null?void 0:b.getMonth();if(M&&M<a.getMonth())throw new Error(`Preset ${n.label}'s 'from' is before fromMonth ${Ie(a,"MMM, yyyy")}.`)}if(c){let M=(v=n.dateRange.to)==null?void 0:v.getMonth();if(M&&M>c.getMonth())throw new Error(`Preset ${n.label}'s 'to' is after toMonth ${Ie(c,"MMM, yyyy")}.`)}if(s){let M=(h=n.dateRange.from)==null?void 0:h.getDate();if(M&&M<s.getDate())throw new Error(`Preset ${n.dateRange.from}'s 'from' is before fromDay ${Ie(s,"MMM dd, yyyy")}.`)}if(l){let M=(g=n.dateRange.to)==null?void 0:g.getDate();if(M&&M>l.getDate())throw new Error(`Preset ${n.label}'s 'to' is after toDay ${Ie(l,"MMM dd, yyyy")}.`)}}})}};import{cva as Bl}from"class-variance-authority";import{Calendar as Wl,ChevronDown as Fl}from"lucide-react";import{forwardRef as Ul}from"react";import{jsx as ar,jsxs as $l}from"react/jsx-runtime";var Gl=Bl(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-neutral-200 text-neutral-900 placeholder-neutral-400 transition-all","disabled:pointer-events-none disabled:bg-neutral-100 disabled:text-neutral-400","focus-visible:border-neutral-500 data-[state=open]:border-neutral-500 data-[state=open]:ring-4 data-[state=open]:ring-neutral-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),Kr=Ul(({className:e,children:t,placeholder:r,hasError:o,...a},c)=>$l("button",{ref:c,className:i(Gl({hasError:o}),e),...a,children:[ar(Wl,{className:i("h-4 w-4 shrink-0 text-neutral-400",!!t&&"text-neutral-900")}),ar("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-neutral-900",children:t||(r?ar("span",{className:"text-neutral-400",children:r}):null)}),ar(Fl,{className:"h-4 w-4 flex-shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));Kr.displayName="DatePicker.Trigger";import{jsx as ae,jsxs as rn}from"react/jsx-runtime";var Yl=({value:e,defaultValue:t,presetId:r,onChange:o,presets:a,disabled:c,disableNavigation:s,disabledDays:l,showYearNavigation:u=!1,locale:d=Kl,placeholder:n="Select date range",hasError:m,align:f="center",className:b,...v})=>{let{isDesktop:h}=q(),[g,C]=nr(!1),[N,M]=nr(a&&r?a==null?void 0:a.find(({id:A})=>A===r):void 0),[k,w]=nr((N==null?void 0:N.dateRange)??e??t??void 0),[U,R]=nr(k==null?void 0:k.to),x=tn(()=>k,[g]);jr(()=>{w(e)},[e]),jr(()=>{let A=a==null?void 0:a.find(({id:me})=>me===r);M(A),w((A==null?void 0:A.dateRange)??e??t)},[a,r]),jr(()=>{g?k&&R(k.to):R(k==null?void 0:k.to)},[g]);let T=(A,me)=>{let G=(k==null?void 0:k.from)&&(k==null?void 0:k.to)?{from:me}:A;w(G),M(void 0),(G==null?void 0:G.from)&&(G==null?void 0:G.to)&&(o==null||o(G),C(!1))},B=A=>{w(A.dateRange),M(A),o==null||o(A.dateRange,A),C(!1)},P=()=>{w(x),C(!1)},I=A=>{A||P(),C(A)},X=tn(()=>k?`${k.from?$r(k.from,d):""} - ${k.to?$r(k.to,d):""}`:null,[k,d]);return tt((a==null?void 0:a.filter(A=>A.shortcut).map(A=>A.shortcut))??[],A=>{let me=a==null?void 0:a.find(G=>G.shortcut===A.key);me&&B(me)}),ae(Gr.Provider,{value:{isOpen:g,setIsOpen:C},children:ae(ot,{align:f,openPopover:g,setOpenPopover:I,popoverContentClassName:"rounded-xl",content:ae("div",{className:"flex w-full",children:rn("div",{className:"scrollbar-hide relative flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[a&&a.length>0&&ae(ql,{children:ae("div",{className:"absolute px-3 sm:inset-0 sm:left-0",children:ae("div",{className:"sm:py-3",children:ae(Ur,{currentPresetId:r,currentValue:k,presets:a,onSelect:B})})})}),ae("div",{className:"scrollbar-hide overflow-x-scroll",children:ae(Qa,{mode:"range",selected:k,onSelect:T,month:U,onMonthChange:R,numberOfMonths:h?2:1,disabled:l,disableNavigation:s,showYearNavigation:u,locale:d,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-neutral-200 overflow-x-scroll scrollbar-hide"},...v})})]})}),children:ae(Kr,{placeholder:n,disabled:c,className:b,hasError:m,"aria-required":v.required||v["aria-required"],"aria-invalid":v["aria-invalid"],"aria-label":v["aria-label"],"aria-labelledby":v["aria-labelledby"],children:(N==null?void 0:N.label)??X})})})};function pb({presets:e,...t}){return e&&en(e,t),ae(Yl,{presets:e,...t})}function ql({children:e}){let t=jl(null),{scrollProgress:r,updateScrollProgress:o}=Ae(t);return rn("div",{className:"relative sm:h-full",children:[ae("div",{ref:t,onScroll:o,className:i("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-neutral-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:e}),ae("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(r,2)}})]})}import Zl from"next/link";import{useEffect as Xl,useState as on}from"react";import Jl from"swr";import{jsx as Yr,jsxs as an}from"react/jsx-runtime";function nn({className:e}){let{data:t}=Jl("https://status.dub.co/api/v1/summary",ge),[r,o]=on("bg-neutral-200"),[a,c]=on("Loading status...");return Xl(()=>{if(!t)return;let{ongoing_incidents:s}=t;if(s.length>0){let{current_worst_impact:l,name:u}=s[0],d=l==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(u),o(d)}else c("All systems operational"),o("bg-green-500")},[t]),an(Zl,{href:"https://status.dub.co",target:"_blank",className:i("group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",e),children:[an("div",{className:"relative size-2",children:[Yr("div",{className:i("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),Yr("div",{className:i("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),Yr("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}import{jsx as ir,jsxs as sn}from"react/jsx-runtime";function Pb({icon:e,title:t,description:r,learnMore:o,children:a}){return sn("div",{className:"flex flex-col items-center justify-center gap-y-4",children:[ir("div",{className:"flex size-16 items-center justify-center rounded-2xl border border-neutral-200 bg-neutral-50",children:ir(e,{className:"size-6 text-neutral-800"})}),ir("p",{className:"text-center text-base font-medium text-neutral-950",children:t}),r&&sn("p",{className:"max-w-sm text-balance text-center text-sm text-neutral-500",children:[r," ",o&&ir("a",{href:o,target:"_blank",className:"underline underline-offset-2 hover:text-neutral-800",children:"Learn more \u2197"})]}),a]})}import{cva as Ql}from"class-variance-authority";import{useState as ln}from"react";import{toast as cn}from"sonner";import{Fragment as tc,jsx as be,jsxs as Zr}from"react/jsx-runtime";var dn=["application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv"],qr={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"},csv:{types:["text/csv"],errorMessage:"File type not supported (.csv only)"},documents:{types:dn,errorMessage:"File type not supported (document files only)"},programResourceImages:{types:["image/svg+xml","image/png","image/jpeg"],errorMessage:"File type not supported (.svg., .png, or .jpg only)"},programResourceFiles:{types:[...dn,"application/zip"],errorMessage:"File type not supported (document or zip files only)"}},ec=Ql("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-neutral-50",{variants:{variant:{default:"rounded-md border border-neutral-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function Ob({id:e,readFile:t,onChange:r,variant:o,className:a,iconClassName:c,previewClassName:s,icon:l=la,customPreview:u,accept:d="any",imageSrc:n,loading:m=!1,clickToUpload:f=!0,showHoverOverlay:b=!0,content:v,maxFileSizeMB:h=0,targetResolution:g,accessibilityLabel:C="File upload",disabled:N=!1}){let[M,k]=ln(!1),[w,U]=ln(null),R=async x=>{let T="dataTransfer"in x?x.dataTransfer.files&&x.dataTransfer.files[0]:x.target.files&&x.target.files[0];if(!T)return;if(U(T.name),h>0&&T.size/1024/1024>h){cn.error(`File size too big (max ${h} MB)`);return}let B=qr[d].types;if(B.length&&!B.includes(T.type)){cn.error(qr[d].errorMessage??"File type not supported");return}let P=T;if(g&&T.type.startsWith("image/"))try{let I=await Ao(T,g),X=await fetch(I).then(A=>A.blob());P=new File([X],T.name,{type:T.type})}catch(I){console.error("Error resizing image:",I)}if(t){let I=new FileReader;I.onload=X=>{var A;return r==null?void 0:r({src:(A=X.target)==null?void 0:A.result,file:P})},I.readAsDataURL(P);return}r==null||r({file:P})};return Zr("label",{className:i(ec({variant:o}),N?"cursor-not-allowed":i(f&&"cursor-pointer"),a),children:[m&&be("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:be(xt,{})}),be("div",{className:"absolute inset-0 z-[5]",onDragOver:x=>{x.preventDefault(),x.stopPropagation(),k(!0)},onDragEnter:x=>{x.preventDefault(),x.stopPropagation(),k(!0)},onDragLeave:x=>{x.preventDefault(),x.stopPropagation(),k(!1)},onDrop:async x=>{x.preventDefault(),x.stopPropagation(),R(x),k(!1)}}),Zr("div",{className:i("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] border-2 border-transparent bg-white transition-all",N&&"bg-neutral-50",M&&!N&&"cursor-copy border-black bg-neutral-50 opacity-100",n?i("opacity-0",b&&!N&&"group-hover:opacity-100"):i(!N&&"group-hover:bg-neutral-50")),children:[be(l,{className:i("size-7 transition-all duration-75",N?"text-neutral-400":i("text-neutral-500 group-hover:scale-110 group-active:scale-95",M?"scale-110":"scale-100"),c)}),v!==null&&be("div",{className:i("mt-2 text-center text-sm text-neutral-500",N&&"text-neutral-400"),children:v??be(tc,{children:Zr("p",{children:["Drag and drop ",f&&"or click"," to upload."]})})}),be("span",{className:"sr-only",children:C})]}),n&&(u??be("img",{src:n,alt:"Preview",className:i("h-full w-full rounded-[inherit] object-cover",s)})),f&&be("div",{className:"sr-only mt-1 flex shadow-sm",children:be("input",{id:e,type:"file",accept:qr[d].types.join(","),onChange:R,disabled:N},w)})]})}import{AnimatePresence as rc,motion as un}from"framer-motion";import{X as oc}from"lucide-react";import ac from"next/link";import{useParams as nc}from"next/navigation";import{isValidElement as ic}from"react";import{Fragment as sc,jsx as Q,jsxs as Rt}from"react/jsx-runtime";function pn({filters:e,activeFilters:t,onRemove:r,onRemoveAll:o,className:a}){let{slug:c}=nc();return tt("Escape",o,{priority:1}),Q(Pe,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:Rt("div",{className:i("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",a),children:[Q("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:Q(rc,{children:t==null?void 0:t.map(({key:s,value:l})=>{if(s==="loader")return Q(un.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-neutral-200 bg-white"},`loader-${l}`);let u=e.find(n=>n.key===s);if(!u)return console.error("Filter.List received an activeFilter without a corresponding filter"),null;let d=c&&s==="link"?`/${c}/links/${l}`:void 0;return(u.multiple&&Array.isArray(l)?l:[l]).map(n=>{var v,h,g;let m=(v=u.options)==null?void 0:v.find(C=>typeof C.value=="string"&&typeof n=="string"?C.value.toLowerCase()===n.toLowerCase():C.value===n),f=(m==null?void 0:m.icon)??((h=u.getOptionIcon)==null?void 0:h.call(u,n,{key:u.key,option:m}))??u.icon,b=(m==null?void 0:m.label)??((g=u.getOptionLabel)==null?void 0:g.call(u,n,{key:u.key,option:m}))??n;return Rt(un.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-neutral-200 bg-white text-sm text-black",children:[Rt("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[Q("span",{className:"shrink-0 text-neutral-600",children:mn(u.icon)?u.icon:Q(u.icon,{className:"h-4 w-4"})}),u.label]}),Q("div",{className:"px-3 py-2 text-neutral-500",children:"is"}),Q("div",{className:"flex items-center gap-2.5 px-3 py-2",children:u.options?Rt(sc,{children:[Q("span",{className:"shrink-0 text-neutral-600",children:mn(f)?f:Q(f,{className:"h-4 w-4"})}),d?Q(ac,{href:d,target:"_blank",className:"cursor-alias decoration-dotted underline-offset-2 hover:underline",children:vt(b,30)}):vt(b,30)]}):Q("div",{className:"h-5 w-12 animate-pulse rounded-md bg-neutral-200"})}),Q("button",{type:"button",className:"h-full rounded-r-md p-2 text-neutral-500 ring-inset ring-neutral-500 hover:bg-neutral-100 hover:text-neutral-800 focus:outline-none focus-visible:ring-1",onClick:()=>r(s,n),children:Q(oc,{className:"h-3.5 w-3.5"})})]},`${s}-${n}`)})})})}),(t==null?void 0:t.length)!==0&&Rt("button",{type:"button",className:"group mt-px flex items-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-neutral-500 ring-inset ring-neutral-500 transition-colors hover:border-neutral-200 hover:bg-white hover:text-black focus:outline-none",onClick:o,children:["Clear Filters",Q("kbd",{className:"rounded-md border border-neutral-200 px-1.5 py-0.5 text-xs text-neutral-950 group-hover:bg-neutral-50",children:"ESC"})]})]})})}var mn=e=>ic(e);import{Command as ze,useCommandState as lc}from"cmdk";import{ChevronDown as cc,ListFilter as dc}from"lucide-react";import{Fragment as uc,forwardRef as mc,isValidElement as gn,useCallback as sr,useEffect as lr,useImperativeHandle as pc,useRef as Jr,useState as Xr}from"react";import{Fragment as xc,jsx as H,jsxs as xe}from"react/jsx-runtime";function hn({filters:e,onSelect:t,onRemove:r,onOpenFilter:o,onSearchChange:a,onSelectedFilterChange:c,activeFilters:s,askAI:l,children:u,emptyState:d,className:n}){var T,B;let{isMobile:m}=q(),f=Jr(null),b=Jr(),[v,h]=Xr(!1);tt("f",()=>h(!0),{enabled:!v});let[g,C]=Xr(""),[N,M]=Xr(null),k=sr(()=>{C(""),M(null)},[]);lr(()=>{v||k()},[v]);let w=N?e.find(({key:P})=>P===N):null,U=sr(P=>{f.current&&(b.current={width:f.current.clientWidth,height:f.current.clientHeight}),C(""),M(P),o==null||o(P)},[]),R=sr(P=>{if(!w||!s)return!1;let I=s.find(({key:X})=>X===N);return(I==null?void 0:I.value)===P||I&&w.multiple&&Array.isArray(I.value)&&I.value.includes(P)},[w]),x=sr(P=>{w&&(R(P)?r(w.key,P):t(w.key,P),w.multiple||h(!1))},[s,w,l]);return lr(()=>{a==null||a(g)},[g]),lr(()=>{c==null||c(N)},[N]),lr(()=>{(w==null?void 0:w.options)&&f.current&&(b.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:v,setOpenPopover:h,onEscapeKeyDown:P=>{N&&(P.preventDefault(),k())},content:H(Pe,{width:!m,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:xe(ze,{loop:!0,shouldFilter:!w||w.shouldFilter!==!1,children:[xe("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-neutral-200",children:[H(gc,{placeholder:`${(w==null?void 0:w.label)||"Filter"}...`,value:g,onValueChange:C,onKeyDown:P=>{(P.key==="Escape"||P.key==="Backspace"&&!g)&&(P.preventDefault(),P.stopPropagation(),N?k():h(!1))},emptySubmit:P=>{P.preventDefault(),P.stopPropagation(),l?(t("ai",w?`${w.label} ${g}`:g),h(!1)):x(g)}}),!w&&H("kbd",{className:"mr-2 hidden shrink-0 rounded border border-neutral-200 bg-neutral-100 px-2 py-0.5 text-xs font-light text-neutral-500 md:block",children:"F"})]}),H(hc,{ref:f,children:xe(ze.List,{className:i("flex w-full flex-col gap-1 p-1",w?"min-w-[100px]":"min-w-[180px]"),children:[w?((B=(T=w.options)==null?void 0:T.filter(P=>!g||!P.hideDuringSearch))==null?void 0:B.map(P=>{let I=R(P.value);return H(fn,{filter:w,option:P,right:I?H(ea,{className:"h-4 w-4"}):P.right,onSelect:()=>x(P.value)},P.value)}))??H(ze.Loading,{children:H("div",{className:"-m-1 flex items-center justify-center",style:b.current,children:H(Ne,{})})}):e.map(P=>xe(uc,{children:[H(fn,{filter:P,onSelect:()=>U(P.key)}),P.separatorAfter&&H(ze.Separator,{className:"-mx-1 my-1 border-b border-neutral-200"})]},P.key)),(!w||w.options)&&H(vc,{search:g,askAI:l,children:d?fc(d)?(d==null?void 0:d[N??"default"])??"No matches":d:"No matches"})]})},N)]})}),children:xe("button",{type:"button",className:i("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-neutral-200 bg-white text-neutral-900 placeholder-neutral-400","focus-visible:border-neutral-500 data-[state=open]:border-neutral-500 data-[state=open]:ring-4 data-[state=open]:ring-neutral-200",n),children:[H(dc,{className:"size-4 shrink-0"}),H("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-neutral-900",children:u??"Filter"}),s!=null&&s.length?H("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:s.length}):H(cc,{className:"size-4 shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function fc(e){return typeof e=="object"&&e!==null&&!gn(e)}var gc=e=>{let t=lc(r=>r.filtered.count===0);return H(ze.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-neutral-400 focus:ring-0 sm:text-sm",onKeyDown:r=>{var o,a;(o=e.onKeyDown)==null||o.call(e,r),r.key==="Enter"&&t&&((a=e.emptySubmit)==null||a.call(e,r))},autoCapitalize:"none"})},hc=mc(({children:e},t)=>{let r=Jr(null);pc(t,()=>r.current);let{scrollProgress:o,updateScrollProgress:a}=Ae(r);return xe(xc,{children:[H("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:r,onScroll:a,children:e}),H("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(o,2)}})]})});function fn({filter:e,option:t,right:r,onSelect:o}){var l,u;let{isMobile:a}=q(),c=t?t.icon??((l=e.getOptionIcon)==null?void 0:l.call(e,t.value,{key:e.key,option:t}))??e.icon:e.icon,s=t?t.label??((u=e.getOptionLabel)==null?void 0:u.call(e,t.value,{key:e.key,option:t})):e.label;return xe(ze.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-neutral-100"),onPointerDown:d=>{d.preventDefault()},onPointerUp:d=>{d.preventDefault(),a?setTimeout(o,100):o()},onSelect:o,value:s+(t==null?void 0:t.value),children:[H("span",{className:"shrink-0 text-neutral-600",children:bc(c)?c:H(c,{className:"h-4 w-4"})}),vt(s,48),H("div",{className:"ml-1 flex shrink-0 grow justify-end text-neutral-500",children:r})]})}var vc=({search:e,askAI:t,children:r})=>t&&e?xe(ze.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-neutral-100 px-3 py-2",children:[H(Vo,{className:"h-4 w-4"}),xe("p",{className:"text-center text-sm text-neutral-600",children:["Ask AI ",xe("span",{className:"text-black",children:['"',e,'"']})]})]}):H(ze.Empty,{className:"p-2 text-center text-sm text-neutral-400",children:r}),bc=e=>gn(e);var l2={Select:hn,List:pn};import{useMemo as yc,useState as vn}from"react";import{jsx as $e,jsxs as cr}from"react/jsx-runtime";function g2({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:c,handleSubmit:s}){let[l,u]=vn(r.defaultValue),[d,n]=vn(!1),m=yc(()=>d||!l||l===r.defaultValue,[d,l,r.defaultValue]);return cr("form",{onSubmit:async f=>{f.preventDefault(),n(!0),await s({[r.name]:l}),n(!1)},className:"rounded-lg border border-neutral-200 bg-white",children:[cr("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[cr("div",{className:"flex flex-col space-y-3",children:[$e("h2",{className:"text-xl font-medium",children:e}),$e("p",{className:"text-sm text-neutral-500",children:t})]}),typeof r.defaultValue=="string"?$e("input",{...r,type:r.type||"text",required:!0,disabled:!!c,onChange:f=>u(f.target.value),className:i("w-full max-w-md rounded-md border border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",{"cursor-not-allowed bg-neutral-100 text-neutral-400":c})}):$e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-neutral-200"})]}),cr("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-neutral-200 bg-neutral-50 p-3 sm:px-10",children:[typeof o=="string"?$e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-neutral-700 text-neutral-500 transition-colors",dangerouslySetInnerHTML:{__html:o||""}}):o,$e("div",{className:"shrink-0",children:$e(le,{text:a,loading:d,disabled:m,disabledTooltip:c})})]})]})}import{useId as wc}from"react";import{jsx as dr,jsxs as Cc}from"react/jsx-runtime";function bn({cellSize:e=12,strokeWidth:t=1,patternOffset:r=[0,0],className:o}){let a=wc();return Cc("svg",{className:i("pointer-events-none absolute inset-0 text-black/10",o),width:"100%",height:"100%",children:[dr("defs",{children:dr("pattern",{id:`grid-${a}`,x:r[0]-1,y:r[1]-1,width:e,height:e,patternUnits:"userSpaceOnUse",children:dr("path",{d:`M ${e} 0 L 0 0 0 ${e}`,fill:"transparent",stroke:"currentColor",strokeWidth:t})})}),dr("rect",{fill:`url(#grid-${a})`,width:"100%",height:"100%"})]})}import{AlertCircle as Nc}from"lucide-react";import kc,{useCallback as Pc,useState as Sc}from"react";import{jsx as Ke,jsxs as Qr}from"react/jsx-runtime";var Mc=kc.forwardRef(({className:e,type:t,...r},o)=>{let[a,c]=Sc(!1),s=Pc(()=>c(!a),[a,c]);return Qr("div",{children:[Qr("div",{className:"relative flex",children:[Ke("input",{type:a?"text":t,className:i("w-full max-w-md rounded-md border border-neutral-300 text-neutral-900 placeholder-neutral-400 read-only:bg-neutral-100 read-only:text-neutral-500 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",e),ref:o,...r}),Qr("div",{className:"group",children:[r.error&&Ke("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:Ke(Nc,{className:i("size-5 text-white",t==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),t==="password"&&Ke("button",{className:i("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>s(),"aria-label":a?"Hide password":"Show Password",children:a?Ke(da,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0}):Ke(ua,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0})})]})]}),r.error&&Ke("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});Mc.displayName="Input";import{flip as Ec,offset as Ac,size as Dc,useDismiss as Ic,useFloating as zc,useInteractions as Oc}from"@floating-ui/react";import{Command as Re,useCommandState as _c}from"cmdk";import{Check as Hc,ChevronDown as Vc,Search as Bc,X as Wc}from"lucide-react";import{createContext as Fc,forwardRef as Nn,useContext as oo,useEffect as eo,useMemo as yn,useRef as wn,useState as to}from"react";import{Drawer as at}from"vaul";import Rc from"next/image";import{useEffect as Tc,useState as xn}from"react";import{jsx as Lc}from"react/jsx-runtime";function Tt(e){let[t,r]=xn(!0),[o,a]=xn(e.src);Tc(()=>a(e.src),[e.src]);let c=s=>{r(!1);let l=s.target;l.naturalWidth<=16&&l.naturalHeight<=16&&a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)};return Lc(Rc,{...e,src:o,alt:e.alt,className:i(t?"blur-[2px]":"blur-0",e.className),onLoad:c,onError:()=>{a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)},unoptimized:!0})}import{jsx as D,jsxs as ce}from"react/jsx-runtime";var ur=Fc({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function $2({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:c,icon:s,inputAttrs:l,noItemsElement:u}){let{isMobile:d}=q(),n=wn(null),[m,f]=to(!1),[b,v]=to(""),[h,g]=to(!1);eo(()=>{m&&g(!1)},[m]),eo(()=>g(!0),[b]),eo(()=>{t&&v(t.value)},[t]);let C=yn(()=>{let I=b.toLowerCase();return h?e.filter(X=>X.value.toLowerCase().includes(I)):b?e.sort((X,A)=>(A.value.toLowerCase().includes(I)?1:0)-(X.value.toLowerCase().includes(I)?1:0)):e},[h,b,e]),{refs:N,floatingStyles:M,context:k}=zc({open:m,onOpenChange:f,middleware:[Ac(8),Dc({apply({elements:{floating:I},availableHeight:X}){Object.assign(I.style,{maxHeight:`${Math.max(75,Math.min(X,290))}px`})},padding:8}),Ec({fallbackStrategy:"initialPlacement",padding:8})]}),w=Ic(k,{enabled:!d||!c}),{getReferenceProps:U,getFloatingProps:R}=Oc([w]),x=wn(null),{scrollProgress:T,updateScrollProgress:B}=Ae(x),P=yn(()=>t&&t.icon?t.icon:t&&t.image?D(Tt,{src:t.image,alt:t.value,className:"size-4 rounded-full",width:16,height:16}):s||D(Bc,{className:"size-4 text-neutral-400"}),[t,s]);return D(ur.Provider,{value:{inputAttrs:l||{},openCommandList:m,setOpenCommandList:f,inputValue:b,setInputValue:v,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:d&&c?ce(at.Root,{open:m,onOpenChange:f,children:[D(at.Trigger,{className:"sm:hidden",asChild:!0,children:D(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:D(ro,{className:o,iconElement:P})})}),D(at.Overlay,{className:"fixed inset-0 z-40 bg-neutral-100 bg-opacity-10 backdrop-blur"}),ce(at.Portal,{children:[D(at.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-neutral-200 bg-white",onPointerDownOutside:I=>{I.target instanceof Element&&I.target.closest("[data-sonner-toast]")&&I.preventDefault()},children:ce(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D("div",{className:"p-2",children:D(ro,{className:o,iconElement:P})}),m&&ce(Re.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&b===""&&(u?D("div",{children:u}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),b!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."}),D(Cn,{items:C})]})]})}),D(at.Overlay,{})]})]}):ce(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D(ro,{className:o,iconElement:P,ref:N.setReference,...U()}),m&&ce("div",{ref:N.setFloating,style:M,...R(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-neutral-200 bg-white shadow-md",children:[ce("div",{ref:x,onScroll:B,className:"grow overflow-y-auto p-2",children:[ce(Re.List,{children:[e.length===0&&b===""&&(u?D("div",{children:u}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),b!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."})]}),D(Cn,{items:C})]}),D("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(T,2)}})]})]})})}var ro=Nn(({iconElement:e,className:t,...r},o)=>ce("label",{ref:o,className:i("group relative flex cursor-pointer gap-2 rounded-md border border-neutral-200 bg-white px-1 pl-3 transition-all focus-within:border-neutral-500 focus-within:ring-4 focus-within:ring-neutral-200",t),...r,children:[D("div",{className:"flex shrink-0 items-center justify-center text-neutral-400",children:e}),ce("div",{className:"flex h-10 grow",children:[D(Uc,{}),D(Gc,{})]})]})),Uc=Nn((e,t)=>{let r=_c(d=>d.filtered.count===0),{inputAttrs:o,openCommandList:a,setOpenCommandList:c,inputValue:s,setInputValue:l,disabled:u}=oo(ur);return D(Re.Input,{ref:t,placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:a,onFocus:()=>c(!0),value:s,onValueChange:l,onKeyDown:d=>{d.key==="Escape"?(d.preventDefault(),c(!1)):d.key==="Enter"&&r?c(!1):d.key.match(/^[a-z0-9]$/i)&&!d.metaKey&&c(!0)},disabled:u,className:"block w-full truncate rounded-md border-none px-0 text-base text-neutral-900 placeholder-neutral-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function Gc(){let{setSelectedItem:e,openCommandList:t,setOpenCommandList:r,inputValue:o,setInputValue:a}=oo(ur);return D("button",{type:"button",onClick:()=>{r(c=>!c),e(null),a("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:o.length>0?D(Wc,{className:"size-4 text-neutral-400 transition-all hover:text-neutral-700"}):D(Vc,{className:i("size-4 text-neutral-400 transition-all hover:text-neutral-700",{"rotate-180 transform":t})})})}function Cn({items:e}){let{setSelectedItem:t,setOpenCommandList:r,setInputValue:o}=oo(ur);return e.map(a=>ce(Re.Item,{value:a.value,disabled:a.disabled,onSelect:()=>{t(a),o(a.value),r(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-neutral-900 hover:bg-neutral-100 hover:text-neutral-900 active:bg-neutral-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-neutral-100 aria-selected:text-neutral-900",children:[ce("div",{className:"flex items-center space-x-2",children:[a.icon||a.image&&D(Tt,{src:a.image,alt:a.value,className:"size-4 rounded-full",width:16,height:16}),D("p",{className:i("whitespace-nowrap py-0.5 text-sm",a.color&&"rounded-md px-2",a.color==="red"&&"bg-red-100 text-red-600",a.color==="yellow"&&"bg-yellow-100 text-yellow-600",a.color==="green"&&"bg-green-100 text-green-600",a.color==="blue"&&"bg-blue-100 text-blue-600",a.color==="purple"&&"bg-purple-100 text-purple-600",a.color==="brown"&&"bg-brown-100 text-brown-600"),children:a.value}),a.label&&D(Yt,{className:"text-xs",variant:"neutral",children:a.label})]}),D(Hc,{className:"invisible h-5 w-5 text-neutral-500 aria-selected:visible"})]},a.id))}import*as ao from"@radix-ui/react-label";import{cva as $c}from"class-variance-authority";import*as kn from"react";import{jsx as Yc}from"react/jsx-runtime";var Kc=$c("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),jc=kn.forwardRef(({className:e,...t},r)=>Yc(ao.Root,{ref:r,className:i(Kc(),e),...t}));jc.displayName=ao.Root.displayName;import{cva as qc}from"class-variance-authority";import{isValidElement as Zc}from"react";import{jsx as Pn,jsxs as Sn}from"react/jsx-runtime";var Xc=qc(["flex h-9 w-full rounded-md px-2 items-center justify-center gap-2 transition-colors","whitespace-nowrap text-sm font-medium text-content-default hover:bg-bg-subtle transition-colors"],{variants:{variant:{default:"text-content-default hover:bg-bg-subtle",danger:"text-content-error hover:bg-bg-error"}}});function ox({as:e,variant:t="default",children:r,icon:o,shortcut:a,className:c,...s}){return Sn(e||"button",{...e==="button"?{type:"button"}:{},className:i(Xc({variant:t}),c),...s,children:[Sn("div",{className:"flex grow items-center gap-2",children:[o&&(Jc(o)?o:Pn(o,{className:"size-4"})),r]}),a&&Pn("kbd",{className:i("bg-bg-inverted/5 group-hover:bg-bg-inverted/10 hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:block"),children:a})]})}var Jc=e=>Zc(e);import{curveNatural as Mn}from"@visx/curve";import{LinearGradient as Rn}from"@visx/gradient";import{Group as Qc}from"@visx/group";import{ParentSize as ed}from"@visx/responsive";import{scaleLinear as td,scaleUtc as rd}from"@visx/scale";import{Area as od,AreaClosed as ad}from"@visx/shape";import{motion as Tn}from"framer-motion";import{useId as nd,useMemo as Ln}from"react";import{jsx as ye,jsxs as no}from"react/jsx-runtime";var id={top:8,right:2,bottom:2,left:2};function px(e){return ye(ed,{className:"relative",children:({width:t,height:r})=>t>0&&r>0&&ye(sd,{...{width:t,height:r,...e}})})}function sd({width:e,height:t,data:r,curve:o=!0,color:a,padding:c}){let s={...id,...c},l=nd(),u=Ln(()=>r.map(({date:m})=>({date:m,value:0})),[r]),{yScale:d,xScale:n}=Ln(()=>{let m=r.map(({value:g})=>g),f=Math.max(...m),b=r.map(({date:g})=>g.getTime()),v=new Date(Math.min(...b)),h=new Date(Math.max(...b));return{yScale:td({domain:[-2,Math.max(f,2)],range:[t-s.top-s.bottom,0],nice:!0,clamp:!0}),xScale:rd({domain:[v,h],range:[0,e-s.left-s.right],nice:!0})}},[r,t,e]);return no("svg",{width:e,height:t,children:[no("defs",{children:[ye(Rn,{id:`${l}-color-gradient`,from:a||"#7D3AEC",to:a||"#DA2778",x1:0,x2:e-s.left-s.right,gradientUnits:"userSpaceOnUse"}),ye(Rn,{id:`${l}-mask-gradient`,from:"white",to:"white",fromOpacity:.3,toOpacity:0,x1:0,x2:0,y1:0,y2:1}),ye("mask",{id:`${l}-mask`,maskContentUnits:"objectBoundingBox",children:ye("rect",{width:"1",height:"1",fill:`url(#${l}-mask-gradient)`})})]}),no(Qc,{left:s.left,top:s.top,children:[ye(od,{data:r,x:({date:m})=>n(m),y:({value:m})=>d(m)??0,curve:o?Mn:void 0,children:({path:m})=>ye(Tn.path,{initial:{d:m(u)||"",opacity:0},animate:{d:m(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),ye(ad,{data:r,x:({date:m})=>n(m),y:({value:m})=>d(m)??0,yScale:d,curve:o?Mn:void 0,children:({path:m})=>ye(Tn.path,{initial:{d:m(u)||"",opacity:0},animate:{d:m(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as de from"@radix-ui/react-dialog";import*as io from"@radix-ui/react-visually-hidden";import{useRouter as ld}from"next/navigation";import{Drawer as je}from"vaul";import{jsx as ne,jsxs as nt}from"react/jsx-runtime";function xx({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:c,preventDefaultClose:s,drawerRootProps:l}){let u=ld(),d=({dragged:m}={})=>{s&&!m||(a&&a(),o?o(!1):u.back())},{isMobile:n}=q();return n&&!c?ne(je.Root,{open:o?r:!0,onOpenChange:m=>{m||d({dragged:!0})},...l,children:nt(je.Portal,{children:[ne(je.Overlay,{className:"fixed inset-0 z-50 bg-neutral-100 bg-opacity-10 backdrop-blur"}),ne(je.Content,{onPointerDownOutside:m=>{m.target instanceof Element&&m.target.closest("[data-sonner-toast]")&&m.preventDefault()},className:i("fixed bottom-0 left-0 right-0 z-50 flex flex-col","rounded-t-[10px] border-t border-neutral-200 bg-white",t),children:nt("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-t-[10px] bg-inherit",children:[nt(io.Root,{children:[ne(je.Title,{children:"Modal"}),ne(je.Description,{children:"This is a modal"})]}),ne(cd,{}),e]})}),ne(je.Overlay,{})]})}):ne(de.Root,{open:o?r:!0,onOpenChange:m=>{m||d()},children:nt(de.Portal,{children:[ne(de.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-neutral-100 bg-opacity-50 backdrop-blur-md"}),nt(de.Content,{onOpenAutoFocus:m=>m.preventDefault(),onCloseAutoFocus:m=>m.preventDefault(),onPointerDownOutside:m=>{m.target instanceof Element&&m.target.closest("[data-sonner-toast]")&&m.preventDefault()},className:i("fixed inset-0 z-40 m-auto h-fit w-full max-w-md","border border-neutral-200 bg-white p-0 shadow-xl sm:rounded-2xl","scrollbar-hide animate-scale-in overflow-y-auto",t),children:[nt(io.Root,{children:[ne(de.Title,{children:"Modal"}),ne(de.Description,{children:"This is a modal"})]}),e]})]})})}function cd(){return ne("div",{className:"sticky top-0 z-20 flex items-center justify-center rounded-t-[10px] bg-inherit",children:ne("div",{className:"my-3 h-1 w-12 rounded-full bg-neutral-300"})})}import{Fragment as dd,jsx as mr,jsxs as it}from"react/jsx-runtime";var En=i("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-neutral-200 bg-white px-2 text-sm text-neutral-600","outline-none hover:bg-neutral-50 focus-visible:border-neutral-500","disabled:cursor-not-allowed disabled:border-neutral-200 disabled:text-neutral-400 disabled:bg-neutral-100");function Cx({pagination:e,setPagination:t,totalCount:r,unit:o=l=>`item${l?"s":""}`,className:a,children:c,showTotalCount:s=!0}){return it("div",{className:i("flex items-center justify-between gap-2 text-sm leading-6 text-neutral-600",a),children:[it("div",{className:"flex items-center gap-2",children:[it("div",{children:[mr("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",r>0&&it(dd,{children:[it("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,r)]})," ",s&&"of "]}),s&&mr("span",{className:"font-medium",children:Dt(r,{full:!0})})," ",typeof o=="function"?o(r!==1):o]}),c]}),it("div",{className:"flex items-center gap-2",children:[mr("button",{type:"button",className:En,onClick:()=>t({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),mr("button",{type:"button",className:En,onClick:()=>t({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=r,children:"Next"})]})]})}import*as Oe from"@radix-ui/react-radio-group";import{Circle as ud}from"lucide-react";import*as so from"react";import{jsx as pr}from"react/jsx-runtime";var md=so.forwardRef(({className:e,...t},r)=>pr(Oe.Root,{className:i("grid gap-2",e),...t,ref:r}));md.displayName=Oe.Root.displayName;var pd=so.forwardRef(({className:e,...t},r)=>pr(Oe.Item,{ref:r,className:i("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:pr(Oe.Indicator,{className:"flex items-center justify-center",children:pr(ud,{className:"h-2.5 w-2.5 fill-current text-current"})})}));pd.displayName=Oe.Item.displayName;import{Drawer as _e}from"vaul";import{jsx as Ye,jsxs as bd}from"react/jsx-runtime";function fd({children:e,contentProps:t,nested:r=!1,...o}){let a=r?_e.NestedRoot:_e.Root;return Ye(a,{direction:"right",handleOnly:!0,...o,children:bd(_e.Portal,{children:[Ye(_e.Overlay,{className:"fixed inset-0 bg-black/20","data-sheet-overlay":!0}),Ye(_e.Content,{...t,onPointerDownOutside:c=>{var s;c.target instanceof Element&&c.target.closest("[data-sonner-toast]")&&c.preventDefault(),(s=t==null?void 0:t.onPointerDownOutside)==null||s.call(t,c)},className:i("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",t==null?void 0:t.className),style:{"--initial-transform":"calc(100% + 8px)","user-select":"auto",...t==null?void 0:t.style},children:Ye("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:e})})]})})}function gd({className:e,...t}){return Ye(_e.Title,{className:i("text-xl font-medium text-zinc-900",e),...t})}function hd(e){return Ye(_e.Description,{...e})}function vd(e){return Ye(_e.Close,{...e})}var Lx=Object.assign(fd,{Title:gd,Description:hd,Close:vd});import{useEffect as xd,useRef as yd,useState as wd}from"react";import{jsx as An}from"react/jsx-runtime";var Cd=`
|
|
3
3
|
attribute vec2 position;
|
|
4
4
|
|
|
5
5
|
void main()
|
|
6
6
|
{
|
|
7
7
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
8
8
|
}
|
|
9
|
-
`,
|
|
9
|
+
`,Nd=`
|
|
10
10
|
precision mediump float;
|
|
11
11
|
|
|
12
12
|
uniform vec2 resolution;
|
|
@@ -39,14 +39,14 @@ void main(void) {
|
|
|
39
39
|
|
|
40
40
|
gl_FragColor = fragColor;
|
|
41
41
|
}
|
|
42
|
-
`,xd=60,yd=1e3/xd;function k4({dotSize:e=1,cellSize:t=3,speed:r=5,className:o}){let a=gd(null),[c,s]=hd(!1);return fd(()=>{let l=a.current;if(!l||!l.parentElement)return;let u=l.parentElement,d=window.devicePixelRatio||1;l.width=u.clientWidth*d,l.height=u.clientHeight*d;let n=l.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(n===null){alert("Failed to initialize WebGL");return}let m=n.createProgram();if(!m){console.error("Failed to create shader program");return}for(let R=0;R<2;++R){let x=R===0?vd:bd,T=n.createShader(R===0?n.VERTEX_SHADER:n.FRAGMENT_SHADER);if(!T){console.error("Failed to create shader");return}n.shaderSource(T,x),n.compileShader(T),n.getShaderParameter(T,n.COMPILE_STATUS)||console.error(n.getShaderInfoLog(T)),n.attachShader(m,T),n.linkProgram(m)}n.getProgramParameter(m,n.LINK_STATUS)||console.error(n.getProgramInfoLog(m));let f=n.getAttribLocation(m,"position"),b=n.getUniformLocation(m,"time"),v=n.getUniformLocation(m,"resolution"),h=n.getUniformLocation(m,"dotSize"),g=n.getUniformLocation(m,"cellSize"),C=n.getUniformLocation(m,"speed");n.useProgram(m);let N=[1,1,-1,1,1,-1,-1,-1],M=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,M),n.bufferData(n.ARRAY_BUFFER,new Float32Array(N),n.STATIC_DRAW),n.enableVertexAttribArray(f),n.vertexAttribPointer(f,2,n.FLOAT,!1,0,0),n.uniform1f(h,e*window.devicePixelRatio),n.uniform1f(g,t*window.devicePixelRatio),n.uniform1f(C,r);let k,w=0;function U(R){if(R-w<yd){k=requestAnimationFrame(U);return}w=R,n&&l&&m&&(n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.uniform1f(b,R/1e3),n.uniform2f(v,l.width,l.height),n.drawArrays(n.TRIANGLE_STRIP,0,4)),k=requestAnimationFrame(U)}return k=requestAnimationFrame(U),l.addEventListener("webglcontextlost",R=>{R.preventDefault(),s(!0),cancelAnimationFrame(k)}),()=>{cancelAnimationFrame(k),l.removeEventListener("webglcontextlost",()=>{})}},[e,t,r]),Rn("div",{className:i("absolute inset-0",o,c&&"opacity-0"),children:Rn("canvas",{ref:a,width:"100%",height:"100%",className:"size-full"})})}import{cva as wd}from"class-variance-authority";import{jsx as Tn,jsxs as kd}from"react/jsx-runtime";var Cd=wd("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-neutral-500/[.15] text-neutral-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),Nd={neutral:oa,new:ta,success:ea,pending:ra,warning:Tr,error:Tr};function E4({className:e,variant:t,icon:r,tooltip:o,onClick:a,children:c,...s}){let l=r!==null?r??Nd[t??"neutral"]:null;return Tn(Yt,{tooltipProps:{content:o},children:kd("span",{className:i(Cd({variant:t}),o&&"cursor-help",a&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",e),onClick:a,...s,children:[l&&Tn(l,{className:"h-3 w-3 shrink-0"}),c]})})}import*as fr from"@radix-ui/react-switch";import{useMemo as Pd}from"react";import{jsx as pr}from"react/jsx-runtime";function V4({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:c,checked:s=!0,loading:l=!1,disabled:u=!1,disabledTooltip:d}){let n=Pd(()=>d?!0:u||l,[d,u,l]),m=pr(fr.Root,{checked:l?!1:s,name:"switch",id:t,...e&&{onCheckedChange:e},disabled:n,className:i("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-neutral-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","data-[disabled]:cursor-not-allowed",r),children:pr(fr.Thumb,{className:i(`radix-state-checked:${a}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",o,a),children:c})});return d?pr(J,{content:d,children:pr("div",{className:"inline-block leading-none",children:m})}):m}import{flexRender as no,getCoreRowModel as Sd,useReactTable as Md}from"@tanstack/react-table";import{AnimatePresence as Rd,motion as Td}from"framer-motion";import{memo as Ld,useEffect as gr,useMemo as Ed,useState as Ln}from"react";import{jsx as K,jsxs as pe}from"react/jsx-runtime";var io=(e,t)=>i(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-border-subtle px-4 relative","border-l border-b",e==="menu"&&"bg-bg-default border-l-transparent py-0 px-1",t&&"group-hover/row:bg-bg-muted transition-colors duration-75"]),Ad=i(["absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","bg-neutral-300/50","opacity-0 group-hover/resize:opacity-100 hover:opacity-100","group-hover/resize:bg-neutral-300 hover:bg-neutral-400","transition-all duration-200","-mr-px","after:absolute after:right-0 after:top-0 after:h-full after:w-4 after:translate-x-1/2"]);function cx(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:c,pagination:s,onPaginationChange:l,getRowId:u,enableColumnResizing:d=!1,columnResizeMode:n="onChange"}=e,[m,f]=Ln(e.columnVisibility??{}),[b,v]=Ln(e.selectedRows??{});gr(()=>{e.selectedRows&&!Rr(e.selectedRows,b)&&v(e.selectedRows??{})},[e.selectedRows]),gr(()=>{var g;(g=e.onRowSelectionChange)==null||g.call(e,h.getSelectedRowModel().rows)},[b]),gr(()=>{e.columnVisibility&&!Rr(e.columnVisibility,m)&&f(e.columnVisibility??{})},[e.columnVisibility]),gr(()=>{var g;(g=e.onColumnVisibilityChange)==null||g.call(e,m)},[m]);let h=Md({data:t,rowCount:r,columns:o,defaultColumn:{minSize:120,size:0,maxSize:300,enableResizing:d,...a},getCoreRowModel:Sd(),onPaginationChange:l,onColumnVisibilityChange:g=>f(g),onRowSelectionChange:v,state:{pagination:s,columnVisibility:m,columnPinning:{left:[],right:[],...c},rowSelection:b},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0,getRowId:u,enableColumnResizing:d,columnResizeMode:n});return{...e,columnVisibility:m,table:h,enableColumnResizing:d}}var Dd=Ld(function({row:t,onRowClick:r,cellRight:o,tdClassName:a,table:c}){return K("tr",{className:i("group/row",r&&"cursor-pointer select-none",c.getRowModel().rows.length>8&&t.index===c.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:r?s=>{vt(s)||r(t,s)}:void 0,children:t.getVisibleCells().map(s=>K("td",{className:i(io(s.column.id,!!r),"text-content-default group",so(s.column,t.index===c.getRowModel().rows.length-1),typeof a=="function"?a(s.column.id):a),style:{width:s.column.getSize(),...lo(s.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[K("div",{className:"min-w-0 shrink grow truncate",children:no(s.column.columnDef.cell,s.getContext())}),o==null?void 0:o(s)]})},s.id))},t.id)},(e,t)=>{let r=e.row,o=t.row;return r.original===o.original&&r.getIsSelected()===o.getIsSelected()});function dx({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:c,sortBy:s,sortOrder:l,onSortChange:u,sortableColumns:d=[],className:n,containerClassName:m,scrollWrapperClassName:f,thClassName:b,tdClassName:v,table:h,pagination:g,resourceName:C,onRowClick:N,rowCount:M,children:k,enableColumnResizing:w=!1}){let U=Ed(()=>w?h.getVisibleLeafColumns().reduce((R,x)=>R+x.getSize(),0):"100%",[w,h.getVisibleLeafColumns()]);return pe("div",{className:i("border-border-subtle bg-bg-default relative rounded-xl border",m),children:[!o&&!!(t!=null&&t.length)||r?pe("div",{className:i("relative min-h-[400px] overflow-x-auto rounded-[inherit]",f),children:[pe("table",{className:i(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent","[&_th]:relative [&_th]:select-none",w&&"[&_th]:group/resize"],n),style:{width:"100%",tableLayout:w?"fixed":"auto",minWidth:U},children:[K("thead",{children:h.getHeaderGroups().map(R=>K("tr",{children:R.headers.map(x=>{let T=d.includes(x.column.id),B=T?"button":"div";return pe("th",{colSpan:x.colSpan,className:i(io(x.id),"text-content-emphasis select-none font-medium",so(x.column,!h.getRowModel().rows.length),typeof b=="function"?b(x.column.id):b,w&&"relative"),style:{width:x.getSize(),...lo(x.column)},children:[K("div",{className:"flex items-center justify-between gap-6 !pr-0",children:pe(B,{className:"flex items-center gap-2",...T&&{type:"button",disabled:!T,"aria-label":"Sort by column",onClick:()=>u==null?void 0:u({sortBy:x.column.id,sortOrder:s!==x.column.id||l==="asc"?"desc":"asc"})},children:[x.isPlaceholder?null:no(x.column.columnDef.header,x.getContext()),T&&s===x.column.id&&K(_o,{className:"h-3 w-3 shrink-0",order:l||"desc"})]})}),w&&x.column.getCanResize()&&x.column.id!=="menu"&&K("div",{onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),onClick:P=>P.stopPropagation(),className:Ad})]},x.id)})},R.id))}),K("tbody",{children:h.getRowModel().rows.map(R=>w?K(Dd,{row:R,onRowClick:N,cellRight:c,tdClassName:v,table:h},`${R.id}-${h.getVisibleLeafColumns().map(x=>x.id).join(",")}`):K("tr",{className:i("group/row",N&&"cursor-pointer select-none",h.getRowModel().rows.length>8&&R.index===h.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:N?x=>{vt(x)||N(R,x)}:void 0,children:R.getVisibleCells().map(x=>K("td",{className:i(io(x.column.id,!!N),"text-content-default group",so(x.column,R.index===h.getRowModel().rows.length-1),typeof v=="function"?v(x.column.id):v),style:{minWidth:x.column.columnDef.minSize,maxWidth:x.column.columnDef.maxSize,width:x.column.columnDef.size||"auto",...lo(x.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[K("div",{className:"min-w-0 shrink grow truncate",children:no(x.column.columnDef.cell,x.getContext())}),c==null?void 0:c(x)]})},x.id))},R.id))})]}),k]}):K("div",{className:"text-content-subtle flex h-96 w-full items-center justify-center text-sm",children:o||a||`No ${(C==null?void 0:C(!0))||"items"} found.`}),g&&!o&&!!(t!=null&&t.length)&&!!M&&pe("div",{className:"border-border-subtle bg-bg-default text-content-default sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t px-4 py-3.5 text-sm leading-6",children:[pe("div",{children:[K("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",pe("span",{className:"font-medium",children:[(g.pageIndex-1)*g.pageSize+1,"-",Math.min((g.pageIndex-1)*g.pageSize+g.pageSize,h.getRowCount())]})," ","of"," ",K("span",{className:"font-medium",children:h.getRowCount().toLocaleString()})," ",(C==null?void 0:C(h.getRowCount()!==1))||"items"]}),pe("div",{className:"flex items-center gap-2",children:[K(le,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>h.previousPage(),disabled:g.pageIndex===1}),K(le,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>h.nextPage(),disabled:g.pageIndex===h.getPageCount()})]})]}),K(Rd,{children:r&&K(Td.div,{initial:{opacity:0},animate:{opacity:1},className:"bg-bg-default/50 absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl",children:K(Ne,{})})})]})}var so=(e,t)=>{let r=e.getIsPinned();return i(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},lo=e=>{let t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative"}};import{LayoutGroup as Id,motion as En}from"framer-motion";import{useId as zd}from"react";import{jsx as hr,jsxs as Od}from"react/jsx-runtime";function gx({options:e,selected:t,selectAction:r,className:o,optionClassName:a,indicatorClassName:c,style:s}){let l=zd();return hr(Id,{id:l,children:hr(En.div,{layout:!0,className:i("border-border-subtle bg-bg-default relative z-0 inline-flex items-center gap-1 rounded-xl border p-1",o),style:s,children:e.map(u=>Od("button",{type:"button","data-selected":u.value===t,className:i("text-content-emphasis relative z-10 flex items-center gap-2 px-3 py-1 text-sm font-medium capitalize",{"hover:text-content-subtle z-[11] transition-colors":u.value!==t},a),onClick:()=>r(u.value),children:[typeof u.label=="string"?hr("p",{children:u.label}):u.label,u.badge,u.value===t&&hr(En.div,{layoutId:l,className:i("border-border-subtle bg-bg-muted absolute left-0 top-0 -z-[1] h-full w-full rounded-lg border",c),transition:{duration:.25}})]},u.value))})})}import{useEffect as _d,useId as Hd,useRef as Vd,useState as Bd}from"react";import{jsx as fe,jsxs as co}from"react/jsx-runtime";var Wd=[{key:"utm_source",icon:ua,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:Ca,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:ca,label:"Campaign",placeholder:"summer sale",description:"The name of the campaign"},{key:"utm_term",icon:xa,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:wa,label:"Content",placeholder:"logo link",description:"The content of the campaign"},{key:"ref",icon:da,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function Nx({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:c}){let{isMobile:s}=q(),l=Hd(),[u,d]=Bd(!1),n=Vd(null);return _d(()=>{n.current&&!s&&o&&setTimeout(()=>{var m;return(m=n.current)==null?void 0:m.focus()},10)},[]),fe("div",{className:i("grid gap-y-3",c),children:Wd.map(({key:m,icon:f,label:b,placeholder:v,description:h},g)=>fe("div",{className:"group relative",children:co("div",{className:"relative z-10 flex",children:[fe(J,{content:co("div",{className:"p-3 text-center text-xs",children:[fe("p",{className:"text-neutral-600",children:h}),fe("span",{className:"font-mono text-neutral-400",children:m})]}),sideOffset:4,disableHoverableContent:!0,children:co("div",{className:i("flex items-center gap-1.5 rounded-l-md border-y border-l border-neutral-300 bg-neutral-50 px-3 py-1.5 text-neutral-700",u?"sm:min-w-36":"sm:min-w-28"),onClick:()=>d(C=>!C),children:[fe(f,{className:"size-4 shrink-0"}),fe("label",{htmlFor:`${l}-${m}`,className:"select-none text-sm",children:u?fe("span",{className:"font-mono text-xs",children:m}):b})]})}),fe("div",{className:"min-w-0 grow",children:fe(Yt,{tooltipProps:a?{content:a,disableHoverableContent:!0}:void 0,children:fe("input",{type:"text",id:`${l}-${m}`,ref:g===0?n:void 0,placeholder:v,disabled:r||Boolean(a),className:"size-full rounded-r-md border border-neutral-300 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 disabled:cursor-not-allowed sm:text-sm",value:e[m]||"",onChange:C=>t(m,C.target.value)})})})]})},m))})}import{jsx as uo,jsxs as Fd}from"react/jsx-runtime";function Px(){return Fd("div",{style:vr.backgroundMain,children:[uo("div",{style:vr.backgroundMainBefore}),uo("div",{style:vr.backgroundMainAfter}),uo("div",{style:vr.backgroundContent})]})}var vr={backgroundMain:{width:"100vw",minHeight:"100vh",position:"fixed",zIndex:1,display:"flex",justifyContent:"center",padding:"120px 24px 160px 24px",pointerEvents:"none"},backgroundMainBefore:{background:"radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%)",position:"absolute",content:'""',zIndex:2,width:"100%",height:"100%",top:0},backgroundMainAfter:{content:'""',backgroundImage:"url(https://assets.dub.co/misc/grid.svg)",zIndex:1,position:"absolute",width:"100%",height:"100%",top:0,opacity:.4,filter:"invert(1)"},backgroundContent:{zIndex:3,width:"100%",maxWidth:"640px",backgroundImage:`radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
|
|
42
|
+
`,kd=60,Pd=1e3/kd;function Ix({dotSize:e=1,cellSize:t=3,speed:r=5,className:o}){let a=yd(null),[c,s]=wd(!1);return xd(()=>{let l=a.current;if(!l||!l.parentElement)return;let u=l.parentElement,d=window.devicePixelRatio||1;l.width=u.clientWidth*d,l.height=u.clientHeight*d;let n=l.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(n===null){alert("Failed to initialize WebGL");return}let m=n.createProgram();if(!m){console.error("Failed to create shader program");return}for(let R=0;R<2;++R){let x=R===0?Cd:Nd,T=n.createShader(R===0?n.VERTEX_SHADER:n.FRAGMENT_SHADER);if(!T){console.error("Failed to create shader");return}n.shaderSource(T,x),n.compileShader(T),n.getShaderParameter(T,n.COMPILE_STATUS)||console.error(n.getShaderInfoLog(T)),n.attachShader(m,T),n.linkProgram(m)}n.getProgramParameter(m,n.LINK_STATUS)||console.error(n.getProgramInfoLog(m));let f=n.getAttribLocation(m,"position"),b=n.getUniformLocation(m,"time"),v=n.getUniformLocation(m,"resolution"),h=n.getUniformLocation(m,"dotSize"),g=n.getUniformLocation(m,"cellSize"),C=n.getUniformLocation(m,"speed");n.useProgram(m);let N=[1,1,-1,1,1,-1,-1,-1],M=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,M),n.bufferData(n.ARRAY_BUFFER,new Float32Array(N),n.STATIC_DRAW),n.enableVertexAttribArray(f),n.vertexAttribPointer(f,2,n.FLOAT,!1,0,0),n.uniform1f(h,e*window.devicePixelRatio),n.uniform1f(g,t*window.devicePixelRatio),n.uniform1f(C,r);let k,w=0;function U(R){if(R-w<Pd){k=requestAnimationFrame(U);return}w=R,n&&l&&m&&(n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.uniform1f(b,R/1e3),n.uniform2f(v,l.width,l.height),n.drawArrays(n.TRIANGLE_STRIP,0,4)),k=requestAnimationFrame(U)}return k=requestAnimationFrame(U),l.addEventListener("webglcontextlost",R=>{R.preventDefault(),s(!0),cancelAnimationFrame(k)}),()=>{cancelAnimationFrame(k),l.removeEventListener("webglcontextlost",()=>{})}},[e,t,r]),An("div",{className:i("absolute inset-0",o,c&&"opacity-0"),children:An("canvas",{ref:a,width:"100%",height:"100%",className:"size-full"})})}import{useEffect as Sd,useId as Md,useRef as Rd}from"react";import{jsx as fr,jsxs as Dn}from"react/jsx-runtime";function Hx({value:e,onChange:t,label:r,placeholder:o='E.g. "tomorrow at 5pm" or "in 2 hours"',className:a,required:c,autoFocus:s=!1}){let l=Md(),u=Rd(null);return Sd(()=>{u.current&&s&&setTimeout(()=>{var d;(d=u.current)==null||d.focus()},10)},[s]),Dn("div",{className:a,children:[r&&fr("div",{className:"flex items-center gap-2",children:fr("label",{htmlFor:`${l}-datetime`,className:"block text-sm font-medium text-neutral-700",children:r})}),Dn("div",{className:"mt-2 flex w-full items-center justify-between rounded-md border border-neutral-300 bg-white shadow-sm transition-all focus-within:border-neutral-800 focus-within:outline-none focus-within:ring-1 focus-within:ring-neutral-500",children:[fr("input",{ref:u,id:`${l}-datetime`,type:"text",placeholder:o,defaultValue:e?ht(e):"",onBlur:d=>{if(d.target.value.length>0){let n=Lr(d.target.value);n&&(t(n),d.target.value=ht(n))}},onKeyDown:d=>{if(d.key==="Enter"&&u.current){d.preventDefault();let n=Lr(u.current.value);n&&(t(n),u.current.value=ht(n))}},className:"flex-1 border-none bg-transparent text-neutral-900 placeholder-neutral-400 focus:outline-none focus:ring-0 sm:text-sm"}),fr("input",{type:"datetime-local",id:`${l}-datetime-local`,required:c,value:e?To(e):"",onChange:d=>{let n=new Date(d.target.value);t(n),u.current&&(u.current.value=ht(n))},className:"w-[40px] border-none bg-transparent text-neutral-500 focus:outline-none focus:ring-0 sm:text-sm"})]})]})}import{cva as Td}from"class-variance-authority";import{jsx as In,jsxs as Ad}from"react/jsx-runtime";var Ld=Td("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-neutral-500/[.15] text-neutral-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),Ed={neutral:sa,new:na,success:aa,pending:ia,warning:Ar,error:Ar};function $x({className:e,variant:t,icon:r,tooltip:o,onClick:a,children:c,...s}){let l=r!==null?r??Ed[t??"neutral"]:null;return In(qt,{tooltipProps:{content:o},children:Ad("span",{className:i(Ld({variant:t}),o&&"cursor-help",a&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",e),onClick:a,...s,children:[l&&In(l,{className:"h-3 w-3 shrink-0"}),c]})})}import*as hr from"@radix-ui/react-switch";import{useMemo as Dd}from"react";import{jsx as gr}from"react/jsx-runtime";function Qx({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:c,checked:s=!0,loading:l=!1,disabled:u=!1,disabledTooltip:d}){let n=Dd(()=>d?!0:u||l,[d,u,l]),m=gr(hr.Root,{checked:l?!1:s,name:"switch",id:t,...e&&{onCheckedChange:e},disabled:n,className:i("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-neutral-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","data-[disabled]:cursor-not-allowed",r),children:gr(hr.Thumb,{className:i(`radix-state-checked:${a}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",o,a),children:c})});return d?gr(J,{content:d,children:gr("div",{className:"inline-block leading-none",children:m})}):m}import{flexRender as lo,getCoreRowModel as Id,useReactTable as zd}from"@tanstack/react-table";import{AnimatePresence as Od,motion as _d}from"framer-motion";import{memo as Hd,useEffect as vr,useMemo as Vd,useState as zn}from"react";import{jsx as K,jsxs as pe}from"react/jsx-runtime";var co=(e,t)=>i(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-border-subtle px-4 relative","border-l border-b",e==="menu"&&"bg-bg-default border-l-transparent py-0 px-1",t&&"group-hover/row:bg-bg-muted transition-colors duration-75"]),Bd=i(["absolute right-0 top-0 h-full w-1 cursor-col-resize select-none touch-none","bg-neutral-300/50","opacity-0 group-hover/resize:opacity-100 hover:opacity-100","group-hover/resize:bg-neutral-300 hover:bg-neutral-400","transition-all duration-200","-mr-px","after:absolute after:right-0 after:top-0 after:h-full after:w-4 after:translate-x-1/2"]);function N4(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:c,pagination:s,onPaginationChange:l,getRowId:u,enableColumnResizing:d=!1,columnResizeMode:n="onChange"}=e,[m,f]=zn(e.columnVisibility??{}),[b,v]=zn(e.selectedRows??{});vr(()=>{e.selectedRows&&!Er(e.selectedRows,b)&&v(e.selectedRows??{})},[e.selectedRows]),vr(()=>{var g;(g=e.onRowSelectionChange)==null||g.call(e,h.getSelectedRowModel().rows)},[b]),vr(()=>{e.columnVisibility&&!Er(e.columnVisibility,m)&&f(e.columnVisibility??{})},[e.columnVisibility]),vr(()=>{var g;(g=e.onColumnVisibilityChange)==null||g.call(e,m)},[m]);let h=zd({data:t,rowCount:r,columns:o,defaultColumn:{minSize:120,size:0,maxSize:300,enableResizing:d,...a},getCoreRowModel:Id(),onPaginationChange:l,onColumnVisibilityChange:g=>f(g),onRowSelectionChange:v,state:{pagination:s,columnVisibility:m,columnPinning:{left:[],right:[],...c},rowSelection:b},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0,getRowId:u,enableColumnResizing:d,columnResizeMode:n});return{...e,columnVisibility:m,table:h,enableColumnResizing:d}}var Wd=Hd(function({row:t,onRowClick:r,cellRight:o,tdClassName:a,table:c}){return K("tr",{className:i("group/row",r&&"cursor-pointer select-none",c.getRowModel().rows.length>8&&t.index===c.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:r?s=>{bt(s)||r(t,s)}:void 0,children:t.getVisibleCells().map(s=>K("td",{className:i(co(s.column.id,!!r),"text-content-default group",uo(s.column,t.index===c.getRowModel().rows.length-1),typeof a=="function"?a(s.column.id):a),style:{width:s.column.getSize(),...mo(s.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[K("div",{className:"min-w-0 shrink grow truncate",children:lo(s.column.columnDef.cell,s.getContext())}),o==null?void 0:o(s)]})},s.id))},t.id)},(e,t)=>{let r=e.row,o=t.row;return r.original===o.original&&r.getIsSelected()===o.getIsSelected()});function k4({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:c,sortBy:s,sortOrder:l,onSortChange:u,sortableColumns:d=[],className:n,containerClassName:m,scrollWrapperClassName:f,thClassName:b,tdClassName:v,table:h,pagination:g,resourceName:C,onRowClick:N,rowCount:M,children:k,enableColumnResizing:w=!1}){let U=Vd(()=>w?h.getVisibleLeafColumns().reduce((R,x)=>R+x.getSize(),0):"100%",[w,h.getVisibleLeafColumns()]);return pe("div",{className:i("border-border-subtle bg-bg-default relative rounded-xl border",m),children:[!o&&!!(t!=null&&t.length)||r?pe("div",{className:i("relative min-h-[400px] overflow-x-auto rounded-[inherit]",f),children:[pe("table",{className:i(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent","[&_th]:relative [&_th]:select-none",w&&"[&_th]:group/resize"],n),style:{width:"100%",tableLayout:w?"fixed":"auto",minWidth:U},children:[K("thead",{children:h.getHeaderGroups().map(R=>K("tr",{children:R.headers.map(x=>{let T=d.includes(x.column.id),B=T?"button":"div";return pe("th",{colSpan:x.colSpan,className:i(co(x.id),"text-content-emphasis select-none font-medium",uo(x.column,!h.getRowModel().rows.length),typeof b=="function"?b(x.column.id):b,w&&"relative"),style:{width:x.getSize(),...mo(x.column)},children:[K("div",{className:"flex items-center justify-between gap-6 !pr-0",children:pe(B,{className:"flex items-center gap-2",...T&&{type:"button",disabled:!T,"aria-label":"Sort by column",onClick:()=>u==null?void 0:u({sortBy:x.column.id,sortOrder:s!==x.column.id||l==="asc"?"desc":"asc"})},children:[x.isPlaceholder?null:lo(x.column.columnDef.header,x.getContext()),T&&s===x.column.id&&K(Wo,{className:"h-3 w-3 shrink-0",order:l||"desc"})]})}),w&&x.column.getCanResize()&&x.column.id!=="menu"&&K("div",{onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),onClick:P=>P.stopPropagation(),className:Bd})]},x.id)})},R.id))}),K("tbody",{children:h.getRowModel().rows.map(R=>w?K(Wd,{row:R,onRowClick:N,cellRight:c,tdClassName:v,table:h},`${R.id}-${h.getVisibleLeafColumns().map(x=>x.id).join(",")}`):K("tr",{className:i("group/row",N&&"cursor-pointer select-none",h.getRowModel().rows.length>8&&R.index===h.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:N?x=>{bt(x)||N(R,x)}:void 0,children:R.getVisibleCells().map(x=>K("td",{className:i(co(x.column.id,!!N),"text-content-default group",uo(x.column,R.index===h.getRowModel().rows.length-1),typeof v=="function"?v(x.column.id):v),style:{minWidth:x.column.columnDef.minSize,maxWidth:x.column.columnDef.maxSize,width:x.column.columnDef.size||"auto",...mo(x.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[K("div",{className:"min-w-0 shrink grow truncate",children:lo(x.column.columnDef.cell,x.getContext())}),c==null?void 0:c(x)]})},x.id))},R.id))})]}),k]}):K("div",{className:"text-content-subtle flex h-96 w-full items-center justify-center text-sm",children:o||a||`No ${(C==null?void 0:C(!0))||"items"} found.`}),g&&!o&&!!(t!=null&&t.length)&&!!M&&pe("div",{className:"border-border-subtle bg-bg-default text-content-default sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t px-4 py-3.5 text-sm leading-6",children:[pe("div",{children:[K("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",pe("span",{className:"font-medium",children:[(g.pageIndex-1)*g.pageSize+1,"-",Math.min((g.pageIndex-1)*g.pageSize+g.pageSize,h.getRowCount())]})," ","of"," ",K("span",{className:"font-medium",children:h.getRowCount().toLocaleString()})," ",(C==null?void 0:C(h.getRowCount()!==1))||"items"]}),pe("div",{className:"flex items-center gap-2",children:[K(le,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>h.previousPage(),disabled:g.pageIndex===1}),K(le,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>h.nextPage(),disabled:g.pageIndex===h.getPageCount()})]})]}),K(Od,{children:r&&K(_d.div,{initial:{opacity:0},animate:{opacity:1},className:"bg-bg-default/50 absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl",children:K(Ne,{})})})]})}var uo=(e,t)=>{let r=e.getIsPinned();return i(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},mo=e=>{let t=e.getIsPinned();return{left:t==="left"?`${e.getStart("left")}px`:void 0,right:t==="right"?`${e.getAfter("right")}px`:void 0,position:t?"sticky":"relative"}};import{LayoutGroup as Fd,motion as On}from"framer-motion";import{useId as Ud}from"react";import{jsx as br,jsxs as Gd}from"react/jsx-runtime";function T4({options:e,selected:t,selectAction:r,className:o,optionClassName:a,indicatorClassName:c,style:s}){let l=Ud();return br(Fd,{id:l,children:br(On.div,{layout:!0,className:i("border-border-subtle bg-bg-default relative z-0 inline-flex items-center gap-1 rounded-xl border p-1",o),style:s,children:e.map(u=>Gd("button",{type:"button","data-selected":u.value===t,className:i("text-content-emphasis relative z-10 flex items-center gap-2 px-3 py-1 text-sm font-medium capitalize",{"hover:text-content-subtle z-[11] transition-colors":u.value!==t},a),onClick:()=>r(u.value),children:[typeof u.label=="string"?br("p",{children:u.label}):u.label,u.badge,u.value===t&&br(On.div,{layoutId:l,className:i("border-border-subtle bg-bg-muted absolute left-0 top-0 -z-[1] h-full w-full rounded-lg border",c),transition:{duration:.25}})]},u.value))})})}import{useEffect as $d,useId as Kd,useRef as jd,useState as Yd}from"react";import{jsx as fe,jsxs as po}from"react/jsx-runtime";var qd=[{key:"utm_source",icon:ga,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:Sa,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:pa,label:"Campaign",placeholder:"summer sale",description:"The name of the campaign"},{key:"utm_term",icon:Na,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:Pa,label:"Content",placeholder:"logo link",description:"The content of the campaign"},{key:"ref",icon:fa,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function _4({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:c}){let{isMobile:s}=q(),l=Kd(),[u,d]=Yd(!1),n=jd(null);return $d(()=>{n.current&&!s&&o&&setTimeout(()=>{var m;return(m=n.current)==null?void 0:m.focus()},10)},[]),fe("div",{className:i("grid gap-y-3",c),children:qd.map(({key:m,icon:f,label:b,placeholder:v,description:h},g)=>fe("div",{className:"group relative",children:po("div",{className:"relative z-10 flex",children:[fe(J,{content:po("div",{className:"p-3 text-center text-xs",children:[fe("p",{className:"text-neutral-600",children:h}),fe("span",{className:"font-mono text-neutral-400",children:m})]}),sideOffset:4,disableHoverableContent:!0,children:po("div",{className:i("flex items-center gap-1.5 rounded-l-md border-y border-l border-neutral-300 bg-neutral-50 px-3 py-1.5 text-neutral-700",u?"sm:min-w-36":"sm:min-w-28"),onClick:()=>d(C=>!C),children:[fe(f,{className:"size-4 shrink-0"}),fe("label",{htmlFor:`${l}-${m}`,className:"select-none text-sm",children:u?fe("span",{className:"font-mono text-xs",children:m}):b})]})}),fe("div",{className:"min-w-0 grow",children:fe(qt,{tooltipProps:a?{content:a,disableHoverableContent:!0}:void 0,children:fe("input",{type:"text",id:`${l}-${m}`,ref:g===0?n:void 0,placeholder:v,disabled:r||Boolean(a),className:"size-full rounded-r-md border border-neutral-300 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500 disabled:cursor-not-allowed sm:text-sm",value:e[m]||"",onChange:C=>t(m,C.target.value)})})})]})},m))})}import{jsx as fo,jsxs as Zd}from"react/jsx-runtime";function V4(){return Zd("div",{style:xr.backgroundMain,children:[fo("div",{style:xr.backgroundMainBefore}),fo("div",{style:xr.backgroundMainAfter}),fo("div",{style:xr.backgroundContent})]})}var xr={backgroundMain:{width:"100vw",minHeight:"100vh",position:"fixed",zIndex:1,display:"flex",justifyContent:"center",padding:"120px 24px 160px 24px",pointerEvents:"none"},backgroundMainBefore:{background:"radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%)",position:"absolute",content:'""',zIndex:2,width:"100%",height:"100%",top:0},backgroundMainAfter:{content:'""',backgroundImage:"url(https://assets.dub.co/misc/grid.svg)",zIndex:1,position:"absolute",width:"100%",height:"100%",top:0,opacity:.4,filter:"invert(1)"},backgroundContent:{zIndex:3,width:"100%",maxWidth:"640px",backgroundImage:`radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
|
|
43
43
|
radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 1) 0px, transparent 50%),
|
|
44
44
|
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
|
|
45
45
|
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
|
|
46
46
|
radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 1) 0px, transparent 50%),
|
|
47
47
|
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
|
|
48
|
-
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%)`,position:"absolute",height:"100%",filter:"blur(100px) saturate(150%)",top:"80px",opacity:.15}};import Su from"next/image";import Ve from"next/link";import{useParams as Mu}from"next/navigation";import{jsx as An}from"react/jsx-runtime";function Dn(e){return An("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:An("path",{d:"M10.1552 10.5H5.8442C3.15868 10.5 0.840663 8.4364 0.706388 5.75088C0.565045 2.88163 2.86186 0.5 5.70285 0.5H10.1622C12.9184 0.5 15.3071 2.74028 15.3 5.50353C15.3 5.95583 14.9325 6.32332 14.4732 6.32332H3.8442C3.61805 6.32332 3.4343 6.13958 3.4343 5.91343V5.08657C3.4343 4.86042 3.61805 4.67668 3.8442 4.67668H13.2647C12.8972 3.22792 11.5827 2.14664 10.0138 2.14664H6.10568C4.32476 2.14664 2.76292 3.4894 2.64278 5.27032C2.51557 7.22085 4.06328 8.85336 5.98554 8.85336H10.1552C11.2435 8.85336 12.1198 8.33039 12.7488 7.43993L12.9891 7.10777C13.1233 6.92403 13.3778 6.88163 13.5615 7.00883L14.5156 7.4894C14.6993 7.62367 14.7417 7.87809 14.6145 8.06184L14.3742 8.39399C13.4414 9.71555 11.7806 10.5 10.1552 10.5Z",fill:"currentColor"})})}var br=[{title:"Dub Links",description:"Short links with superpowers",icon:ha,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:ya,href:"/analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:Vt,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Ht,href:"/integrations"}],In=[{icon:Wo,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:Bo,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:Dn,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],mo=[{icon:Ko,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/sdks/typescript"},{icon:Go,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/sdks/python"},{icon:Fo,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/sdks/go"},{icon:$o,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/sdks/ruby"},{icon:Uo,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/sdks/php"}],zn=[{icon:Bt,title:"Marketing Attribution",description:"Easily track and measure marketing impact",href:"/analytics"},{icon:Wt,title:"Content Creators",description:"Intelligent audience insights and link tracking",href:"/solutions/creators"},{icon:Ut,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"},{label:"SDKs",items:mo}],xr=[{icon:Yo,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:pa,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:la,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:qo,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:fa,title:"Customers",description:"Success stories and use cases",href:"/customers"},{icon:ga,title:"Dub Brand",description:"Logos, wordmark, etc.",href:"/brand"}],yr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],On=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}],Lx=[{name:"X (Twitter)",icon:Ot,href:"https://x.com/dubdotco"},{name:"LinkedIn",icon:zt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:It,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:_t,href:"https://www.youtube.com/@dubdotco"}];import{jsx as Ud}from"react/jsx-runtime";function wr({className:e,children:t}){return Ud("div",{className:i("mx-auto w-full max-w-screen-xl px-3 lg:px-10",e),children:t})}import*as He from"@radix-ui/react-popover";import{BoxSelect as gu,Home as hu,LayoutGrid as vu,Type as bu}from"lucide-react";import{useParams as xu}from"next/navigation";import{useCallback as yu,useContext as wu,useState as Cu}from"react";import{toast as Nu}from"sonner";import{jsx as _n}from"react/jsx-runtime";function po({className:e}){return _n("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black dark:text-white",e),children:_n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}import*as ue from"@radix-ui/react-navigation-menu";import{LayoutGroup as Qd}from"framer-motion";import Tt from"next/link";import{useParams as eu,usePathname as tu}from"next/navigation";import{createContext as ru,useId as ou}from"react";import au from"swr";import{Link as Fn}from"@radix-ui/react-navigation-menu";import Un from"next/link";import{jsx as S,jsxs as fo}from"react/jsx-runtime";function Hn(e){return fo("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...e,className:i("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",e.className),children:[fo("g",{className:"text-[var(--grid)]",children:[S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M12.667 1h48v48h-48zM60.667 1h48v48h-48zM108.667 1h48v48h-48zM156.667 1h48v48h-48zM204.667 1h48v48h-48zM252.667 1h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 1h48v48h-48zM12.667 49h48v48h-48zM60.667 49h48v48h-48zM108.667 49h48v48h-48zM156.667 49h48v48h-48zM204.667 49h48v48h-48zM252.667 49h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 49h48v48h-48zM12.667 97h48v48h-48zM60.667 97h48v48h-48zM108.667 97h48v48h-48zM156.667 97h48v48h-48zM204.667 97h48v48h-48zM252.667 97h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 97h48v48h-48zM12.667 145h48v48h-48zM60.667 145h48v48h-48zM108.667 145h48v48h-48zM156.667 145h48v48h-48zM204.667 145h48v48h-48zM252.667 145h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 145h48v48h-48zM12.667 193h48v48h-48zM60.667 193h48v48h-48zM108.667 193h48v48h-48zM156.667 193h48v48h-48zM204.667 193h48v48h-48zM252.667 193h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 193h48v48h-48zM12.667 241h48v48h-48zM60.667 241h48v48h-48zM108.667 241h48v48h-48zM156.667 241h48v48h-48zM204.667 241h48v48h-48zM252.667 241h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),S("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),S("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),S("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"232.909",children:"402"})}),S("g",{filter:"url(#a)",children:S("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),S("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),S("defs",{children:fo("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[S("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),S("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),S("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),S("feOffset",{dy:"2"}),S("feGaussianBlur",{stdDeviation:"1"}),S("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),S("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),S("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}import{useId as Gd}from"react";import{jsx as p,jsxs as V}from"react/jsx-runtime";function Vn(e){let t=Gd();return V("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...e,className:i("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",e.className),children:[V("g",{clipPath:`url(#${t}-a)`,children:[p("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M0 0h48v48H0zM48 0h48v48H48zM96 0h48v48H96zM144 0h48v48h-48zM192 0h48v48h-48zM240 0h48v48h-48zM288 0h48v48h-48zM0 48h48v48H0zM48 48h48v48H48zM96 48h48v48H96zM144 48h48v48h-48zM192 48h48v48h-48zM240 48h48v48h-48zM288 48h48v48h-48zM0 96h48v48H0zM48 96h48v48H48zM96 96h48v48H96zM144 96h48v48h-48zM192 96h48v48h-48zM240 96h48v48h-48zM288 96h48v48h-48zM0 144h48v48H0zM48 144h48v48H48zM96 144h48v48H96zM144 144h48v48h-48zM192 144h48v48h-48zM240 144h48v48h-48zM288 144h48v48h-48zM0 192h48v48H0zM48 192h48v48H48zM96 192h48v48H96zM144 192h48v48h-48zM192 192h48v48h-48zM240 192h48v48h-48zM288 192h48v48h-48zM0 240h48v48H0zM48 240h48v48H48zM96 240h48v48H96zM144 240h48v48h-48zM192 240h48v48h-48zM240 240h48v48h-48zM288 240h48v48h-48zM0 288h48v48H0zM48 288h48v48H48zM96 288h48v48H96zM144 288h48v48h-48zM192 288h48v48h-48zM240 288h48v48h-48zM288 288h48v48h-48z"}),p("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),p("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),p("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),p("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),p("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),p("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),p("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),p("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),p("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),p("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),p("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),p("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),p("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),p("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),V("g",{children:[p("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M235.276 100.891a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.389 96.333a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M235.276 91.776a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.367 102.288a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 98.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 93.868a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.368 90.38a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M238.889 243.778h-3.556a1.777 1.777 0 0 1-1.777-1.778v-4c0-.982.795-1.778 1.777-1.778h9.334c.982 0 1.777.796 1.777 1.778v.222"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M236.889 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778M240 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778"}),p("path",{fill:"currentColor",fillOpacity:"0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M246 242.889h-3.556a.89.89 0 0 0-.888.889v1.777c0 .491.398.889.888.889H246a.89.89 0 0 0 .889-.889v-1.777a.89.89 0 0 0-.889-.889"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M188.667 90h-2a.666.666 0 0 0-.667.667v2c0 .368.298.666.667.666h2a.666.666 0 0 0 .666-.666v-2a.666.666 0 0 0-.666-.667M197.333 90h-2a.666.666 0 0 0-.666.667v2c0 .368.298.666.666.666h2a.667.667 0 0 0 .667-.666v-2a.667.667 0 0 0-.667-.667M188.667 98.667h-2a.666.666 0 0 0-.667.666v2c0 .368.298.667.667.667h2a.667.667 0 0 0 .666-.667v-2a.666.666 0 0 0-.666-.666M198 98.667h-2a1.333 1.333 0 0 0-1.333 1.333v2M198 102v.01M192 92.667v2A1.334 1.334 0 0 1 190.667 96h-2M186 96h.01M192 90h.01M192 98.667v.01M194.667 96h.666M198 96v.01M192 102v-.667"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M192 246.445a6.445 6.445 0 1 0-.002-12.89 6.445 6.445 0 0 0 .002 12.89M192 238.222v-2M193.778 240h2M192 241.778v2M190.222 240h-2"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M148.667 90h-9.334c-.736 0-1.333.597-1.333 1.333v9.334c0 .736.597 1.333 1.333 1.333h9.334c.736 0 1.333-.597 1.333-1.333v-9.334c0-.736-.597-1.333-1.333-1.333"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M142 95.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666M150 98l-2.057-2.057a1.334 1.334 0 0 0-1.886 0L140 102"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M138.889 234h4.375c.471 0 .924.188 1.257.521l5.111 5.111c.694.694.694 1.82 0 2.514l-3.486 3.486a1.78 1.78 0 0 1-2.514 0l-5.111-5.111a1.78 1.78 0 0 1-.521-1.257v-4.375c0-.491.398-.889.889-.889"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M141.556 238.667a1.112 1.112 0 1 0-.002-2.224 1.112 1.112 0 0 0 .002 2.224"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m97.258 101.854 4.596-4.597a1.777 1.777 0 0 0 0-2.514l-4.596-4.597a1.78 1.78 0 0 0-2.514 0l-4.597 4.597a1.78 1.78 0 0 0 0 2.514l4.597 4.597c.694.694 1.82.694 2.514 0"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M92.667 246.444a2.222 2.222 0 1 0 .001-4.443 2.222 2.222 0 0 0-.001 4.443M99.333 246.444a2.222 2.222 0 1 0 .002-4.443 2.222 2.222 0 0 0-.002 4.443M98.563 233.556h-5.126a.89.89 0 0 0-.88.763l-.335 2.348-2.666 2.666h12.888l-2.666-2.666-.335-2.348a.89.89 0 0 0-.88-.763M92.222 236.667h7.556"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),p("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:p("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),p("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:p("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),p("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),V("g",{children:[p("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),p("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),p("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),p("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:p("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),p("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),p("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),p("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:p("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),p("path",{className:"text-[var(--fg)]",fill:"currentColor",fillOpacity:"0.04",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),p("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),p("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:p("path",{d:"m240.395 167.185 4.876 1.673c.148.051.15.259.004.313l-2.186.822a.17.17 0 0 0-.097.098l-.822 2.186a.166.166 0 0 1-.313-.005l-1.674-4.876a.167.167 0 0 1 .212-.212zM243.019 170.021l2.808 2.808M240.165 163.167v1.333M242.995 164.338l-.943.943M237.338 169.995l.943-.943M236.166 167.166h1.333M237.338 164.338l.943.943"})}),p("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:p("tspan",{x:"251",y:"171.636",children:"51K"})})]}),V("defs",{children:[V("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EAB308",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#EAB308"})]}),V("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EAB308",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#EAB308"})]}),V("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#030712",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),V("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[p("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),p("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),p("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),V("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[p("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),p("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),p("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),p("clipPath",{id:`${t}-a`,children:p("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),p("clipPath",{id:`${t}-y`,children:p("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),p("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:p("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),p("image",{href:`${Dt}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}import{Link as Bn}from"@radix-ui/react-navigation-menu";import Wn from"next/link";import{jsx as we,jsxs as Cr}from"react/jsx-runtime";var st="text-xs uppercase text-neutral-500 dark:text-white/60",$d="group rounded-[8px] p-2 transition-colors hover:bg-neutral-50 active:bg-neutral-100 dark:hover:bg-white/[0.15] dark:active:bg-white/20",te=({domain:e,...t})=>({utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,...t});function lt({icon:e,title:t,description:r,descriptionLines:o=1,className:a,showArrow:c,...s}){return we(Bn,{asChild:!0,children:we(Wn,{className:i($d,a),...s,children:Cr("div",{className:"flex items-center justify-between gap-3",children:[e,Cr("div",{className:"flex-1",children:[we("p",{className:"text-sm font-medium text-neutral-700 dark:text-white",children:t}),r&&we("p",{className:i("text-xs text-neutral-500 dark:text-white/60",["line-clamp-1","line-clamp-2"][o-1]),children:r})]}),c&&we(Io,{className:"invisible -ml-6 h-4 w-4 text-neutral-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})})}function Nr({icon:e,title:t,description:r,iconClassName:o,...a}){return we(Bn,{asChild:!0,children:we(Wn,{...a,className:"group relative flex flex-col justify-center rounded-xl border border-neutral-100 bg-neutral-50 transition-colors duration-150 hover:bg-neutral-100 active:bg-neutral-200 dark:border-white/20 dark:bg-white/10 dark:hover:bg-white/15 dark:active:bg-white/20",children:Cr("div",{className:"flex items-center justify-between px-5 py-4",children:[Cr("div",{children:[we("span",{className:"text-sm font-medium leading-none text-neutral-900 dark:text-white",children:t}),we("p",{className:"mt-1 text-sm text-neutral-500 dark:text-white/60",children:r})]}),we(e,{className:i("size-6 text-neutral-700 dark:text-neutral-200",o)})]})})})}import{jsx as j,jsxs as Te}from"react/jsx-runtime";var Kd=[{title:"Dub API",description:"Programmatic link creation at scale",icon:Vt,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Ht,href:"/integrations"}];function Gn({domain:e}){return Te("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200 dark:divide-white/20",children:[Te("div",{className:"grid grid-cols-2 gap-4 p-4",children:[j(Fn,{asChild:!0,children:Te(Un,{href:z("/home",e,te({domain:e,utm_content:"Dub Links"})),className:"group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[Te("div",{className:"p-5 pb-0",children:[j("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),j("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:"Short links with superpowers for the modern marketer"})]}),j("div",{className:"relative grow overflow-hidden",children:j(Vn,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),j("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#f4950c,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"})]})}),Te("div",{className:"flex flex-col gap-4",children:[j(Fn,{asChild:!0,children:Te(Un,{href:z("/analytics",e,te({domain:e,utm_content:"Dub Analytics"})),className:"group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[j(Hn,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),j("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#36D78F,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"}),Te("div",{className:"h-56 p-5",children:[j("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),j("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]})}),j("div",{className:"grid grow grid-rows-2 gap-4",children:Kd.map(({title:t,description:r,icon:o,href:a})=>j(Nr,{title:t,description:r,icon:o,href:z(a,e,te({domain:e,utm_content:t}))},t))})]})]}),Te("div",{className:"px-6 py-4",children:[j("p",{className:i(st,"mb-2"),children:"Customer Stories"}),Te("div",{className:"grid grid-cols-1",children:[In.map(({icon:t,iconClassName:r,title:o,description:a,href:c})=>j(lt,{className:"-mx-2",href:z(c,e,te({domain:e,utm_content:o})),icon:j("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:j(t,{className:i("h-4 w-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},c)),j(lt,{className:"-mx-2",href:z("/customers",e,te({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),j("p",{className:i(st,"mb-2 mt-5"),children:"Compare"}),j("div",{className:"flex flex-col",children:yr.map(({name:t,slug:r})=>j(lt,{className:"-mx-2",href:z(`/compare/${r}`,e,te({domain:e,utm_content:`Dub vs. ${t}`})),title:`Dub vs. ${t}`,showArrow:!0},r))})]})]})}import{Link as Kn}from"@radix-ui/react-navigation-menu";import Yd from"next/image";import jn from"next/link";import{useId as jd}from"react";import{jsx as y,jsxs as ct}from"react/jsx-runtime";function $n({className:e,...t}){let r=jd();return ct("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"114",viewBox:"0 0 247 114",fill:"none",className:i("",e),...t,children:[y("path",{stroke:"#fff",strokeWidth:"0.089",d:"M147.901 0v113.578M141.661 0v113.578M132.924 0v113.578M108.854 0v113.578M100.116 0v113.578M93.876 0v113.578M85.139 0v113.578M52.509 0v113.578M156.639 0v113.578M189.267 0v113.578m56.79-85.496H0M246.057 43.06H0m246.057 41.544H0",opacity:"0.3"}),ct("g",{opacity:"0.5",children:[y("mask",{id:`${r}-a`,width:"187",height:"89",x:"27",y:"12",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:y("ellipse",{cx:"120.71",cy:"56.432",fill:"#D9D9D9",rx:"92.717",ry:"44.041"})}),y("g",{stroke:"#fff",strokeWidth:"0.089",mask:`url(#${r}-a)`,children:y("path",{d:"M147.901 0v113.578M141.661 0v113.578M132.924 0v113.578M108.853 0v113.578M100.116 0v113.578M93.876 0v113.578M85.139 0v113.578M52.509 0v113.578M156.639 0v113.578M189.267 0v113.578m56.789-85.496H-.001M246.056 43.06H-.001m246.057 41.544H-.001"})})]}),y("g",{filter:`url(#${r}-b)`,opacity:"0.3",children:y("path",{fill:"#fff",fillOpacity:"0.077",fillRule:"evenodd",d:"M147.733 29.33c0-.787.639-1.426 1.427-1.426h6.094c.788 0 1.427.639 1.427 1.427V46.57a20.77 20.77 0 0 1 11.93-3.745c11.531 0 20.878 9.353 20.878 20.89s-9.347 20.89-20.878 20.89c-11.53 0-20.878-9.353-20.878-20.89zm20.878 46.32c6.588 0 11.93-5.343 11.93-11.936 0-6.592-5.342-11.936-11.93-11.936-6.589 0-11.931 5.344-11.931 11.936 0 6.593 5.342 11.937 11.931 11.937M85.099 29.33c0-.787.639-1.426 1.427-1.426h6.095c.787 0 1.426.639 1.426 1.427v34.166a20 20 0 0 1 0 .436v19.245c0 .788-.639 1.426-1.426 1.426h-6.095a1.426 1.426 0 0 1-1.427-1.426V80.86a20.77 20.77 0 0 1-11.93 3.743c-11.53 0-20.877-9.352-20.877-20.89 0-11.536 9.347-20.889 20.878-20.889 4.435 0 8.548 1.384 11.93 3.744zM73.17 75.652c6.589 0 11.93-5.344 11.93-11.936 0-6.593-5.341-11.937-11.93-11.937s-11.93 5.344-11.93 11.937S66.58 75.65 73.17 75.65m28.27-32.826c-.788 0-1.427.639-1.427 1.427v19.463a20.9 20.9 0 0 0 6.116 14.77 20.87 20.87 0 0 0 29.526 0 20.9 20.9 0 0 0 6.115-14.77h-.001V44.252c0-.788-.639-1.427-1.427-1.427h-6.095c-.787 0-1.426.639-1.426 1.427v19.463a11.94 11.94 0 0 1-3.494 8.44 11.929 11.929 0 0 1-20.366-8.44V44.252c0-.788-.639-1.427-1.426-1.427z",clipRule:"evenodd"})}),y("path",{fill:`url(#${r}-c)`,fillOpacity:"0.4",stroke:`url(#${r}-d)`,strokeWidth:"0.233",d:"M93.926 63.996v20.577H85.21v-3.85l-.183.127a20.66 20.66 0 0 1-11.865 3.723c-11.468 0-20.765-9.302-20.765-20.776s9.297-20.776 20.765-20.776a20.66 20.66 0 0 1 11.865 3.723l.183.128V28.098h8.716v35.898Zm53.925-.199V28.098h8.717v18.775l.182-.128a20.66 20.66 0 0 1 11.866-3.724c11.468 0 20.765 9.302 20.765 20.776s-9.297 20.776-20.765 20.776-20.765-9.301-20.765-20.776Zm-6.198 0v.116h.001a20.8 20.8 0 0 1-6.082 14.575 20.757 20.757 0 0 1-29.366 0 20.79 20.79 0 0 1-6.082-14.69V43.02h8.717v20.776a12.047 12.047 0 1 0 24.096 0V43.021h8.716zM73.162 75.851c6.654 0 12.048-5.397 12.048-12.054 0-6.658-5.394-12.055-12.048-12.055S61.114 57.14 61.114 63.797 66.508 75.85 73.162 75.85Zm95.454 0c6.654 0 12.048-5.397 12.048-12.054 0-6.658-5.394-12.055-12.048-12.055s-12.048 5.397-12.048 12.055 5.394 12.054 12.048 12.054Z"}),y("circle",{cx:"85.073",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"147.866",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"147.866",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"180.426",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"189.496",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"99.957",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"99.957",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"120.888",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"112.516",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"101.586",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"139.959",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"129.494",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"120.888",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"141.82",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"141.82",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"61.118",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"52.281",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),ct("defs",{children:[ct("linearGradient",{id:`${r}-c`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[y("stop",{stopColor:"#fff",stopOpacity:"0"}),y("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0.3"})]}),ct("linearGradient",{id:`${r}-d`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[y("stop",{stopColor:"#5B5B5B"}),y("stop",{offset:"1",stopColor:"#757575"})]}),ct("filter",{id:`${r}-b`,width:"154.246",height:"73.748",x:"43.768",y:"19.38",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[y("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"4.262"}),y("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_7_2"}),y("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_7_2",result:"shape"}),y("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y("feOffset",{dx:"-0.991",dy:"0.991"}),y("feGaussianBlur",{stdDeviation:"0.496"}),y("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),y("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.354 0"}),y("feBlend",{in2:"shape",result:"effect2_innerShadow_7_2"}),y("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y("feOffset",{dx:"0.991",dy:"-0.991"}),y("feGaussianBlur",{stdDeviation:"0.496"}),y("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),y("feColorMatrix",{values:"0 0 0 0 0.84 0 0 0 0 0.84 0 0 0 0 0.84 0 0 0 0.354 0"}),y("feBlend",{in2:"effect2_innerShadow_7_2",result:"effect3_innerShadow_7_2"}),y("feGaussianBlur",{result:"effect4_foregroundBlur_7_2",stdDeviation:"0.357"})]})]})]})}import{jsx as ee,jsxs as qe}from"react/jsx-runtime";var qd=[{title:"Docs",description:"Platform documentation",thumbnail:"https://assets.dub.co/misc/docs-thumbnail.jpg",href:"/docs/introduction"},{title:"Help Center",description:"Answers to your questions",thumbnail:"https://assets.dub.co/misc/help-thumbnail.jpg",href:"/help"}];function Yn({domain:e}){return qe("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.45fr] divide-x divide-neutral-200 dark:divide-white/20",children:[ee("div",{className:"grid grid-cols-2 gap-4 p-4",children:qd.map(({title:t,description:r,thumbnail:o,href:a})=>ee(Kn,{asChild:!0,children:qe(jn,{href:z(a,e,te({domain:e,utm_content:t})),className:i("group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 transition-colors duration-75 hover:bg-neutral-100/80","dark:border-white/20 dark:bg-white/10 dark:hover:bg-white/15"),children:[qe("div",{className:"p-5 pb-0",children:[ee("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:t}),ee("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:r})]}),ee("div",{className:"relative mt-7 grow overflow-hidden pl-5 [mask-image:linear-gradient(90deg,black_50%,transparent)]",children:ee("div",{className:i("relative size-full overflow-hidden rounded-tl-lg border-l border-t border-black/10","[mask-image:linear-gradient(black_50%,transparent)]"),children:ee(Yd,{src:o,alt:`${t} thumbnail`,fill:!0,className:"bg-white object-cover object-left-top grayscale transition-[filter] duration-75 group-hover:grayscale-0 dark:opacity-50"})})})]},t)},t))}),qe("div",{className:"flex flex-col gap-4 p-4",children:[xr.filter(({title:t})=>!["Docs","Help Center","Dub Brand"].includes(t)).map(({title:t,description:r,icon:o,href:a})=>ee(Nr,{title:t,description:r,icon:o,iconClassName:"size-5",href:z(a,e,te({domain:e,utm_content:t}))},t)),ee(Kn,{asChild:!0,children:qe(jn,{href:z("/brand",e,te({domain:e,utm_content:"Dub Brand"})),className:"group relative flex flex-col overflow-hidden rounded-xl bg-black transition-colors duration-75 dark:border dark:border-white/20",children:[qe("div",{className:"pointer-events-none absolute inset-0",children:[ee("div",{className:"absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:ee("div",{className:i("absolute inset-0 rounded-xl","bg-[radial-gradient(20%_80%_at_50%_100%,#fd3a4e,transparent),radial-gradient(30%_80%_at_40%_50%,#855afc,transparent),radial-gradient(30%_80%_at_60%_50%,#72fe7d,transparent),radial-gradient(30%_100%_at_50%_50%,#e4c795,transparent)]")})}),ee($n,{className:"absolute right-0 top-1/2 h-auto w-full -translate-y-1/2 translate-x-[33%] [mask-image:linear-gradient(90deg,#000a,transparent)]"})]}),ee("div",{className:"relative flex items-center justify-between px-5 py-4",children:qe("div",{children:[ee("span",{className:"block text-sm font-medium text-white",children:"Dub Brand"}),ee("p",{className:"text-sm text-white/60",children:"Logos, wordmark, etc."})]})})]})})]})]})}import{Link as Zd}from"@radix-ui/react-navigation-menu";import Xd from"next/link";import{jsx as re,jsxs as dt}from"react/jsx-runtime";var Jd=[{icon:Bt,title:"Marketing Attribution",description:"Easily track and measure marketing impact",href:"/analytics"},{icon:Wt,title:"Content Creators",description:"Intelligent audience insights and link tracking",href:"/solutions/creators"},{icon:Ut,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"}];function qn({domain:e}){return dt("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200 dark:divide-white/20",children:[dt("div",{className:"flex h-full flex-col p-4",children:[re("p",{className:i(st,"mb-4 ml-2"),children:"Use case"}),re("div",{className:"grid grow grid-cols-3 gap-4",children:Jd.map(({icon:t,title:r,description:o,href:a})=>re(Zd,{asChild:!0,children:dt(Xd,{href:z(a,e,te({domain:e,utm_content:r})),className:i("group relative isolate z-0 flex flex-col justify-between overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 px-5 py-4 transition-colors duration-75","dark:border-white/20 dark:bg-neutral-900"),children:[dt("div",{className:"absolute inset-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:[re("div",{className:"absolute -inset-[25%] -skew-y-12 [mask-image:linear-gradient(225deg,black,transparent_50%)]",children:re(fn,{cellSize:46,patternOffset:[0,-14],className:"translate-y-2 text-[#ad1f3288] transition-transform duration-150 ease-out group-hover:translate-y-0"})}),re("div",{className:i("absolute -inset-[10%] opacity-10 blur-[50px] dark:brightness-150","bg-[conic-gradient(#F35066_0deg,#F35066_117deg,#9071F9_180deg,#5182FC_240deg,#F35066_360deg)]")})]}),re(t,{className:"relative size-5 text-neutral-700 dark:text-white/60"}),dt("div",{className:"relative",children:[re("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:r}),re("p",{className:"mt-2 text-xs text-neutral-500 dark:text-white/60",children:o})]})]},r)},r))})]}),dt("div",{className:"px-6 py-4",children:[re("p",{className:i(st,"mb-2"),children:"SDKs"}),re("div",{className:"flex flex-col gap-0.5",children:mo.map(({icon:t,iconClassName:r,title:o,href:a})=>re(lt,{className:"-mx-2",href:z(a,e,te({domain:e,utm_content:o})),icon:re("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:re(t,{className:i("size-5 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,showArrow:!0},a))})]})]})}import{Fragment as su,jsx as W,jsxs as ut}from"react/jsx-runtime";var go=ru({theme:"light"}),ho=[{name:"Product",content:Gn,childItems:br,segments:["/home","/analytics","/features","/compare","/integrations"]},{name:"Solutions",content:qn,childItems:zn,segments:["/solutions","/sdks"]},{name:"Resources",content:Yn,childItems:xr,segments:["/docs","/help","/brand","/blog","/changelog","/customers"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Zn=i("relative group/item flex items-center rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function V5({theme:e="light",staticDomain:t,maxWidthWrapperClassName:r}){let{domain:o="dub.co"}=eu();t&&(o=t);let a=ou(),c=Fa(40),s=tu(),{data:l,isLoading:u}=au(o.endsWith("dub.co")&&"/api/auth/session",ge,{dedupingInterval:6e4});return W(go.Provider,{value:{theme:e},children:W(Qd,{id:a,children:ut("div",{className:i("sticky inset-x-0 top-0 z-30 w-full transition-all",e==="dark"&&"dark"),children:[W("div",{className:i("absolute inset-0 block border-b border-transparent transition-all",c&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),W(wr,{className:i("relative",r),children:ut("div",{className:"flex h-14 items-center justify-between",children:[W("div",{className:"grow basis-0",children:W(Tt,{className:"block w-fit py-2 pr-2",href:z("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:W(kr,{})})}),ut(ue.Root,{delayDuration:0,className:"relative hidden lg:block",children:[W(ue.List,{className:"group relative z-0 flex",children:ho.map(({name:d,href:n,segments:m,content:f})=>{let b=m.some(v=>s==null?void 0:s.startsWith(v));return ut(ue.Item,{children:[W(iu,{trigger:!!f,children:n!==void 0?W(Tt,{id:`nav-${n}`,href:z(n,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:d}),className:Zn,"data-active":b,children:d}):ut("button",{className:Zn,"data-active":b,children:[d,W(nu,{className:"ml-1.5 size-2.5 text-neutral-700"})]})}),f&&W(ue.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:W(f,{domain:o})})]},d)})}),W("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:W(ue.Viewport,{className:i("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-neutral-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),W("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:l&&Object.keys(l).length>0?W(Tt,{href:Ce,className:i(se({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):u?null:ut(su,{children:[W(Tt,{href:"https://app.dub.co/login",className:i(se({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),W(Tt,{href:"https://app.dub.co/register",className:i(se({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function nu(e){return W("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",fill:"none",viewBox:"0 0 9 9",...e,children:W("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.278 3.389 4.5 6.167 1.722 3.389",className:"transition-transform duration-150 [transform-box:view-box] [transform-origin:center] [vector-effect:non-scaling-stroke] group-data-[state=open]/item:-scale-y-100"})})}function iu({trigger:e,children:t}){return e?W(ue.Trigger,{asChild:!0,children:t}):t}import{ChevronDown as lu,Menu as cu,X as du}from"lucide-react";import mt from"next/link";import{useParams as bo}from"next/navigation";import{useEffect as uu,useState as Jn}from"react";import mu from"swr";import{Fragment as fu,jsx as O,jsxs as Le}from"react/jsx-runtime";function J5({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=bo();t&&(r=t);let[o,a]=Jn(!1);uu(()=>{o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[o]);let{data:c}=mu(r.endsWith("dub.co")&&"/api/auth/session",ge,{dedupingInterval:6e4});return Le("div",{className:i("fixed right-0 top-0 z-40 flex items-center gap-4 p-2.5 lg:hidden",e==="dark"&&"dark"),children:[c&&Object.keys(c).length>0?O(vo,{href:Ce,className:"max-[280px]:hidden",children:"Dashboard"}):Le("div",{className:"flex gap-2 max-[280px]:hidden",children:[O(vo,{variant:"secondary",href:`${Ce}/login`,children:"Log in"}),O(vo,{href:`${Ce}/register`,children:"Sign Up"})]}),O("button",{onClick:()=>a(!o),className:i("z-30 rounded-full p-2 transition-colors duration-200 hover:bg-neutral-200 focus:outline-none active:bg-neutral-300 dark:hover:bg-white/20 dark:active:bg-white/30",o&&"hover:bg-neutral-100 active:bg-neutral-200"),children:o?O(du,{className:"h-5 w-5 text-neutral-600 dark:text-white/70"}):O(cu,{className:"h-5 w-5 text-neutral-600 dark:text-white/70"})}),O("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",o&&"block"),children:Le("ul",{className:"grid divide-y divide-neutral-200 dark:divide-white/[0.15]",children:[ho.map(({name:s,href:l,childItems:u},d)=>O(pu,{name:s,href:l,childItems:u,setOpen:a},d)),c&&Object.keys(c).length>0?O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:Ce,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):Le(fu,{children:[O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:`${Ce}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:`${Ce}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var pu=({name:e,href:t,childItems:r,setOpen:o})=>{let{domain:a="dub.co"}=bo(),[c,s]=Jn(!1);return r?O("li",{className:"py-3",children:Le(Pe,{height:!0,children:[Le("button",{className:"flex w-full justify-between",onClick:()=>s(!c),children:[O("p",{className:"font-semibold",children:e}),O(lu,{className:i("h-5 w-5 text-neutral-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&O("div",{className:"grid grid-cols-1 gap-4 overflow-hidden py-4",children:r.map((l,u)=>"items"in l?Le("div",{className:"grid grid-cols-1 gap-3",children:[O("span",{className:"text-xs font-medium uppercase text-neutral-500 dark:text-white/50",children:l.label}),l.items.map((d,n)=>O(Xn,{item:d,setOpen:o,size:"small"},n))]},u):O(Xn,{item:l,setOpen:o},u))})]})}):t?O("li",{className:"py-3",children:O(mt,{href:z(t,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:e}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:e})}):null},Xn=({item:{title:e,description:t,href:r,icon:o},setOpen:a,size:c="normal"})=>{let{domain:s="dub.co"}=bo();return Le(mt,{href:z(r,s,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:s,utm_content:e}),onClick:()=>a(!1),className:"flex w-full items-center gap-3",children:[O("div",{className:i("flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",c==="small"&&"size-8"),children:O(o,{className:i("size-5 text-neutral-700 grayscale",c==="small"&&"size-4")})}),Le("div",{children:[O("div",{className:"flex items-center gap-2",children:O("h2",{className:"text-sm font-medium text-neutral-900",children:e})}),t&&O("p",{className:"text-sm text-neutral-500",children:t})]})]})};function vo({variant:e,className:t,...r}){return O(mt,{...r,className:i("flex h-8 w-fit items-center whitespace-nowrap rounded-lg border px-3 text-[0.8125rem]",se({variant:e}),t)})}import{jsx as Qn}from"react/jsx-runtime";function ei({className:e}){return Qn("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-6 w-auto text-black dark:text-white",e),children:Qn("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}import{jsx as Z,jsxs as ti}from"react/jsx-runtime";var ku=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
48
|
+
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%)`,position:"absolute",height:"100%",filter:"blur(100px) saturate(150%)",top:"80px",opacity:.15}};import Iu from"next/image";import Ve from"next/link";import{useParams as zu}from"next/navigation";import{jsx as _n}from"react/jsx-runtime";function Hn(e){return _n("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:_n("path",{d:"M10.1552 10.5H5.8442C3.15868 10.5 0.840663 8.4364 0.706388 5.75088C0.565045 2.88163 2.86186 0.5 5.70285 0.5H10.1622C12.9184 0.5 15.3071 2.74028 15.3 5.50353C15.3 5.95583 14.9325 6.32332 14.4732 6.32332H3.8442C3.61805 6.32332 3.4343 6.13958 3.4343 5.91343V5.08657C3.4343 4.86042 3.61805 4.67668 3.8442 4.67668H13.2647C12.8972 3.22792 11.5827 2.14664 10.0138 2.14664H6.10568C4.32476 2.14664 2.76292 3.4894 2.64278 5.27032C2.51557 7.22085 4.06328 8.85336 5.98554 8.85336H10.1552C11.2435 8.85336 12.1198 8.33039 12.7488 7.43993L12.9891 7.10777C13.1233 6.92403 13.3778 6.88163 13.5615 7.00883L14.5156 7.4894C14.6993 7.62367 14.7417 7.87809 14.6145 8.06184L14.3742 8.39399C13.4414 9.71555 11.7806 10.5 10.1552 10.5Z",fill:"currentColor"})})}var yr=[{title:"Dub Links",description:"Short links with superpowers",icon:ya,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:ka,href:"/analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:Bt,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Vt,href:"/integrations"}],Vn=[{icon:$o,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:Go,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:Hn,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],go=[{icon:Zo,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/sdks/typescript"},{icon:Yo,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/sdks/python"},{icon:Ko,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/sdks/go"},{icon:qo,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/sdks/ruby"},{icon:jo,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/sdks/php"}],Bn=[{icon:Wt,title:"Marketing Attribution",description:"Easily track and measure marketing impact",href:"/analytics"},{icon:Ft,title:"Content Creators",description:"Intelligent audience insights and link tracking",href:"/solutions/creators"},{icon:Gt,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"},{label:"SDKs",items:go}],wr=[{icon:Jo,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:va,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:ma,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:Qo,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:ba,title:"Customers",description:"Success stories and use cases",href:"/customers"},{icon:xa,title:"Dub Brand",description:"Logos, wordmark, etc.",href:"/brand"}],Cr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],Wn=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}],G4=[{name:"X (Twitter)",icon:_t,href:"https://x.com/dubdotco"},{name:"LinkedIn",icon:Ot,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:zt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:Ht,href:"https://www.youtube.com/@dubdotco"}];import{jsx as Xd}from"react/jsx-runtime";function Nr({className:e,children:t}){return Xd("div",{className:i("mx-auto w-full max-w-screen-xl px-3 lg:px-10",e),children:t})}import*as He from"@radix-ui/react-popover";import{BoxSelect as Nu,Home as ku,LayoutGrid as Pu,Type as Su}from"lucide-react";import{useParams as Mu}from"next/navigation";import{useCallback as Ru,useContext as Tu,useState as Lu}from"react";import{toast as Eu}from"sonner";import{jsx as Fn}from"react/jsx-runtime";function ho({className:e}){return Fn("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black dark:text-white",e),children:Fn("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}import*as ue from"@radix-ui/react-navigation-menu";import{LayoutGroup as su}from"framer-motion";import Lt from"next/link";import{useParams as lu,usePathname as cu}from"next/navigation";import{createContext as du,useId as uu}from"react";import mu from"swr";import{Link as jn}from"@radix-ui/react-navigation-menu";import Yn from"next/link";import{jsx as S,jsxs as vo}from"react/jsx-runtime";function Un(e){return vo("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...e,className:i("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",e.className),children:[vo("g",{className:"text-[var(--grid)]",children:[S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M12.667 1h48v48h-48zM60.667 1h48v48h-48zM108.667 1h48v48h-48zM156.667 1h48v48h-48zM204.667 1h48v48h-48zM252.667 1h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 1h48v48h-48zM12.667 49h48v48h-48zM60.667 49h48v48h-48zM108.667 49h48v48h-48zM156.667 49h48v48h-48zM204.667 49h48v48h-48zM252.667 49h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 49h48v48h-48zM12.667 97h48v48h-48zM60.667 97h48v48h-48zM108.667 97h48v48h-48zM156.667 97h48v48h-48zM204.667 97h48v48h-48zM252.667 97h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 97h48v48h-48zM12.667 145h48v48h-48zM60.667 145h48v48h-48zM108.667 145h48v48h-48zM156.667 145h48v48h-48zM204.667 145h48v48h-48zM252.667 145h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 145h48v48h-48zM12.667 193h48v48h-48zM60.667 193h48v48h-48zM108.667 193h48v48h-48zM156.667 193h48v48h-48zM204.667 193h48v48h-48zM252.667 193h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 193h48v48h-48zM12.667 241h48v48h-48zM60.667 241h48v48h-48zM108.667 241h48v48h-48zM156.667 241h48v48h-48zM204.667 241h48v48h-48zM252.667 241h48v48h-48z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),S("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),S("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),S("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),S("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),S("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),S("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:S("tspan",{x:"157.667",y:"232.909",children:"402"})}),S("g",{filter:"url(#a)",children:S("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),S("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),S("defs",{children:vo("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[S("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),S("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),S("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),S("feOffset",{dy:"2"}),S("feGaussianBlur",{stdDeviation:"1"}),S("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),S("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),S("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}import{useId as Jd}from"react";import{jsx as p,jsxs as V}from"react/jsx-runtime";function Gn(e){let t=Jd();return V("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...e,className:i("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",e.className),children:[V("g",{clipPath:`url(#${t}-a)`,children:[p("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M0 0h48v48H0zM48 0h48v48H48zM96 0h48v48H96zM144 0h48v48h-48zM192 0h48v48h-48zM240 0h48v48h-48zM288 0h48v48h-48zM0 48h48v48H0zM48 48h48v48H48zM96 48h48v48H96zM144 48h48v48h-48zM192 48h48v48h-48zM240 48h48v48h-48zM288 48h48v48h-48zM0 96h48v48H0zM48 96h48v48H48zM96 96h48v48H96zM144 96h48v48h-48zM192 96h48v48h-48zM240 96h48v48h-48zM288 96h48v48h-48zM0 144h48v48H0zM48 144h48v48H48zM96 144h48v48H96zM144 144h48v48h-48zM192 144h48v48h-48zM240 144h48v48h-48zM288 144h48v48h-48zM0 192h48v48H0zM48 192h48v48H48zM96 192h48v48H96zM144 192h48v48h-48zM192 192h48v48h-48zM240 192h48v48h-48zM288 192h48v48h-48zM0 240h48v48H0zM48 240h48v48H48zM96 240h48v48H96zM144 240h48v48h-48zM192 240h48v48h-48zM240 240h48v48h-48zM288 240h48v48h-48zM0 288h48v48H0zM48 288h48v48H48zM96 288h48v48H96zM144 288h48v48h-48zM192 288h48v48h-48zM240 288h48v48h-48zM288 288h48v48h-48z"}),p("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),p("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),p("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),p("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),p("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),p("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),p("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),p("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),p("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),p("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),p("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),p("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),p("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),p("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),p("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),p("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),p("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),p("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),V("g",{children:[p("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M235.276 100.891a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.389 96.333a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M235.276 91.776a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.367 102.288a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 98.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 93.868a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.368 90.38a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M238.889 243.778h-3.556a1.777 1.777 0 0 1-1.777-1.778v-4c0-.982.795-1.778 1.777-1.778h9.334c.982 0 1.777.796 1.777 1.778v.222"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M236.889 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778M240 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778"}),p("path",{fill:"currentColor",fillOpacity:"0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M246 242.889h-3.556a.89.89 0 0 0-.888.889v1.777c0 .491.398.889.888.889H246a.89.89 0 0 0 .889-.889v-1.777a.89.89 0 0 0-.889-.889"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M188.667 90h-2a.666.666 0 0 0-.667.667v2c0 .368.298.666.667.666h2a.666.666 0 0 0 .666-.666v-2a.666.666 0 0 0-.666-.667M197.333 90h-2a.666.666 0 0 0-.666.667v2c0 .368.298.666.666.666h2a.667.667 0 0 0 .667-.666v-2a.667.667 0 0 0-.667-.667M188.667 98.667h-2a.666.666 0 0 0-.667.666v2c0 .368.298.667.667.667h2a.667.667 0 0 0 .666-.667v-2a.666.666 0 0 0-.666-.666M198 98.667h-2a1.333 1.333 0 0 0-1.333 1.333v2M198 102v.01M192 92.667v2A1.334 1.334 0 0 1 190.667 96h-2M186 96h.01M192 90h.01M192 98.667v.01M194.667 96h.666M198 96v.01M192 102v-.667"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M192 246.445a6.445 6.445 0 1 0-.002-12.89 6.445 6.445 0 0 0 .002 12.89M192 238.222v-2M193.778 240h2M192 241.778v2M190.222 240h-2"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M148.667 90h-9.334c-.736 0-1.333.597-1.333 1.333v9.334c0 .736.597 1.333 1.333 1.333h9.334c.736 0 1.333-.597 1.333-1.333v-9.334c0-.736-.597-1.333-1.333-1.333"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M142 95.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666M150 98l-2.057-2.057a1.334 1.334 0 0 0-1.886 0L140 102"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M138.889 234h4.375c.471 0 .924.188 1.257.521l5.111 5.111c.694.694.694 1.82 0 2.514l-3.486 3.486a1.78 1.78 0 0 1-2.514 0l-5.111-5.111a1.78 1.78 0 0 1-.521-1.257v-4.375c0-.491.398-.889.889-.889"}),p("path",{fill:"currentColor",fillOpacity:"0.5",d:"M141.556 238.667a1.112 1.112 0 1 0-.002-2.224 1.112 1.112 0 0 0 .002 2.224"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m97.258 101.854 4.596-4.597a1.777 1.777 0 0 0 0-2.514l-4.596-4.597a1.78 1.78 0 0 0-2.514 0l-4.597 4.597a1.78 1.78 0 0 0 0 2.514l4.597 4.597c.694.694 1.82.694 2.514 0"})]}),V("g",{children:[p("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M92.667 246.444a2.222 2.222 0 1 0 .001-4.443 2.222 2.222 0 0 0-.001 4.443M99.333 246.444a2.222 2.222 0 1 0 .002-4.443 2.222 2.222 0 0 0-.002 4.443M98.563 233.556h-5.126a.89.89 0 0 0-.88.763l-.335 2.348-2.666 2.666h12.888l-2.666-2.666-.335-2.348a.89.89 0 0 0-.88-.763M92.222 236.667h7.556"}),p("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),p("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:p("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),p("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:p("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),p("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),p("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),V("g",{children:[p("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),p("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),p("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),p("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:p("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),p("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),p("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),p("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:p("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),p("path",{className:"text-[var(--fg)]",fill:"currentColor",fillOpacity:"0.04",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),p("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),p("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:p("path",{d:"m240.395 167.185 4.876 1.673c.148.051.15.259.004.313l-2.186.822a.17.17 0 0 0-.097.098l-.822 2.186a.166.166 0 0 1-.313-.005l-1.674-4.876a.167.167 0 0 1 .212-.212zM243.019 170.021l2.808 2.808M240.165 163.167v1.333M242.995 164.338l-.943.943M237.338 169.995l.943-.943M236.166 167.166h1.333M237.338 164.338l.943.943"})}),p("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:p("tspan",{x:"251",y:"171.636",children:"51K"})})]}),V("defs",{children:[V("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EA580C"}),p("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),p("stop",{offset:"1",stopColor:"#EA580C"})]}),V("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EAB308",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#EAB308"})]}),V("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#EAB308",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#EAB308"})]}),V("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[p("stop",{stopColor:"#030712",stopOpacity:"0"}),p("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),V("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[p("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),p("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),p("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),V("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[p("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),p("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),p("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),p("clipPath",{id:`${t}-a`,children:p("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),p("clipPath",{id:`${t}-y`,children:p("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),p("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:p("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),p("image",{href:`${It}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}import{Link as $n}from"@radix-ui/react-navigation-menu";import Kn from"next/link";import{jsx as we,jsxs as kr}from"react/jsx-runtime";var st="text-xs uppercase text-neutral-500 dark:text-white/60",Qd="group rounded-[8px] p-2 transition-colors hover:bg-neutral-50 active:bg-neutral-100 dark:hover:bg-white/[0.15] dark:active:bg-white/20",te=({domain:e,...t})=>({utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,...t});function lt({icon:e,title:t,description:r,descriptionLines:o=1,className:a,showArrow:c,...s}){return we($n,{asChild:!0,children:we(Kn,{className:i(Qd,a),...s,children:kr("div",{className:"flex items-center justify-between gap-3",children:[e,kr("div",{className:"flex-1",children:[we("p",{className:"text-sm font-medium text-neutral-700 dark:text-white",children:t}),r&&we("p",{className:i("text-xs text-neutral-500 dark:text-white/60",["line-clamp-1","line-clamp-2"][o-1]),children:r})]}),c&&we(Ho,{className:"invisible -ml-6 h-4 w-4 text-neutral-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})})}function Pr({icon:e,title:t,description:r,iconClassName:o,...a}){return we($n,{asChild:!0,children:we(Kn,{...a,className:"group relative flex flex-col justify-center rounded-xl border border-neutral-100 bg-neutral-50 transition-colors duration-150 hover:bg-neutral-100 active:bg-neutral-200 dark:border-white/20 dark:bg-white/10 dark:hover:bg-white/15 dark:active:bg-white/20",children:kr("div",{className:"flex items-center justify-between px-5 py-4",children:[kr("div",{children:[we("span",{className:"text-sm font-medium leading-none text-neutral-900 dark:text-white",children:t}),we("p",{className:"mt-1 text-sm text-neutral-500 dark:text-white/60",children:r})]}),we(e,{className:i("size-6 text-neutral-700 dark:text-neutral-200",o)})]})})})}import{jsx as j,jsxs as Te}from"react/jsx-runtime";var eu=[{title:"Dub API",description:"Programmatic link creation at scale",icon:Bt,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Vt,href:"/integrations"}];function qn({domain:e}){return Te("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200 dark:divide-white/20",children:[Te("div",{className:"grid grid-cols-2 gap-4 p-4",children:[j(jn,{asChild:!0,children:Te(Yn,{href:z("/home",e,te({domain:e,utm_content:"Dub Links"})),className:"group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[Te("div",{className:"p-5 pb-0",children:[j("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),j("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:"Short links with superpowers for the modern marketer"})]}),j("div",{className:"relative grow overflow-hidden",children:j(Gn,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),j("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#f4950c,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"})]})}),Te("div",{className:"flex flex-col gap-4",children:[j(jn,{asChild:!0,children:Te(Yn,{href:z("/analytics",e,te({domain:e,utm_content:"Dub Analytics"})),className:"group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[j(Un,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),j("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_100%,#36D78F,transparent)] opacity-[0.07] transition-opacity duration-150 group-hover:opacity-[0.2]"}),Te("div",{className:"h-56 p-5",children:[j("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),j("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]})}),j("div",{className:"grid grow grid-rows-2 gap-4",children:eu.map(({title:t,description:r,icon:o,href:a})=>j(Pr,{title:t,description:r,icon:o,href:z(a,e,te({domain:e,utm_content:t}))},t))})]})]}),Te("div",{className:"px-6 py-4",children:[j("p",{className:i(st,"mb-2"),children:"Customer Stories"}),Te("div",{className:"grid grid-cols-1",children:[Vn.map(({icon:t,iconClassName:r,title:o,description:a,href:c})=>j(lt,{className:"-mx-2",href:z(c,e,te({domain:e,utm_content:o})),icon:j("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:j(t,{className:i("h-4 w-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},c)),j(lt,{className:"-mx-2",href:z("/customers",e,te({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),j("p",{className:i(st,"mb-2 mt-5"),children:"Compare"}),j("div",{className:"flex flex-col",children:Cr.map(({name:t,slug:r})=>j(lt,{className:"-mx-2",href:z(`/compare/${r}`,e,te({domain:e,utm_content:`Dub vs. ${t}`})),title:`Dub vs. ${t}`,showArrow:!0},r))})]})]})}import{Link as Xn}from"@radix-ui/react-navigation-menu";import ru from"next/image";import Jn from"next/link";import{useId as tu}from"react";import{jsx as y,jsxs as ct}from"react/jsx-runtime";function Zn({className:e,...t}){let r=tu();return ct("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"114",viewBox:"0 0 247 114",fill:"none",className:i("",e),...t,children:[y("path",{stroke:"#fff",strokeWidth:"0.089",d:"M147.901 0v113.578M141.661 0v113.578M132.924 0v113.578M108.854 0v113.578M100.116 0v113.578M93.876 0v113.578M85.139 0v113.578M52.509 0v113.578M156.639 0v113.578M189.267 0v113.578m56.79-85.496H0M246.057 43.06H0m246.057 41.544H0",opacity:"0.3"}),ct("g",{opacity:"0.5",children:[y("mask",{id:`${r}-a`,width:"187",height:"89",x:"27",y:"12",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:y("ellipse",{cx:"120.71",cy:"56.432",fill:"#D9D9D9",rx:"92.717",ry:"44.041"})}),y("g",{stroke:"#fff",strokeWidth:"0.089",mask:`url(#${r}-a)`,children:y("path",{d:"M147.901 0v113.578M141.661 0v113.578M132.924 0v113.578M108.853 0v113.578M100.116 0v113.578M93.876 0v113.578M85.139 0v113.578M52.509 0v113.578M156.639 0v113.578M189.267 0v113.578m56.789-85.496H-.001M246.056 43.06H-.001m246.057 41.544H-.001"})})]}),y("g",{filter:`url(#${r}-b)`,opacity:"0.3",children:y("path",{fill:"#fff",fillOpacity:"0.077",fillRule:"evenodd",d:"M147.733 29.33c0-.787.639-1.426 1.427-1.426h6.094c.788 0 1.427.639 1.427 1.427V46.57a20.77 20.77 0 0 1 11.93-3.745c11.531 0 20.878 9.353 20.878 20.89s-9.347 20.89-20.878 20.89c-11.53 0-20.878-9.353-20.878-20.89zm20.878 46.32c6.588 0 11.93-5.343 11.93-11.936 0-6.592-5.342-11.936-11.93-11.936-6.589 0-11.931 5.344-11.931 11.936 0 6.593 5.342 11.937 11.931 11.937M85.099 29.33c0-.787.639-1.426 1.427-1.426h6.095c.787 0 1.426.639 1.426 1.427v34.166a20 20 0 0 1 0 .436v19.245c0 .788-.639 1.426-1.426 1.426h-6.095a1.426 1.426 0 0 1-1.427-1.426V80.86a20.77 20.77 0 0 1-11.93 3.743c-11.53 0-20.877-9.352-20.877-20.89 0-11.536 9.347-20.889 20.878-20.889 4.435 0 8.548 1.384 11.93 3.744zM73.17 75.652c6.589 0 11.93-5.344 11.93-11.936 0-6.593-5.341-11.937-11.93-11.937s-11.93 5.344-11.93 11.937S66.58 75.65 73.17 75.65m28.27-32.826c-.788 0-1.427.639-1.427 1.427v19.463a20.9 20.9 0 0 0 6.116 14.77 20.87 20.87 0 0 0 29.526 0 20.9 20.9 0 0 0 6.115-14.77h-.001V44.252c0-.788-.639-1.427-1.427-1.427h-6.095c-.787 0-1.426.639-1.426 1.427v19.463a11.94 11.94 0 0 1-3.494 8.44 11.929 11.929 0 0 1-20.366-8.44V44.252c0-.788-.639-1.427-1.426-1.427z",clipRule:"evenodd"})}),y("path",{fill:`url(#${r}-c)`,fillOpacity:"0.4",stroke:`url(#${r}-d)`,strokeWidth:"0.233",d:"M93.926 63.996v20.577H85.21v-3.85l-.183.127a20.66 20.66 0 0 1-11.865 3.723c-11.468 0-20.765-9.302-20.765-20.776s9.297-20.776 20.765-20.776a20.66 20.66 0 0 1 11.865 3.723l.183.128V28.098h8.716v35.898Zm53.925-.199V28.098h8.717v18.775l.182-.128a20.66 20.66 0 0 1 11.866-3.724c11.468 0 20.765 9.302 20.765 20.776s-9.297 20.776-20.765 20.776-20.765-9.301-20.765-20.776Zm-6.198 0v.116h.001a20.8 20.8 0 0 1-6.082 14.575 20.757 20.757 0 0 1-29.366 0 20.79 20.79 0 0 1-6.082-14.69V43.02h8.717v20.776a12.047 12.047 0 1 0 24.096 0V43.021h8.716zM73.162 75.851c6.654 0 12.048-5.397 12.048-12.054 0-6.658-5.394-12.055-12.048-12.055S61.114 57.14 61.114 63.797 66.508 75.85 73.162 75.85Zm95.454 0c6.654 0 12.048-5.397 12.048-12.054 0-6.658-5.394-12.055-12.048-12.055s-12.048 5.397-12.048 12.055 5.394 12.054 12.048 12.054Z"}),y("circle",{cx:"85.073",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"147.866",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"147.866",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"168.565",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"180.426",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"189.496",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"99.957",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"99.957",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"120.888",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"112.516",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"101.586",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"139.959",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"129.494",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"120.888",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"132.982",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"156.704",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"108.795",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"141.82",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"141.82",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"73.213",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"61.118",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"52.281",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"85.073",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),y("circle",{cx:"93.911",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),ct("defs",{children:[ct("linearGradient",{id:`${r}-c`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[y("stop",{stopColor:"#fff",stopOpacity:"0"}),y("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0.3"})]}),ct("linearGradient",{id:`${r}-d`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[y("stop",{stopColor:"#5B5B5B"}),y("stop",{offset:"1",stopColor:"#757575"})]}),ct("filter",{id:`${r}-b`,width:"154.246",height:"73.748",x:"43.768",y:"19.38",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[y("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"4.262"}),y("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_7_2"}),y("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_7_2",result:"shape"}),y("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y("feOffset",{dx:"-0.991",dy:"0.991"}),y("feGaussianBlur",{stdDeviation:"0.496"}),y("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),y("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.354 0"}),y("feBlend",{in2:"shape",result:"effect2_innerShadow_7_2"}),y("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),y("feOffset",{dx:"0.991",dy:"-0.991"}),y("feGaussianBlur",{stdDeviation:"0.496"}),y("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),y("feColorMatrix",{values:"0 0 0 0 0.84 0 0 0 0 0.84 0 0 0 0 0.84 0 0 0 0.354 0"}),y("feBlend",{in2:"effect2_innerShadow_7_2",result:"effect3_innerShadow_7_2"}),y("feGaussianBlur",{result:"effect4_foregroundBlur_7_2",stdDeviation:"0.357"})]})]})]})}import{jsx as ee,jsxs as qe}from"react/jsx-runtime";var ou=[{title:"Docs",description:"Platform documentation",thumbnail:"https://assets.dub.co/misc/docs-thumbnail.jpg",href:"/docs/introduction"},{title:"Help Center",description:"Answers to your questions",thumbnail:"https://assets.dub.co/misc/help-thumbnail.jpg",href:"/help"}];function Qn({domain:e}){return qe("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.45fr] divide-x divide-neutral-200 dark:divide-white/20",children:[ee("div",{className:"grid grid-cols-2 gap-4 p-4",children:ou.map(({title:t,description:r,thumbnail:o,href:a})=>ee(Xn,{asChild:!0,children:qe(Jn,{href:z(a,e,te({domain:e,utm_content:t})),className:i("group relative flex flex-col overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 transition-colors duration-75 hover:bg-neutral-100/80","dark:border-white/20 dark:bg-white/10 dark:hover:bg-white/15"),children:[qe("div",{className:"p-5 pb-0",children:[ee("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:t}),ee("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:r})]}),ee("div",{className:"relative mt-7 grow overflow-hidden pl-5 [mask-image:linear-gradient(90deg,black_50%,transparent)]",children:ee("div",{className:i("relative size-full overflow-hidden rounded-tl-lg border-l border-t border-black/10","[mask-image:linear-gradient(black_50%,transparent)]"),children:ee(ru,{src:o,alt:`${t} thumbnail`,fill:!0,className:"bg-white object-cover object-left-top grayscale transition-[filter] duration-75 group-hover:grayscale-0 dark:opacity-50"})})})]},t)},t))}),qe("div",{className:"flex flex-col gap-4 p-4",children:[wr.filter(({title:t})=>!["Docs","Help Center","Dub Brand"].includes(t)).map(({title:t,description:r,icon:o,href:a})=>ee(Pr,{title:t,description:r,icon:o,iconClassName:"size-5",href:z(a,e,te({domain:e,utm_content:t}))},t)),ee(Xn,{asChild:!0,children:qe(Jn,{href:z("/brand",e,te({domain:e,utm_content:"Dub Brand"})),className:"group relative flex flex-col overflow-hidden rounded-xl bg-black transition-colors duration-75 dark:border dark:border-white/20",children:[qe("div",{className:"pointer-events-none absolute inset-0",children:[ee("div",{className:"absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:ee("div",{className:i("absolute inset-0 rounded-xl","bg-[radial-gradient(20%_80%_at_50%_100%,#fd3a4e,transparent),radial-gradient(30%_80%_at_40%_50%,#855afc,transparent),radial-gradient(30%_80%_at_60%_50%,#72fe7d,transparent),radial-gradient(30%_100%_at_50%_50%,#e4c795,transparent)]")})}),ee(Zn,{className:"absolute right-0 top-1/2 h-auto w-full -translate-y-1/2 translate-x-[33%] [mask-image:linear-gradient(90deg,#000a,transparent)]"})]}),ee("div",{className:"relative flex items-center justify-between px-5 py-4",children:qe("div",{children:[ee("span",{className:"block text-sm font-medium text-white",children:"Dub Brand"}),ee("p",{className:"text-sm text-white/60",children:"Logos, wordmark, etc."})]})})]})})]})]})}import{Link as au}from"@radix-ui/react-navigation-menu";import nu from"next/link";import{jsx as re,jsxs as dt}from"react/jsx-runtime";var iu=[{icon:Wt,title:"Marketing Attribution",description:"Easily track and measure marketing impact",href:"/analytics"},{icon:Ft,title:"Content Creators",description:"Intelligent audience insights and link tracking",href:"/solutions/creators"},{icon:Gt,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"}];function ei({domain:e}){return dt("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200 dark:divide-white/20",children:[dt("div",{className:"flex h-full flex-col p-4",children:[re("p",{className:i(st,"mb-4 ml-2"),children:"Use case"}),re("div",{className:"grid grow grid-cols-3 gap-4",children:iu.map(({icon:t,title:r,description:o,href:a})=>re(au,{asChild:!0,children:dt(nu,{href:z(a,e,te({domain:e,utm_content:r})),className:i("group relative isolate z-0 flex flex-col justify-between overflow-hidden rounded-xl border border-neutral-100 bg-neutral-50 px-5 py-4 transition-colors duration-75","dark:border-white/20 dark:bg-neutral-900"),children:[dt("div",{className:"absolute inset-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100",children:[re("div",{className:"absolute -inset-[25%] -skew-y-12 [mask-image:linear-gradient(225deg,black,transparent_50%)]",children:re(bn,{cellSize:46,patternOffset:[0,-14],className:"translate-y-2 text-[#ad1f3288] transition-transform duration-150 ease-out group-hover:translate-y-0"})}),re("div",{className:i("absolute -inset-[10%] opacity-10 blur-[50px] dark:brightness-150","bg-[conic-gradient(#F35066_0deg,#F35066_117deg,#9071F9_180deg,#5182FC_240deg,#F35066_360deg)]")})]}),re(t,{className:"relative size-5 text-neutral-700 dark:text-white/60"}),dt("div",{className:"relative",children:[re("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:r}),re("p",{className:"mt-2 text-xs text-neutral-500 dark:text-white/60",children:o})]})]},r)},r))})]}),dt("div",{className:"px-6 py-4",children:[re("p",{className:i(st,"mb-2"),children:"SDKs"}),re("div",{className:"flex flex-col gap-0.5",children:go.map(({icon:t,iconClassName:r,title:o,href:a})=>re(lt,{className:"-mx-2",href:z(a,e,te({domain:e,utm_content:o})),icon:re("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:re(t,{className:i("size-5 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,showArrow:!0},a))})]})]})}import{Fragment as gu,jsx as W,jsxs as ut}from"react/jsx-runtime";var bo=du({theme:"light"}),xo=[{name:"Product",content:qn,childItems:yr,segments:["/home","/analytics","/features","/compare","/integrations"]},{name:"Solutions",content:ei,childItems:Bn,segments:["/solutions","/sdks"]},{name:"Customers",href:"/customers",segments:["/customers"]},{name:"Resources",content:Qn,childItems:wr,segments:["/docs","/help","/brand","/blog","/changelog"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],ti=i("relative group/item flex items-center rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function Q5({theme:e="light",staticDomain:t,maxWidthWrapperClassName:r}){let{domain:o="dub.co"}=lu();t&&(o=t);let a=uu(),c=Ka(40),s=cu(),{data:l,isLoading:u}=mu(o.endsWith("dub.co")&&"/api/auth/session",ge,{dedupingInterval:6e4});return W(bo.Provider,{value:{theme:e},children:W(su,{id:a,children:ut("div",{className:i("sticky inset-x-0 top-0 z-30 w-full transition-all",e==="dark"&&"dark"),children:[W("div",{className:i("absolute inset-0 block border-b border-transparent transition-all",c&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),W(Nr,{className:i("relative",r),children:ut("div",{className:"flex h-14 items-center justify-between",children:[W("div",{className:"grow basis-0",children:W(Lt,{className:"block w-fit py-2 pr-2",href:z("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:W(Sr,{})})}),ut(ue.Root,{delayDuration:0,className:"relative hidden lg:block",children:[W(ue.List,{className:"group relative z-0 flex",children:xo.map(({name:d,href:n,segments:m,content:f})=>{let b=m.some(v=>s==null?void 0:s.startsWith(v));return ut(ue.Item,{children:[W(fu,{trigger:!!f,children:n!==void 0?W(Lt,{id:`nav-${n}`,href:z(n,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:d}),className:ti,"data-active":b,children:d}):ut("button",{className:ti,"data-active":b,children:[d,W(pu,{className:"ml-1.5 size-2.5 text-neutral-700"})]})}),f&&W(ue.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:W(f,{domain:o})})]},d)})}),W("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:W(ue.Viewport,{className:i("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-neutral-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),W("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:l&&Object.keys(l).length>0?W(Lt,{href:Ce,className:i(se({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):u?null:ut(gu,{children:[W(Lt,{href:"https://app.dub.co/login",className:i(se({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),W(Lt,{href:"https://app.dub.co/register",className:i(se({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function pu(e){return W("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",fill:"none",viewBox:"0 0 9 9",...e,children:W("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M7.278 3.389 4.5 6.167 1.722 3.389",className:"transition-transform duration-150 [transform-box:view-box] [transform-origin:center] [vector-effect:non-scaling-stroke] group-data-[state=open]/item:-scale-y-100"})})}function fu({trigger:e,children:t}){return e?W(ue.Trigger,{asChild:!0,children:t}):t}import{ChevronDown as hu,Menu as vu,X as bu}from"lucide-react";import mt from"next/link";import{useParams as wo}from"next/navigation";import{useEffect as xu,useState as oi}from"react";import yu from"swr";import{Fragment as Cu,jsx as O,jsxs as Le}from"react/jsx-runtime";function m8({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=wo();t&&(r=t);let[o,a]=oi(!1);xu(()=>{o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[o]);let{data:c}=yu(r.endsWith("dub.co")&&"/api/auth/session",ge,{dedupingInterval:6e4});return Le("div",{className:i("fixed right-0 top-0 z-40 flex items-center gap-4 p-2.5 lg:hidden",e==="dark"&&"dark"),children:[c&&Object.keys(c).length>0?O(yo,{href:Ce,className:"max-[280px]:hidden",children:"Dashboard"}):Le("div",{className:"flex gap-2 max-[280px]:hidden",children:[O(yo,{variant:"secondary",href:`${Ce}/login`,children:"Log in"}),O(yo,{href:`${Ce}/register`,children:"Sign Up"})]}),O("button",{onClick:()=>a(!o),className:i("z-30 rounded-full p-2 transition-colors duration-200 hover:bg-neutral-200 focus:outline-none active:bg-neutral-300 dark:hover:bg-white/20 dark:active:bg-white/30",o&&"hover:bg-neutral-100 active:bg-neutral-200"),children:o?O(bu,{className:"h-5 w-5 text-neutral-600 dark:text-white/70"}):O(vu,{className:"h-5 w-5 text-neutral-600 dark:text-white/70"})}),O("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",o&&"block"),children:Le("ul",{className:"grid divide-y divide-neutral-200 dark:divide-white/[0.15]",children:[xo.map(({name:s,href:l,childItems:u},d)=>O(wu,{name:s,href:l,childItems:u,setOpen:a},d)),c&&Object.keys(c).length>0?O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:Ce,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):Le(Cu,{children:[O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:`${Ce}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),O("li",{className:"py-3 min-[281px]:hidden",children:O(mt,{href:`${Ce}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var wu=({name:e,href:t,childItems:r,setOpen:o})=>{let{domain:a="dub.co"}=wo(),[c,s]=oi(!1);return r?O("li",{className:"py-3",children:Le(Pe,{height:!0,children:[Le("button",{className:"flex w-full justify-between",onClick:()=>s(!c),children:[O("p",{className:"font-semibold",children:e}),O(hu,{className:i("h-5 w-5 text-neutral-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&O("div",{className:"grid grid-cols-1 gap-4 overflow-hidden py-4",children:r.map((l,u)=>"items"in l?Le("div",{className:"grid grid-cols-1 gap-3",children:[O("span",{className:"text-xs font-medium uppercase text-neutral-500 dark:text-white/50",children:l.label}),l.items.map((d,n)=>O(ri,{item:d,setOpen:o,size:"small"},n))]},u):O(ri,{item:l,setOpen:o},u))})]})}):t?O("li",{className:"py-3",children:O(mt,{href:z(t,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:e}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:e})}):null},ri=({item:{title:e,description:t,href:r,icon:o},setOpen:a,size:c="normal"})=>{let{domain:s="dub.co"}=wo();return Le(mt,{href:z(r,s,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:s,utm_content:e}),onClick:()=>a(!1),className:"flex w-full items-center gap-3",children:[O("div",{className:i("flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",c==="small"&&"size-8"),children:O(o,{className:i("size-5 text-neutral-700 grayscale",c==="small"&&"size-4")})}),Le("div",{children:[O("div",{className:"flex items-center gap-2",children:O("h2",{className:"text-sm font-medium text-neutral-900",children:e})}),t&&O("p",{className:"text-sm text-neutral-500",children:t})]})]})};function yo({variant:e,className:t,...r}){return O(mt,{...r,className:i("flex h-8 w-fit items-center whitespace-nowrap rounded-lg border px-3 text-[0.8125rem]",se({variant:e}),t)})}import{jsx as ai}from"react/jsx-runtime";function ni({className:e}){return ai("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-6 w-auto text-black dark:text-white",e),children:ai("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}import{jsx as Z,jsxs as ii}from"react/jsx-runtime";var Au=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
49
49
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
50
|
-
</svg>`,
|
|
50
|
+
</svg>`,Du=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
51
51
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
52
|
-
</svg>`;function kr({variant:e="full",isInApp:t,className:r}){let{domain:o="dub.co"}=xu(),{theme:a}=wu(go),[c,s]=Cu(!1),l=yu(n=>{n.preventDefault(),s(!0)},[]),[,u]=et();function d(n){Nu.promise(u(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return ti(He.Root,{open:c,onOpenChange:s,children:[Z(He.Anchor,{asChild:!0,children:Z("div",{onContextMenu:l,className:"max-w-fit",children:e==="full"?Z(ei,{className:r}):Z(po,{className:i("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),Z(He.Portal,{children:Z(He.Content,{sideOffset:14,align:"start",className:i("z-50 -mt-1.5",!t&&"-translate-x-8",a==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),s(!1)},children:ti("div",{className:"grid gap-1 rounded-lg border border-neutral-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[Z(Lt,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>d(ku),icon:Z(po,{className:"h-4 w-4"})}),Z(Lt,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>d(Pu),icon:Z(bu,{strokeWidth:2,className:"h-4 w-4"})}),Z(Lt,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:Z(gu,{strokeWidth:2,className:"h-4 w-4"})}),t||o!="dub.co"?Z(Lt,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:Z(hu,{strokeWidth:2,className:"h-4 w-4"})}):Z(Lt,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:Z(vu,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function Lt({className:e,...t}){return Z(le,{className:i("h-9 justify-start px-3 font-medium hover:text-neutral-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",e),...t})}import{jsx as E,jsxs as F}from"react/jsx-runtime";var Ru=[{name:"Twitter",icon:Ot,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:zt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:It,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:_t,href:"https://www.youtube.com/@dubdotco"}],pt={product:[...br.map(({title:e,href:t})=>({name:e,href:t})),{name:"Dub Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"}],solutions:[{name:"Marketing attribution",href:"/analytics"},{name:"Content creators",href:"/solutions/creators"},{name:"Affiliate management",href:"/partners"}],resources:[{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Changelog",href:"/changelog"},{name:"Blog",href:"/blog"},{name:"Customers",href:"/customers"},{name:"Affiliates",href:"https://partners.dub.co/dub",target:"_blank"},{name:"About",href:"/about"},{name:"Brand",href:"/brand"},{name:"Contact",href:"/contact"}],compare:yr.map(({name:e,slug:t})=>({name:e,href:`/compare/${t}`})),legal:On.map(({name:e,slug:t})=>({name:e,href:`/legal/${t}`})),tools:Ao.map(({name:e,slug:t})=>({name:e,href:`/tools/${t}`}))},ft="text-sm font-medium text-neutral-900",gt="flex flex-col mt-2.5 gap-3.5",Ze="flex items-center gap-1 text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function k8({staticDomain:e,className:t}){let{domain:r="dub.co"}=Mu();return e&&(r=e),E(wr,{className:i("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",t),children:F("footer",{children:[F("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[F("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:F(Ve,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[F("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),E(kr,{className:"h-8 text-neutral-800"})]})}),E("div",{className:"flex items-center gap-3",children:Ru.map(({name:o,icon:a,href:c})=>F("a",{href:c,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[E("span",{className:"sr-only",children:o}),E(a,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},o))})]}),F("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[F("div",{className:"md:grid md:grid-cols-2",children:[F("div",{className:"grid gap-8",children:[F("div",{children:[E("h3",{className:ft,children:"Product"}),E("ul",{role:"list",className:gt,children:pt.product.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]}),F("div",{children:[E("h3",{className:ft,children:"Solutions"}),E("ul",{role:"list",className:gt,children:pt.solutions.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]})]}),F("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:ft,children:"Resources"}),E("ul",{role:"list",className:gt,children:pt.resources.map(o=>E("li",{children:F(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),target:o.target,className:Ze,children:[o.name," ",o.target&&E(Lr,{className:"size-3.5"})]})},o.name))})]})]}),F("div",{className:"md:grid md:grid-cols-2",children:[F("div",{className:"grid gap-8",children:[F("div",{children:[E("h3",{className:ft,children:"Compare"}),E("ul",{role:"list",className:gt,children:pt.compare.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]}),F("div",{children:[E("h3",{className:ft,children:"Legal"}),F("ul",{role:"list",className:gt,children:[pt.legal.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name)),E("li",{children:F("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:Ze,children:["Trust Center ",E(Lr,{className:"size-3.5"})]})})]})]})]}),F("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:ft,children:"Tools"}),E("ul",{role:"list",className:gt,children:pt.tools.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]})]})]})]}),F("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[E(tn,{}),E(Ve,{href:z("/blog/soc2",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"SOC2"}),className:"flex sm:justify-center",children:E(Su,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),F("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}import{AnimatePresence as Tu,motion as Lu}from"framer-motion";import{useEffect as Eu,useState as Au}from"react";import{jsx as ri}from"react/jsx-runtime";var oi=({children:e,fallback:t,fadeInDuration:r=.5,className:o})=>{let[a,c]=Au(!1);Eu(()=>{c(!0)},[]);let s=r?Lu.div:"div";return ri(Tu,{children:a?ri(s,{...r?{initial:{opacity:0},animate:{opacity:1},transition:{duration:r}}:{},className:o,children:e}):t||null})};import{cva as Du}from"class-variance-authority";import{toast as Iu}from"sonner";import{jsx as xo,jsxs as Ou}from"react/jsx-runtime";var zu=Du("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-neutral-100 active:bg-neutral-200",neutral:"bg-transparent hover:bg-neutral-100 active:bg-neutral-200"}},defaultVariants:{variant:"default"}});function O8({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[c,s]=et(),l=o||Do;return Ou("button",{onClick:u=>{u.stopPropagation(),Iu.promise(s(t),{success:a||"Copied to clipboard!"})},className:i(zu({variant:e}),r),type:"button",children:[xo("span",{className:"sr-only",children:"Copy"}),c?xo(Vo,{className:"h-3.5 w-3.5"}):xo(l,{className:"h-3.5 w-3.5"})]})}import{toast as _u}from"sonner";import{jsx as Hu}from"react/jsx-runtime";function W8({value:e,children:t,className:r,successMessage:o}){let[a,c]=et();return Hu("button",{onClick:s=>{s.stopPropagation(),_u.promise(c(e),{success:o||"Copied to clipboard!"})},type:"button",className:i("cursor-copy text-sm text-neutral-700 decoration-dotted hover:underline",a&&"cursor-default",r),children:t})}import{jsx as Vu,jsxs as Bu}from"react/jsx-runtime";function U8({icon:e,text:t}){return Bu("div",{className:"flex items-center justify-start space-x-2 truncate",children:[e,Vu("p",{className:"truncate text-sm",children:t})]})}import{jsx as Wu}from"react/jsx-runtime";var $8=({children:e})=>Wu("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:e});import{jsx as yo}from"react/jsx-runtime";function Z8({apexDomain:e,className:t,imageProps:r}){return e?yo(Rt,{src:`${Dt}${e}`,alt:e,className:i("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20,draggable:!1,...r}):yo("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full bg-neutral-100 px-0 sm:h-10 sm:w-10",t),children:yo(ma,{className:"h-4 w-4 text-neutral-600 sm:h-5 sm:w-5"})})}import{Link2 as ai}from"lucide-react";import{useSearchParams as Fu}from"next/navigation";import{useEffect as Uu,useMemo as Gu,useRef as $u}from"react";import Ku from"swr";import{useDebounce as ju}from"use-debounce";import{Fragment as ni,jsx as Y,jsxs as Be}from"react/jsx-runtime";function i6({defaultUrl:e}){let t=Fu(),r=e||(t==null?void 0:t.get("url"))||"https://github.com/dubinc/dub",[o]=ju(To(r),500),a=Gu(()=>Lo(o||""),[o]),{data:c,isValidating:s}=Ku(o&&`/api/links/metatags?url=${encodeURIComponent(o)}`,ge,{revalidateOnFocus:!1}),{title:l,description:u,image:d}=c||{},n=$u(null);Uu(()=>{!e&&n.current&&n.current.select()},[e]);let{isMobile:m}=q();return Be(ni,{children:[!e&&Be("div",{className:"relative flex items-center",children:[Y(ai,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-neutral-400"}),Y("input",{ref:n,name:"url",id:"url",type:"url",autoFocus:!m,className:"block w-full rounded-md border-neutral-200 pl-10 text-sm text-neutral-900 placeholder-neutral-400 shadow-lg focus:border-neutral-500 focus:outline-none focus:ring-neutral-500",placeholder:"Enter your URL",defaultValue:r,"aria-invalid":"true"})]}),Be("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:[s&&Y("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300 bg-neutral-50",children:Y(bt,{})}),d?Y("img",{src:d,alt:"Preview",className:"h-[250px] w-full border-b border-neutral-300 object-cover"}):Be("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300",children:[Y(Oo,{className:"h-8 w-8 text-neutral-400"}),Y("p",{className:"text-sm text-neutral-400",children:"Enter a link to generate a preview."})]}),Be("div",{className:"grid gap-1 bg-white p-3 text-left",children:[a?Y("p",{className:"text-sm text-[#536471]",children:a}):Y("div",{className:"mb-1 h-4 w-24 rounded-md bg-neutral-100"}),l?Y("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:l}):Y("div",{className:"mb-1 h-4 w-full rounded-md bg-neutral-100"}),u?Y("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):Be("div",{className:"grid gap-2",children:[Y("div",{className:"h-4 w-full rounded-md bg-neutral-100"}),Y("div",{className:"h-4 w-48 rounded-md bg-neutral-100"})]})]})]})]})}function s6({defaultUrl:e}){return Be(ni,{children:[Be("div",{className:"relative flex items-center",children:[Y(ai,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-neutral-400"}),Y("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-neutral-200 pl-10 text-sm text-neutral-900 placeholder-neutral-400 shadow-lg focus:border-neutral-500 focus:outline-none focus:ring-neutral-500",placeholder:"Enter your URL",defaultValue:e||"https://github.com/dubinc/dub"})]}),Y("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:Y("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300 bg-neutral-50",children:Y(bt,{})})})]})}import{AnimatePresence as Yu}from"framer-motion";import ii from"js-cookie";import{createContext as qu,useState as Zu}from"react";import{jsx as wo}from"react/jsx-runtime";var Xu=qu({hidePopup:()=>{}});function f6({children:e,hiddenCookieId:t}){let[r,o]=Zu(ii.get(t)==="1"),a=()=>{o(!0),ii.set(t,"1")};return wo(oi,{children:wo(Xu.Provider,{value:{hidePopup:a},children:wo(Yu,{children:!r&&e})})})}import{motion as Ju}from"framer-motion";import{jsx as si}from"react/jsx-runtime";function b6({value:e=0,max:t=100,className:r}){return si("div",{className:i("h-3 w-full overflow-hidden rounded-full bg-neutral-200",r),children:si(Ju.div,{initial:{width:0},animate:{width:e&&t?e/t*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${e&&t&&e>t?"bg-red-500":"bg-blue-500"} h-full`})})}import{cva as ci}from"class-variance-authority";import{LayoutGroup as Qu,motion as em}from"framer-motion";import{useId as tm}from"react";import{jsx as Et,jsxs as li}from"react/jsx-runtime";var rm=ci("p-4 transition-colors duration-75",{variants:{variant:{default:"text-content-subtle data-[selected=true]:text-content-emphasis data-[selected=false]:hover:text-content-default",accent:"text-content-subtle transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-content-default data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),om=ci("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-bg-inverted",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function R6({variant:e,options:t,selected:r,onSelect:o,className:a}){let c=tm();return Et("div",{className:i("flex text-sm",a),children:Et(Qu,{id:c,children:t.map(({id:s,label:l,href:u})=>{let d=s===r;return li(u?"a":"div",{className:"relative",href:u??"#",target:u?"_blank":void 0,children:[li("button",{type:"button",...!u&&{onClick:()=>o==null?void 0:o(s)},className:i(rm({variant:e}),u&&"group flex items-center gap-1.5"),"data-selected":d,"aria-selected":d,children:[l,u&&Et(jo,{className:"size-2.5"})]}),d&&Et(em.div,{layoutId:"indicator",transition:{duration:.1},className:om({variant:e}),children:Et("div",{className:"h-0.5 rounded-t-full bg-current"})})]},s)})})})}import{jsx as Co,jsxs as di}from"react/jsx-runtime";var am=[{icon:ka,text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{icon:na,text:"Geo/device targeting",href:"https://dub.co/help/article/geo-targeting"},{icon:ba,text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{icon:Na,text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{icon:va,text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"}];function E6(){return di("div",{className:"p-3",children:[Co("span",{className:"block text-sm font-semibold text-neutral-600",children:"Advanced link features"}),Co("div",{className:"mt-2 flex flex-col gap-2.5 text-xs text-neutral-600",children:am.map(({text:e,icon:t,href:r})=>di("a",{href:r,target:"_blank",className:"flex items-center gap-2.5 underline decoration-dotted underline-offset-2",children:[Co(t,{className:"size-3.5 shrink-0"}),e]},e))})]})}import{jsx as ui,jsxs as nm}from"react/jsx-runtime";function I6({className:e}){return nm("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-6 w-auto text-black dark:text-white",e),children:[ui("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),ui("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{Or as AUTOPLAY_DEFAULT_DELAY,e1 as Accordion,bi as AccordionContent,hi as AccordionItem,vi as AccordionTrigger,E6 as AdvancedLinkFeaturesTooltip,Cm as Africa,Im as Airtm,Ci as Alert,ki as AlertDescription,Ni as AlertTitle,Rm as Amazon,Bm as AndroidLogo,Pe as AnimatedSizeContainer,Wm as AppleLogo,Fm as ArrowBoldUp,Um as ArrowRight,Gm as ArrowTrendUp,$m as ArrowTurnLeft,Km as ArrowTurnRight2,jo as ArrowUpRight,jm as ArrowsOppositeDirectionY,Nm as Asia,vo as AuthButton,l1 as Avatar,Px as Background,jt as Badge,Ym as BadgeCheck,qm as BadgeCheck2Fill,T1 as BadgeTooltip,Zm as Blog,Rt as BlurImage,Xm as Bolt,Jm as BoltFill,ep as Book2,Yo as Book2Fill,tp as Book2Small,Qm as BookOpen,rp as Books2,op as BoxArchive,ap as BulletList,qo as BulletListFill,le as Button,L1 as ButtonTooltip,yr as COMPARE_PAGES,In as CUSTOMER_STORIES,qa as Calendar,lp as Calendar6,ip as CalendarDays,np as CalendarIcon,sp as CalendarRefresh,bm as CardAmex,xm as CardDiscover,eg as CardList,ym as CardMastercard,wm as CardVisa,cp as Cards,dp as CaretUpFill,ts as Carousel,rs as CarouselContent,os as CarouselItem,bg as CarouselNavBar,ns as CarouselNext,as as CarouselPrevious,Rg as CarouselThumbnail,Mg as CarouselThumbnails,zm as CashApp,up as ChartActivity2,mp as ChartArea2,pp as ChartLine,Tm as ChatGPT,Zo as Check,Xo as Check2,hs as Checkbox,Jo as CheckboxCheckedFill,Qo as CheckboxUnchecked,ea as CircleCheck,fp as CircleCheckFill,gp as CircleDollar,hp as CircleDotted,ta as CircleHalfDottedCheck,ra as CircleHalfDottedClock,oa as CircleInfo,vp as CirclePercentage,bp as CirclePlay,xp as CirclePlayFill,yp as CircleQuestion,wp as CircleUser,Tr as CircleWarning,Cp as CircleXmark,Np as Circles,kp as Circles3,oi as ClientOnly,aa as CloudUpload,Pp as Code,Sp as ColorPalette2,xv as Combobox,I6 as CompositeLogo,Mp as ConnectedDots,Rp as ConnectedDots4,Ht as ConnectedDotsFill,Tp as Connections3,Do as Copy,O8 as CopyButton,W8 as CopyText,Lp as CreditCard,Ep as Crosshairs3,Ap as Crown,im as CrownSmall,Dp as Cube,Ip as CubeSettings,Vt as CubeSettingsFill,zp as CurrencyDollar,Op as CursorRays,_p as DatabaseKey,Wr as DatePickerContext,o2 as DateRangePicker,Hp as Desktop,Vp as DiamondTurnRight,Bt as DiamondTurnRightFill,Bp as Directions,Wp as Discount,Fp as Dots,Up as Download,sm as DubCraftedShield,tn as DubStatusBadge,Gp as Duplicate,Yt as DynamicTooltipWrapper,na as Earth,$p as EarthPosition,g2 as EmptyState,Kp as Envelope,jp as EnvelopeAlert,Yp as EnvelopeArrowRight,km as Europe,Io as ExpandingArrow,ia as Eye,sa as EyeSlash,br as FEATURES_LIST,dm as Facebook,la as FeatherFill,Lm as Figma,qp as FileContent,S2 as FileUpload,Zp as FileZip2,J2 as Filter,Jp as Filter2,Xp as FilterBars,e0 as Flag2,ca as Flag6,Qp as FlagWavy,t0 as Flask,r0 as FlaskSmall,o0 as Folder,l0 as Folder5,a0 as FolderBookmark,n0 as FolderLock,i0 as FolderPlus,s0 as FolderShield,k8 as Footer,nb as Form,c0 as GamingConsole,d0 as Gauge6,u0 as Gear,m0 as Gear2,p0 as Gear3,f0 as Gem,da as Gift,g0 as GiftFill,Em as GitHubEnhanced,It as Github,h0 as Globe,ma as Globe2,ua as GlobePointer,v0 as GlobeSearch,Fo as Go,um as Google,Am as GoogleEnhanced,b0 as GreekTemple,fn as Grid,x0 as GridIcon,y0 as GridLayoutRows,w0 as GridPlus,C0 as Headset,pa as HeadsetFill,fa as HeartFill,ga as HexadecagonStar,N0 as History,ha as Hyperlink,U8 as IconMenu,k0 as Icosahedron,va as Incognito,M1 as InfoTooltip,$8 as InlineSnippet,Cc as Input,P0 as InputPassword,ba as InputPasswordPointer,xa as InputSearch,zb as InputSelect,mm as Instagram,S0 as InvoiceDollar,M0 as Key,za as KeyboardShortcutContext,sh as KeyboardShortcutProvider,On as LEGAL_PAGES,Fc as Label,R0 as LayoutSidebar,T0 as License,ya as LinesY,E0 as Link4,L0 as LinkBroken,Z8 as LinkLogo,i6 as LinkPreview,s6 as LinkPreviewPlaceholder,zt as LinkedIn,S1 as LinkifyTooltipContent,bt as LoadingCircle,cm as LoadingDots,Ne as LoadingSpinner,A0 as LocationPin,D0 as LockFill,po as Logo,zo as Magic,I0 as Magnifier,z0 as MapPosition,O0 as MarketingTarget,lm as MatrixLines,wr as MaxWidthWrapper,_0 as Menu3,jb as MenuItem,H0 as MessageSmile,Wt as MicrophoneFill,o4 as MiniAreaChart,V0 as MobilePhone,c4 as Modal,B0 as MoneyBill,W0 as MoneyBill2,F0 as MoneyBills2,U0 as Msgs,V5 as Nav,go as NavContext,J5 as NavMobile,kr as NavWordmark,Pm as NorthAmerica,G0 as Note,J0 as NucleoPhoto,R1 as NumberTooltip,Sm as Oceania,$0 as OfficeBuilding,Yf as PLAN_FEATURE_ICONS,wa as Page2,m4 as PaginationControls,K0 as Paintbrush,j0 as Palette2,Y0 as PaperPlane,Om as Payoneer,_m as Paypal,Z0 as Pen2,q0 as PenWriting,X0 as PercentageArrowDown,Oo as Photo,Uo as Php,Q0 as Plug2,Ft as Plus,ot as Popover,f6 as Popup,Xu as PopupContext,ef as Post,pm as Prisma,Bo as ProductHunt,b6 as ProgressBar,tf as Pyramid,Go as Python,rf as QRCode,xr as RESOURCES,sd as RadioGroup,ld as RadioGroupItem,Wo as Raycast,of as Receipt2,Lr as ReferredVia,af as Refresh2,nf as Robot,$o as Ruby,mo as SDKS,Lx as SOCIAL_LINKS,zn as SOLUTIONS,Ca as SatelliteDish,sf as ScanText,lf as Scribble,y4 as Sheet,cf as ShieldAlert,df as ShieldCheck,uf as ShieldKeyhole,mf as ShieldSlash,pf as ShieldUser,k4 as ShimmerDots,ff as Shuffle,P1 as SimpleTooltipContent,fm as Slack,gf as Sliders,_o as SortOrder,Mm as SouthAmerica,hf as Sparkle3,Dm as Spotify,vf as SquareChart,bf as SquareLayoutGrid5,xf as SquareLayoutGrid6,yf as SquareXmark,wf as Stars2,E4 as StatusBadge,Hm as StripeLink,Ho as Success,V4 as Switch,Lf as TV,R6 as TabSelect,dx as Table,Cf as TableIcon,Nf as TableRows2,kf as Tablet,Pf as Tag,Sf as Tags,Vo as Tick,gm as TikTok,Na as Timer2,hm as Tinybird,Mf as Toggle2Fill,gx as ToggleGroup,c1 as TokenAvatar,J as Tooltip,k1 as TooltipContent,N1 as TooltipProvider,Rf as Trash,Tf as TriangleWarning,Ot as Twitter,Ko as Typescript,Nx as UTMBuilder,Wd as UTM_PARAMETERS,Ef as UiCard,vm as Unsplash,Af as User,Df as UserCheck,If as UserCrown,zf as UserDelete,Of as UserPlus,_f as Users,Vf as Users2,Bf as Users6,Ut as UsersFill,Hf as UsersSettings,Vm as Venmo,Wf as Versions2,ka as Views,Ff as Watch,Uf as Webhook,Gf as Window,$f as WindowSearch,Kf as WindowSettings,ei as Wordmark,jf as Xmark,_t as YouTube,Ti as badgeVariants,se as buttonVariants,Mi as getUserAvatarUrl,ho as navItems,Cd as statusBadgeVariants,ve as useCarousel,Ea as useCarouselActiveIndex,zg as useCookies,et as useCopyToClipboard,Bg as useCurrentAnchor,Gg as useEnterSubmit,Yg as useInViewport,Xg as useInputFocused,th as useIntersectionObserver,tt as useKeyboardShortcut,dh as useLocalStorage,q as useMediaQuery,gh as useOptimisticUpdate,Mh as usePagination,Lh as useRemoveGAParams,Zt as useResizeObserver,Va as useRouterStuff,Fa as useScroll,Ae as useScrollProgress,cx as useTable,Ha as useTablePagination,Gh as useToastWithUndo};
|
|
52
|
+
</svg>`;function Sr({variant:e="full",isInApp:t,className:r}){let{domain:o="dub.co"}=Mu(),{theme:a}=Tu(bo),[c,s]=Lu(!1),l=Ru(n=>{n.preventDefault(),s(!0)},[]),[,u]=et();function d(n){Eu.promise(u(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return ii(He.Root,{open:c,onOpenChange:s,children:[Z(He.Anchor,{asChild:!0,children:Z("div",{onContextMenu:l,className:"max-w-fit",children:e==="full"?Z(ni,{className:r}):Z(ho,{className:i("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),Z(He.Portal,{children:Z(He.Content,{sideOffset:14,align:"start",className:i("z-50 -mt-1.5",!t&&"-translate-x-8",a==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),s(!1)},children:ii("div",{className:"grid gap-1 rounded-lg border border-neutral-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[Z(Et,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>d(Au),icon:Z(ho,{className:"h-4 w-4"})}),Z(Et,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>d(Du),icon:Z(Su,{strokeWidth:2,className:"h-4 w-4"})}),Z(Et,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:Z(Nu,{strokeWidth:2,className:"h-4 w-4"})}),t||o!="dub.co"?Z(Et,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:Z(ku,{strokeWidth:2,className:"h-4 w-4"})}):Z(Et,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:Z(Pu,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function Et({className:e,...t}){return Z(le,{className:i("h-9 justify-start px-3 font-medium hover:text-neutral-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",e),...t})}import{jsx as E,jsxs as F}from"react/jsx-runtime";var Ou=[{name:"Twitter",icon:_t,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:Ot,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:zt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:Ht,href:"https://www.youtube.com/@dubdotco"}],pt={product:[...yr.map(({title:e,href:t})=>({name:e,href:t})),{name:"Dub Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"}],solutions:[{name:"Marketing attribution",href:"/analytics"},{name:"Content creators",href:"/solutions/creators"},{name:"Affiliate management",href:"/partners"}],resources:[{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Changelog",href:"/changelog"},{name:"Blog",href:"/blog"},{name:"Customers",href:"/customers"},{name:"Affiliates",href:"https://partners.dub.co/dub",target:"_blank"},{name:"About",href:"/about"},{name:"Brand",href:"/brand"},{name:"Contact",href:"/contact"}],compare:Cr.map(({name:e,slug:t})=>({name:e,href:`/compare/${t}`})),legal:Wn.map(({name:e,slug:t})=>({name:e,href:`/legal/${t}`})),tools:Oo.map(({name:e,slug:t})=>({name:e,href:`/tools/${t}`}))},ft="text-sm font-medium text-neutral-900",gt="flex flex-col mt-2.5 gap-3.5",Ze="flex items-center gap-1 text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function H8({staticDomain:e,className:t}){let{domain:r="dub.co"}=zu();return e&&(r=e),E(Nr,{className:i("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",t),children:F("footer",{children:[F("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[F("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:F(Ve,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[F("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),E(Sr,{className:"h-8 text-neutral-800"})]})}),E("div",{className:"flex items-center gap-3",children:Ou.map(({name:o,icon:a,href:c})=>F("a",{href:c,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[E("span",{className:"sr-only",children:o}),E(a,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},o))})]}),F("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[F("div",{className:"md:grid md:grid-cols-2",children:[F("div",{className:"grid gap-8",children:[F("div",{children:[E("h3",{className:ft,children:"Product"}),E("ul",{role:"list",className:gt,children:pt.product.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]}),F("div",{children:[E("h3",{className:ft,children:"Solutions"}),E("ul",{role:"list",className:gt,children:pt.solutions.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]})]}),F("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:ft,children:"Resources"}),E("ul",{role:"list",className:gt,children:pt.resources.map(o=>E("li",{children:F(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),target:o.target,className:Ze,children:[o.name,o.target&&E(Dr,{className:"size-3.5"})]})},o.name))})]})]}),F("div",{className:"md:grid md:grid-cols-2",children:[F("div",{className:"grid gap-8",children:[F("div",{children:[E("h3",{className:ft,children:"Compare"}),E("ul",{role:"list",className:gt,children:pt.compare.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]}),F("div",{children:[E("h3",{className:ft,children:"Legal"}),F("ul",{role:"list",className:gt,children:[pt.legal.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name)),E("li",{children:F("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:Ze,children:["Trust Center ",E(Dr,{className:"size-3.5"})]})})]})]})]}),F("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:ft,children:"Tools"}),E("ul",{role:"list",className:gt,children:pt.tools.map(o=>E("li",{children:E(Ve,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:Ze,children:o.name})},o.name))})]})]})]})]}),F("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[E(nn,{}),E(Ve,{href:z("/blog/soc2",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"SOC2"}),className:"flex sm:justify-center",children:E(Iu,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),F("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}import{AnimatePresence as _u,motion as Hu}from"framer-motion";import{useEffect as Vu,useState as Bu}from"react";import{jsx as si}from"react/jsx-runtime";var li=({children:e,fallback:t,fadeInDuration:r=.5,className:o})=>{let[a,c]=Bu(!1);Vu(()=>{c(!0)},[]);let s=r?Hu.div:"div";return si(_u,{children:a?si(s,{...r?{initial:{opacity:0},animate:{opacity:1},transition:{duration:r}}:{},className:o,children:e}):t||null})};import{cva as Wu}from"class-variance-authority";import{toast as Fu}from"sonner";import{jsx as Co,jsxs as Gu}from"react/jsx-runtime";var Uu=Wu("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-neutral-100 active:bg-neutral-200",neutral:"bg-transparent hover:bg-neutral-100 active:bg-neutral-200"}},defaultVariants:{variant:"default"}});function Z8({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[c,s]=et(),l=o||_o;return Gu("button",{onClick:u=>{u.stopPropagation(),Fu.promise(s(t),{success:a||"Copied to clipboard!"})},className:i(Uu({variant:e}),r),type:"button",children:[Co("span",{className:"sr-only",children:"Copy"}),c?Co(Uo,{className:"h-3.5 w-3.5"}):Co(l,{className:"h-3.5 w-3.5"})]})}import{toast as $u}from"sonner";import{jsx as Ku}from"react/jsx-runtime";function t6({value:e,children:t,className:r,successMessage:o}){let[a,c]=et();return Ku("button",{onClick:s=>{s.stopPropagation(),$u.promise(c(e),{success:o||"Copied to clipboard!"})},type:"button",className:i("cursor-copy text-sm text-neutral-700 decoration-dotted underline-offset-2 hover:underline",a&&"cursor-default",r),children:t})}import{jsx as ju,jsxs as Yu}from"react/jsx-runtime";function o6({icon:e,text:t}){return Yu("div",{className:"flex items-center justify-start space-x-2 truncate",children:[e,ju("p",{className:"truncate text-sm",children:t})]})}import{jsx as qu}from"react/jsx-runtime";var n6=({children:e})=>qu("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:e});import{jsx as No}from"react/jsx-runtime";function d6({apexDomain:e,className:t,imageProps:r}){return e?No(Tt,{src:`${It}${e}`,alt:e,className:i("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20,draggable:!1,...r}):No("div",{className:i("flex h-8 w-8 items-center justify-center rounded-full bg-neutral-100 px-0 sm:h-10 sm:w-10",t),children:No(ha,{className:"h-4 w-4 text-neutral-600 sm:h-5 sm:w-5"})})}import{Link2 as ci}from"lucide-react";import{useSearchParams as Zu}from"next/navigation";import{useEffect as Xu,useMemo as Ju,useRef as Qu}from"react";import em from"swr";import{useDebounce as tm}from"use-debounce";import{Fragment as di,jsx as Y,jsxs as Be}from"react/jsx-runtime";function y6({defaultUrl:e}){let t=Zu(),r=e||(t==null?void 0:t.get("url"))||"https://github.com/dubinc/dub",[o]=tm(Do(r),500),a=Ju(()=>Io(o||""),[o]),{data:c,isValidating:s}=em(o&&`/api/links/metatags?url=${encodeURIComponent(o)}`,ge,{revalidateOnFocus:!1}),{title:l,description:u,image:d}=c||{},n=Qu(null);Xu(()=>{!e&&n.current&&n.current.select()},[e]);let{isMobile:m}=q();return Be(di,{children:[!e&&Be("div",{className:"relative flex items-center",children:[Y(ci,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-neutral-400"}),Y("input",{ref:n,name:"url",id:"url",type:"url",autoFocus:!m,className:"block w-full rounded-md border-neutral-200 pl-10 text-sm text-neutral-900 placeholder-neutral-400 shadow-lg focus:border-neutral-500 focus:outline-none focus:ring-neutral-500",placeholder:"Enter your URL",defaultValue:r,"aria-invalid":"true"})]}),Be("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:[s&&Y("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300 bg-neutral-50",children:Y(xt,{})}),d?Y("img",{src:d,alt:"Preview",className:"h-[250px] w-full border-b border-neutral-300 object-cover"}):Be("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300",children:[Y(Bo,{className:"h-8 w-8 text-neutral-400"}),Y("p",{className:"text-sm text-neutral-400",children:"Enter a link to generate a preview."})]}),Be("div",{className:"grid gap-1 bg-white p-3 text-left",children:[a?Y("p",{className:"text-sm text-[#536471]",children:a}):Y("div",{className:"mb-1 h-4 w-24 rounded-md bg-neutral-100"}),l?Y("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:l}):Y("div",{className:"mb-1 h-4 w-full rounded-md bg-neutral-100"}),u?Y("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):Be("div",{className:"grid gap-2",children:[Y("div",{className:"h-4 w-full rounded-md bg-neutral-100"}),Y("div",{className:"h-4 w-48 rounded-md bg-neutral-100"})]})]})]})]})}function w6({defaultUrl:e}){return Be(di,{children:[Be("div",{className:"relative flex items-center",children:[Y(ci,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-neutral-400"}),Y("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-neutral-200 pl-10 text-sm text-neutral-900 placeholder-neutral-400 shadow-lg focus:border-neutral-500 focus:outline-none focus:ring-neutral-500",placeholder:"Enter your URL",defaultValue:e||"https://github.com/dubinc/dub"})]}),Y("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:Y("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300 bg-neutral-50",children:Y(xt,{})})})]})}import{AnimatePresence as rm}from"framer-motion";import ui from"js-cookie";import{createContext as om,useState as am}from"react";import{jsx as ko}from"react/jsx-runtime";var nm=om({hidePopup:()=>{}});function R6({children:e,hiddenCookieId:t}){let[r,o]=am(ui.get(t)==="1"),a=()=>{o(!0),ui.set(t,"1")};return ko(li,{children:ko(nm.Provider,{value:{hidePopup:a},children:ko(rm,{children:!r&&e})})})}import{motion as im}from"framer-motion";import{jsx as mi}from"react/jsx-runtime";function A6({value:e=0,max:t=100,className:r}){return mi("div",{className:i("h-3 w-full overflow-hidden rounded-full bg-neutral-200",r),children:mi(im.div,{initial:{width:0},animate:{width:e&&t?e/t*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${e&&t&&e>t?"bg-red-500":"bg-blue-500"} h-full`})})}import{cva as fi}from"class-variance-authority";import{LayoutGroup as sm,motion as lm}from"framer-motion";import cm from"next/link";import{useId as dm}from"react";import{jsx as At,jsxs as pi}from"react/jsx-runtime";var um=fi("p-4 transition-colors duration-75",{variants:{variant:{default:"text-content-subtle data-[selected=true]:text-content-emphasis data-[selected=false]:hover:text-content-default",accent:"text-content-subtle transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-content-default data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),mm=fi("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-bg-inverted",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function U6({variant:e,options:t,selected:r,onSelect:o,className:a}){let c=dm();return At("div",{className:i("flex text-sm",a),children:At(sm,{id:c,children:t.map(({id:s,label:l,href:u,target:d})=>{let n=s===r;return pi(u?cm:"div",{className:"relative",href:u??"#",target:d??void 0,children:[pi("button",{type:"button",...o&&!u&&{onClick:()=>o(s)},className:i(um({variant:e}),d==="_blank"&&"group flex items-center gap-1.5"),"data-selected":n,"aria-selected":n,children:[l,d==="_blank"&&At(Xo,{className:"size-2.5"})]}),n&&At(lm.div,{layoutId:"indicator",transition:{duration:.1},className:mm({variant:e}),children:At("div",{className:"h-0.5 rounded-t-full bg-current"})})]},s)})})})}import{jsx as Po,jsxs as gi}from"react/jsx-runtime";var pm=[{icon:Ra,text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{icon:ca,text:"Geo/device targeting",href:"https://dub.co/help/article/geo-targeting"},{icon:Ca,text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{icon:Ma,text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{icon:wa,text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"}];function K6(){return gi("div",{className:"p-3",children:[Po("span",{className:"block text-sm font-semibold text-neutral-600",children:"Advanced link features"}),Po("div",{className:"mt-2 flex flex-col gap-2.5 text-xs text-neutral-600",children:pm.map(({text:e,icon:t,href:r})=>gi("a",{href:r,target:"_blank",className:"flex items-center gap-2.5 underline decoration-dotted underline-offset-2",children:[Po(t,{className:"size-3.5 shrink-0"}),e]},e))})]})}import{jsx as hi,jsxs as fm}from"react/jsx-runtime";function q6({className:e}){return fm("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-6 w-auto text-black dark:text-white",e),children:[hi("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),hi("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{Vr as AUTOPLAY_DEFAULT_DELAY,dg as Accordion,Ni as AccordionContent,wi as AccordionItem,Ci as AccordionTrigger,K6 as AdvancedLinkFeaturesTooltip,Em as Africa,Um as Airtm,Mi as Alert,Ti as AlertDescription,Ri as AlertTitle,_m as Amazon,Zm as AndroidLogo,Pe as AnimatedSizeContainer,Xm as AppleLogo,Jm as ArrowBoldUp,Qm as ArrowRight,ep as ArrowTrendUp,tp as ArrowTurnLeft,rp as ArrowTurnRight2,Xo as ArrowUpRight,op as ArrowsOppositeDirectionY,Am as Asia,yo as AuthButton,bg as Avatar,V4 as Background,Yt as Badge,ap as BadgeCheck,np as BadgeCheck2Fill,Vg as BadgeTooltip,ip as Blog,Tt as BlurImage,sp as Bolt,lp as BoltFill,dp as Book2,Jo as Book2Fill,up as Book2Small,cp as BookOpen,mp as Books2,pp as BoxArchive,fp as BulletList,Qo as BulletListFill,le as Button,Bg as ButtonTooltip,Cr as COMPARE_PAGES,Vn as CUSTOMER_STORIES,Qa as Calendar,bp as Calendar6,hp as CalendarDays,gp as CalendarIcon,vp as CalendarRefresh,Mm as CardAmex,Rm as CardDiscover,d1 as CardList,Tm as CardMastercard,Lm as CardVisa,xp as Cards,yp as CaretUpFill,is as Carousel,ss as CarouselContent,ls as CarouselItem,R1 as CarouselNavBar,ds as CarouselNext,cs as CarouselPrevious,H1 as CarouselThumbnail,_1 as CarouselThumbnails,Gm as CashApp,wp as ChartActivity2,Cp as ChartArea2,Np as ChartLine,Hm as ChatGPT,ea as Check,ta as Check2,ws as Checkbox,ra as CheckboxCheckedFill,oa as CheckboxUnchecked,aa as CircleCheck,kp as CircleCheckFill,Pp as CircleDollar,Sp as CircleDotted,na as CircleHalfDottedCheck,ia as CircleHalfDottedClock,sa as CircleInfo,Mp as CirclePercentage,Rp as CirclePlay,Tp as CirclePlayFill,Lp as CircleQuestion,Ep as CircleUser,Ar as CircleWarning,Ap as CircleXmark,Dp as Circles,Ip as Circles3,li as ClientOnly,la as CloudUpload,zp as Code,Op as ColorPalette2,Tv as Combobox,q6 as CompositeLogo,_p as ConnectedDots,Hp as ConnectedDots4,Vt as ConnectedDotsFill,Vp as Connections3,_o as Copy,Z8 as CopyButton,t6 as CopyText,Bp as CreditCard,Wp as Crosshairs3,Fp as Crown,gm as CrownSmall,Up as Cube,Gp as CubeSettings,Bt as CubeSettingsFill,$p as CurrencyDollar,Kp as CursorRays,jp as DatabaseKey,Gr as DatePickerContext,pb as DateRangePicker,Yp as Desktop,qp as DiamondTurnRight,Wt as DiamondTurnRightFill,Zp as Directions,Xp as Discount,Jp as Dots,Qp as Download,hm as DubCraftedShield,nn as DubStatusBadge,e0 as Duplicate,qt as DynamicTooltipWrapper,ca as Earth,t0 as EarthPosition,Pb as EmptyState,r0 as Envelope,o0 as EnvelopeAlert,a0 as EnvelopeArrowRight,Dm as Europe,Ho as ExpandingArrow,da as Eye,ua as EyeSlash,yr as FEATURES_LIST,xm as Facebook,ma as FeatherFill,Vm as Figma,n0 as FileContent,Ob as FileUpload,i0 as FileZip2,l2 as Filter,l0 as Filter2,s0 as FilterBars,d0 as Flag2,pa as Flag6,c0 as FlagWavy,u0 as Flask,m0 as FlaskSmall,p0 as Folder,b0 as Folder5,f0 as FolderBookmark,g0 as FolderLock,h0 as FolderPlus,v0 as FolderShield,H8 as Footer,g2 as Form,x0 as GamingConsole,y0 as Gauge6,w0 as Gear,C0 as Gear2,N0 as Gear3,k0 as Gem,fa as Gift,P0 as GiftFill,Bm as GitHubEnhanced,zt as Github,S0 as Globe,ha as Globe2,ga as GlobePointer,M0 as GlobeSearch,Ko as Go,ym as Google,Wm as GoogleEnhanced,R0 as GreekTemple,bn as Grid,T0 as GridIcon,L0 as GridLayoutRows,E0 as GridPlus,A0 as Headset,va as HeadsetFill,ba as HeartFill,xa as HexadecagonStar,D0 as History,ya as Hyperlink,o6 as IconMenu,I0 as Icosahedron,wa as Incognito,_g as InfoTooltip,n6 as InlineSnippet,Mc as Input,z0 as InputPassword,Ca as InputPasswordPointer,Na as InputSearch,$2 as InputSelect,wm as Instagram,O0 as InvoiceDollar,_0 as Key,Va as KeyboardShortcutContext,vh as KeyboardShortcutProvider,Wn as LEGAL_PAGES,jc as Label,H0 as LayoutSidebar,V0 as License,ka as LinesY,W0 as Link4,B0 as LinkBroken,d6 as LinkLogo,y6 as LinkPreview,w6 as LinkPreviewPlaceholder,Ot as LinkedIn,Og as LinkifyTooltipContent,xt as LoadingCircle,bm as LoadingDots,Ne as LoadingSpinner,F0 as LocationPin,U0 as LockFill,ho as Logo,Vo as Magic,G0 as Magnifier,$0 as MapPosition,K0 as MarketingTarget,vm as MatrixLines,Nr as MaxWidthWrapper,j0 as Menu3,ox as MenuItem,Y0 as MessageSmile,Ft as MicrophoneFill,px as MiniAreaChart,q0 as MobilePhone,xx as Modal,Z0 as MoneyBill,X0 as MoneyBill2,J0 as MoneyBills2,Q0 as Msgs,Q5 as Nav,bo as NavContext,m8 as NavMobile,Sr as NavWordmark,Im as NorthAmerica,ef as Note,cf as NucleoPhoto,Hg as NumberTooltip,zm as Oceania,tf as OfficeBuilding,ag as PLAN_FEATURE_ICONS,Pa as Page2,Cx as PaginationControls,rf as Paintbrush,of as Palette2,af as PaperPlane,$m as Payoneer,Km as Paypal,sf as Pen2,nf as PenWriting,lf as PercentageArrowDown,Bo as Photo,jo as Php,df as Plug2,Ut as Plus,ot as Popover,R6 as Popup,nm as PopupContext,uf as Post,Cm as Prisma,Go as ProductHunt,A6 as ProgressBar,mf as Pyramid,Yo as Python,pf as QRCode,wr as RESOURCES,md as RadioGroup,pd as RadioGroupItem,$o as Raycast,ff as Receipt2,Dr as ReferredVia,gf as Refresh2,hf as Robot,qo as Ruby,go as SDKS,G4 as SOCIAL_LINKS,Bn as SOLUTIONS,Sa as SatelliteDish,vf as ScanText,bf as Scribble,Lx as Sheet,xf as ShieldAlert,yf as ShieldCheck,wf as ShieldKeyhole,Cf as ShieldSlash,Nf as ShieldUser,Ix as ShimmerDots,kf as Shuffle,zg as SimpleTooltipContent,Nm as Slack,Pf as Sliders,Hx as SmartDateTimePicker,Wo as SortOrder,Om as SouthAmerica,Sf as Sparkle3,Fm as Spotify,Mf as SquareChart,Rf as SquareLayoutGrid5,Tf as SquareLayoutGrid6,Lf as SquareXmark,Ef as Stars2,$x as StatusBadge,jm as Stripe,Ym as StripeLink,Fo as Success,Qx as Switch,Bf as TV,U6 as TabSelect,k4 as Table,Af as TableIcon,Df as TableRows2,If as Tablet,zf as Tag,Of as Tags,Uo as Tick,km as TikTok,Ma as Timer2,Pm as Tinybird,_f as Toggle2Fill,T4 as ToggleGroup,xg as TokenAvatar,J as Tooltip,Ig as TooltipContent,Dg as TooltipProvider,Hf as Trash,Vf as TriangleWarning,_t as Twitter,Zo as Typescript,_4 as UTMBuilder,qd as UTM_PARAMETERS,Wf as UiCard,Sm as Unsplash,Ff as User,Uf as UserCheck,Gf as UserCrown,$f as UserDelete,Kf as UserPlus,jf as Users,qf as Users2,Zf as Users6,Gt as UsersFill,Yf as UsersSettings,qm as Venmo,Xf as Versions2,Ra as Views,Jf as Watch,Qf as Webhook,eg as Window,tg as WindowSearch,rg as WindowSettings,ni as Wordmark,og as Xmark,Ht as YouTube,Ii as badgeVariants,se as buttonVariants,Ai as getUserAvatarUrl,xo as navItems,Ld as statusBadgeVariants,ve as useCarousel,za as useCarouselActiveIndex,$1 as useCookies,et as useCopyToClipboard,Z1 as useCurrentAnchor,eh as useEnterSubmit,ah as useInViewport,sh as useInputFocused,uh as useIntersectionObserver,tt as useKeyboardShortcut,yh as useLocalStorage,q as useMediaQuery,Ph as useOptimisticUpdate,_h as usePagination,Bh as useRemoveGAParams,Xt as useResizeObserver,Ua as useRouterStuff,Ka as useScroll,Ae as useScrollProgress,N4 as useTable,Fa as useTablePagination,ev as useToastWithUndo};
|