@dub/ui 0.2.32 → 0.2.34
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/index.css +1 -1
- 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 Hm,$a as P0,$b as da,$c as wa,A as _t,Aa as l0,Ab as na,Ac as Dp,Ad as Rf,B as vm,Ba as c0,Bb as ia,Bc as Ip,Bd as Tf,C as bm,Ca as d0,Cb as sa,Cc as zp,Cd as Lf,D as xm,Da as u0,Db as Y0,Dc as Op,Dd as Ef,E as ym,Ea as m0,Eb as q0,Ec as _p,Ed as Af,F as Fo,Fa as qo,Fb as Z0,Fc as Ft,Fd as Df,G as Wo,Ga as Zo,Gb as X0,Gc as Hp,Gd as If,H as Uo,Ha as Xo,Hb as J0,Hc as Vp,Hd as zf,I as Go,Ia as Jo,Ib as Q0,Ic as Bp,Id as Of,J as $o,Ja as Qo,Jb as la,Jc as Fp,Jd as Ut,K as wm,Ka as p0,Kb as ep,Kc as Wp,Kd as _f,L as Cm,La as f0,Lb as tp,Lc as Up,Ld as Hf,M as Nm,Ma as g0,Mb as rp,Mc as Gp,Md as Vf,N as km,Na as ea,Nb as op,Nc as ya,Nd as Bf,O as Pm,Oa as ta,Ob as ap,Oc as $p,Od as ka,P as Sm,Pa as ra,Pb as np,Pc as Kp,Pd as Ff,Q as Mm,Qa as h0,Qb as ip,Qc as jp,Qd as Wf,R as Rm,Ra as v0,Rb as sp,Rc as Yp,Rd as Uf,S as Tm,Sa as b0,Sb as lp,Sc as qp,Sd as Gf,T as Lm,Ta as x0,Tb as cp,Tc as Zp,Td as $f,U as Em,Ua as y0,Ub as dp,Uc as Xp,Ud as Kf,V as Am,Va as Tr,Vb as up,Vc as Jp,Vd as jf,W as Dm,Wa as w0,Wb as mp,Wc as Wt,X as Im,Xa as C0,Xb as pp,Xc as Qp,Y as zm,Ya as N0,Yb as ca,Yc as ef,Z as Om,Za as oa,Zb as fp,Zc as tf,_ as _m,_a as k0,_b as gp,_c as rf,a as Ao,aa as Vm,ab as S0,ac as hp,ad as of,b as nm,ba as Bm,bb as Ht,bc as ua,bd as af,c as im,ca as Fm,cb as M0,cc as vp,cd as Ca,d as Do,da as Wm,db as R0,dc as bp,dd as nf,e as Io,ea as Um,eb as T0,ec as xp,ed as sf,f as sm,fa as Gm,fb as L0,fc as yp,fd as lf,g as zo,ga as $m,gb as E0,gc as wp,gd as cf,h as Oo,ha as Ko,hb as A0,hc as ma,hd as df,i as _o,ia as Km,ib as D0,ic as pa,id as uf,j as Ho,ja as jm,jb as Vt,jc as fa,jd as mf,k as bt,ka as Ym,kb as I0,kc as Cp,kd as pf,l as lm,la as qm,lb as z0,lc as ga,ld as ff,m as Ne,ma as Zm,mb as O0,mc as Np,md as gf,n as cm,na as Xm,nb as _0,nc as ha,nd as hf,o as It,oa as Jm,ob as H0,oc as kp,od as vf,p as dm,pa as Qm,pb as Bt,pc as va,pd as bf,q as um,qa as jo,qb as V0,qc as ba,qd as xf,r as zt,ra as e0,rb as B0,rc as Pp,rd as yf,s as mm,sa as t0,sb as F0,sc as Sp,sd as wf,t as Vo,ta as r0,tb as W0,tc as Mp,td as Cf,u as Bo,ua as o0,ub as U0,uc as Rp,ud as Nf,v as pm,va as Yo,vb as aa,vc as xa,vd as kf,w as fm,wa as a0,wb as G0,wc as Tp,wd as Pf,x as gm,xa as n0,xb as $0,xc as Lp,xd as Na,y as Ot,ya as i0,yb as K0,yc as Ep,yd as Sf,z as hm,za as s0,zb as j0,zc as Ap,zd as Mf}from"./chunk-WFZJOO64.mjs";import{a as q}from"./chunk-NWME2ANF.mjs";import{a as Po,b as So,c as Mo,d as ht,e as vt,f as Ce,g as Rr,h as Ro,i as z,j as To,k as fe,l as i,m as At,n as Dt,o as Lo,p as Eo}from"./chunk-Y7JSLQXQ.mjs";import*as ne from"@radix-ui/react-accordion";import{ChevronDown as fi}from"lucide-react";import*as $t from"react";import{jsx as Gt,jsxs as bi}from"react/jsx-runtime";var Qf=ne.Root,gi=$t.forwardRef(({className:e,...t},r)=>Gt(ne.Item,{ref:r,className:i("border-b border-b-slate-200 py-3 last:border-none",e),...t}));gi.displayName="AccordionItem";var hi=$t.forwardRef(({className:e,children:t,variant:r="chevron",...o},a)=>{let c=r==="chevron"?fi:Wt;return Gt(ne.Header,{className:"flex",children:bi(ne.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"})]})})});hi.displayName=ne.Trigger.displayName;var vi=$t.forwardRef(({className:e,children:t,...r},o)=>Gt(ne.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}));vi.displayName=ne.Content.displayName;import{cva as xi}from"class-variance-authority";import*as Kt from"react";import{jsx as Lr}from"react/jsx-runtime";var yi=xi("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"}}),wi=Kt.forwardRef(({className:e,variant:t,...r},o)=>Lr("div",{ref:o,role:"alert",className:i(yi({variant:t}),e),...r}));wi.displayName="Alert";var Ci=Kt.forwardRef(({className:e,...t},r)=>Lr("h5",{ref:r,className:i("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));Ci.displayName="AlertTitle";var Ni=Kt.forwardRef(({className:e,...t},r)=>Lr("div",{ref:r,className:i("text-sm [&_p]:leading-relaxed",e),...t}));Ni.displayName="AlertDescription";import{sha256 as ki}from"js-sha256";import{useState as Pi}from"react";import{jsx as Er}from"react/jsx-runtime";function Si(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/${ki(e.email)}?d=${encodeURIComponent(r)}`:t}function s1({user:e={},className:t}){if(!e)return Er("div",{className:i("h-10 w-10 animate-pulse rounded-full border border-neutral-300 bg-neutral-100",t)});let[r,o]=Pi(Si(e));return Er("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 l1({id:e,className:t}){return Er("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 Mi}from"class-variance-authority";import{jsx as Ti}from"react/jsx-runtime";var Ri=Mi("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 Ti("span",{className:i(Ri({variant:t}),e),...r})}import{cva as Ii}from"class-variance-authority";import{forwardRef as zi}from"react";import*as ge from"@radix-ui/react-tooltip";import Li from"linkify-react";import{HelpCircle as Ei}from"lucide-react";import Ai from"next/link";import{useState as Di}from"react";import{jsx as G,jsxs as Xe}from"react/jsx-runtime";function C1({children:e}){return G(ge.Provider,{delayDuration:150,children:e})}function J({children:e,content:t,contentClassName:r,side:o="top",disableHoverableContent:a,delayDuration:c=0,...s}){let[l,m]=Di(!1);return Xe(ge.Root,{open:l,onOpenChange:m,delayDuration:c,disableHoverableContent:a,children:[G(ge.Trigger,{asChild:!0,onClick:()=>{m(!0)},onBlur:()=>{m(!1)},children:e}),G(ge.Portal,{children:G(ge.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"?G("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:m}):t})})]})}function N1({title:e,cta:t,href:r,target:o,onClick:a}){return Xe("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[G("p",{className:"text-sm text-neutral-700",children:e}),t&&(r?G(Ai,{href:r,...o?{target:o}:{},className:i(ie({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:t}):a?G(se,{onClick:a,text:t,variant:"primary",className:"h-9"}):null)]})}function k1({title:e,cta:t,href:r}){return Xe("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[e," ",G("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 P1({children:e,className:t,tooltipClassName:r}){return G("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:G(Li,{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 S1(e){return G(J,{...e,children:G(Ei,{className:"h-4 w-4 text-neutral-500"})})}function M1({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:G(J,{content:Xe("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-neutral-700",children:[Xe("p",{className:"text-sm font-semibold text-neutral-700",children:[r,At(e||0,{full:!0})," ",t]}),a&&Xe("p",{className:"mt-1 text-xs text-neutral-500",suppressHydrationWarning:!0,children:["Last clicked ",So(a,{withAgo:!0})]})]}),children:o})}function R1({children:e,content:t,...r}){return G(J,{content:t,...r,children:G("div",{className:"flex cursor-pointer items-center",children:G(jt,{variant:"gray",className:"border-neutral-300 transition-all hover:bg-neutral-200",children:e})})})}function T1({children:e,tooltipProps:t,...r}){return G(J,{...t,children:G("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?G(J,{...t,children:G("div",{children:e})}):e}import{jsx as Je,jsxs as Pa}from"react/jsx-runtime";var ie=Ii("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"}}),se=zi(({text:e,variant:t="primary",className:r,textWrapperClassName:o,shortcutClassName:a,loading:c,icon:s,shortcut:l,disabledTooltip:m,right:d,...n},u)=>m?Je(J,{content:m,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&&Je("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Je("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:u,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":ie({variant:t}),r),disabled:n.disabled||c,...n,children:[c?Je(Ne,{}):s||null,e&&Je("div",{className:i("min-w-0 truncate",l&&"flex-1 text-left",o),children:e}),l&&Je("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]}));se.displayName="Button";import{cva as Oi}from"class-variance-authority";import{createContext as _i}from"react";import{jsx as Sa}from"react/jsx-runtime";var Hi=Oi("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=_i({variant:"loose"});function Ma({variant:e="loose",loading:t=!1,className:r,children:o}){return Sa("ul",{className:i(Hi({variant:e,loading:t}),r),"data-variant":e,children:Sa(xt.Provider,{value:{variant:e},children:o})})}import{cva as Vi}from"class-variance-authority";import{createContext as Bi,useContext as Fi,useEffect as Wi,useRef as Ui,useState as Gi}from"react";import{jsx as Ra,jsxs as ji}from"react/jsx-runtime";var $i=Vi("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"}}}),Ki="w-full py-2.5 px-4",Ar=Bi({hovered:!1});function Ta({outerClassName:e,innerClassName:t,children:r,onClick:o,onAuxClick:a,hoverStateEnabled:c=!0,banner:s}){let{variant:l}=Fi(xt),m=Ui(null),[d,n]=Gi(!1);Wi(()=>{if(!d||!m.current)return;let f=setInterval(()=>{var v;((v=m.current)==null?void 0:v.matches(":hover"))===!1&&n(!1)},1e3);return()=>clearInterval(f)},[d]);let u=f=>!(document.getElementById("modal-backdrop")||vt(f));return ji("li",{ref:m,className:i($i({variant:l}),e),onPointerEnter:()=>n(!0),onPointerLeave:()=>n(!1),"data-hover-state-enabled":c,children:[s,Ra("div",{className:i(Ki,t),onClick:o?f=>{u(f)&&o(f)}:void 0,onAuxClick:a?f=>{u(f)&&a(f)}:void 0,children:Ra(Ar.Provider,{value:{hovered:d},children:r})})]})}var Q1=Object.assign(Ma,{Card:Object.assign(Ta,{Context:Ar}),Context:xt});import Yi from"embla-carousel-autoplay";import qi from"embla-carousel-react";import{ArrowLeft as Zi,ArrowRight as Xi}from"lucide-react";import{createContext as Ji,forwardRef as wt,useCallback as yt,useContext as Qi,useEffect as Dr,useState as Ir}from"react";import{jsx as ke,jsxs as Aa}from"react/jsx-runtime";var zr=2e3,La=Ji(null);function he(){let e=Qi(La);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function Ea(){let{api:e}=he(),[t,r]=Ir(0),o=yt(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return Dr(()=>{!e||(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),t}var es=wt(({orientation:e="horizontal",opts:t,setApi:r,autoplay:o,plugins:a,className:c,children:s,...l},m)=>{let[d,n]=qi({...t,axis:e==="horizontal"?"x":"y"},[...o?[Yi(typeof o=="object"?o:{delay:zr})]:[],...a||[]]),[u,f]=Ir(!1),[v,b]=Ir(!1),h=yt(M=>{!M||(f(M.canScrollPrev()),b(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 Dr(()=>{!n||!r||r(n)},[n,r]),Dr(()=>{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:u,canScrollNext:v},children:ke("div",{ref:m,onKeyDownCapture:N,className:i("relative",c),role:"region","aria-roledescription":"carousel",...l,children:s})})});es.displayName="Carousel";var ts=wt(({className:e,...t},r)=>{let{carouselRef:o,orientation:a}=he();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})})});ts.displayName="CarouselContent";var rs=wt(({className:e,...t},r)=>{let{orientation:o}=he();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})});rs.displayName="CarouselItem";var os=wt(({className:e,...t},r)=>{let{orientation:o,scrollPrev:a,canScrollPrev:c}=he();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",ie({variant:"secondary",className:"p-2"}),e),disabled:!c,onClick:a,...t,children:[ke(Zi,{className:"h-4 w-4"}),ke("span",{className:"sr-only",children:"Previous slide"})]})});os.displayName="CarouselPrevious";var as=wt(({className:e,...t},r)=>{let{orientation:o,scrollNext:a,canScrollNext:c}=he();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",ie({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:"Next slide"})]})});as.displayName="CarouselNext";import{cva as ns}from"class-variance-authority";import{motion as is}from"framer-motion";import{ChevronLeft as ss,ChevronRight as ls}from"lucide-react";import*as Ee from"react";import{jsx as We,jsxs as Ct}from"react/jsx-runtime";var cs=ns("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 "}}}),vg=({variant:e="simple",className:t})=>{var b;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:c,api:s}=he(),l=(b=s==null?void 0:s.plugins())==null?void 0:b.autoplay,[m,d]=Ee.useState(0),[n,u]=Ee.useState(!1),f=Ee.useCallback(h=>{d((h==null?void 0:h.selectedScrollSnap())??0)},[]),v=Ee.useCallback(h=>()=>{l&&l.isPlaying()&&l.stop(),h()},[l]);return Ee.useEffect(()=>{!s||(f(s),u((l==null?void 0:l.isPlaying())??!1),s.on("reInit",f),s.on("select",f),s.on("autoplay:play",()=>u(!0)),s.on("autoplay:stop",()=>u(!1)))},[s,l,f]),Ct("div",{className:i(cs({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:v(o),children:[We(ss,{className:"h-4 w-4"}),We("span",{className:"sr-only",children:"Previous slide"})]}),s!=null&&We("div",{className:"flex items-center gap-1",children:s.slideNodes().map((h,g)=>Ct("button",{onClick:v(()=>s.scrollTo(g)),className:"rounded-full p-0.5 hover:bg-neutral-100 active:bg-neutral-200 sm:p-1.5",children:[We("div",{className:i("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",g===m?"bg-black":"bg-black/20",n&&g===m&&"w-6 bg-black/20"),children:n&&g===m&&We(is.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((l==null?void 0:l.options.delay)??zr)/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:v(r),children:[We(ls,{className:"h-4 w-4"}),We("span",{className:"sr-only",children:"Next slide"})]})]})};import ds from"embla-carousel-react";import{forwardRef as us,useCallback as ms,useEffect as ps}from"react";import{jsx as qt}from"react/jsx-runtime";var Sg=({className:e,...t})=>{let{api:r}=he(),[o,a]=ds({dragFree:!0}),c=ms(s=>{!s||!a||a==null||a.scrollTo(s.selectedScrollSnap())},[a]);return ps(()=>{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})})},Mg=us(({index:e,className:t,...r},o)=>{let{api:a}=he(),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 fs}from"lucide-react";import*as Da from"react";import{jsx as Or}from"react/jsx-runtime";var gs=Da.forwardRef(({className:e,...t},r)=>Or(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:Or(Nt.Indicator,{className:"flex items-center justify-center",children:Or(fs,{className:"h-3 w-3 text-white"})})}));gs.displayName=Nt.Root.displayName;import{Command as Pt,CommandInput as il,CommandItem as sl,useCommandState as ll}from"cmdk";import{ChevronDown as cl}from"lucide-react";import{forwardRef as dl,isValidElement as ul,useCallback as ml,useEffect as Qt,useRef as pl,useState as kt}from"react";import{motion as ol}from"framer-motion";import{forwardRef as al,useRef as nl}from"react";import _r from"js-cookie";import{useEffect as hs,useState as vs}from"react";function Ig(e,t,r){let[o,a]=vs(()=>{let s=_r.get(e);return s?JSON.parse(s):t});return hs(()=>{let s=()=>{let l=_r.get(e);l&&a(JSON.parse(l))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[o,s=>{a(s),_r.set(e,JSON.stringify(s),r)}]}import{useCallback as bs,useEffect as xs,useRef as ys,useState as ws}from"react";var Qe=(e=3e3)=>{let t=ys(null),[r,o]=ws(!1),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},c=bs(async(s,{onSuccess:l,throwOnError:m}={})=>{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),m)throw d}},[e]);return xs(()=>()=>a(),[]),[r,c]};import{useEffect as Cs,useState as Ns}from"react";function Vg(){let[e,t]=Ns(null);return Cs(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let o=r.offsetTop-1,a=new IntersectionObserver(l=>{var u,f,v;let m=l[0];if(!m)return;let d=(((u=m.rootBounds)==null?void 0:u.height)||0)*.3+o;for(let b=1;b<l.length;b++){let h=l[b];if(!h)break;(h.boundingClientRect.top<m.boundingClientRect.top||m.boundingClientRect.bottom<o)&&(m=h)}let n=m.target;for(;n&&n.getBoundingClientRect().bottom<o;)n=(f=c.get(n))==null?void 0:f.next;for(;n&&n.getBoundingClientRect().top>d;)n=(v=c.get(n))==null?void 0:v.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 ks}from"react";function Ug(e){return{handleKeyDown:ks(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 Ps,useState as Ss}from"react";function jg(e,t={}){let{root:r,defaultValue:o}=t,[a,c]=Ss(o??!1);return Ps(()=>{let s=()=>{let m=e.current;if(!m)return;let d=r==null?void 0:r.current,n=m.getBoundingClientRect(),u=d?d.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};c(n.top<u.bottom&&n.bottom>u.top&&n.left<u.right&&n.right>u.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 Ms,useState as Rs}from"react";function Zg(){let[e,t]=Rs(!1);return Ms(()=>{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 Ts,useState as Ls}from"react";function eh(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:a=!1}={}){let[c,s]=Ls(),l=(c==null?void 0:c.isIntersecting)&&a,m=([d])=>{s(d)};return Ts(()=>{let d=e==null?void 0:e.current;if(!!!window.IntersectionObserver||l||!d)return;let u={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(m,u);return f.observe(d),()=>f.disconnect()},[e,JSON.stringify(t),r,o,l]),c}import{createContext as Es,useCallback as As,useContext as Ds,useEffect as Ia,useId as Is,useState as zs}from"react";import{jsx as Os}from"react/jsx-runtime";var za=Es({listeners:[],setListeners:()=>{}});function ih({children:e}){let[t,r]=zs([]);return Os(za.Provider,{value:{listeners:t,setListeners:r},children:e})}function et(e,t,r={}){let o=Is(),{listeners:a,setListeners:c}=Ds(za),s=As(l=>{if(r.enabled===!1)return;let m=l.target,d=document.getElementById("modal-backdrop"),n=document.querySelector("[data-sheet-overlay]");if(m.tagName==="INPUT"||m.tagName==="TEXTAREA"||!!d!=!!r.modal||!!n!=!!r.sheet)return;let u=[...l.metaKey?["meta"]:[],...l.ctrlKey?["ctrl"]:[],...l.altKey?["alt"]:[],l.key].join("+");if(Array.isArray(e)?!e.includes(u):u!==e)return;let f=a.filter(b=>b.enabled!==!1&&!!d==!!b.modal&&!!n==!!b.sheet&&(Array.isArray(b.key)?b.key.includes(u):b.key===u));!f.length||Po(f,(b,h)=>(h.priority??0)-(b.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(m=>m.id!==o),{id:o,key:e,...r}]),()=>c(l=>l.filter(m=>m.id!==o))),[JSON.stringify(e),r.enabled,r.priority])}import{useEffect as _s,useState as Hs}from"react";function Oa(e){if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}function ch(e,t){let[r,o]=Hs(Oa(e)??t);return _s(()=>{let c=Oa(e);c&&o(c)},[e]),[r,c=>{o(c),window.localStorage.setItem(e,JSON.stringify(c))}]}import{toast as Vs}from"sonner";import Bs from"swr";function fh(e,t){let{data:r,isLoading:o,mutate:a}=Bs(e,fe);return{data:r,isLoading:o,update:async(c,s)=>Vs.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 Ks}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 Ws,useRouter as Us,useSearchParams as Gs}from"next/navigation";import{useCallback as $s}from"react";function Va(){let e=Ws(),t=Us(),r=Gs(),o=Object.fromEntries(r),a=(s,l)=>{let m=new URLSearchParams(r);if((l==null?void 0:l.include)&&Array.isArray(l.include)){let n=new URLSearchParams;r.forEach((u,f)=>{var v;(v=l.include)!=null&&v.includes(f)&&n.set(f,u)}),m=n}(l==null?void 0:l.exclude)&&Array.isArray(l.exclude)&&l.exclude.forEach(n=>m.delete(n)),s&&Object.entries(s).forEach(([n,u])=>m.set(n,u));let d=m.toString();return d.length>0?`?${d}`:""},c=$s(({set:s,del:l,replace:m,scroll:d=!0,getNewPath:n,arrayDelimiter:u=","})=>{let f=new URLSearchParams(r);s&&Object.entries(s).forEach(([h,g])=>f.set(h,Array.isArray(g)?g.join(u):g)),l&&(Array.isArray(l)?l.forEach(h=>f.delete(h)):f.delete(l));let v=f.toString(),b=`${e}${v.length>0?`?${v}`:""}`;if(n)return b;m?t.replace(b,{scroll:!1}):t.push(b,{scroll:d})},[r,e,t]);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:c,getQueryString:a}}function Sh(e=Lo){let{searchParams:t,queryParams:r}=Va(),o=Ks(()=>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 js}from"react";function Th(){js(()=>{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 Ys,useState as qs}from"react";function Zt(e){let[t,r]=qs(),o=([a])=>{r(a)};return Ys(()=>{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 Zs,useEffect as Fa,useState as Xs}from"react";function Wa(e){let[t,r]=Xs(!1),o=Zs(()=>{r(window.scrollY>e)},[e]);return Fa(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),Fa(()=>{o()},[o]),t}import{useCallback as Js,useEffect as Qs,useState as el}from"react";function tt(e){let[t,r]=el(1),o=Js(()=>{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 Qs(o,[a]),{scrollProgress:t,updateScrollProgress:o}}import{useEffect as tl}from"react";import{toast as Ga}from"sonner";import{jsx as Xt,jsxs as Ua}from"react/jsx-runtime";function rl({id:e,message:t,undo:r}){let o=()=>{r(),Ga.dismiss(e)},a=c=>{c.key==="z"&&(c.ctrlKey||c.metaKey)&&o()};return tl(()=>(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(_o,{}),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 Uh(){return({id:t,message:r,undo:o,duration:a})=>Ga(Xt(rl,{id:t,message:r,undo:o}),{id:t,...a&&{duration:a}})}import{jsx as $a}from"react/jsx-runtime";var Pe=al(({width:e=!1,height:t=!1,className:r,transition:o,children:a,...c},s)=>{var d,n;let l=nl(null),m=Zt(l);return $a(ol.div,{ref:s,className:i("overflow-hidden",r),animate:{width:e?((d=m==null?void 0:m.contentRect)==null?void 0:d.width)??"auto":"auto",height:t?((n=m==null?void 0:m.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 Ae 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:m,collisionBoundary:d,sticky:n,onEscapeKeyDown:u,onWheel:f}){let{isMobile:v}=q();return s||v?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:u,onPointerDownOutside:b=>{b.target instanceof Element&&b.target.closest("[data-sonner-toast]")&&b.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(Ae.Root,{open:a,onOpenChange:c,children:[Se(Ae.Trigger,{className:"sm:inline-flex",asChild:!0,children:e}),Se(Ae.Portal,{children:Se(Ae.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:m,onEscapeKeyDown:u,onWheel:f,children:t})})]})}import{Fragment as er,jsx as L,jsxs as Me}from"react/jsx-runtime";function fl(e,t){return e===!0}function bv({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:c="Select...",searchPlaceholder:s="Search...",emptyState:l,createLabel:m,onCreate:d,buttonProps:n,shortcutHint:u,caret:f,side:v,open:b,onOpenChange:h,onSearchChange:g,shouldFilter:C=!0,inputRight:N,inputClassName:M,optionRight:k,optionClassName:w,matchTriggerWidth:W,hideSearch:R=!1,children:x}){let T=fl(e,r),B=Array.isArray(t)?t:t?[t]:[],{isMobile:P}=q(),[I,X]=kt(!1),A=b??I,ue=h??X,[U,Pr]=kt(""),[Co,Sr]=kt(!1),[Mr,ui]=kt(void 0),[mi,No]=kt(!1),pi=_=>{var Ze;if(T){let Be=B.some(({value:Fe})=>Fe===_.value);r(Be?B.filter(({value:Fe})=>Fe!==_.value):[...B,_])}else r(B.length&&((Ze=B[0])==null?void 0:Ze.value)===_.value?null:_),ue(!1)},ko=ml((_,Ze)=>Ze===""?[..._.filter(Be=>Be.first&&!B.some(Fe=>Fe.value===Be.value)),...B,..._.filter(Be=>!Be.first&&!B.some(Fe=>Fe.value===Be.value))]:_,[B]);return Qt(()=>{Co&&(ui(o&&ko(o,U)),Sr(!1))},[Co,o,ko,U]),Qt(()=>{Sr(!0)},[o]),Qt(()=>{A||(Pr(""),Sr(!0))},[A]),Qt(()=>g==null?void 0:g(U),[U]),L(ot,{openPopover:A,setOpenPopover:ue,align:"start",side:v,onWheel:_=>{_.stopPropagation()},popoverContentClassName:i(W&&"sm:w-[var(--radix-popover-trigger-width)]"),content:L(Pe,{width:!P&&!W,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(il,{placeholder:s,value:U,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"&&!U)&&(_.preventDefault(),_.stopPropagation(),ue(!1))}}),N&&L("div",{className:"mr-2",children:N}),u&&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:u})]}),L(gl,{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(hl,{option:_,multiple:T,selected:B.some(({value:Ze})=>Ze===_.value),onSelect:()=>pi(_),right:k==null?void 0:k(_),className:w},`${_.label}, ${_.value}`)),U.length>0&&d&&Me(sl,{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()=>{No(!0),await(d==null?void 0:d(U))&&(Pr(""),ue(!1)),No(!1)},children:[mi?L(Ne,{className:"size-4 shrink-0"}):L(Wt,{className:"size-4 shrink-0"}),L("div",{className:"grow truncate",children:(m==null?void 0:m(U))||`Create "${U}"`})]}),C?L(bl,{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(se,{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(cl,{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 gl=({children:e})=>{let t=pl(null),{scrollProgress:r,updateScrollProgress:o}=tt(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 hl({option:e,onSelect:t,multiple:r,selected:o,right:a,className:c}){return Me(er,{children:[L(vl,{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(Xo,{className:"size-4 text-neutral-600"}):L(Jo,{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(Zo,{className:"size-4 shrink-0 text-neutral-600"})]})}),e.separatorAfter&&L(Pt.Separator,{className:"-mx-1 my-1 h-px bg-neutral-200"})]})}var vl=({children:e,disabledTooltip:t})=>t?L(J,{content:t,children:L("div",{children:e})}):e,Ka=e=>ul(e),bl=dl((e,t)=>ll(o=>o.filtered.count===0)?L("div",{ref:t,"cmdk-empty":"",role:"presentation",...e}):null);import{addYears as tr,format as xl,isSameMonth as yl}from"date-fns";import{ChevronLeft as ja,ChevronRight as Ya,ChevronsLeft as wl,ChevronsRight as Cl}from"lucide-react";import{forwardRef as Nl,useRef as kl}from"react";import{DayPicker as Pl,useDayPicker as Sl,useDayRender as Ml,useNavigation as Rl}from"react-day-picker";import{Fragment as Tl,jsx as oe,jsxs as rr}from"react/jsx-runtime";var St=Nl(({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,...m}){return oe(Pl,{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:u,previousMonth:f,currentMonth:v,displayMonths:b}=Rl(),{numberOfMonths:h,fromDate:g,toDate:C}=Sl(),N=b.findIndex(T=>yl(d.displayMonth,T)),M=N===0,k=N===b.length-1,w=h>1&&(M||!k),W=h>1&&(k||!M),R=()=>{let T=tr(v,-1);f&&(!g||T.getTime()>=g.getTime())&&n(T)},x=()=>{let T=tr(v,1);u&&(!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&&!W&&oe(St,{disabled:a||!f||g&&tr(v,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:wl}),!W&&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:xl(d.displayMonth,"LLLL yyy",{locale:c})}),rr("div",{className:"flex items-center gap-1",children:[!w&&oe(St,{disabled:a||!u,"aria-label":"Go to next month",onClick:()=>u&&n(u),icon:Ya}),o&&!w&&oe(St,{disabled:a||!u||C&&tr(v,1).getTime()>C.getTime(),"aria-label":"Go to next year",onClick:x,icon:Cl})]})]})},Day:({date:d,displayMonth:n})=>{let u=kl(null),{activeModifiers:f,buttonProps:v,divProps:b,isButton:h,isHidden:g}=Ml(d,n,u),{selected:C,today:N,disabled:M,range_middle:k}=f;if(g)return oe(Tl,{});if(!h)return oe("div",{...b,className:i("flex items-center justify-center",b.className)});let{children:w,...W}=v;return rr("button",{ref:u,...W,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})})]})}},...m})}import{enUS as Bl}from"date-fns/locale";import{useEffect as Ur,useMemo as Xa,useState as ar}from"react";import{Command as Hr}from"cmdk";import{Lock as Ll}from"lucide-react";import{jsx as Ue,jsxs as El}from"react/jsx-runtime";var Vr=({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 u=d.from,f=n.from,v=!1;u&&f&&s(u,f)&&(v=!0);let b=d.to,h=n.to,g=!1;return b&&h&&s(b,h)&&(g=!0),v&&g},m=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 Ue(Hr,{className:"w-full rounded ring-neutral-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:Ue(Hr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,n)=>El(Hr.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",m(d)&&"font-semibold text-neutral-800"),children:[Ue("span",{children:d.label}),d.requiresUpgrade?Ue(Ll,{className:"h-3.5 w-3.5","aria-hidden":"true"}):d.shortcut?Ue("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&&Ue(J,{side:"bottom",content:d.tooltipContent,children:Ue("div",{className:"absolute inset-0 cursor-not-allowed"})})]},n))})})};Vr.displayName="DatePicker.Presets";import{format as De}from"date-fns";import{createContext as Al}from"react";var Br=Al({isOpen:!1,setIsOpen:()=>{}}),Dl=()=>{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=!Dl(),a;return r?a=o?De(e,"d MMM, yyyy h:mm a",{locale:t}):De(e,"d MMM, yyyy HH:mm",{locale:t}):a=De(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 m=o,d=r;e.forEach(n=>{var u,f,v,b,h,g;if("date"in n){let C=n.date.getFullYear();if(o&&C<o)throw new Error(`Preset ${n.label} is before fromYear ${m}.`);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 ${De(l,"MMM dd, yyyy")}.`)}if("dateRange"in n){let C=(u=n.dateRange.from)==null?void 0:u.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 ${m}.`);if(N&&r&&N>r)throw new Error(`Preset ${n.label}'s 'to' is after toYear ${d}.`);if(a){let M=(v=n.dateRange.from)==null?void 0:v.getMonth();if(M&&M<a.getMonth())throw new Error(`Preset ${n.label}'s 'from' is before fromMonth ${De(a,"MMM, yyyy")}.`)}if(c){let M=(b=n.dateRange.to)==null?void 0:b.getMonth();if(M&&M>c.getMonth())throw new Error(`Preset ${n.label}'s 'to' is after toMonth ${De(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 ${De(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 ${De(l,"MMM dd, yyyy")}.`)}}})}};import{cva as Il}from"class-variance-authority";import{Calendar as zl,ChevronDown as Ol}from"lucide-react";import{forwardRef as _l}from"react";import{jsx as or,jsxs as Vl}from"react/jsx-runtime";var Hl=Il(["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"}}}),Wr=_l(({className:e,children:t,placeholder:r,hasError:o,...a},c)=>Vl("button",{ref:c,className:i(Hl({hasError:o}),e),...a,children:[or(zl,{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(Ol,{className:"h-4 w-4 flex-shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));Wr.displayName="DatePicker.Trigger";import{jsx as ve,jsxs as Wl}from"react/jsx-runtime";var Fl=({value:e,defaultValue:t,presetId:r,onChange:o,presets:a,disabled:c,disableNavigation:s,disabledDays:l,showYearNavigation:m=!1,locale:d=Bl,placeholder:n="Select date range",hasError:u,align:f="center",className:v,...b})=>{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),[W,R]=ar(k==null?void 0:k.to),x=Xa(()=>k,[g]);Ur(()=>{w(e)},[e]),Ur(()=>{let A=a==null?void 0:a.find(({id:ue})=>ue===r);M(A),w((A==null?void 0:A.dateRange)??e??t)},[a,r]),Ur(()=>{g?k&&R(k.to):R(k==null?void 0:k.to)},[g]);let T=(A,ue)=>{let U=(k==null?void 0:k.from)&&(k==null?void 0:k.to)?{from:ue}:A;w(U),M(void 0),(U==null?void 0:U.from)&&(U==null?void 0:U.to)&&(o==null||o(U),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 et((a==null?void 0:a.filter(A=>A.shortcut).map(A=>A.shortcut))??[],A=>{let ue=a==null?void 0:a.find(U=>U.shortcut===A.key);ue&&B(ue)}),ve(Br.Provider,{value:{isOpen:g,setIsOpen:C},children:ve(ot,{align:f,openPopover:g,setOpenPopover:I,popoverContentClassName:"rounded-xl",content:ve("div",{className:"flex w-full",children:Wl("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[a&&a.length>0&&ve("div",{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:ve("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:ve(Vr,{currentPresetId:r,currentValue:k,presets:a,onSelect:B})})}),ve("div",{className:"scrollbar-hide overflow-x-scroll",children:ve(qa,{mode:"range",selected:k,onSelect:T,month:W,onMonthChange:R,numberOfMonths:h?2:1,disabled:l,disableNavigation:s,showYearNavigation:m,locale:d,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-neutral-200 overflow-x-scroll scrollbar-hide"},...b})})]})}),children:ve(Wr,{placeholder:n,disabled:c,className:v,hasError:u,"aria-required":b.required||b["aria-required"],"aria-invalid":b["aria-invalid"],"aria-label":b["aria-label"],"aria-labelledby":b["aria-labelledby"],children:(N==null?void 0:N.label)??X})})})};function t2({presets:e,...t}){return e&&Za(e,t),ve(Fl,{presets:e,...t})}import Ul from"next/link";import{useEffect as Gl,useState as Ja}from"react";import $l from"swr";import{jsx as Gr,jsxs as Qa}from"react/jsx-runtime";function en({className:e}){let{data:t}=$l("https://status.dub.co/api/v1/summary",fe),[r,o]=Ja("bg-neutral-200"),[a,c]=Ja("Loading status...");return Gl(()=>{if(!t)return;let{ongoing_incidents:s}=t;if(s.length>0){let{current_worst_impact:l,name:m}=s[0],d=l==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(m),o(d)}else c("All systems operational"),o("bg-green-500")},[t]),Qa(Ul,{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:[Qa("div",{className:"relative size-2",children:[Gr("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")}),Gr("div",{className:i("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),Gr("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}import{jsx as nr,jsxs as tn}from"react/jsx-runtime";function p2({icon:e,title:t,description:r,learnMore:o,children:a}){return tn("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&&tn("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 Kl}from"class-variance-authority";import{useState as rn}from"react";import{toast as on}from"sonner";import{Fragment as Yl,jsx as be,jsxs as Kr}from"react/jsx-runtime";var an=["application/pdf","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","text/csv"],$r={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:an,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:[...an,"application/zip"],errorMessage:"File type not supported (document or zip files only)"}},jl=Kl("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 k2({id:e,readFile:t,onChange:r,variant:o,className:a,iconClassName:c,previewClassName:s,icon:l=oa,customPreview:m,accept:d="any",imageSrc:n,loading:u=!1,clickToUpload:f=!0,showHoverOverlay:v=!0,content:b,maxFileSizeMB:h=0,targetResolution:g,accessibilityLabel:C="File upload",disabled:N=!1}){let[M,k]=rn(!1),[w,W]=rn(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(W(T.name),h>0&&T.size/1024/1024>h){on.error(`File size too big (max ${h} MB)`);return}let B=$r[d].types;if(B.length&&!B.includes(T.type)){on.error($r[d].errorMessage??"File type not supported");return}let P=T;if(g&&T.type.startsWith("image/"))try{let I=await Mo(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 Kr("label",{className:i(jl({variant:o}),N?"cursor-not-allowed":i(f&&"cursor-pointer"),a),children:[u&&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)}}),Kr("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",v&&!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)}),b!==null&&be("div",{className:i("mt-2 text-center text-sm text-neutral-500",N&&"text-neutral-400"),children:b??be(Yl,{children:Kr("p",{children:["Drag and drop ",f&&"or click"," to upload."]})})}),be("span",{className:"sr-only",children:C})]}),n&&(m??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:$r[d].types.join(","),onChange:R,disabled:N},w)})]})}import{AnimatePresence as ql,motion as nn}from"framer-motion";import{X as Zl}from"lucide-react";import Xl from"next/link";import{useParams as Jl}from"next/navigation";import{isValidElement as Ql}from"react";import{Fragment as ec,jsx as Q,jsxs as Mt}from"react/jsx-runtime";function ln({filters:e,activeFilters:t,onRemove:r,onRemoveAll:o,className:a}){let{slug:c}=Jl();return et("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(ql,{children:t==null?void 0:t.map(({key:s,value:l})=>{if(s==="loader")return Q(nn.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 m=e.find(n=>n.key===s);if(!m)return console.error("Filter.List received an activeFilter without a corresponding filter"),null;let d=c&&s==="link"?`/${c}/links/${l}`:void 0;return(m.multiple&&Array.isArray(l)?l:[l]).map(n=>{var b,h,g;let u=(b=m.options)==null?void 0:b.find(C=>typeof C.value=="string"&&typeof n=="string"?C.value.toLowerCase()===n.toLowerCase():C.value===n),f=(u==null?void 0:u.icon)??((h=m.getOptionIcon)==null?void 0:h.call(m,n,{key:m.key,option:u}))??m.icon,v=(u==null?void 0:u.label)??((g=m.getOptionLabel)==null?void 0:g.call(m,n,{key:m.key,option:u}))??n;return Mt(nn.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:sn(m.icon)?m.icon:Q(m.icon,{className:"h-4 w-4"})}),m.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:m.options?Mt(ec,{children:[Q("span",{className:"shrink-0 text-neutral-600",children:sn(f)?f:Q(f,{className:"h-4 w-4"})}),d?Q(Xl,{href:d,target:"_blank",className:"cursor-alias decoration-dotted underline-offset-2 hover:underline",children:ht(v,30)}):ht(v,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(Zl,{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 sn=e=>Ql(e);import{Command as Ie,useCommandState as tc}from"cmdk";import{ChevronDown as rc,ListFilter as oc}from"lucide-react";import{Fragment as ac,forwardRef as nc,isValidElement as dn,useCallback as ir,useEffect as sr,useImperativeHandle as ic,useRef as Yr,useState as jr}from"react";import{Fragment as mc,jsx as H,jsxs as xe}from"react/jsx-runtime";function un({filters:e,onSelect:t,onRemove:r,onOpenFilter:o,onSearchChange:a,onSelectedFilterChange:c,activeFilters:s,askAI:l,children:m,emptyState:d,className:n}){var T,B;let{isMobile:u}=q(),f=Yr(null),v=Yr(),[b,h]=jr(!1);et("f",()=>h(!0),{enabled:!b});let[g,C]=jr(""),[N,M]=jr(null),k=ir(()=>{C(""),M(null)},[]);sr(()=>{b||k()},[b]);let w=N?e.find(({key:P})=>P===N):null,W=ir(P=>{f.current&&(v.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&&(v.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:b,setOpenPopover:h,onEscapeKeyDown:P=>{N&&(P.preventDefault(),k())},content:H(Pe,{width:!u,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:xe(Ie,{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(lc,{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(cc,{ref:f,children:xe(Ie.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(cn,{filter:w,option:P,right:I?H(qo,{className:"h-4 w-4"}):P.right,onSelect:()=>x(P.value)},P.value)}))??H(Ie.Loading,{children:H("div",{className:"-m-1 flex items-center justify-center",style:v.current,children:H(Ne,{})})}):e.map(P=>xe(ac,{children:[H(cn,{filter:P,onSelect:()=>W(P.key)}),P.separatorAfter&&H(Ie.Separator,{className:"-mx-1 my-1 border-b border-neutral-200"})]},P.key)),(!w||w.options)&&H(dc,{search:g,askAI:l,children:d?sc(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(oc,{className:"size-4 shrink-0"}),H("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-neutral-900",children:m??"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(rc,{className:"size-4 shrink-0 text-neutral-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function sc(e){return typeof e=="object"&&e!==null&&!dn(e)}var lc=e=>{let t=tc(r=>r.filtered.count===0);return H(Ie.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"})},cc=nc(({children:e},t)=>{let r=Yr(null);ic(t,()=>r.current);let{scrollProgress:o,updateScrollProgress:a}=tt(r);return xe(mc,{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 cn({filter:e,option:t,right:r,onSelect:o}){var l,m;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??((m=e.getOptionLabel)==null?void 0:m.call(e,t.value,{key:e.key,option:t})):e.label;return xe(Ie.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:uc(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 dc=({search:e,askAI:t,children:r})=>t&&e?xe(Ie.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-neutral-100 px-3 py-2",children:[H(Io,{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(Ie.Empty,{className:"p-2 text-center text-sm text-neutral-400",children:r}),uc=e=>dn(e);var Z2={Select:un,List:ln};import{useMemo as pc,useState as mn}from"react";import{jsx as Ge,jsxs as lr}from"react/jsx-runtime";function ob({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:c,handleSubmit:s}){let[l,m]=mn(r.defaultValue),[d,n]=mn(!1),u=pc(()=>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:[Ge("h2",{className:"text-xl font-medium",children:e}),Ge("p",{className:"text-sm text-neutral-500",children:t})]}),typeof r.defaultValue=="string"?Ge("input",{...r,type:r.type||"text",required:!0,disabled:!!c,onChange:f=>m(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})}):Ge("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"?Ge("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,Ge("div",{className:"shrink-0",children:Ge(se,{text:a,loading:d,disabled:u,disabledTooltip:c})})]})]})}import{useId as fc}from"react";import{jsx as cr,jsxs as gc}from"react/jsx-runtime";function pn({cellSize:e=12,strokeWidth:t=1,patternOffset:r=[0,0],className:o}){let a=fc();return gc("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 hc}from"lucide-react";import vc,{useCallback as bc,useState as xc}from"react";import{jsx as $e,jsxs as qr}from"react/jsx-runtime";var yc=vc.forwardRef(({className:e,type:t,...r},o)=>{let[a,c]=xc(!1),s=bc(()=>c(!a),[a,c]);return qr("div",{children:[qr("div",{className:"relative flex",children:[$e("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&&$e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:$e(hc,{className:i("size-5 text-white",t==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),t==="password"&&$e("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?$e(na,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0}):$e(ia,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0})})]})]}),r.error&&$e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});yc.displayName="Input";import{flip as kc,offset as Pc,size as Sc,useDismiss as Mc,useFloating as Rc,useInteractions as Tc}from"@floating-ui/react";import{Command as Re,useCommandState as Lc}from"cmdk";import{Check as Ec,ChevronDown as Ac,Search as Dc,X as Ic}from"lucide-react";import{createContext as zc,forwardRef as bn,useContext as Qr,useEffect as Zr,useMemo as gn,useRef as hn,useState as Xr}from"react";import{Drawer as at}from"vaul";import wc from"next/image";import{useEffect as Cc,useState as fn}from"react";import{jsx as Nc}from"react/jsx-runtime";function Rt(e){let[t,r]=fn(!0),[o,a]=fn(e.src);Cc(()=>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 Nc(wc,{...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 le}from"react/jsx-runtime";var dr=zc({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function Db({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:c,icon:s,inputAttrs:l,noItemsElement:m}){let{isMobile:d}=q(),n=hn(null),[u,f]=Xr(!1),[v,b]=Xr(""),[h,g]=Xr(!1);Zr(()=>{u&&g(!1)},[u]),Zr(()=>g(!0),[v]),Zr(()=>{t&&b(t.value)},[t]);let C=gn(()=>{let I=v.toLowerCase();return h?e.filter(X=>X.value.toLowerCase().includes(I)):v?e.sort((X,A)=>(A.value.toLowerCase().includes(I)?1:0)-(X.value.toLowerCase().includes(I)?1:0)):e},[h,v,e]),{refs:N,floatingStyles:M,context:k}=Rc({open:u,onOpenChange:f,middleware:[Pc(8),Sc({apply({elements:{floating:I},availableHeight:X}){Object.assign(I.style,{maxHeight:`${Math.max(75,Math.min(X,290))}px`})},padding:8}),kc({fallbackStrategy:"initialPlacement",padding:8})]}),w=Mc(k,{enabled:!d||!c}),{getReferenceProps:W,getFloatingProps:R}=Tc([w]),x=hn(null),{scrollProgress:T,updateScrollProgress:B}=tt(x),P=gn(()=>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(Dc,{className:"size-4 text-neutral-400"}),[t,s]);return D(dr.Provider,{value:{inputAttrs:l||{},openCommandList:u,setOpenCommandList:f,inputValue:v,setInputValue:b,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:d&&c?le(at.Root,{open:u,onOpenChange:f,children:[D(at.Trigger,{className:"sm:hidden",asChild:!0,children:D(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:D(Jr,{className:o,iconElement:P})})}),D(at.Overlay,{className:"fixed inset-0 z-40 bg-neutral-100 bg-opacity-10 backdrop-blur"}),le(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:le(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D("div",{className:"p-2",children:D(Jr,{className:o,iconElement:P})}),u&&le(Re.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&v===""&&(m?D("div",{children:m}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),v!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."}),D(vn,{items:C})]})]})}),D(at.Overlay,{})]})]}):le(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:[D(Jr,{className:o,iconElement:P,ref:N.setReference,...W()}),u&&le("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:[le("div",{ref:x,onScroll:B,className:"grow overflow-y-auto p-2",children:[le(Re.List,{children:[e.length===0&&v===""&&(m?D("div",{children:m}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),v!==""&&D(Re.Empty,{className:"px-4 py-2 text-sm text-neutral-600",children:"No results found."})]}),D(vn,{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 Jr=bn(({iconElement:e,className:t,...r},o)=>le("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}),le("div",{className:"flex h-10 grow",children:[D(Oc,{}),D(_c,{})]})]})),Oc=bn((e,t)=>{let r=Lc(d=>d.filtered.count===0),{inputAttrs:o,openCommandList:a,setOpenCommandList:c,inputValue:s,setInputValue:l,disabled:m}=Qr(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:m,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 _c(){let{setSelectedItem:e,openCommandList:t,setOpenCommandList:r,inputValue:o,setInputValue:a}=Qr(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(Ic,{className:"size-4 text-neutral-400 transition-all hover:text-neutral-700"}):D(Ac,{className:i("size-4 text-neutral-400 transition-all hover:text-neutral-700",{"rotate-180 transform":t})})})}function vn({items:e}){let{setSelectedItem:t,setOpenCommandList:r,setInputValue:o}=Qr(dr);return e.map(a=>le(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:[le("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(Ec,{className:"invisible h-5 w-5 text-neutral-500 aria-selected:visible"})]},a.id))}import*as eo from"@radix-ui/react-label";import{cva as Hc}from"class-variance-authority";import*as xn from"react";import{jsx as Fc}from"react/jsx-runtime";var Vc=Hc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Bc=xn.forwardRef(({className:e,...t},r)=>Fc(eo.Root,{ref:r,className:i(Vc(),e),...t}));Bc.displayName=eo.Root.displayName;import{cva as Wc}from"class-variance-authority";import{isValidElement as Uc}from"react";import{jsx as yn,jsxs as wn}from"react/jsx-runtime";var Gc=Wc(["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 $b({as:e,variant:t="default",children:r,icon:o,shortcut:a,className:c,...s}){return wn(e||"button",{...e==="button"?{type:"button"}:{},className:i(Gc({variant:t}),c),...s,children:[wn("div",{className:"flex grow items-center gap-2",children:[o&&($c(o)?o:yn(o,{className:"size-4"})),r]}),a&&yn("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 $c=e=>Uc(e);import{curveNatural as Cn}from"@visx/curve";import{LinearGradient as Nn}from"@visx/gradient";import{Group as Kc}from"@visx/group";import{ParentSize as jc}from"@visx/responsive";import{scaleLinear as Yc,scaleUtc as qc}from"@visx/scale";import{Area as Zc,AreaClosed as Xc}from"@visx/shape";import{motion as kn}from"framer-motion";import{useId as Jc,useMemo as Pn}from"react";import{jsx as ye,jsxs as to}from"react/jsx-runtime";var Qc={top:8,right:2,bottom:2,left:2};function t4(e){return ye(jc,{className:"relative",children:({width:t,height:r})=>t>0&&r>0&&ye(ed,{...{width:t,height:r,...e}})})}function ed({width:e,height:t,data:r,curve:o=!0,color:a,padding:c}){let s={...Qc,...c},l=Jc(),m=Pn(()=>r.map(({date:u})=>({date:u,value:0})),[r]),{yScale:d,xScale:n}=Pn(()=>{let u=r.map(({value:g})=>g),f=Math.max(...u),v=r.map(({date:g})=>g.getTime()),b=new Date(Math.min(...v)),h=new Date(Math.max(...v));return{yScale:Yc({domain:[-2,Math.max(f,2)],range:[t-s.top-s.bottom,0],nice:!0,clamp:!0}),xScale:qc({domain:[b,h],range:[0,e-s.left-s.right],nice:!0})}},[r,t,e]);return to("svg",{width:e,height:t,children:[to("defs",{children:[ye(Nn,{id:`${l}-color-gradient`,from:a||"#7D3AEC",to:a||"#DA2778",x1:0,x2:e-s.left-s.right,gradientUnits:"userSpaceOnUse"}),ye(Nn,{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)`})})]}),to(Kc,{left:s.left,top:s.top,children:[ye(Zc,{data:r,x:({date:u})=>n(u),y:({value:u})=>d(u)??0,curve:o?Cn:void 0,children:({path:u})=>ye(kn.path,{initial:{d:u(m)||"",opacity:0},animate:{d:u(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),ye(Xc,{data:r,x:({date:u})=>n(u),y:({value:u})=>d(u)??0,yScale:d,curve:o?Cn:void 0,children:({path:u})=>ye(kn.path,{initial:{d:u(m)||"",opacity:0},animate:{d:u(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as ce from"@radix-ui/react-dialog";import*as ro from"@radix-ui/react-visually-hidden";import{useRouter as td}from"next/navigation";import{Drawer as Ke}from"vaul";import{jsx as ae,jsxs as nt}from"react/jsx-runtime";function s4({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:c,preventDefaultClose:s,drawerRootProps:l}){let m=td(),d=({dragged:u}={})=>{s&&!u||(a&&a(),o?o(!1):m.back())},{isMobile:n}=q();return n&&!c?ae(Ke.Root,{open:o?r:!0,onOpenChange:u=>{u||d({dragged:!0})},...l,children:nt(Ke.Portal,{children:[ae(Ke.Overlay,{className:"fixed inset-0 z-50 bg-neutral-100 bg-opacity-10 backdrop-blur"}),ae(Ke.Content,{onPointerDownOutside:u=>{u.target instanceof Element&&u.target.closest("[data-sonner-toast]")&&u.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(ro.Root,{children:[ae(Ke.Title,{children:"Modal"}),ae(Ke.Description,{children:"This is a modal"})]}),ae(rd,{}),e]})}),ae(Ke.Overlay,{})]})}):ae(ce.Root,{open:o?r:!0,onOpenChange:u=>{u||d()},children:nt(ce.Portal,{children:[ae(ce.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-neutral-100 bg-opacity-50 backdrop-blur-md"}),nt(ce.Content,{onOpenAutoFocus:u=>u.preventDefault(),onCloseAutoFocus:u=>u.preventDefault(),onPointerDownOutside:u=>{u.target instanceof Element&&u.target.closest("[data-sonner-toast]")&&u.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(ro.Root,{children:[ae(ce.Title,{children:"Modal"}),ae(ce.Description,{children:"This is a modal"})]}),e]})]})})}function rd(){return ae("div",{className:"sticky top-0 z-20 flex items-center justify-center rounded-t-[10px] bg-inherit",children:ae("div",{className:"my-3 h-1 w-12 rounded-full bg-neutral-300"})})}import{Fragment as od,jsx as ur,jsxs as it}from"react/jsx-runtime";var Sn=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 d4({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(od,{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:Sn,onClick:()=>t({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),ur("button",{type:"button",className:Sn,onClick:()=>t({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=r,children:"Next"})]})]})}import*as ze from"@radix-ui/react-radio-group";import{Circle as ad}from"lucide-react";import*as oo from"react";import{jsx as mr}from"react/jsx-runtime";var nd=oo.forwardRef(({className:e,...t},r)=>mr(ze.Root,{className:i("grid gap-2",e),...t,ref:r}));nd.displayName=ze.Root.displayName;var id=oo.forwardRef(({className:e,...t},r)=>mr(ze.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(ze.Indicator,{className:"flex items-center justify-center",children:mr(ad,{className:"h-2.5 w-2.5 fill-current text-current"})})}));id.displayName=ze.Item.displayName;import{Drawer as Oe}from"vaul";import{jsx as je,jsxs as ud}from"react/jsx-runtime";function sd({children:e,contentProps:t,nested:r=!1,...o}){let a=r?Oe.NestedRoot:Oe.Root;return je(a,{direction:"right",handleOnly:!0,...o,children:ud(Oe.Portal,{children:[je(Oe.Overlay,{className:"fixed inset-0 bg-black/20","data-sheet-overlay":!0}),je(Oe.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:je("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:e})})]})})}function ld({className:e,...t}){return je(Oe.Title,{className:i("text-xl font-medium text-zinc-900",e),...t})}function cd(e){return je(Oe.Description,{...e})}function dd(e){return je(Oe.Close,{...e})}var b4=Object.assign(sd,{Title:ld,Description:cd,Close:dd});import{useEffect as md,useRef as pd,useState as fd}from"react";import{jsx as Mn}from"react/jsx-runtime";var gd=`
|
|
2
|
+
import{$ as Bm,$a as M0,$b as da,$c as wa,A as _t,Aa as d0,Ab as na,Ac as zp,Ad as Lf,B as xm,Ba as u0,Bb as ia,Bc as Op,Bd as Ef,C as ym,Ca as m0,Cb as sa,Cc as _p,Cd as Af,D as wm,Da as p0,Db as Z0,Dc as Hp,Dd as Df,E as Cm,Ea as f0,Eb as X0,Ec as Vp,Ed as If,F as Wo,Fa as qo,Fb as J0,Fc as Wt,Fd as zf,G as Fo,Ga as Zo,Gb as Q0,Gc as Bp,Gd as Of,H as Uo,Ha as Xo,Hb as ep,Hc as Wp,Hd as _f,I as Go,Ia as Jo,Ib as tp,Ic as Fp,Id as Hf,J as $o,Ja as Qo,Jb as la,Jc as Up,Jd as Ut,K as Nm,Ka as g0,Kb as rp,Kc as Gp,Kd as Vf,L as km,La as h0,Lb as op,Lc as $p,Ld as Bf,M as Pm,Ma as v0,Mb as ap,Mc as Kp,Md as Wf,N as Sm,Na as ea,Nb as np,Nc as ya,Nd as Ff,O as Mm,Oa as ta,Ob as ip,Oc as jp,Od as ka,P as Rm,Pa as ra,Pb as sp,Pc as Yp,Pd as Uf,Q as Tm,Qa as b0,Qb as lp,Qc as qp,Qd as Gf,R as Lm,Ra as x0,Rb as cp,Rc as Zp,Rd as $f,S as Em,Sa as y0,Sb as dp,Sc as Xp,Sd as Kf,T as Am,Ta as w0,Tb as up,Tc as Jp,Td as jf,U as Dm,Ua as C0,Ub as mp,Uc as Qp,Ud as Yf,V as Im,Va as Tr,Vb as pp,Vc as ef,Vd as qf,W as zm,Wa as N0,Wb as fp,Wc as Ft,X as Om,Xa as k0,Xb as gp,Xc as tf,Y as _m,Ya as P0,Yb as ca,Yc as rf,Z as Hm,Za as oa,Zb as hp,Zc as of,_ as Vm,_a as S0,_b as vp,_c as af,a as Ao,aa as Wm,ab as R0,ac as bp,ad as nf,b as sm,ba as Fm,bb as Ht,bc as ua,bd as sf,c as lm,ca as Um,cb as T0,cc as xp,cd as Ca,d as Do,da as Gm,db as L0,dc as yp,dd as lf,e as Io,ea as $m,eb as E0,ec as wp,ed as cf,f as cm,fa as Km,fb as A0,fc as Cp,fd as df,g as zo,ga as jm,gb as D0,gc as Np,gd as uf,h as Oo,ha as Ko,hb as I0,hc as ma,hd as mf,i as _o,ia as Ym,ib as z0,ic as pa,id as pf,j as Ho,ja as qm,jb as Vt,jc as fa,jd as ff,k as bt,ka as Zm,kb as O0,kc as kp,kd as gf,l as dm,la as Xm,lb as _0,lc as ga,ld as hf,m as Ne,ma as Jm,mb as H0,mc as Pp,md as vf,n as um,na as Qm,nb as V0,nc as ha,nd as bf,o as It,oa as e0,ob as B0,oc as Sp,od as xf,p as mm,pa as t0,pb as Bt,pc as va,pd as yf,q as pm,qa as jo,qb as W0,qc as ba,qd as wf,r as zt,ra as r0,rb as F0,rc as Mp,rd as Cf,s as fm,sa as o0,sb as U0,sc as Rp,sd as Nf,t as Vo,ta as a0,tb as G0,tc as Tp,td as kf,u as Bo,ua as n0,ub as $0,uc as Lp,ud as Pf,v as gm,va as Yo,vb as aa,vc as xa,vd as Sf,w as hm,wa as i0,wb as K0,wc as Ep,wd as Mf,x as vm,xa as s0,xb as j0,xc as Ap,xd as Na,y as Ot,ya as l0,yb as Y0,yc as Dp,yd as Rf,z as bm,za as c0,zb as q0,zc as Ip,zd as Tf}from"./chunk-WFZJOO64.mjs";import{a as q}from"./chunk-NWME2ANF.mjs";import{a as Po,b as So,c as Mo,d as ht,e as vt,f as Ce,g as Rr,h as Ro,i as z,j as To,k as ge,l as i,m as At,n as Dt,o as Lo,p as Eo}from"./chunk-Y7JSLQXQ.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 t1=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 Lr}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)=>Lr("div",{ref:o,role:"alert",className:i(wi({variant:t}),e),...r}));Ci.displayName="Alert";var Ni=Kt.forwardRef(({className:e,...t},r)=>Lr("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)=>Lr("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 Er}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 c1({user:e={},className:t}){if(!e)return Er("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 Er("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 d1({id:e,className:t}){return Er("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 G,jsxs as Je}from"react/jsx-runtime";function k1({children:e}){return G(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,m]=Ii(!1);return Je(he.Root,{open:l,onOpenChange:m,delayDuration:c,disableHoverableContent:a,children:[G(he.Trigger,{asChild:!0,onClick:()=>{m(!0)},onBlur:()=>{m(!1)},children:e}),G(he.Portal,{children:G(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"?G("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:m}):t})})]})}function P1({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:[G("p",{className:"text-sm text-neutral-700",children:e}),t&&(r?G(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?G(le,{onClick:a,text:t,variant:"primary",className:"h-9"}):null)]})}function S1({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," ",G("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 M1({children:e,className:t,tooltipClassName:r}){return G("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:G(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 R1(e){return G(J,{...e,children:G(Ai,{className:"h-4 w-4 text-neutral-500"})})}function T1({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:G(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 ",So(a,{withAgo:!0})]})]}),children:o})}function L1({children:e,content:t,...r}){return G(J,{content:t,...r,children:G("div",{className:"flex cursor-pointer items-center",children:G(jt,{variant:"gray",className:"border-neutral-300 transition-all hover:bg-neutral-200",children:e})})})}function E1({children:e,tooltipProps:t,...r}){return G(J,{...t,children:G("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?G(J,{...t,children:G("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:m,right:d,...n},u)=>m?Qe(J,{content:m,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:u,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",Ar=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),m=Gi(null),[d,n]=$i(!1);Ui(()=>{if(!d||!m.current)return;let f=setInterval(()=>{var v;((v=m.current)==null?void 0:v.matches(":hover"))===!1&&n(!1)},1e3);return()=>clearInterval(f)},[d]);let u=f=>!(document.getElementById("modal-backdrop")||vt(f));return Yi("li",{ref:m,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=>{u(f)&&o(f)}:void 0,onAuxClick:a?f=>{u(f)&&a(f)}:void 0,children:Ra(Ar.Provider,{value:{hovered:d},children:r})})]})}var tg=Object.assign(Ma,{Card:Object.assign(Ta,{Context:Ar}),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 Dr,useState as Ir}from"react";import{jsx as ke,jsxs as Aa}from"react/jsx-runtime";var zr=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]=Ir(0),o=yt(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return Dr(()=>{!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},m)=>{let[d,n]=Zi({...t,axis:e==="horizontal"?"x":"y"},[...o?[qi(typeof o=="object"?o:{delay:zr})]:[],...a||[]]),[u,f]=Ir(!1),[v,b]=Ir(!1),h=yt(M=>{!M||(f(M.canScrollPrev()),b(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 Dr(()=>{!n||!r||r(n)},[n,r]),Dr(()=>{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:u,canScrollNext:v},children:ke("div",{ref:m,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 "}}}),xg=({variant:e="simple",className:t})=>{var b;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:c,api:s}=ve(),l=(b=s==null?void 0:s.plugins())==null?void 0:b.autoplay,[m,d]=Ee.useState(0),[n,u]=Ee.useState(!1),f=Ee.useCallback(h=>{d((h==null?void 0:h.selectedScrollSnap())??0)},[]),v=Ee.useCallback(h=>()=>{l&&l.isPlaying()&&l.stop(),h()},[l]);return Ee.useEffect(()=>{!s||(f(s),u((l==null?void 0:l.isPlaying())??!1),s.on("reInit",f),s.on("select",f),s.on("autoplay:play",()=>u(!0)),s.on("autoplay:stop",()=>u(!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:v(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:v(()=>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===m?"bg-black":"bg-black/20",n&&g===m&&"w-6 bg-black/20"),children:n&&g===m&&Ue(ss.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((l==null?void 0:l.options.delay)??zr)/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:v(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 Rg=({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})})},Tg=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 Or}from"react/jsx-runtime";var hs=Da.forwardRef(({className:e,...t},r)=>Or(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:Or(Nt.Indicator,{className:"flex items-center justify-center",children:Or(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 _r from"js-cookie";import{useEffect as vs,useState as bs}from"react";function Og(e,t,r){let[o,a]=bs(()=>{let s=_r.get(e);return s?JSON.parse(s):t});return vs(()=>{let s=()=>{let l=_r.get(e);l&&a(JSON.parse(l))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[o,s=>{a(s),_r.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:m}={})=>{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),m)throw d}},[e]);return ys(()=>()=>a(),[]),[r,c]};import{useEffect as Ns,useState as ks}from"react";function Wg(){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 u,f,v;let m=l[0];if(!m)return;let d=(((u=m.rootBounds)==null?void 0:u.height)||0)*.3+o;for(let b=1;b<l.length;b++){let h=l[b];if(!h)break;(h.boundingClientRect.top<m.boundingClientRect.top||m.boundingClientRect.bottom<o)&&(m=h)}let n=m.target;for(;n&&n.getBoundingClientRect().bottom<o;)n=(f=c.get(n))==null?void 0:f.next;for(;n&&n.getBoundingClientRect().top>d;)n=(v=c.get(n))==null?void 0:v.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 $g(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 qg(e,t={}){let{root:r,defaultValue:o}=t,[a,c]=Ms(o??!1);return Ss(()=>{let s=()=>{let m=e.current;if(!m)return;let d=r==null?void 0:r.current,n=m.getBoundingClientRect(),u=d?d.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};c(n.top<u.bottom&&n.bottom>u.top&&n.left<u.right&&n.right>u.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 Jg(){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 rh(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,m=([d])=>{s(d)};return Ls(()=>{let d=e==null?void 0:e.current;if(!!!window.IntersectionObserver||l||!d)return;let u={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(m,u);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 lh({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 m=l.target,d=document.getElementById("modal-backdrop"),n=document.querySelector("[data-sheet-overlay]");if(m.tagName==="INPUT"||m.tagName==="TEXTAREA"||!!d!=!!r.modal||!!n!=!!r.sheet)return;let u=[...l.metaKey?["meta"]:[],...l.ctrlKey?["ctrl"]:[],...l.altKey?["alt"]:[],l.key].join("+");if(Array.isArray(e)?!e.includes(u):u!==e)return;let f=a.filter(b=>b.enabled!==!1&&!!d==!!b.modal&&!!n==!!b.sheet&&(Array.isArray(b.key)?b.key.includes(u):b.key===u));!f.length||Po(f,(b,h)=>(h.priority??0)-(b.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(m=>m.id!==o),{id:o,key:e,...r}]),()=>c(l=>l.filter(m=>m.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 uh(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 hh(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 m=new URLSearchParams(r);if((l==null?void 0:l.include)&&Array.isArray(l.include)){let n=new URLSearchParams;r.forEach((u,f)=>{var v;(v=l.include)!=null&&v.includes(f)&&n.set(f,u)}),m=n}(l==null?void 0:l.exclude)&&Array.isArray(l.exclude)&&l.exclude.forEach(n=>m.delete(n)),s&&Object.entries(s).forEach(([n,u])=>m.set(n,u));let d=m.toString();return d.length>0?`?${d}`:""},c=Ks(({set:s,del:l,replace:m,scroll:d=!0,getNewPath:n,arrayDelimiter:u=","})=>{let f=new URLSearchParams(r);s&&Object.entries(s).forEach(([h,g])=>f.set(h,Array.isArray(g)?g.join(u):g)),l&&(Array.isArray(l)?l.forEach(h=>f.delete(h)):f.delete(l));let v=f.toString(),b=`${e}${v.length>0?`?${v}`:""}`;if(n)return b;m?t.replace(b,{scroll:!1}):t.push(b,{scroll:d})},[r,e,t]);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:c,getQueryString:a}}function Rh(e=Lo){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 Eh(){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(_o,{}),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 $h(){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),m=Zt(l);return $a(al.div,{ref:s,className:i("overflow-hidden",r),animate:{width:e?((d=m==null?void 0:m.contentRect)==null?void 0:d.width)??"auto":"auto",height:t?((n=m==null?void 0:m.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:m,collisionBoundary:d,sticky:n,onEscapeKeyDown:u,onWheel:f}){let{isMobile:v}=q();return s||v?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:u,onPointerDownOutside:b=>{b.target instanceof Element&&b.target.closest("[data-sonner-toast]")&&b.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:m,onEscapeKeyDown:u,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 yv({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:c="Select...",searchPlaceholder:s="Search...",emptyState:l,createLabel:m,onCreate:d,buttonProps:n,shortcutHint:u,caret:f,side:v,open:b,onOpenChange:h,onSearchChange:g,shouldFilter:C=!0,inputRight:N,inputClassName:M,optionRight:k,optionClassName:w,matchTriggerWidth:F,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=b??I,me=h??X,[U,Pr]=kt(""),[Co,Sr]=kt(!1),[Mr,mi]=kt(void 0),[pi,No]=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)},ko=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(()=>{Co&&(mi(o&&ko(o,U)),Sr(!1))},[Co,o,ko,U]),Qt(()=>{Sr(!0)},[o]),Qt(()=>{A||(Pr(""),Sr(!0))},[A]),Qt(()=>g==null?void 0:g(U),[U]),L(ot,{openPopover:A,setOpenPopover:me,align:"start",side:v,onWheel:_=>{_.stopPropagation()},popoverContentClassName:i(F&&"sm:w-[var(--radix-popover-trigger-width)]"),content:L(Pe,{width:!P&&!F,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:U,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"&&!U)&&(_.preventDefault(),_.stopPropagation(),me(!1))}}),N&&L("div",{className:"mr-2",children:N}),u&&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:u})]}),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}`)),U.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()=>{No(!0),await(d==null?void 0:d(U))&&(Pr(""),me(!1)),No(!1)},children:[pi?L(Ne,{className:"size-4 shrink-0"}):L(Ft,{className:"size-4 shrink-0"}),L("div",{className:"grow truncate",children:(m==null?void 0:m(U))||`Create "${U}"`})]}),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(Xo,{className:"size-4 text-neutral-600"}):L(Jo,{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(Zo,{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,...m}){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:u,previousMonth:f,currentMonth:v,displayMonths:b}=Tl(),{numberOfMonths:h,fromDate:g,toDate:C}=Ml(),N=b.findIndex(T=>wl(d.displayMonth,T)),M=N===0,k=N===b.length-1,w=h>1&&(M||!k),F=h>1&&(k||!M),R=()=>{let T=tr(v,-1);f&&(!g||T.getTime()>=g.getTime())&&n(T)},x=()=>{let T=tr(v,1);u&&(!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&&!F&&oe(St,{disabled:a||!f||g&&tr(v,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:Cl}),!F&&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||!u,"aria-label":"Go to next month",onClick:()=>u&&n(u),icon:Ya}),o&&!w&&oe(St,{disabled:a||!u||C&&tr(v,1).getTime()>C.getTime(),"aria-label":"Go to next year",onClick:x,icon:Nl})]})]})},Day:({date:d,displayMonth:n})=>{let u=Pl(null),{activeModifiers:f,buttonProps:v,divProps:b,isButton:h,isHidden:g}=Rl(d,n,u),{selected:C,today:N,disabled:M,range_middle:k}=f;if(g)return oe(Ll,{});if(!h)return oe("div",{...b,className:i("flex items-center justify-center",b.className)});let{children:w,...F}=v;return rr("button",{ref:u,...F,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})})]})}},...m})}import{enUS as Wl}from"date-fns/locale";import{useEffect as Ur,useMemo as Xa,useRef as Fl,useState as ar}from"react";import{Command as Hr}from"cmdk";import{Lock as El}from"lucide-react";import{jsx as Ge,jsxs as Al}from"react/jsx-runtime";var Vr=({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 u=d.from,f=n.from,v=!1;u&&f&&s(u,f)&&(v=!0);let b=d.to,h=n.to,g=!1;return b&&h&&s(b,h)&&(g=!0),v&&g},m=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(Hr,{className:"w-full rounded ring-neutral-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:Ge(Hr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,n)=>Al(Hr.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",m(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))})})};Vr.displayName="DatePicker.Presets";import{format as Ie}from"date-fns";import{createContext as Dl}from"react";var Br=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))},Wr=(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 m=o,d=r;e.forEach(n=>{var u,f,v,b,h,g;if("date"in n){let C=n.date.getFullYear();if(o&&C<o)throw new Error(`Preset ${n.label} is before fromYear ${m}.`);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=(u=n.dateRange.from)==null?void 0:u.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 ${m}.`);if(N&&r&&N>r)throw new Error(`Preset ${n.label}'s 'to' is after toYear ${d}.`);if(a){let M=(v=n.dateRange.from)==null?void 0:v.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=(b=n.dateRange.to)==null?void 0:b.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"}}}),Fr=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"})]}));Fr.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:m=!1,locale:d=Wl,placeholder:n="Select date range",hasError:u,align:f="center",className:v,...b})=>{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),[F,R]=ar(k==null?void 0:k.to),x=Xa(()=>k,[g]);Ur(()=>{w(e)},[e]),Ur(()=>{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]),Ur(()=>{g?k&&R(k.to):R(k==null?void 0:k.to)},[g]);let T=(A,me)=>{let U=(k==null?void 0:k.from)&&(k==null?void 0:k.to)?{from:me}:A;w(U),M(void 0),(U==null?void 0:U.from)&&(U==null?void 0:U.to)&&(o==null||o(U),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?Wr(k.from,d):""} - ${k.to?Wr(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(U=>U.shortcut===A.key);me&&B(me)}),ae(Br.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(Vr,{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:F,onMonthChange:R,numberOfMonths:h?2:1,disabled:l,disableNavigation:s,showYearNavigation:m,locale:d,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-neutral-200 overflow-x-scroll scrollbar-hide"},...b})})]})}),children:ae(Fr,{placeholder:n,disabled:c,className:v,hasError:u,"aria-required":b.required||b["aria-required"],"aria-invalid":b["aria-invalid"],"aria-label":b["aria-label"],"aria-labelledby":b["aria-labelledby"],children:(N==null?void 0:N.label)??X})})})};function a2({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 Gr,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:m}=s[0],d=l==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(m),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:[Gr("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")}),Gr("div",{className:i("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),Gr("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 h2({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 Kr}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"],$r={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 M2({id:e,readFile:t,onChange:r,variant:o,className:a,iconClassName:c,previewClassName:s,icon:l=oa,customPreview:m,accept:d="any",imageSrc:n,loading:u=!1,clickToUpload:f=!0,showHoverOverlay:v=!0,content:b,maxFileSizeMB:h=0,targetResolution:g,accessibilityLabel:C="File upload",disabled:N=!1}){let[M,k]=on(!1),[w,F]=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(F(T.name),h>0&&T.size/1024/1024>h){an.error(`File size too big (max ${h} MB)`);return}let B=$r[d].types;if(B.length&&!B.includes(T.type)){an.error($r[d].errorMessage??"File type not supported");return}let P=T;if(g&&T.type.startsWith("image/"))try{let I=await Mo(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 Kr("label",{className:i(ql({variant:o}),N?"cursor-not-allowed":i(f&&"cursor-pointer"),a),children:[u&&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)}}),Kr("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",v&&!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)}),b!==null&&be("div",{className:i("mt-2 text-center text-sm text-neutral-500",N&&"text-neutral-400"),children:b??be(Zl,{children:Kr("p",{children:["Drag and drop ",f&&"or click"," to upload."]})})}),be("span",{className:"sr-only",children:C})]}),n&&(m??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:$r[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 m=e.find(n=>n.key===s);if(!m)return console.error("Filter.List received an activeFilter without a corresponding filter"),null;let d=c&&s==="link"?`/${c}/links/${l}`:void 0;return(m.multiple&&Array.isArray(l)?l:[l]).map(n=>{var b,h,g;let u=(b=m.options)==null?void 0:b.find(C=>typeof C.value=="string"&&typeof n=="string"?C.value.toLowerCase()===n.toLowerCase():C.value===n),f=(u==null?void 0:u.icon)??((h=m.getOptionIcon)==null?void 0:h.call(m,n,{key:m.key,option:u}))??m.icon,v=(u==null?void 0:u.label)??((g=m.getOptionLabel)==null?void 0:g.call(m,n,{key:m.key,option:u}))??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(m.icon)?m.icon:Q(m.icon,{className:"h-4 w-4"})}),m.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:m.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(v,30)}):ht(v,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 Yr,useState as jr}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:m,emptyState:d,className:n}){var T,B;let{isMobile:u}=q(),f=Yr(null),v=Yr(),[b,h]=jr(!1);tt("f",()=>h(!0),{enabled:!b});let[g,C]=jr(""),[N,M]=jr(null),k=ir(()=>{C(""),M(null)},[]);sr(()=>{b||k()},[b]);let w=N?e.find(({key:P})=>P===N):null,F=ir(P=>{f.current&&(v.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&&(v.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:b,setOpenPopover:h,onEscapeKeyDown:P=>{N&&(P.preventDefault(),k())},content:H(Pe,{width:!u,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(qo,{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:v.current,children:H(Ne,{})})}):e.map(P=>xe(ic,{children:[H(dn,{filter:P,onSelect:()=>F(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:m??"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=Yr(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,m;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??((m=e.getOptionLabel)==null?void 0:m.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(Io,{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 Q2={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 ib({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:c,handleSubmit:s}){let[l,m]=pn(r.defaultValue),[d,n]=pn(!1),u=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=>m(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:u,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 qr}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 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(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(na,{className:"size-4 flex-none text-neutral-500 transition hover:text-neutral-700","aria-hidden":!0}):Ke(ia,{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 Qr,useEffect as Zr,useMemo as hn,useRef as vn,useState as Xr}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 Ob({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:c,icon:s,inputAttrs:l,noItemsElement:m}){let{isMobile:d}=q(),n=vn(null),[u,f]=Xr(!1),[v,b]=Xr(""),[h,g]=Xr(!1);Zr(()=>{u&&g(!1)},[u]),Zr(()=>g(!0),[v]),Zr(()=>{t&&b(t.value)},[t]);let C=hn(()=>{let I=v.toLowerCase();return h?e.filter(X=>X.value.toLowerCase().includes(I)):v?e.sort((X,A)=>(A.value.toLowerCase().includes(I)?1:0)-(X.value.toLowerCase().includes(I)?1:0)):e},[h,v,e]),{refs:N,floatingStyles:M,context:k}=Lc({open:u,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:F,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:u,setOpenCommandList:f,inputValue:v,setInputValue:b,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:d&&c?ce(at.Root,{open:u,onOpenChange:f,children:[D(at.Trigger,{className:"sm:hidden",asChild:!0,children:D(Re,{ref:n,className:"relative",shouldFilter:!1,loop:!0,children:D(Jr,{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(Jr,{className:o,iconElement:P})}),u&&ce(Re.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&v===""&&(m?D("div",{children:m}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),v!==""&&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(Jr,{className:o,iconElement:P,ref:N.setReference,...F()}),u&&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&&v===""&&(m?D("div",{children:m}):D("p",{className:"px-4 py-2 text-sm text-neutral-600",children:"No items found."})),v!==""&&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 Jr=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:m}=Qr(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:m,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}=Qr(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}=Qr(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 eo 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(eo.Root,{ref:r,className:i(Wc(),e),...t}));Fc.displayName=eo.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 Yb({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 to}from"react/jsx-runtime";var td={top:8,right:2,bottom:2,left:2};function a4(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(),m=Sn(()=>r.map(({date:u})=>({date:u,value:0})),[r]),{yScale:d,xScale:n}=Sn(()=>{let u=r.map(({value:g})=>g),f=Math.max(...u),v=r.map(({date:g})=>g.getTime()),b=new Date(Math.min(...v)),h=new Date(Math.max(...v));return{yScale:Zc({domain:[-2,Math.max(f,2)],range:[t-s.top-s.bottom,0],nice:!0,clamp:!0}),xScale:Xc({domain:[b,h],range:[0,e-s.left-s.right],nice:!0})}},[r,t,e]);return to("svg",{width:e,height:t,children:[to("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)`})})]}),to(Yc,{left:s.left,top:s.top,children:[ye(Jc,{data:r,x:({date:u})=>n(u),y:({value:u})=>d(u)??0,curve:o?Nn:void 0,children:({path:u})=>ye(Pn.path,{initial:{d:u(m)||"",opacity:0},animate:{d:u(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),ye(Qc,{data:r,x:({date:u})=>n(u),y:({value:u})=>d(u)??0,yScale:d,curve:o?Nn:void 0,children:({path:u})=>ye(Pn.path,{initial:{d:u(m)||"",opacity:0},animate:{d:u(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as de from"@radix-ui/react-dialog";import*as ro 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 d4({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:c,preventDefaultClose:s,drawerRootProps:l}){let m=od(),d=({dragged:u}={})=>{s&&!u||(a&&a(),o?o(!1):m.back())},{isMobile:n}=q();return n&&!c?ne(je.Root,{open:o?r:!0,onOpenChange:u=>{u||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:u=>{u.target instanceof Element&&u.target.closest("[data-sonner-toast]")&&u.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(ro.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:u=>{u||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:u=>u.preventDefault(),onCloseAutoFocus:u=>u.preventDefault(),onPointerDownOutside:u=>{u.target instanceof Element&&u.target.closest("[data-sonner-toast]")&&u.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(ro.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 p4({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 oo from"react";import{jsx as mr}from"react/jsx-runtime";var sd=oo.forwardRef(({className:e,...t},r)=>mr(Oe.Root,{className:i("grid gap-2",e),...t,ref:r}));sd.displayName=Oe.Root.displayName;var ld=oo.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 w4=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=`
|
|
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
|
+
`,bd=`
|
|
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
|
-
`,vd=60,bd=1e3/vd;function C4({dotSize:e=1,cellSize:t=3,speed:r=5,className:o}){let a=pd(null),[c,s]=fd(!1);return md(()=>{let l=a.current;if(!l||!l.parentElement)return;let m=l.parentElement,d=window.devicePixelRatio||1;l.width=m.clientWidth*d,l.height=m.clientHeight*d;let n=l.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(n===null){alert("Failed to initialize WebGL");return}let u=n.createProgram();if(!u){console.error("Failed to create shader program");return}for(let R=0;R<2;++R){let x=R===0?gd:hd,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(u,T),n.linkProgram(u)}n.getProgramParameter(u,n.LINK_STATUS)||console.error(n.getProgramInfoLog(u));let f=n.getAttribLocation(u,"position"),v=n.getUniformLocation(u,"time"),b=n.getUniformLocation(u,"resolution"),h=n.getUniformLocation(u,"dotSize"),g=n.getUniformLocation(u,"cellSize"),C=n.getUniformLocation(u,"speed");n.useProgram(u);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 W(R){if(R-w<bd){k=requestAnimationFrame(W);return}w=R,n&&l&&u&&(n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.uniform1f(v,R/1e3),n.uniform2f(b,l.width,l.height),n.drawArrays(n.TRIANGLE_STRIP,0,4)),k=requestAnimationFrame(W)}return k=requestAnimationFrame(W),l.addEventListener("webglcontextlost",R=>{R.preventDefault(),s(!0),cancelAnimationFrame(k)}),()=>{cancelAnimationFrame(k),l.removeEventListener("webglcontextlost",()=>{})}},[e,t,r]),Mn("div",{className:i("absolute inset-0",o,c&&"opacity-0"),children:Mn("canvas",{ref:a,width:"100%",height:"100%",className:"size-full"})})}import{cva as xd}from"class-variance-authority";import{jsx as Rn,jsxs as Cd}from"react/jsx-runtime";var yd=xd("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"}}),wd={neutral:ra,new:ea,success:Qo,pending:ta,warning:Tr,error:Tr};function T4({className:e,variant:t,icon:r,tooltip:o,onClick:a,children:c,...s}){let l=r!==null?r??wd[t??"neutral"]:null;return Rn(Yt,{tooltipProps:{content:o},children:Cd("span",{className:i(yd({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&&Rn(l,{className:"h-3 w-3 shrink-0"}),c]})})}import*as fr from"@radix-ui/react-switch";import{useMemo as Nd}from"react";import{jsx as pr}from"react/jsx-runtime";function _4({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:c,checked:s=!0,loading:l=!1,disabled:m=!1,disabledTooltip:d}){let n=Nd(()=>d?!0:m||l,[d,m,l]),u=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:u})}):u}import{flexRender as ao,getCoreRowModel as kd,useReactTable as Pd}from"@tanstack/react-table";import{AnimatePresence as Sd,motion as Md}from"framer-motion";import{memo as Rd,useEffect as gr,useMemo as Td,useState as Tn}from"react";import{jsx as $,jsxs as me}from"react/jsx-runtime";var no=(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"]),Ld=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 sx(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:c,pagination:s,onPaginationChange:l,getRowId:m,enableColumnResizing:d=!1,columnResizeMode:n="onChange"}=e,[u,f]=Tn(e.columnVisibility??{}),[v,b]=Tn(e.selectedRows??{});gr(()=>{e.selectedRows&&!Rr(e.selectedRows,v)&&b(e.selectedRows??{})},[e.selectedRows]),gr(()=>{var g;(g=e.onRowSelectionChange)==null||g.call(e,h.getSelectedRowModel().rows)},[v]),gr(()=>{e.columnVisibility&&!Rr(e.columnVisibility,u)&&f(e.columnVisibility??{})},[e.columnVisibility]),gr(()=>{var g;(g=e.onColumnVisibilityChange)==null||g.call(e,u)},[u]);let h=Pd({data:t,rowCount:r,columns:o,defaultColumn:{minSize:120,size:0,maxSize:300,enableResizing:d,...a},getCoreRowModel:kd(),onPaginationChange:l,onColumnVisibilityChange:g=>f(g),onRowSelectionChange:b,state:{pagination:s,columnVisibility:u,columnPinning:{left:[],right:[],...c},rowSelection:v},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0,getRowId:m,enableColumnResizing:d,columnResizeMode:n});return{...e,columnVisibility:u,table:h,enableColumnResizing:d}}var Ed=Rd(function({row:t,onRowClick:r,cellRight:o,tdClassName:a,table:c}){return $("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=>$("td",{className:i(no(s.column.id,!!r),"text-content-default group",io(s.column,t.index===c.getRowModel().rows.length-1),typeof a=="function"?a(s.column.id):a),style:{width:s.column.getSize(),...so(s.column)},children:me("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[$("div",{className:"min-w-0 shrink grow truncate",children:ao(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 lx({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:c,sortBy:s,sortOrder:l,onSortChange:m,sortableColumns:d=[],className:n,containerClassName:u,scrollWrapperClassName:f,thClassName:v,tdClassName:b,table:h,pagination:g,resourceName:C,onRowClick:N,rowCount:M,children:k,enableColumnResizing:w=!1}){let W=Td(()=>w?h.getVisibleLeafColumns().reduce((R,x)=>R+x.getSize(),0):"100%",[w,h.getVisibleLeafColumns()]);return me("div",{className:i("border-border-subtle bg-bg-default relative rounded-xl border",u),children:[!o&&!!(t!=null&&t.length)||r?me("div",{className:i("relative min-h-[400px] overflow-x-auto rounded-[inherit]",f),children:[me("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:W},children:[$("thead",{children:h.getHeaderGroups().map(R=>$("tr",{children:R.headers.map(x=>{let T=d.includes(x.column.id),B=T?"button":"div";return me("th",{colSpan:x.colSpan,className:i(no(x.id),"text-content-emphasis select-none font-medium",io(x.column,!h.getRowModel().rows.length),typeof v=="function"?v(x.column.id):v,w&&"relative"),style:{width:x.getSize(),...so(x.column)},children:[$("div",{className:"flex items-center justify-between gap-6 !pr-0",children:me(B,{className:"flex items-center gap-2",...T&&{type:"button",disabled:!T,"aria-label":"Sort by column",onClick:()=>m==null?void 0:m({sortBy:x.column.id,sortOrder:s!==x.column.id||l==="asc"?"desc":"asc"})},children:[x.isPlaceholder?null:ao(x.column.columnDef.header,x.getContext()),T&&s===x.column.id&&$(Oo,{className:"h-3 w-3 shrink-0",order:l||"desc"})]})}),w&&x.column.getCanResize()&&x.column.id!=="menu"&&$("div",{onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),onClick:P=>P.stopPropagation(),className:Ld})]},x.id)})},R.id))}),$("tbody",{children:h.getRowModel().rows.map(R=>w?$(Ed,{row:R,onRowClick:N,cellRight:c,tdClassName:b,table:h},`${R.id}-${h.getVisibleLeafColumns().map(x=>x.id).join(",")}`):$("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=>$("td",{className:i(no(x.column.id,!!N),"text-content-default group",io(x.column,R.index===h.getRowModel().rows.length-1),typeof b=="function"?b(x.column.id):b),style:{minWidth:x.column.columnDef.minSize,maxWidth:x.column.columnDef.maxSize,width:x.column.columnDef.size||"auto",...so(x.column)},children:me("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[$("div",{className:"min-w-0 shrink grow truncate",children:ao(x.column.columnDef.cell,x.getContext())}),c==null?void 0:c(x)]})},x.id))},R.id))})]}),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&&me("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:[me("div",{children:[$("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",me("span",{className:"font-medium",children:[(g.pageIndex-1)*g.pageSize+1,"-",Math.min((g.pageIndex-1)*g.pageSize+g.pageSize,h.getRowCount())]})," ","of"," ",$("span",{className:"font-medium",children:h.getRowCount().toLocaleString()})," ",(C==null?void 0:C(h.getRowCount()!==1))||"items"]}),me("div",{className:"flex items-center gap-2",children:[$(se,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>h.previousPage(),disabled:g.pageIndex===1}),$(se,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>h.nextPage(),disabled:g.pageIndex===h.getPageCount()})]})]}),$(Sd,{children:r&&$(Md.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:$(Ne,{})})})]})}var io=(e,t)=>{let r=e.getIsPinned();return i(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},so=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 Ad,motion as Ln}from"framer-motion";import{useId as Dd}from"react";import{jsx as hr,jsxs as Id}from"react/jsx-runtime";function px({options:e,selected:t,selectAction:r,className:o,optionClassName:a,indicatorClassName:c,style:s}){let l=Dd();return hr(Ad,{id:l,children:hr(Ln.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(m=>Id("button",{type:"button","data-selected":m.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":m.value!==t},a),onClick:()=>r(m.value),children:[typeof m.label=="string"?hr("p",{children:m.label}):m.label,m.badge,m.value===t&&hr(Ln.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}})]},m.value))})})}import{useEffect as zd,useId as Od,useRef as _d,useState as Hd}from"react";import{jsx as pe,jsxs as lo}from"react/jsx-runtime";var Vd=[{key:"utm_source",icon:da,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:la,label:"Campaign",placeholder:"summer sale",description:"The name of the campaign"},{key:"utm_term",icon:ba,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:ya,label:"Content",placeholder:"logo link",description:"The content of the campaign"},{key:"ref",icon:ca,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function wx({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:c}){let{isMobile:s}=q(),l=Od(),[m,d]=Hd(!1),n=_d(null);return zd(()=>{n.current&&!s&&o&&setTimeout(()=>{var u;return(u=n.current)==null?void 0:u.focus()},10)},[]),pe("div",{className:i("grid gap-y-3",c),children:Vd.map(({key:u,icon:f,label:v,placeholder:b,description:h},g)=>pe("div",{className:"group relative",children:lo("div",{className:"relative z-10 flex",children:[pe(J,{content:lo("div",{className:"p-3 text-center text-xs",children:[pe("p",{className:"text-neutral-600",children:h}),pe("span",{className:"font-mono text-neutral-400",children:u})]}),sideOffset:4,disableHoverableContent:!0,children:lo("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",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>d(C=>!C),children:[pe(f,{className:"size-4 shrink-0"}),pe("label",{htmlFor:`${l}-${u}`,className:"select-none text-sm",children:m?pe("span",{className:"font-mono text-xs",children:u}):v})]})}),pe("div",{className:"min-w-0 grow",children:pe(Yt,{tooltipProps:a?{content:a,disableHoverableContent:!0}:void 0,children:pe("input",{type:"text",id:`${l}-${u}`,ref:g===0?n:void 0,placeholder:b,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[u]||"",onChange:C=>t(u,C.target.value)})})})]})},u))})}import{jsx as co,jsxs as Bd}from"react/jsx-runtime";function Nx(){return Bd("div",{style:vr.backgroundMain,children:[co("div",{style:vr.backgroundMainBefore}),co("div",{style:vr.backgroundMainAfter}),co("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
|
+
`,xd=60,yd=1e3/xd;function P4({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 m=l.parentElement,d=window.devicePixelRatio||1;l.width=m.clientWidth*d,l.height=m.clientHeight*d;let n=l.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(n===null){alert("Failed to initialize WebGL");return}let u=n.createProgram();if(!u){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(u,T),n.linkProgram(u)}n.getProgramParameter(u,n.LINK_STATUS)||console.error(n.getProgramInfoLog(u));let f=n.getAttribLocation(u,"position"),v=n.getUniformLocation(u,"time"),b=n.getUniformLocation(u,"resolution"),h=n.getUniformLocation(u,"dotSize"),g=n.getUniformLocation(u,"cellSize"),C=n.getUniformLocation(u,"speed");n.useProgram(u);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 F(R){if(R-w<yd){k=requestAnimationFrame(F);return}w=R,n&&l&&u&&(n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT),n.uniform1f(v,R/1e3),n.uniform2f(b,l.width,l.height),n.drawArrays(n.TRIANGLE_STRIP,0,4)),k=requestAnimationFrame(F)}return k=requestAnimationFrame(F),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:ra,new:ea,success:Qo,pending:ta,warning:Tr,error:Tr};function A4({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 B4({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:c,checked:s=!0,loading:l=!1,disabled:m=!1,disabledTooltip:d}){let n=Pd(()=>d?!0:m||l,[d,m,l]),u=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:u})}):u}import{flexRender as ao,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 $,jsxs as pe}from"react/jsx-runtime";var no=(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 dx(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:c,pagination:s,onPaginationChange:l,getRowId:m,enableColumnResizing:d=!1,columnResizeMode:n="onChange"}=e,[u,f]=Ln(e.columnVisibility??{}),[v,b]=Ln(e.selectedRows??{});gr(()=>{e.selectedRows&&!Rr(e.selectedRows,v)&&b(e.selectedRows??{})},[e.selectedRows]),gr(()=>{var g;(g=e.onRowSelectionChange)==null||g.call(e,h.getSelectedRowModel().rows)},[v]),gr(()=>{e.columnVisibility&&!Rr(e.columnVisibility,u)&&f(e.columnVisibility??{})},[e.columnVisibility]),gr(()=>{var g;(g=e.onColumnVisibilityChange)==null||g.call(e,u)},[u]);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:b,state:{pagination:s,columnVisibility:u,columnPinning:{left:[],right:[],...c},rowSelection:v},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0,getRowId:m,enableColumnResizing:d,columnResizeMode:n});return{...e,columnVisibility:u,table:h,enableColumnResizing:d}}var Dd=Ld(function({row:t,onRowClick:r,cellRight:o,tdClassName:a,table:c}){return $("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=>$("td",{className:i(no(s.column.id,!!r),"text-content-default group",io(s.column,t.index===c.getRowModel().rows.length-1),typeof a=="function"?a(s.column.id):a),style:{width:s.column.getSize(),...so(s.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[$("div",{className:"min-w-0 shrink grow truncate",children:ao(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 ux({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:c,sortBy:s,sortOrder:l,onSortChange:m,sortableColumns:d=[],className:n,containerClassName:u,scrollWrapperClassName:f,thClassName:v,tdClassName:b,table:h,pagination:g,resourceName:C,onRowClick:N,rowCount:M,children:k,enableColumnResizing:w=!1}){let F=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",u),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:F},children:[$("thead",{children:h.getHeaderGroups().map(R=>$("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(no(x.id),"text-content-emphasis select-none font-medium",io(x.column,!h.getRowModel().rows.length),typeof v=="function"?v(x.column.id):v,w&&"relative"),style:{width:x.getSize(),...so(x.column)},children:[$("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:()=>m==null?void 0:m({sortBy:x.column.id,sortOrder:s!==x.column.id||l==="asc"?"desc":"asc"})},children:[x.isPlaceholder?null:ao(x.column.columnDef.header,x.getContext()),T&&s===x.column.id&&$(Oo,{className:"h-3 w-3 shrink-0",order:l||"desc"})]})}),w&&x.column.getCanResize()&&x.column.id!=="menu"&&$("div",{onMouseDown:x.getResizeHandler(),onTouchStart:x.getResizeHandler(),onClick:P=>P.stopPropagation(),className:Ad})]},x.id)})},R.id))}),$("tbody",{children:h.getRowModel().rows.map(R=>w?$(Dd,{row:R,onRowClick:N,cellRight:c,tdClassName:b,table:h},`${R.id}-${h.getVisibleLeafColumns().map(x=>x.id).join(",")}`):$("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=>$("td",{className:i(no(x.column.id,!!N),"text-content-default group",io(x.column,R.index===h.getRowModel().rows.length-1),typeof b=="function"?b(x.column.id):b),style:{minWidth:x.column.columnDef.minSize,maxWidth:x.column.columnDef.maxSize,width:x.column.columnDef.size||"auto",...so(x.column)},children:pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[$("div",{className:"min-w-0 shrink grow truncate",children:ao(x.column.columnDef.cell,x.getContext())}),c==null?void 0:c(x)]})},x.id))},R.id))})]}),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:[$("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"," ",$("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:[$(le,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>h.previousPage(),disabled:g.pageIndex===1}),$(le,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>h.nextPage(),disabled:g.pageIndex===h.getPageCount()})]})]}),$(Rd,{children:r&&$(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:$(Ne,{})})})]})}var io=(e,t)=>{let r=e.getIsPinned();return i(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},so=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 hx({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(m=>Od("button",{type:"button","data-selected":m.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":m.value!==t},a),onClick:()=>r(m.value),children:[typeof m.label=="string"?hr("p",{children:m.label}):m.label,m.badge,m.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}})]},m.value))})})}import{useEffect as _d,useId as Hd,useRef as Vd,useState as Bd}from"react";import{jsx as fe,jsxs as lo}from"react/jsx-runtime";var Wd=[{key:"utm_source",icon:da,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:la,label:"Campaign",placeholder:"summer sale",description:"The name of the campaign"},{key:"utm_term",icon:ba,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:ya,label:"Content",placeholder:"logo link",description:"The content of the campaign"},{key:"ref",icon:ca,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function kx({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:c}){let{isMobile:s}=q(),l=Hd(),[m,d]=Bd(!1),n=Vd(null);return _d(()=>{n.current&&!s&&o&&setTimeout(()=>{var u;return(u=n.current)==null?void 0:u.focus()},10)},[]),fe("div",{className:i("grid gap-y-3",c),children:Wd.map(({key:u,icon:f,label:v,placeholder:b,description:h},g)=>fe("div",{className:"group relative",children:lo("div",{className:"relative z-10 flex",children:[fe(J,{content:lo("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:u})]}),sideOffset:4,disableHoverableContent:!0,children:lo("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",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>d(C=>!C),children:[fe(f,{className:"size-4 shrink-0"}),fe("label",{htmlFor:`${l}-${u}`,className:"select-none text-sm",children:m?fe("span",{className:"font-mono text-xs",children:u}):v})]})}),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}-${u}`,ref:g===0?n:void 0,placeholder:b,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[u]||"",onChange:C=>t(u,C.target.value)})})})]})},u))})}import{jsx as co,jsxs as Fd}from"react/jsx-runtime";function Sx(){return Fd("div",{style:vr.backgroundMain,children:[co("div",{style:vr.backgroundMainBefore}),co("div",{style:vr.backgroundMainAfter}),co("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%),
|
|
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 ku from"next/image";import He from"next/link";import{useParams as Pu}from"next/navigation";import{jsx as En}from"react/jsx-runtime";function An(e){return En("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:En("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:ga,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:xa,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:"/docs/integrations"}],Dn=[{icon:Bo,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:Vo,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:An,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],uo=[{icon:$o,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/sdks/typescript"},{icon:Uo,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:Go,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/sdks/ruby"},{icon:Wo,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/sdks/php"}],In=[{icon:Bt,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:Ut,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"},{label:"SDKs",items:uo}],xr=[{icon:jo,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:ma,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:sa,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:Yo,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:pa,title:"Customers",description:"Success stories and use cases",href:"/customers"},{icon:fa,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"}],zn=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}],Rx=[{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 Fd}from"react/jsx-runtime";function wr({className:e,children:t}){return Fd("div",{className:i("mx-auto w-full max-w-screen-xl px-3 lg:px-10",e),children:t})}import*as _e from"@radix-ui/react-popover";import{BoxSelect as pu,Home as fu,LayoutGrid as gu,Type as hu}from"lucide-react";import{useParams as vu}from"next/navigation";import{useCallback as bu,useContext as xu,useState as yu}from"react";import{toast as wu}from"sonner";import{jsx as On}from"react/jsx-runtime";function mo({className:e}){return On("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:On("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 de from"@radix-ui/react-navigation-menu";import{LayoutGroup as Xd}from"framer-motion";import Tt from"next/link";import{useParams as Jd,usePathname as Qd}from"next/navigation";import{createContext as eu,useId as tu}from"react";import ru from"swr";import{Link as Fn}from"@radix-ui/react-navigation-menu";import Wn from"next/link";import{jsx as S,jsxs as po}from"react/jsx-runtime";function _n(e){return po("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:[po("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:po("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 Wd}from"react";import{jsx as p,jsxs as V}from"react/jsx-runtime";function Hn(e){let t=Wd();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 Vn}from"@radix-ui/react-navigation-menu";import Bn 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",Ud="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(Vn,{asChild:!0,children:we(Bn,{className:i(Ud,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(Do,{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(Vn,{asChild:!0,children:we(Bn,{...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 K,jsxs as Te}from"react/jsx-runtime";var Gd=[{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:"/docs/integrations"}];function Un({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:[K(Fn,{asChild:!0,children:Te(Wn,{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:[K("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),K("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"})]}),K("div",{className:"relative grow overflow-hidden",children:K(Hn,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),K("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:[K(Fn,{asChild:!0,children:Te(Wn,{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:[K(_n,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),K("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:[K("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),K("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]})}),K("div",{className:"grid grow grid-rows-2 gap-4",children:Gd.map(({title:t,description:r,icon:o,href:a})=>K(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:[K("p",{className:i(st,"mb-2"),children:"Customer Stories"}),Te("div",{className:"grid grid-cols-1",children:[Dn.map(({icon:t,iconClassName:r,title:o,description:a,href:c})=>K(lt,{className:"-mx-2",href:z(c,e,te({domain:e,utm_content:o})),icon:K("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:K(t,{className:i("h-4 w-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},c)),K(lt,{className:"-mx-2",href:z("/customers",e,te({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),K("p",{className:i(st,"mb-2 mt-5"),children:"Compare"}),K("div",{className:"flex flex-col",children:yr.map(({name:t,slug:r})=>K(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 $n}from"@radix-ui/react-navigation-menu";import Kd from"next/image";import Kn from"next/link";import{useId as $d}from"react";import{jsx as y,jsxs as ct}from"react/jsx-runtime";function Gn({className:e,...t}){let r=$d();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 Ye}from"react/jsx-runtime";var jd=[{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 jn({domain:e}){return Ye("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:jd.map(({title:t,description:r,thumbnail:o,href:a})=>ee($n,{asChild:!0,children:Ye(Kn,{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:[Ye("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(Kd,{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))}),Ye("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($n,{asChild:!0,children:Ye(Kn,{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:[Ye("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(Gn,{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:Ye("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 Yd}from"@radix-ui/react-navigation-menu";import qd from"next/link";import{jsx as re,jsxs as dt}from"react/jsx-runtime";var Zd=[{icon:Bt,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:Ut,title:"Affiliate Management",description:"Manage affiliates and automate payouts",href:"/partners"}];function Yn({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:Zd.map(({icon:t,title:r,description:o,href:a})=>re(Yd,{asChild:!0,children:dt(qd,{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(pn,{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:uo.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 nu,jsx as F,jsxs as ut}from"react/jsx-runtime";var fo=eu({theme:"light"}),go=[{name:"Product",content:Un,childItems:br,segments:["/home","/analytics","/features","/compare"]},{name:"Solutions",content:Yn,childItems:In,segments:["/solutions"]},{name:"Resources",content:jn,childItems:xr,segments:["/docs","/help","/brand","/blog","/changelog","/customers"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],qn=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 _5({theme:e="light",staticDomain:t,maxWidthWrapperClassName:r}){let{domain:o="dub.co"}=Jd();t&&(o=t);let a=tu(),c=Wa(40),s=Qd(),{data:l,isLoading:m}=ru(o.endsWith("dub.co")&&"/api/auth/session",fe,{dedupingInterval:6e4});return F(fo.Provider,{value:{theme:e},children:F(Xd,{id:a,children:ut("div",{className:i("sticky inset-x-0 top-0 z-30 w-full transition-all",e==="dark"&&"dark"),children:[F("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")}),F(wr,{className:i("relative",r),children:ut("div",{className:"flex h-14 items-center justify-between",children:[F("div",{className:"grow basis-0",children:F(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:F(kr,{})})}),ut(de.Root,{delayDuration:0,className:"relative hidden lg:block",children:[F(de.List,{className:"group relative z-0 flex",children:go.map(({name:d,href:n,segments:u,content:f})=>{let v=u.some(b=>s==null?void 0:s.startsWith(b));return ut(de.Item,{children:[F(au,{trigger:!!f,children:n!==void 0?F(Tt,{id:`nav-${n}`,href:z(n,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:d}),className:qn,"data-active":v,children:d}):ut("button",{className:qn,"data-active":v,children:[d,F(ou,{className:"ml-1.5 size-2.5 text-neutral-700"})]})}),f&&F(de.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:F(f,{domain:o})})]},d)})}),F("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:F(de.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]")})})]}),F("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:l&&Object.keys(l).length>0?F(Tt,{href:Ce,className:i(ie({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"}):m?null:ut(nu,{children:[F(Tt,{href:"https://app.dub.co/login",className:i(ie({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"}),F(Tt,{href:"https://app.dub.co/register",className:i(ie({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 ou(e){return F("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",fill:"none",viewBox:"0 0 9 9",...e,children:F("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 au({trigger:e,children:t}){return e?F(de.Trigger,{asChild:!0,children:t}):t}import{ChevronDown as iu,Menu as su,X as lu}from"lucide-react";import mt from"next/link";import{useParams as vo}from"next/navigation";import{useEffect as cu,useState as Xn}from"react";import du from"swr";import{Fragment as mu,jsx as O,jsxs as Le}from"react/jsx-runtime";function Z5({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=vo();t&&(r=t);let[o,a]=Xn(!1);cu(()=>{o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[o]);let{data:c}=du(r.endsWith("dub.co")&&"/api/auth/session",fe,{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(ho,{href:Ce,className:"max-[280px]:hidden",children:"Dashboard"}):Le("div",{className:"flex gap-2 max-[280px]:hidden",children:[O(ho,{variant:"secondary",href:`${Ce}/login`,children:"Log in"}),O(ho,{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(lu,{className:"h-5 w-5 text-neutral-600 dark:text-white/70"}):O(su,{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:[go.map(({name:s,href:l,childItems:m},d)=>O(uu,{name:s,href:l,childItems:m,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(mu,{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 uu=({name:e,href:t,childItems:r,setOpen:o})=>{let{domain:a="dub.co"}=vo(),[c,s]=Xn(!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(iu,{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,m)=>"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(Zn,{item:d,setOpen:o,size:"small"},n))]},m):O(Zn,{item:l,setOpen:o},m))})]})}):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},Zn=({item:{title:e,description:t,href:r,icon:o},setOpen:a,size:c="normal"})=>{let{domain:s="dub.co"}=vo();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 ho({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]",ie({variant:e}),t)})}import{jsx as Jn}from"react/jsx-runtime";function Qn({className:e}){return Jn("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:Jn("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 ei}from"react/jsx-runtime";var Cu=`<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 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:ga,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:xa,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:Bo,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:Vo,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"}],uo=[{icon:$o,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/sdks/typescript"},{icon:Uo,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/sdks/python"},{icon:Wo,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/sdks/go"},{icon:Go,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/sdks/ruby"},{icon:Fo,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:uo}],xr=[{icon:jo,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:ma,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:sa,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:Yo,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:pa,title:"Customers",description:"Success stories and use cases",href:"/customers"},{icon:fa,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"}],Ex=[{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 mo({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 po}from"react/jsx-runtime";function Hn(e){return po("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:[po("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:po("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(Do,{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 K,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:[K(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:[K("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),K("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"})]}),K("div",{className:"relative grow overflow-hidden",children:K(Vn,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),K("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:[K(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:[K(Hn,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),K("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:[K("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),K("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]})}),K("div",{className:"grid grow grid-rows-2 gap-4",children:Kd.map(({title:t,description:r,icon:o,href:a})=>K(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:[K("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})=>K(lt,{className:"-mx-2",href:z(c,e,te({domain:e,utm_content:o})),icon:K("div",{className:"shrink-0 rounded-[10px] border border-neutral-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:K(t,{className:i("h-4 w-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},c)),K(lt,{className:"-mx-2",href:z("/customers",e,te({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),K("p",{className:i(st,"mb-2 mt-5"),children:"Compare"}),K("div",{className:"flex flex-col",children:yr.map(({name:t,slug:r})=>K(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:uo.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 fo=ru({theme:"light"}),go=[{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 B5({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:m}=au(o.endsWith("dub.co")&&"/api/auth/session",ge,{dedupingInterval:6e4});return W(fo.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:go.map(({name:d,href:n,segments:u,content:f})=>{let v=u.some(b=>s==null?void 0:s.startsWith(b));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":v,children:d}):ut("button",{className:Zn,"data-active":v,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"}):m?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 vo}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 Q5({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=vo();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(ho,{href:Ce,className:"max-[280px]:hidden",children:"Dashboard"}):Le("div",{className:"flex gap-2 max-[280px]:hidden",children:[O(ho,{variant:"secondary",href:`${Ce}/login`,children:"Log in"}),O(ho,{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:[go.map(({name:s,href:l,childItems:m},d)=>O(pu,{name:s,href:l,childItems:m,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"}=vo(),[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,m)=>"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))]},m):O(Xn,{item:l,setOpen:o},m))})]})}):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"}=vo();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 ho({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">
|
|
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>`,Pu=`<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"}=vu(),{theme:a}=xu(fo),[c,s]=yu(!1),l=bu(n=>{n.preventDefault(),s(!0)},[]),[,m]=Qe();function d(n){wu.promise(m(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return ei(_e.Root,{open:c,onOpenChange:s,children:[Z(_e.Anchor,{asChild:!0,children:Z("div",{onContextMenu:l,className:"max-w-fit",children:e==="full"?Z(Qn,{className:r}):Z(mo,{className:i("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),Z(_e.Portal,{children:Z(_e.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:ei("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(Cu),icon:Z(mo,{className:"h-4 w-4"})}),Z(Lt,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>d(Nu),icon:Z(hu,{strokeWidth:2,className:"h-4 w-4"})}),Z(Lt,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:Z(pu,{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(fu,{strokeWidth:2,className:"h-4 w-4"})}):Z(Lt,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:Z(gu,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function Lt({className:e,...t}){return Z(se,{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 j}from"react/jsx-runtime";var Su=[{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:"About",href:"/about"},{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:yr.map(({name:e,slug:t})=>({name:e,href:`/compare/${t}`})),legal:zn.map(({name:e,slug:t})=>({name:e,href:`/legal/${t}`})),tools:Eo.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-2.5",qe="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function C8({staticDomain:e,className:t}){let{domain:r="dub.co"}=Pu();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:j("footer",{children:[j("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[j("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:j(He,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[j("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:Su.map(({name:o,icon:a,href:c})=>j("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))})]}),j("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[j("div",{className:"md:grid md:grid-cols-2",children:[j("div",{className:"grid gap-8",children:[j("div",{children:[E("h3",{className:ft,children:"Product"}),E("ul",{role:"list",className:gt,children:pt.product.map(o=>E("li",{children:E(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name))})]}),j("div",{children:[E("h3",{className:ft,children:"Solutions"}),E("ul",{role:"list",className:gt,children:pt.solutions.map(o=>E("li",{children:E(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name))})]})]}),j("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:E(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name))})]})]}),j("div",{className:"md:grid md:grid-cols-2",children:[j("div",{className:"grid gap-8",children:[j("div",{children:[E("h3",{className:ft,children:"Compare"}),E("ul",{role:"list",className:gt,children:pt.compare.map(o=>E("li",{children:E(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name))})]}),j("div",{children:[E("h3",{className:ft,children:"Legal"}),j("ul",{role:"list",className:gt,children:[pt.legal.map(o=>E("li",{children:E(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name)),E("li",{children:j("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:i(qe,"flex items-center gap-1"),children:["Trust Center ",E(wa,{className:"size-3.5"})]})})]})]})]}),j("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(He,{href:z(o.href,r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:o.name}),className:qe,children:o.name})},o.name))})]})]})]})]}),j("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[E(en,{}),E(He,{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(ku,{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"})}),j("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}import{AnimatePresence as Mu,motion as Ru}from"framer-motion";import{useEffect as Tu,useState as Lu}from"react";import{jsx as ti}from"react/jsx-runtime";var ri=({children:e,fallback:t,fadeInDuration:r=.5,className:o})=>{let[a,c]=Lu(!1);Tu(()=>{c(!0)},[]);let s=r?Ru.div:"div";return ti(Mu,{children:a?ti(s,{...r?{initial:{opacity:0},animate:{opacity:1},transition:{duration:r}}:{},className:o,children:e}):t||null})};import{cva as Eu}from"class-variance-authority";import{toast as Au}from"sonner";import{jsx as bo,jsxs as Iu}from"react/jsx-runtime";var Du=Eu("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 I8({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[c,s]=Qe(),l=o||Ao;return Iu("button",{onClick:m=>{m.stopPropagation(),Au.promise(s(t),{success:a||"Copied to clipboard!"})},className:i(Du({variant:e}),r),type:"button",children:[bo("span",{className:"sr-only",children:"Copy"}),c?bo(Ho,{className:"h-3.5 w-3.5"}):bo(l,{className:"h-3.5 w-3.5"})]})}import{toast as zu}from"sonner";import{jsx as Ou}from"react/jsx-runtime";function V8({value:e,children:t,className:r,successMessage:o}){let[a,c]=Qe();return Ou("button",{onClick:s=>{s.stopPropagation(),zu.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 _u,jsxs as Hu}from"react/jsx-runtime";function F8({icon:e,text:t}){return Hu("div",{className:"flex items-center justify-start space-x-2 truncate",children:[e,_u("p",{className:"truncate text-sm",children:t})]})}import{jsx as Vu}from"react/jsx-runtime";var U8=({children:e})=>Vu("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:e});import{jsx as xo}from"react/jsx-runtime";function Y8({apexDomain:e,className:t,imageProps:r}){return e?xo(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}):xo("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:xo(ua,{className:"h-4 w-4 text-neutral-600 sm:h-5 sm:w-5"})})}import{Link2 as oi}from"lucide-react";import{useRouter as Bu,useSearchParams as Fu}from"next/navigation";import{useEffect as Wu,useMemo as Uu,useRef as Gu}from"react";import $u from"swr";import{useDebounce as Ku}from"use-debounce";import{Fragment as ai,jsx as Y,jsxs as Ve}from"react/jsx-runtime";function a6({defaultUrl:e}){let t=Bu(),r=Fu(),o=e||(r==null?void 0:r.get("url"))||"https://github.com/dubinc/dub",[a]=Ku(Ro(o),500),c=Uu(()=>To(a||""),[a]),{data:s,isValidating:l}=$u(a&&`/api/metatags?url=${encodeURIComponent(a)}`,fe,{revalidateOnFocus:!1}),{title:m,description:d,image:n}=s||{},u=Gu(null);Wu(()=>{!e&&u.current&&u.current.select()},[e]);let{isMobile:f}=q();return Ve(ai,{children:[!e&&Ve("div",{className:"relative flex items-center",children:[Y(oi,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-neutral-400"}),Y("input",{ref:u,name:"url",id:"url",type:"url",autoFocus:!f,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:o,onChange:v=>t.replace(`/tools/metatags${v.target.value.length>0?`?url=${v.target.value}`:""}`),"aria-invalid":"true"})]}),Ve("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:[l&&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,{})}),n?Y("img",{src:n,alt:"Preview",className:"h-[250px] w-full border-b border-neutral-300 object-cover"}):Ve("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-neutral-300",children:[Y(zo,{className:"h-8 w-8 text-neutral-400"}),Y("p",{className:"text-sm text-neutral-400",children:"Enter a link to generate a preview."})]}),Ve("div",{className:"grid gap-1 bg-white p-3 text-left",children:[c?Y("p",{className:"text-sm text-[#536471]",children:c}):Y("div",{className:"mb-1 h-4 w-24 rounded-md bg-neutral-100"}),m?Y("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:m}):Y("div",{className:"mb-1 h-4 w-full rounded-md bg-neutral-100"}),d?Y("p",{className:"line-clamp-2 text-sm text-[#536471]",children:d}):Ve("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 n6({defaultUrl:e}){return Ve(ai,{children:[Ve("div",{className:"relative flex items-center",children:[Y(oi,{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 ju}from"framer-motion";import ni from"js-cookie";import{createContext as Yu,useState as qu}from"react";import{jsx as yo}from"react/jsx-runtime";var Zu=Yu({hidePopup:()=>{}});function m6({children:e,hiddenCookieId:t}){let[r,o]=qu(ni.get(t)==="1"),a=()=>{o(!0),ni.set(t,"1")};return yo(ri,{children:yo(Zu.Provider,{value:{hidePopup:a},children:yo(ju,{children:!r&&e})})})}import{motion as Xu}from"framer-motion";import{jsx as ii}from"react/jsx-runtime";function h6({value:e=0,max:t=100,className:r}){return ii("div",{className:i("h-3 w-full overflow-hidden rounded-full bg-neutral-200",r),children:ii(Xu.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 li}from"class-variance-authority";import{LayoutGroup as Ju,motion as Qu}from"framer-motion";import{useId as em}from"react";import{jsx as Et,jsxs as si}from"react/jsx-runtime";var tm=li("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"}}),rm=li("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-bg-inverted",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function S6({variant:e,options:t,selected:r,onSelect:o,className:a}){let c=em();return Et("div",{className:i("flex text-sm",a),children:Et(Ju,{id:c,children:t.map(({id:s,label:l,href:m})=>{let d=s===r;return si(m?"a":"div",{className:"relative",href:m??"#",target:m?"_blank":void 0,children:[si("button",{type:"button",...!m&&{onClick:()=>o==null?void 0:o(s)},className:i(tm({variant:e}),m&&"group flex items-center gap-1.5"),"data-selected":d,"aria-selected":d,children:[l,m&&Et(Ko,{className:"size-2.5"})]}),d&&Et(Qu.div,{layoutId:"indicator",transition:{duration:.1},className:rm({variant:e}),children:Et("div",{className:"h-0.5 rounded-t-full bg-current"})})]},s)})})})}import{jsx as wo,jsxs as ci}from"react/jsx-runtime";var om=[{icon:ka,text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{icon:aa,text:"Geo/device targeting",href:"https://dub.co/help/article/geo-targeting"},{icon:va,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:ha,text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"}];function T6(){return ci("div",{className:"p-3",children:[wo("span",{className:"block text-sm font-semibold text-neutral-600",children:"Advanced link features"}),wo("div",{className:"mt-2 flex flex-col gap-2.5 text-xs text-neutral-600",children:om.map(({text:e,icon:t,href:r})=>ci("a",{href:r,target:"_blank",className:"flex items-center gap-2.5 underline decoration-dotted underline-offset-2",children:[wo(t,{className:"size-3.5 shrink-0"}),e]},e))})]})}import{jsx as di,jsxs as am}from"react/jsx-runtime";function A6({className:e}){return am("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:[di("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"}),di("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{zr as AUTOPLAY_DEFAULT_DELAY,Qf as Accordion,vi as AccordionContent,gi as AccordionItem,hi as AccordionTrigger,T6 as AdvancedLinkFeaturesTooltip,wm as Africa,Dm as Airtm,wi as Alert,Ni as AlertDescription,Ci as AlertTitle,Mm as Amazon,Vm as AndroidLogo,Pe as AnimatedSizeContainer,Bm as AppleLogo,Fm as ArrowBoldUp,Wm as ArrowRight,Um as ArrowTrendUp,Gm as ArrowTurnLeft,$m as ArrowTurnRight2,Ko as ArrowUpRight,Km as ArrowsOppositeDirectionY,Cm as Asia,ho as AuthButton,s1 as Avatar,Nx as Background,jt as Badge,jm as BadgeCheck,Ym as BadgeCheck2Fill,R1 as BadgeTooltip,qm as Blog,Rt as BlurImage,Zm as Bolt,Xm as BoltFill,Qm as Book2,jo as Book2Fill,e0 as Book2Small,Jm as BookOpen,t0 as Books2,r0 as BoxArchive,o0 as BulletList,Yo as BulletListFill,se as Button,T1 as ButtonTooltip,yr as COMPARE_PAGES,Dn as CUSTOMER_STORIES,qa as Calendar,s0 as Calendar6,n0 as CalendarDays,a0 as CalendarIcon,i0 as CalendarRefresh,vm as CardAmex,bm as CardDiscover,Q1 as CardList,xm as CardMastercard,ym as CardVisa,l0 as Cards,c0 as CaretUpFill,es as Carousel,ts as CarouselContent,rs as CarouselItem,vg as CarouselNavBar,as as CarouselNext,os as CarouselPrevious,Mg as CarouselThumbnail,Sg as CarouselThumbnails,Im as CashApp,d0 as ChartActivity2,u0 as ChartArea2,m0 as ChartLine,Rm as ChatGPT,qo as Check,Zo as Check2,gs as Checkbox,Xo as CheckboxCheckedFill,Jo as CheckboxUnchecked,Qo as CircleCheck,p0 as CircleCheckFill,f0 as CircleDollar,g0 as CircleDotted,ea as CircleHalfDottedCheck,ta as CircleHalfDottedClock,ra as CircleInfo,h0 as CirclePercentage,v0 as CirclePlay,b0 as CirclePlayFill,x0 as CircleQuestion,y0 as CircleUser,Tr as CircleWarning,w0 as CircleXmark,C0 as Circles,N0 as Circles3,ri as ClientOnly,oa as CloudUpload,k0 as Code,P0 as ColorPalette2,bv as Combobox,A6 as CompositeLogo,S0 as ConnectedDots,M0 as ConnectedDots4,Ht as ConnectedDotsFill,R0 as Connections3,Ao as Copy,I8 as CopyButton,V8 as CopyText,T0 as CreditCard,L0 as Crosshairs3,E0 as Crown,nm as CrownSmall,A0 as Cube,D0 as CubeSettings,Vt as CubeSettingsFill,I0 as CurrencyDollar,z0 as CursorRays,O0 as DatabaseKey,Br as DatePickerContext,t2 as DateRangePicker,_0 as Desktop,H0 as DiamondTurnRight,Bt as DiamondTurnRightFill,V0 as Directions,B0 as Discount,F0 as Dots,W0 as Download,im as DubCraftedShield,en as DubStatusBadge,U0 as Duplicate,Yt as DynamicTooltipWrapper,aa as Earth,G0 as EarthPosition,p2 as EmptyState,$0 as Envelope,K0 as EnvelopeAlert,j0 as EnvelopeArrowRight,Nm as Europe,Do as ExpandingArrow,na as Eye,ia as EyeSlash,br as FEATURES_LIST,cm as Facebook,sa as FeatherFill,Tm as Figma,Y0 as FileContent,k2 as FileUpload,q0 as FileZip2,Z2 as Filter,X0 as Filter2,Z0 as FilterBars,Q0 as Flag2,la as Flag6,J0 as FlagWavy,ep as Flask,tp as FlaskSmall,rp as Folder,sp as Folder5,op as FolderBookmark,ap as FolderLock,np as FolderPlus,ip as FolderShield,C8 as Footer,ob as Form,lp as GamingConsole,cp as Gauge6,dp as Gear,up as Gear2,mp as Gear3,pp as Gem,ca as Gift,fp as GiftFill,Lm as GitHubEnhanced,It as Github,gp as Globe,ua as Globe2,da as GlobePointer,hp as GlobeSearch,Fo as Go,dm as Google,Em as GoogleEnhanced,vp as GreekTemple,pn as Grid,bp as GridIcon,xp as GridLayoutRows,yp as GridPlus,wp as Headset,ma as HeadsetFill,pa as HeartFill,fa as HexadecagonStar,Cp as History,ga as Hyperlink,F8 as IconMenu,Np as Icosahedron,ha as Incognito,S1 as InfoTooltip,U8 as InlineSnippet,yc as Input,kp as InputPassword,va as InputPasswordPointer,ba as InputSearch,Db as InputSelect,um as Instagram,Pp as InvoiceDollar,Sp as Key,za as KeyboardShortcutContext,ih as KeyboardShortcutProvider,zn as LEGAL_PAGES,Bc as Label,Mp as LayoutSidebar,Rp as License,xa as LinesY,Lp as Link4,Tp as LinkBroken,Y8 as LinkLogo,a6 as LinkPreview,n6 as LinkPreviewPlaceholder,zt as LinkedIn,P1 as LinkifyTooltipContent,bt as LoadingCircle,lm as LoadingDots,Ne as LoadingSpinner,Ep as LocationPin,Ap as LockFill,mo as Logo,Io as Magic,Dp as Magnifier,Ip as MapPosition,zp as MarketingTarget,sm as MatrixLines,wr as MaxWidthWrapper,Op as Menu3,$b as MenuItem,_p as MessageSmile,Ft as MicrophoneFill,t4 as MiniAreaChart,Hp as MobilePhone,s4 as Modal,Vp as MoneyBill,Bp as MoneyBill2,Fp as MoneyBills2,Wp as Msgs,_5 as Nav,fo as NavContext,Z5 as NavMobile,kr as NavWordmark,km as NorthAmerica,Up as Note,Xp as NucleoPhoto,M1 as NumberTooltip,Pm as Oceania,Gp as OfficeBuilding,jf as PLAN_FEATURE_ICONS,ya as Page2,d4 as PaginationControls,$p as Paintbrush,Kp as Palette2,jp as PaperPlane,zm as Payoneer,Om as Paypal,qp as Pen2,Yp as PenWriting,Zp as PercentageArrowDown,zo as Photo,Wo as Php,Jp as Plug2,Wt as Plus,ot as Popover,m6 as Popup,Zu as PopupContext,Qp as Post,mm as Prisma,Vo as ProductHunt,h6 as ProgressBar,ef as Pyramid,Uo as Python,tf as QRCode,xr as RESOURCES,nd as RadioGroup,id as RadioGroupItem,Bo as Raycast,rf as Receipt2,wa as ReferredVia,of as Refresh2,af as Robot,Go as Ruby,uo as SDKS,Rx as SOCIAL_LINKS,In as SOLUTIONS,Ca as SatelliteDish,nf as ScanText,sf as Scribble,b4 as Sheet,lf as ShieldAlert,cf as ShieldCheck,df as ShieldKeyhole,uf as ShieldSlash,mf as ShieldUser,C4 as ShimmerDots,pf as Shuffle,k1 as SimpleTooltipContent,pm as Slack,ff as Sliders,Oo as SortOrder,Sm as SouthAmerica,gf as Sparkle3,Am as Spotify,hf as SquareChart,vf as SquareLayoutGrid5,bf as SquareLayoutGrid6,xf as SquareXmark,yf as Stars2,T4 as StatusBadge,_m as StripeLink,_o as Success,_4 as Switch,Tf as TV,S6 as TabSelect,lx as Table,wf as TableIcon,Cf as TableRows2,Nf as Tablet,kf as Tag,Pf as Tags,Ho as Tick,fm as TikTok,Na as Timer2,gm as Tinybird,Sf as Toggle2Fill,px as ToggleGroup,l1 as TokenAvatar,J as Tooltip,N1 as TooltipContent,C1 as TooltipProvider,Mf as Trash,Rf as TriangleWarning,Ot as Twitter,$o as Typescript,wx as UTMBuilder,Vd as UTM_PARAMETERS,Lf as UiCard,hm as Unsplash,Ef as User,Af as UserCheck,Df as UserCrown,If as UserDelete,zf as UserPlus,Of as Users,Hf as Users2,Vf as Users6,Ut as UsersFill,_f as UsersSettings,Hm as Venmo,Bf as Versions2,ka as Views,Ff as Watch,Wf as Webhook,Uf as Window,Gf as WindowSearch,$f as WindowSettings,Qn as Wordmark,Kf as Xmark,_t as YouTube,Ri as badgeVariants,ie as buttonVariants,Si as getUserAvatarUrl,go as navItems,yd as statusBadgeVariants,he as useCarousel,Ea as useCarouselActiveIndex,Ig as useCookies,Qe as useCopyToClipboard,Vg as useCurrentAnchor,Ug as useEnterSubmit,jg as useInViewport,Zg as useInputFocused,eh as useIntersectionObserver,et as useKeyboardShortcut,ch as useLocalStorage,q as useMediaQuery,fh as useOptimisticUpdate,Sh as usePagination,Th as useRemoveGAParams,Zt as useResizeObserver,Va as useRouterStuff,Wa as useScroll,tt as useScrollProgress,sx as useTable,Ha as useTablePagination,Uh as useToastWithUndo};
|
|
52
|
+
</svg>`;function kr({variant:e="full",isInApp:t,className:r}){let{domain:o="dub.co"}=xu(),{theme:a}=wu(fo),[c,s]=Cu(!1),l=yu(n=>{n.preventDefault(),s(!0)},[]),[,m]=et();function d(n){Nu.promise(m(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(mo,{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(mo,{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 j}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:"About",href:"/about"},{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],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:Eo.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-2.5",Ze="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function P8({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:j("footer",{children:[j("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[j("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:j(Ve,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[j("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})=>j("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))})]}),j("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[j("div",{className:"md:grid md:grid-cols-2",children:[j("div",{className:"grid gap-8",children:[j("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))})]}),j("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))})]})]}),j("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: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))})]})]}),j("div",{className:"md:grid md:grid-cols-2",children:[j("div",{className:"grid gap-8",children:[j("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))})]}),j("div",{children:[E("h3",{className:ft,children:"Legal"}),j("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:j("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:i(Ze,"flex items-center gap-1"),children:["Trust Center ",E(wa,{className:"size-3.5"})]})})]})]})]}),j("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))})]})]})]})]}),j("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"})}),j("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 bo,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 _8({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[c,s]=et(),l=o||Ao;return Ou("button",{onClick:m=>{m.stopPropagation(),Iu.promise(s(t),{success:a||"Copied to clipboard!"})},className:i(zu({variant:e}),r),type:"button",children:[bo("span",{className:"sr-only",children:"Copy"}),c?bo(Ho,{className:"h-3.5 w-3.5"}):bo(l,{className:"h-3.5 w-3.5"})]})}import{toast as _u}from"sonner";import{jsx as Hu}from"react/jsx-runtime";function F8({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 G8({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 K8=({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 xo}from"react/jsx-runtime";function X8({apexDomain:e,className:t,imageProps:r}){return e?xo(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}):xo("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:xo(ua,{className:"h-4 w-4 text-neutral-600 sm:h-5 sm:w-5"})})}import{Link2 as ai}from"lucide-react";import{useRouter as Fu,useSearchParams as Uu}from"next/navigation";import{useEffect as Gu,useMemo as $u,useRef as Ku}from"react";import ju from"swr";import{useDebounce as Yu}from"use-debounce";import{Fragment as ni,jsx as Y,jsxs as Be}from"react/jsx-runtime";function s6({defaultUrl:e}){let t=Fu(),r=Uu(),o=e||(r==null?void 0:r.get("url"))||"https://github.com/dubinc/dub",[a]=Yu(Ro(o),500),c=$u(()=>To(a||""),[a]),{data:s,isValidating:l}=ju(a&&`/api/metatags?url=${encodeURIComponent(a)}`,ge,{revalidateOnFocus:!1}),{title:m,description:d,image:n}=s||{},u=Ku(null);Gu(()=>{!e&&u.current&&u.current.select()},[e]);let{isMobile:f}=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:u,name:"url",id:"url",type:"url",autoFocus:!f,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:o,onChange:v=>t.replace(`/tools/metatags${v.target.value.length>0?`?url=${v.target.value}`:""}`),"aria-invalid":"true"})]}),Be("div",{className:"relative overflow-hidden rounded-md border border-neutral-300 bg-neutral-50",children:[l&&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,{})}),n?Y("img",{src:n,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(zo,{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:[c?Y("p",{className:"text-sm text-[#536471]",children:c}):Y("div",{className:"mb-1 h-4 w-24 rounded-md bg-neutral-100"}),m?Y("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:m}):Y("div",{className:"mb-1 h-4 w-full rounded-md bg-neutral-100"}),d?Y("p",{className:"line-clamp-2 text-sm text-[#536471]",children:d}):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 l6({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 qu}from"framer-motion";import ii from"js-cookie";import{createContext as Zu,useState as Xu}from"react";import{jsx as yo}from"react/jsx-runtime";var Ju=Zu({hidePopup:()=>{}});function g6({children:e,hiddenCookieId:t}){let[r,o]=Xu(ii.get(t)==="1"),a=()=>{o(!0),ii.set(t,"1")};return yo(oi,{children:yo(Ju.Provider,{value:{hidePopup:a},children:yo(qu,{children:!r&&e})})})}import{motion as Qu}from"framer-motion";import{jsx as si}from"react/jsx-runtime";function x6({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(Qu.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 em,motion as tm}from"framer-motion";import{useId as rm}from"react";import{jsx as Et,jsxs as li}from"react/jsx-runtime";var om=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"}}),am=ci("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-bg-inverted",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function T6({variant:e,options:t,selected:r,onSelect:o,className:a}){let c=rm();return Et("div",{className:i("flex text-sm",a),children:Et(em,{id:c,children:t.map(({id:s,label:l,href:m})=>{let d=s===r;return li(m?"a":"div",{className:"relative",href:m??"#",target:m?"_blank":void 0,children:[li("button",{type:"button",...!m&&{onClick:()=>o==null?void 0:o(s)},className:i(om({variant:e}),m&&"group flex items-center gap-1.5"),"data-selected":d,"aria-selected":d,children:[l,m&&Et(Ko,{className:"size-2.5"})]}),d&&Et(tm.div,{layoutId:"indicator",transition:{duration:.1},className:am({variant:e}),children:Et("div",{className:"h-0.5 rounded-t-full bg-current"})})]},s)})})})}import{jsx as wo,jsxs as di}from"react/jsx-runtime";var nm=[{icon:ka,text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{icon:aa,text:"Geo/device targeting",href:"https://dub.co/help/article/geo-targeting"},{icon:va,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:ha,text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"}];function A6(){return di("div",{className:"p-3",children:[wo("span",{className:"block text-sm font-semibold text-neutral-600",children:"Advanced link features"}),wo("div",{className:"mt-2 flex flex-col gap-2.5 text-xs text-neutral-600",children:nm.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:[wo(t,{className:"size-3.5 shrink-0"}),e]},e))})]})}import{jsx as ui,jsxs as im}from"react/jsx-runtime";function z6({className:e}){return im("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{zr as AUTOPLAY_DEFAULT_DELAY,t1 as Accordion,bi as AccordionContent,hi as AccordionItem,vi as AccordionTrigger,A6 as AdvancedLinkFeaturesTooltip,Nm as Africa,zm as Airtm,Ci as Alert,ki as AlertDescription,Ni as AlertTitle,Tm as Amazon,Wm as AndroidLogo,Pe as AnimatedSizeContainer,Fm as AppleLogo,Um as ArrowBoldUp,Gm as ArrowRight,$m as ArrowTrendUp,Km as ArrowTurnLeft,jm as ArrowTurnRight2,Ko as ArrowUpRight,Ym as ArrowsOppositeDirectionY,km as Asia,ho as AuthButton,c1 as Avatar,Sx as Background,jt as Badge,qm as BadgeCheck,Zm as BadgeCheck2Fill,L1 as BadgeTooltip,Xm as Blog,Rt as BlurImage,Jm as Bolt,Qm as BoltFill,t0 as Book2,jo as Book2Fill,r0 as Book2Small,e0 as BookOpen,o0 as Books2,a0 as BoxArchive,n0 as BulletList,Yo as BulletListFill,le as Button,E1 as ButtonTooltip,yr as COMPARE_PAGES,In as CUSTOMER_STORIES,qa as Calendar,c0 as Calendar6,s0 as CalendarDays,i0 as CalendarIcon,l0 as CalendarRefresh,xm as CardAmex,ym as CardDiscover,tg as CardList,wm as CardMastercard,Cm as CardVisa,d0 as Cards,u0 as CaretUpFill,ts as Carousel,rs as CarouselContent,os as CarouselItem,xg as CarouselNavBar,ns as CarouselNext,as as CarouselPrevious,Tg as CarouselThumbnail,Rg as CarouselThumbnails,Om as CashApp,m0 as ChartActivity2,p0 as ChartArea2,f0 as ChartLine,Lm as ChatGPT,qo as Check,Zo as Check2,hs as Checkbox,Xo as CheckboxCheckedFill,Jo as CheckboxUnchecked,Qo as CircleCheck,g0 as CircleCheckFill,h0 as CircleDollar,v0 as CircleDotted,ea as CircleHalfDottedCheck,ta as CircleHalfDottedClock,ra as CircleInfo,b0 as CirclePercentage,x0 as CirclePlay,y0 as CirclePlayFill,w0 as CircleQuestion,C0 as CircleUser,Tr as CircleWarning,N0 as CircleXmark,k0 as Circles,P0 as Circles3,oi as ClientOnly,oa as CloudUpload,S0 as Code,M0 as ColorPalette2,yv as Combobox,z6 as CompositeLogo,R0 as ConnectedDots,T0 as ConnectedDots4,Ht as ConnectedDotsFill,L0 as Connections3,Ao as Copy,_8 as CopyButton,F8 as CopyText,E0 as CreditCard,A0 as Crosshairs3,D0 as Crown,sm as CrownSmall,I0 as Cube,z0 as CubeSettings,Vt as CubeSettingsFill,O0 as CurrencyDollar,_0 as CursorRays,H0 as DatabaseKey,Br as DatePickerContext,a2 as DateRangePicker,V0 as Desktop,B0 as DiamondTurnRight,Bt as DiamondTurnRightFill,W0 as Directions,F0 as Discount,U0 as Dots,G0 as Download,lm as DubCraftedShield,tn as DubStatusBadge,$0 as Duplicate,Yt as DynamicTooltipWrapper,aa as Earth,K0 as EarthPosition,h2 as EmptyState,j0 as Envelope,Y0 as EnvelopeAlert,q0 as EnvelopeArrowRight,Pm as Europe,Do as ExpandingArrow,na as Eye,ia as EyeSlash,br as FEATURES_LIST,um as Facebook,sa as FeatherFill,Em as Figma,Z0 as FileContent,M2 as FileUpload,X0 as FileZip2,Q2 as Filter,Q0 as Filter2,J0 as FilterBars,tp as Flag2,la as Flag6,ep as FlagWavy,rp as Flask,op as FlaskSmall,ap as Folder,cp as Folder5,np as FolderBookmark,ip as FolderLock,sp as FolderPlus,lp as FolderShield,P8 as Footer,ib as Form,dp as GamingConsole,up as Gauge6,mp as Gear,pp as Gear2,fp as Gear3,gp as Gem,ca as Gift,hp as GiftFill,Am as GitHubEnhanced,It as Github,vp as Globe,ua as Globe2,da as GlobePointer,bp as GlobeSearch,Wo as Go,mm as Google,Dm as GoogleEnhanced,xp as GreekTemple,fn as Grid,yp as GridIcon,wp as GridLayoutRows,Cp as GridPlus,Np as Headset,ma as HeadsetFill,pa as HeartFill,fa as HexadecagonStar,kp as History,ga as Hyperlink,G8 as IconMenu,Pp as Icosahedron,ha as Incognito,R1 as InfoTooltip,K8 as InlineSnippet,Cc as Input,Sp as InputPassword,va as InputPasswordPointer,ba as InputSearch,Ob as InputSelect,pm as Instagram,Mp as InvoiceDollar,Rp as Key,za as KeyboardShortcutContext,lh as KeyboardShortcutProvider,On as LEGAL_PAGES,Fc as Label,Tp as LayoutSidebar,Lp as License,xa as LinesY,Ap as Link4,Ep as LinkBroken,X8 as LinkLogo,s6 as LinkPreview,l6 as LinkPreviewPlaceholder,zt as LinkedIn,M1 as LinkifyTooltipContent,bt as LoadingCircle,dm as LoadingDots,Ne as LoadingSpinner,Dp as LocationPin,Ip as LockFill,mo as Logo,Io as Magic,zp as Magnifier,Op as MapPosition,_p as MarketingTarget,cm as MatrixLines,wr as MaxWidthWrapper,Hp as Menu3,Yb as MenuItem,Vp as MessageSmile,Wt as MicrophoneFill,a4 as MiniAreaChart,Bp as MobilePhone,d4 as Modal,Wp as MoneyBill,Fp as MoneyBill2,Up as MoneyBills2,Gp as Msgs,B5 as Nav,fo as NavContext,Q5 as NavMobile,kr as NavWordmark,Sm as NorthAmerica,$p as Note,Qp as NucleoPhoto,T1 as NumberTooltip,Mm as Oceania,Kp as OfficeBuilding,qf as PLAN_FEATURE_ICONS,ya as Page2,p4 as PaginationControls,jp as Paintbrush,Yp as Palette2,qp as PaperPlane,_m as Payoneer,Hm as Paypal,Xp as Pen2,Zp as PenWriting,Jp as PercentageArrowDown,zo as Photo,Fo as Php,ef as Plug2,Ft as Plus,ot as Popover,g6 as Popup,Ju as PopupContext,tf as Post,fm as Prisma,Vo as ProductHunt,x6 as ProgressBar,rf as Pyramid,Uo as Python,of as QRCode,xr as RESOURCES,sd as RadioGroup,ld as RadioGroupItem,Bo as Raycast,af as Receipt2,wa as ReferredVia,nf as Refresh2,sf as Robot,Go as Ruby,uo as SDKS,Ex as SOCIAL_LINKS,zn as SOLUTIONS,Ca as SatelliteDish,lf as ScanText,cf as Scribble,w4 as Sheet,df as ShieldAlert,uf as ShieldCheck,mf as ShieldKeyhole,pf as ShieldSlash,ff as ShieldUser,P4 as ShimmerDots,gf as Shuffle,S1 as SimpleTooltipContent,gm as Slack,hf as Sliders,Oo as SortOrder,Rm as SouthAmerica,vf as Sparkle3,Im as Spotify,bf as SquareChart,xf as SquareLayoutGrid5,yf as SquareLayoutGrid6,wf as SquareXmark,Cf as Stars2,A4 as StatusBadge,Vm as StripeLink,_o as Success,B4 as Switch,Ef as TV,T6 as TabSelect,ux as Table,Nf as TableIcon,kf as TableRows2,Pf as Tablet,Sf as Tag,Mf as Tags,Ho as Tick,hm as TikTok,Na as Timer2,vm as Tinybird,Rf as Toggle2Fill,hx as ToggleGroup,d1 as TokenAvatar,J as Tooltip,P1 as TooltipContent,k1 as TooltipProvider,Tf as Trash,Lf as TriangleWarning,Ot as Twitter,$o as Typescript,kx as UTMBuilder,Wd as UTM_PARAMETERS,Af as UiCard,bm as Unsplash,Df as User,If as UserCheck,zf as UserCrown,Of as UserDelete,_f as UserPlus,Hf as Users,Bf as Users2,Wf as Users6,Ut as UsersFill,Vf as UsersSettings,Bm as Venmo,Ff as Versions2,ka as Views,Uf as Watch,Gf as Webhook,$f as Window,Kf as WindowSearch,jf as WindowSettings,ei as Wordmark,Yf as Xmark,_t as YouTube,Ti as badgeVariants,se as buttonVariants,Mi as getUserAvatarUrl,go as navItems,Cd as statusBadgeVariants,ve as useCarousel,Ea as useCarouselActiveIndex,Og as useCookies,et as useCopyToClipboard,Wg as useCurrentAnchor,$g as useEnterSubmit,qg as useInViewport,Jg as useInputFocused,rh as useIntersectionObserver,tt as useKeyboardShortcut,uh as useLocalStorage,q as useMediaQuery,hh as useOptimisticUpdate,Rh as usePagination,Eh as useRemoveGAParams,Zt as useResizeObserver,Va as useRouterStuff,Fa as useScroll,Ae as useScrollProgress,dx as useTable,Ha as useTablePagination,$h as useToastWithUndo};
|