@dub/ui 0.2.19 → 0.2.20

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.
Files changed (40) hide show
  1. package/dist/charts/index.mjs +1 -1
  2. package/dist/chunk-3F57IW6N.mjs +2 -0
  3. package/dist/chunk-3L5HBE3F.mjs +2 -0
  4. package/dist/chunk-3QD5653W.mjs +2 -0
  5. package/dist/chunk-4RLUDAZZ.mjs +2 -0
  6. package/dist/chunk-6OG5THHB.mjs +2 -0
  7. package/dist/chunk-6V3LBKGB.mjs +2 -0
  8. package/dist/chunk-7RTOYGAY.mjs +2 -0
  9. package/dist/chunk-D2BLPNIY.mjs +2 -0
  10. package/dist/chunk-DF6QASVW.mjs +2 -0
  11. package/dist/chunk-DWHJ6ZTX.mjs +2 -0
  12. package/dist/chunk-E2AQMUN5.mjs +2 -0
  13. package/dist/chunk-EEL4V3U5.mjs +2 -0
  14. package/dist/chunk-FJJYWRO3.mjs +2 -0
  15. package/dist/chunk-GIZCUKS2.mjs +2 -0
  16. package/dist/chunk-K73SJYBA.mjs +2 -0
  17. package/dist/chunk-LFO6ZZTG.mjs +2 -0
  18. package/dist/chunk-LIMI5N4M.mjs +2 -0
  19. package/dist/chunk-MCCVJIPS.mjs +2 -0
  20. package/dist/chunk-MMJIUV5B.mjs +2 -0
  21. package/dist/chunk-NW4QQIXG.mjs +2 -0
  22. package/dist/chunk-OIRTUIEH.mjs +2 -0
  23. package/dist/chunk-OPF4IXKA.mjs +2 -0
  24. package/dist/chunk-OWM3FJHA.mjs +2 -0
  25. package/dist/chunk-QKZS43YA.mjs +2 -0
  26. package/dist/chunk-QNULYGBS.mjs +2 -0
  27. package/dist/chunk-QSL5XODW.mjs +2 -0
  28. package/dist/chunk-R2EPL3J5.mjs +2 -0
  29. package/dist/chunk-SXL5L6J5.mjs +2 -0
  30. package/dist/chunk-TX2PMMWX.mjs +2 -0
  31. package/dist/chunk-USFCNNQY.mjs +2 -0
  32. package/dist/chunk-YSYF33X3.mjs +2 -0
  33. package/dist/chunk-Z2GRHE4F.mjs +2 -0
  34. package/dist/chunk-Z4DOHDHD.mjs +2 -0
  35. package/dist/icons/index.d.ts +17 -1
  36. package/dist/icons/index.mjs +1 -1
  37. package/dist/index.css +1 -1
  38. package/dist/index.d.ts +13 -9
  39. package/dist/index.mjs +6 -6
  40. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client"
2
- import{$ as Om,$a as C0,$b as cu,$c as ip,A as ko,Aa as r0,Ab as Fo,Ac as Au,B as Po,Ba as Do,Bb as G0,Bc as Du,C as mm,Ca as Io,Cb as Uo,Cc as Iu,D as um,Da as zo,Db as $0,Dc as zu,E as pm,Ea as o0,Eb as K0,Ec as Ou,F as fm,Fa as a0,Fb as j0,Fc as Vu,G as gm,Ga as i0,Gb as Y0,Gc as _u,H as hm,Ha as br,Hb as Z0,Hc as Hu,I as vm,Ia as n0,Ib as Go,Ic as Wu,J as bm,Ja as s0,Jb as $o,Jc as Bu,K as xm,Ka as l0,Kb as Ko,Kc as Fu,L as ym,La as Oo,Lb as jo,Lc as Uu,M as wm,Ma as c0,Mb as q0,Mc as Gu,N as Cm,Na as d0,Nb as Q0,Nc as $u,O as Nm,Oa as m0,Ob as X0,Oc as Ku,P as km,Pa as Dt,Pb as Yo,Pc as ju,Q as Pm,Qa as u0,Qb as J0,Qc as Yu,R as Sm,Ra as p0,Rb as eu,Rc as Zu,S as Mm,Sa as f0,Sb as tu,Sc as qu,T as Rm,Ta as g0,Tb as ru,Tc as Qu,U as Lm,Ua as h0,Ub as Zo,Uc as Xu,V as Tm,Va as v0,Vb as ou,Vc as Ju,W as Em,Wa as b0,Wb as au,Wc as ep,X as Am,Xa as It,Xb as iu,Xc as tp,Y as Dm,Ya as x0,Yb as nu,Yc as rp,Z as Im,Za as y0,Zb as su,Zc as op,_ as zm,_a as w0,_b as lu,_c as ap,a as uo,aa as Vm,ab as N0,ac as du,ad as np,b as om,ba as _m,bb as k0,bc as mu,c as po,ca as Hm,cb as P0,cc as uu,d as fo,da as Wm,db as S0,dc as pu,e as am,ea as Bm,eb as M0,ec as fu,f as go,fa as Fm,fb as R0,fc as qo,g as ho,ga as So,gb as Vo,gc as gu,h as vo,ha as Um,hb as _o,hc as hu,i as bo,ia as Gm,ib as Ho,ic as vu,j as mt,ja as $m,jb as L0,jc as bu,k as im,ka as Km,kb as T0,kc as xu,l as ye,la as Mo,lb as E0,lc as yu,m as nm,ma as jm,mb as A0,mc as wu,n as Lt,na as Ym,nb as D0,nc as zt,o as sm,oa as Zm,ob as Wo,oc as Cu,p as Tt,pa as qm,pb as I0,pc as Nu,q as lm,qa as Qm,qb as z0,qc as ku,r as xo,ra as Xm,rb as O0,rc as Pu,s as yo,sa as Jm,sb as V0,sc as Qo,t as cm,ta as Ro,tb as _0,tc as Su,u as Et,ua as Lo,ub as H0,uc as Mu,v as dm,va as To,vb as W0,vc as Xo,w as At,wa as Eo,wb as B0,wc as Ru,x as wo,xa as Ao,xb as Bo,xc as Lu,y as Co,ya as e0,yb as F0,yc as Tu,z as No,za as t0,zb as U0,zc as Eu}from"./chunk-Z6ISTSA4.mjs";import{a as Z}from"./chunk-NWME2ANF.mjs";import{a as oo,b as z,c as Pt,d as St,e as ao,f as Ze,g as io,h as no,i as Mt,j as so,k as lo,l as Rt,m as co,n as pe,o as n,p as mo}from"./chunk-RXSOCDLI.mjs";import*as ne from"@radix-ui/react-accordion";import{ChevronDown as Ai}from"lucide-react";import*as Vt from"react";import{jsx as Ot,jsxs as Oi}from"react/jsx-runtime";var up=ne.Root,Di=Vt.forwardRef(({className:e,...t},r)=>Ot(ne.Item,{ref:r,className:n("border-b border-b-slate-200 py-3 last:border-none",e),...t}));Di.displayName="AccordionItem";var Ii=Vt.forwardRef(({className:e,children:t,variant:r="chevron",...o},a)=>{let l=r==="chevron"?Ai:zt;return Ot(ne.Header,{className:"flex",children:Oi(ne.Trigger,{ref:a,className:n("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,Ot(l,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});Ii.displayName=ne.Trigger.displayName;var zi=Vt.forwardRef(({className:e,children:t,...r},o)=>Ot(ne.Content,{ref:o,className:n("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",e),...r,children:t}));zi.displayName=ne.Content.displayName;import{cva as Vi}from"class-variance-authority";import*as _t from"react";import{jsx as xr}from"react/jsx-runtime";var _i=Vi("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"}}),Hi=_t.forwardRef(({className:e,variant:t,...r},o)=>xr("div",{ref:o,role:"alert",className:n(_i({variant:t}),e),...r}));Hi.displayName="Alert";var Wi=_t.forwardRef(({className:e,...t},r)=>xr("h5",{ref:r,className:n("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));Wi.displayName="AlertTitle";var Bi=_t.forwardRef(({className:e,...t},r)=>xr("div",{ref:r,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Bi.displayName="AlertDescription";import{sha256 as Fi}from"js-sha256";import{useState as Ui}from"react";import{jsx as yr}from"react/jsx-runtime";function Gi(e){if(e!=null&&e.image)return e.image;if(!(e!=null&&e.id))return"https://api.dicebear.com/9.x/micah/svg";let t=`https://api.dicebear.com/9.x/micah/svg?seed=${encodeURIComponent(e.id)}`,r=`https://api.dicebear.com/9.x/micah/png/${encodeURIComponent(`seed=${encodeURIComponent(e.id)}`)}`;return e.email?`https://www.gravatar.com/avatar/${Fi(e.email)}?d=${encodeURIComponent(r)}`:t}function yp({user:e={},className:t}){if(!e)return yr("div",{className:n("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",t)});let[r,o]=Ui(Gi(e));return yr("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:r,className:n("h-10 w-10 rounded-full border border-gray-300",t),draggable:!1,onError:()=>{o(`https://api.dicebear.com/9.x/micah/svg?seed=${encodeURIComponent(e.id||"")}`)}})}function wp({id:e,className:t}){return yr("img",{src:`https://api.dicebear.com/9.x/shapes/svg?seed=${e}`,alt:"avatar",className:n("h-10 w-10 rounded-full",t),draggable:!1})}import{cva as $i}from"class-variance-authority";import{jsx as ji}from"react/jsx-runtime";var Ki=$i("max-w-fit rounded-full border px-2 py-px text-xs font-medium whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",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 Ht({className:e,variant:t,...r}){return ji("span",{className:n(Ki({variant:t}),e),...r})}import{cva as Xi}from"class-variance-authority";import{forwardRef as Ji}from"react";import*as fe from"@radix-ui/react-tooltip";import Yi from"linkify-react";import{HelpCircle as Zi}from"lucide-react";import qi from"next/link";import{useState as Qi}from"react";import{jsx as G,jsxs as qe}from"react/jsx-runtime";function zp({children:e}){return G(fe.Provider,{delayDuration:150,children:e})}function re({children:e,content:t,contentClassName:r,side:o="top",disableHoverableContent:a,...l}){let[c,s]=Qi(!1);return qe(fe.Root,{open:c,onOpenChange:s,delayDuration:0,disableHoverableContent:a,children:[G(fe.Trigger,{asChild:!0,onClick:()=>{s(!0)},onBlur:()=>{s(!1)},children:e}),G(fe.Portal,{children:G(fe.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade pointer-events-auto z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...l,children:typeof t=="string"?G("span",{className:n("block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",r),children:t}):typeof t=="function"?t({setOpen:s}):t})})]})}function Op({title:e,cta:t,href:r,target:o,onClick:a}){return qe("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[G("p",{className:"text-sm text-gray-700",children:e}),t&&(r?G(qi,{href:r,...o?{target:o}:{},className:n(ge({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 Vp({title:e,cta:t,href:r}){return qe("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",G("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:t})]})}function _p({children:e}){return G("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:G(Yi,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function Hp(e){return G(re,{...e,children:G(Zi,{className:"h-4 w-4 text-gray-500"})})}function Wp({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:G(re,{content:qe("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[qe("p",{className:"text-sm font-semibold text-gray-700",children:[r,Pt(e||0,{full:!0})," ",t]}),a&&qe("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",lo(a,{withAgo:!0})]})]}),children:o})}function Bp({children:e,content:t,...r}){return G(re,{content:t,...r,children:G("div",{className:"flex cursor-pointer items-center",children:G(Ht,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function Fp({children:e,tooltipProps:t,...r}){return G(re,{...t,children:G("button",{type:"button",...r,className:n("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",r.className),children:e})})}import{jsx as Qe,jsxs as Jo}from"react/jsx-runtime";var ge=Xi("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:n("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-neutral-600 hover:bg-neutral-100",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=Ji(({text:e,variant:t="primary",className:r,textWrapperClassName:o,loading:a,icon:l,shortcut:c,disabledTooltip:s,right:d,...m},i)=>s?Qe(re,{content:s,children:Jo("div",{className:n("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":t==null?void 0:t.endsWith("outline")},r),children:[l,e&&Qe("div",{className:n("min-w-0 truncate",c&&"flex-1 text-left",o),children:e}),c&&Qe("kbd",{className:n("hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":t==null?void 0:t.endsWith("outline")}),children:c})]})}):Jo("button",{ref:i,type:m.onClick?"button":"submit",className:n("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",m.disabled||a?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":ge({variant:t}),r),disabled:m.disabled||a,...m,children:[a?Qe(ye,{}):l||null,e&&Qe("div",{className:n("min-w-0 truncate",c&&"flex-1 text-left",o),children:e}),c&&Qe("kbd",{className:n("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":t==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":t==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":t==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":t==="danger-outline"}),children:c}),d]}));se.displayName="Button";import{cva as en}from"class-variance-authority";import{createContext as tn}from"react";import{jsx as ea}from"react/jsx-runtime";var rn=en("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"}}}),ut=tn({variant:"loose"});function ta({variant:e="loose",loading:t=!1,className:r,children:o}){return ea("ul",{className:n(rn({variant:e,loading:t}),r),"data-variant":e,children:ea(ut.Provider,{value:{variant:e},children:o})})}import{cva as on}from"class-variance-authority";import{createContext as an,useContext as nn,useEffect as sn,useRef as ln,useState as cn}from"react";import{jsx as wr}from"react/jsx-runtime";var dn=on("w-full group/card border-gray-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-gray-50 transition-colors",loose:"border rounded-xl transition-[filter] data-[hover-state-enabled=true]:hover:drop-shadow-card-hover"}}}),mn="w-full py-2.5 px-4",Cr=an({hovered:!1});function ra({outerClassName:e,innerClassName:t,children:r,onClick:o,hoverStateEnabled:a=!0}){let{variant:l}=nn(ut),c=ln(null),[s,d]=cn(!1);return sn(()=>{if(!s||!c.current)return;let m=setInterval(()=>{var i;((i=c.current)==null?void 0:i.matches(":hover"))===!1&&d(!1)},1e3);return()=>clearInterval(m)},[s]),wr("li",{ref:c,className:n(dn({variant:l}),e),onPointerEnter:()=>d(!0),onPointerLeave:()=>d(!1),"data-hover-state-enabled":a,children:wr("div",{className:n(mn,t),onClick:o?m=>{document.getElementById("modal-backdrop")||Rt(m)||o()}:void 0,children:wr(Cr.Provider,{value:{hovered:s},children:r})})})}var pf=Object.assign(ta,{Card:Object.assign(ra,{Context:Cr}),Context:ut});import{cva as un}from"class-variance-authority";import pn from"embla-carousel-autoplay";import fn from"embla-carousel-react";import{motion as gn}from"framer-motion";import{ArrowLeft as hn,ArrowRight as vn,ChevronLeft as bn,ChevronRight as xn}from"lucide-react";import*as A from"react";import{jsx as X,jsxs as He}from"react/jsx-runtime";var oa=2e3,aa=A.createContext(null);function Xe(){let e=A.useContext(aa);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function Nf(){let{api:e}=Xe(),[t,r]=A.useState(0),o=A.useCallback(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return A.useEffect(()=>{!e||(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),t}var yn=A.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,autoplay:o,plugins:a,className:l,children:c,...s},d)=>{let[m,i]=fn({...t,axis:e==="horizontal"?"x":"y"},[...o?[pn(typeof o=="object"?o:{delay:oa})]:[],...a||[]]),[p,f]=A.useState(!1),[x,y]=A.useState(!1),v=A.useCallback(M=>{!M||(f(M.canScrollPrev()),y(M.canScrollNext()))},[]),g=A.useCallback(()=>{i==null||i.scrollPrev()},[i]),N=A.useCallback(()=>{i==null||i.scrollNext()},[i]),S=A.useCallback(M=>{M.key==="ArrowLeft"?(M.preventDefault(),g()):M.key==="ArrowRight"&&(M.preventDefault(),N())},[g,N]);return A.useEffect(()=>{!i||!r||r(i)},[i,r]),A.useEffect(()=>{if(!!i)return v(i),i.on("reInit",v),i.on("select",v),()=>{i==null||i.off("select",v)}},[i,v]),X(aa.Provider,{value:{carouselRef:m,api:i,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:N,canScrollPrev:p,canScrollNext:x},children:X("div",{ref:d,onKeyDownCapture:S,className:n("relative",l),role:"region","aria-roledescription":"carousel",...s,children:c})})});yn.displayName="Carousel";var wn=A.forwardRef(({className:e,...t},r)=>{let{carouselRef:o,orientation:a}=Xe();return X("div",{ref:o,className:"overflow-hidden",children:X("div",{ref:r,className:n("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});wn.displayName="CarouselContent";var Cn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o}=Xe();return X("div",{ref:r,role:"group","aria-roledescription":"slide",className:n("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});Cn.displayName="CarouselItem";var Nn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o,scrollPrev:a,canScrollPrev:l}=Xe();return He("button",{ref:r,className:n("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",ge({variant:"secondary",className:"p-2"}),e),disabled:!l,onClick:a,...t,children:[X(hn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Previous slide"})]})});Nn.displayName="CarouselPrevious";var kn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o,scrollNext:a,canScrollNext:l}=Xe();return He("button",{ref:r,className:n("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",ge({variant:"secondary",className:"p-2"}),e),disabled:!l,onClick:a,...t,children:[X(vn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Next slide"})]})});kn.displayName="CarouselNext";var Pn=un("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-gray-800/10 bg-white sm:bottom-6 "}}}),kf=({variant:e="simple",className:t})=>{var y;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:l,api:c}=Xe(),s=(y=c==null?void 0:c.plugins())==null?void 0:y.autoplay,[d,m]=A.useState(0),[i,p]=A.useState(!1),f=A.useCallback(v=>{m((v==null?void 0:v.selectedScrollSnap())??0)},[]),x=A.useCallback(v=>()=>{s&&s.isPlaying()&&s.stop(),v()},[s]);return A.useEffect(()=>{!c||(f(c),p((s==null?void 0:s.isPlaying())??!1),c.on("reInit",f),c.on("select",f),c.on("autoplay:play",()=>p(!0)),c.on("autoplay:stop",()=>p(!1)))},[c,s,f]),He("div",{className:n(Pn({variant:e}),t),children:[e!=="simple"&&He("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!l,onClick:x(o),children:[X(bn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Previous slide"})]}),c!=null&&X("div",{className:"flex items-center gap-1",children:c.slideNodes().map((v,g)=>He("button",{onClick:x(()=>c.scrollTo(g)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[X("div",{className:n("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",g===d?"bg-black":"bg-black/20",i&&g===d&&"w-6 bg-black/20"),children:i&&g===d&&X(gn.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((s==null?void 0:s.options.delay)??oa)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),He("span",{className:"sr-only",children:["Slide ",g+1]})]},g))}),e!=="simple"&&He("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!a,onClick:x(r),children:[X(xn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Next slide"})]})]})};import*as pt from"@radix-ui/react-checkbox";import{Check as Sn}from"lucide-react";import*as ia from"react";import{jsx as Nr}from"react/jsx-runtime";var Mn=ia.forwardRef(({className:e,...t},r)=>Nr(pt.Root,{ref:r,className:n("peer h-5 w-5 shrink-0 rounded-md border border-gray-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:Nr(pt.Indicator,{className:"flex items-center justify-center",children:Nr(Sn,{className:"h-3 w-3 text-white"})})}));Mn.displayName=pt.Root.displayName;import{Command as Gt,CommandInput as hs,CommandItem as vs,useCommandState as bs}from"cmdk";import{ChevronDown as xs}from"lucide-react";import{forwardRef as ys,isValidElement as ws,useCallback as Cs,useEffect as Ut,useRef as Ns,useState as ft}from"react";import{motion as ps}from"framer-motion";import{forwardRef as fs,useRef as gs}from"react";import kr from"js-cookie";import{useEffect as Rn,useState as Ln}from"react";function Ef(e,t,r){let[o,a]=Ln(()=>{let c=kr.get(e);return c?JSON.parse(c):t});return Rn(()=>{let c=()=>{let s=kr.get(e);s&&a(JSON.parse(s))};return window.addEventListener("storage",c),()=>{window.removeEventListener("storage",c)}},[e]),[o,c=>{a(c),kr.set(e,JSON.stringify(c),r)}]}import{useCallback as Tn,useEffect as En,useRef as An,useState as Dn}from"react";var Je=(e=3e3)=>{let t=An(null),[r,o]=Dn(!1),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},l=Tn(async c=>{a();try{typeof c=="string"?await navigator.clipboard.writeText(c):c instanceof ClipboardItem&&await navigator.clipboard.write([c]),o(!0),Number.isFinite(e)&&e>=0&&(t.current=setTimeout(()=>o(!1),e))}catch(s){console.error("Failed to copy: ",s)}},[e]);return En(()=>()=>a(),[]),[r,l]};import{useEffect as In,useState as zn}from"react";function Of(){let[e,t]=zn(null);return In(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let o=r.offsetTop-1,a=new IntersectionObserver(s=>{var p,f,x;let d=s[0];if(!d)return;let m=(((p=d.rootBounds)==null?void 0:p.height)||0)*.3+o;for(let y=1;y<s.length;y++){let v=s[y];if(!v)break;(v.boundingClientRect.top<d.boundingClientRect.top||d.boundingClientRect.bottom<o)&&(d=v)}let i=d.target;for(;i&&i.getBoundingClientRect().bottom<o;)i=(f=l.get(i))==null?void 0:f.next;for(;i&&i.getBoundingClientRect().top>m;)i=(x=l.get(i))==null?void 0:x.prev;i&&t(i.getAttribute("href"))},{threshold:1,rootMargin:`-${o}px 0px 0px 0px`}),l=new Map;return(r==null?void 0:r.querySelectorAll("[data-mdx-heading]")).forEach(s=>a.observe(s)),()=>{a.disconnect()}},[]),e==null?void 0:e.replace("#","")}function _f(e){return{handleKeyDown:r=>{r.key==="Enter"&&r.metaKey&&(r.preventDefault(),e.current&&e.current.requestSubmit())}}}import{useEffect as On,useState as Vn}from"react";function Ff(e,t={}){let{root:r,defaultValue:o}=t,[a,l]=Vn(o??!1);return On(()=>{let c=()=>{let d=e.current;if(!d)return;let m=r==null?void 0:r.current,i=d.getBoundingClientRect(),p=m?m.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l(i.top<p.bottom&&i.bottom>p.top&&i.left<p.right&&i.right>p.left)};((r==null?void 0:r.current)||window).addEventListener("scroll",c),window.addEventListener("resize",c);let s=null;return e.current&&(s=new IntersectionObserver(c),s.observe(e.current)),c(),()=>{((r==null?void 0:r.current)||window).removeEventListener("scroll",c),window.removeEventListener("resize",c),s==null||s.disconnect()}},[e,r]),a}import{useEffect as _n,useState as Hn}from"react";function $f(){let[e,t]=Hn(!1);return _n(()=>{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 Wn,useState as Bn}from"react";function Zf(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:a=!1}){let[l,c]=Bn(),s=(l==null?void 0:l.isIntersecting)&&a,d=([m])=>{c(m)};return Wn(()=>{let m=e==null?void 0:e.current;if(!!!window.IntersectionObserver||s||!m)return;let p={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(d,p);return f.observe(m),()=>f.disconnect()},[e,JSON.stringify(t),r,o,s]),l}import{createContext as Fn,useCallback as Un,useContext as Gn,useEffect as na,useId as $n,useState as Kn}from"react";import{jsx as jn}from"react/jsx-runtime";var sa=Fn({listeners:[],setListeners:()=>{}});function tg({children:e}){let[t,r]=Kn([]);return jn(sa.Provider,{value:{listeners:t,setListeners:r},children:e})}function et(e,t,r={}){let o=$n(),{listeners:a,setListeners:l}=Gn(sa),c=Un(s=>{let d=s.target,m=document.getElementById("modal-backdrop");if(s.metaKey||s.ctrlKey||d.tagName==="INPUT"||d.tagName==="TEXTAREA"||!!m!=!!r.modal||(Array.isArray(e)?!e.includes(s.key):s.key!==e))return;let i=a.filter(f=>f.enabled!==!1&&(Array.isArray(f.key)?f.key.includes(s.key):f.key===s.key));!i.length||so(i,(f,x)=>(x.priority??0)-(f.priority??0)).slice(-1)[0].id!==o||(s.preventDefault(),t(s))},[e,a,o,t]);na(()=>(document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)),[c]),na(()=>(l(s=>[...s.filter(d=>d.id!==o),{id:o,key:e,...r}]),()=>l(s=>s.filter(d=>d.id!==o))),[JSON.stringify(e),r.enabled,r.priority])}import{useEffect as Yn,useState as Zn}from"react";function la(e){if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}function ag(e,t){let[r,o]=Zn(la(e)??t);return Yn(()=>{let l=la(e);l&&o(l)},[e]),[r,l=>{o(l),window.localStorage.setItem(e,JSON.stringify(l))}]}import{toast as qn}from"sonner";import Qn from"swr";function cg(e,t){let{data:r,isLoading:o,mutate:a}=Qn(e,pe);return{data:r,isLoading:o,update:async(l,c)=>qn.promise(a(l(r),{optimisticData:c,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 ua,useMemo as rs}from"react";import{useEffect as ca,useState as Xn}from"react";function da({pageSize:e,page:t,onPageChange:r}){let[o,a]=Xn({pageIndex:t,pageSize:e});return ca(()=>{a(l=>({...l,pageIndex:t}))},[t]),ca(()=>{r==null||r(o.pageIndex)},[o]),{pagination:o,setPagination:a}}import{usePathname as Jn,useRouter as es,useSearchParams as ts}from"next/navigation";function ma(){let e=Jn(),t=es(),r=ts(),o=Object.fromEntries(r);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:({set:c,del:s,replace:d,scroll:m=!0,getNewPath:i,arrayDelimiter:p=","})=>{let f=new URLSearchParams(r);c&&Object.entries(c).forEach(([v,g])=>f.set(v,Array.isArray(g)?g.join(p):g)),s&&(Array.isArray(s)?s.forEach(v=>f.delete(v)):f.delete(s));let x=f.toString(),y=`${e}${x.length>0?`?${x}`:""}`;if(i)return y;d?t.replace(y,{scroll:!1}):t.push(y,{scroll:m})},getQueryString:(c,s)=>{let d=new URLSearchParams(r);c&&Object.entries(c).forEach(([i,p])=>d.set(i,p)),s!=null&&s.ignore&&s.ignore.forEach(i=>d.delete(i));let m=d.toString();return m.length>0?`?${m}`:""}}}function xg(e=ao){let{searchParams:t,queryParams:r}=ma(),o=rs(()=>parseInt(t.get("page")||"1")||1,[t.get("page")]),{pagination:a,setPagination:l}=da({pageSize:e,page:o,onPageChange:c=>{r(c===1?{del:"page"}:{set:{page:c.toString()}})}});return ua(()=>{let c=parseInt(t.get("page")||"1")||1;l(s=>({...s,pageIndex:c}))},[t.get("page")]),ua(()=>{r(a.pageIndex===1?{del:"page"}:{set:{page:a.pageIndex.toString()}})},[a]),{pagination:a,setPagination:l}}import{useEffect as os}from"react";function Cg(){os(()=>{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 as,useState as is}from"react";function Wt(e){let[t,r]=is(),o=([a])=>{r(a)};return as(()=>{let a=e==null?void 0:e.current;if(!a)return;let l=new ResizeObserver(o);return l.observe(a),()=>l.disconnect()},[e]),t}import{useCallback as ns,useEffect as pa,useState as ss}from"react";function fa(e){let[t,r]=ss(!1),o=ns(()=>{r(window.scrollY>e)},[e]);return pa(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),pa(()=>{o()},[o]),t}import{useCallback as ls,useEffect as cs,useState as ds}from"react";function tt(e){let[t,r]=ds(1),o=ls(()=>{if(!e.current)return;let{scrollTop:l,scrollHeight:c,clientHeight:s}=e.current;r(c===s?1:Math.min(l/(c-s),1))},[]),a=Wt(e);return cs(o,[a]),{scrollProgress:t,updateScrollProgress:o}}import{useEffect as ms}from"react";import{toast as ha}from"sonner";import{jsx as Bt,jsxs as ga}from"react/jsx-runtime";function us({id:e,message:t,undo:r}){let o=()=>{r(),ha.dismiss(e)},a=l=>{l.key==="z"&&(l.ctrlKey||l.metaKey)&&o()};return ms(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[]),ga("div",{className:"flex w-full items-center justify-between space-x-2",children:[ga("div",{className:"flex items-center space-x-2",children:[Bt(vo,{}),Bt("p",{className:"font-medium",children:t})]}),Bt("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 Og(){return({id:t,message:r,undo:o,duration:a})=>ha(Bt(us,{id:t,message:r,undo:o}),{id:t,...a&&{duration:a}})}import{jsx as va}from"react/jsx-runtime";var we=fs(({width:e=!1,height:t=!1,className:r,transition:o,children:a,...l},c)=>{var m,i;let s=gs(null),d=Wt(s);return va(ps.div,{ref:c,className:n("overflow-hidden",r),animate:{width:e?((m=d==null?void 0:d.contentRect)==null?void 0:m.width)??"auto":"auto",height:t?((i=d==null?void 0:d.contentRect)==null?void 0:i.height)??"auto":"auto"},transition:o??{type:"spring",duration:.3},...l,children:va("div",{ref:s,className:n(t&&"h-max",e&&"w-max"),children:a})})});we.displayName="AnimatedSizeContainer";import*as Se from"@radix-ui/react-popover";import{Drawer as rt}from"vaul";import{jsx as Ce,jsxs as Ft}from"react/jsx-runtime";function ot({children:e,content:t,align:r="center",side:o="bottom",openPopover:a,setOpenPopover:l,mobileOnly:c,popoverContentClassName:s,collisionBoundary:d,sticky:m,onEscapeKeyDown:i,onWheel:p}){let{isMobile:f}=Z();return c||f?Ft(rt.Root,{open:a,onOpenChange:l,children:[Ce(rt.Trigger,{className:"sm:hidden",asChild:!0,children:e}),Ft(rt.Portal,{children:[Ce(rt.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),Ft(rt.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:i,onPointerDownOutside:x=>{x.target instanceof Element&&x.target.closest("[data-sonner-toast]")&&x.preventDefault()},children:[Ce("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:Ce("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),Ce("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:t})]}),Ce(rt.Overlay,{})]})]}):Ft(Se.Root,{open:a,onOpenChange:l,children:[Ce(Se.Trigger,{className:"sm:inline-flex",asChild:!0,children:e}),Ce(Se.Portal,{children:Ce(Se.Content,{sideOffset:8,align:r,side:o,className:n("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",s),sticky:m,collisionBoundary:d,onEscapeKeyDown:i,onWheel:p,children:t})})]})}import{Fragment as Pr,jsx as D,jsxs as Me}from"react/jsx-runtime";function ks(e,t){return e===!0}function d1({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:l="Select...",searchPlaceholder:c="Search...",emptyState:s,createLabel:d,onCreate:m,buttonProps:i,shortcutHint:p,caret:f,side:x,open:y,onOpenChange:v,onSearchChange:g,shouldFilter:N=!0,inputClassName:S,optionRight:M,optionClassName:P,matchTriggerWidth:w,children:b}){let R=ks(e,r),O=Array.isArray(t)?t:t?[t]:[],{isMobile:I}=Z(),[Q,C]=ft(!1),V=y??Q,me=v??C,[T,ue]=ft(""),[te,gr]=ft(!1),[hr,Li]=ft(void 0),[Ti,to]=ft(!1),Ei=_=>{var Ye;if(R){let vr=O.some(({value:dt})=>dt===_.value);r(vr?O.filter(({value:dt})=>dt!==_.value):[...O,_])}else r(O.length&&((Ye=O[0])==null?void 0:Ye.value)===_.value?null:_),me(!1)},ro=Cs((_,Ye)=>Ye===""?[...O,..._.filter(vr=>O.findIndex(dt=>dt.value===vr.value)===-1)]:_,[O]);return Ut(()=>{te&&(Li(o&&ro(o,T)),gr(!1))},[te,o,ro,T]),Ut(()=>{gr(!0)},[o]),Ut(()=>{V||(ue(""),gr(!0))},[V]),Ut(()=>g==null?void 0:g(T),[T]),D(ot,{openPopover:V,setOpenPopover:me,align:"start",side:x,onWheel:_=>{_.stopPropagation()},popoverContentClassName:n(w&&"sm:w-[var(--radix-popover-trigger-width)]"),content:D(we,{width:!I&&!w,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:Me(Gt,{loop:!0,shouldFilter:N,children:[Me("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[D(hs,{placeholder:c,value:T,onValueChange:ue,className:n("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",S),onKeyDown:_=>{(_.key==="Escape"||_.key==="Backspace"&&!T)&&(_.preventDefault(),_.stopPropagation(),me(!1))}}),p&&D("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:p})]}),D(Ps,{children:D(Gt.List,{className:n("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:hr!==void 0?Me(Pr,{children:[hr.map(_=>D(Ss,{option:_,multiple:R,selected:O.some(({value:Ye})=>Ye===_.value),onSelect:()=>Ei(_),right:M==null?void 0:M(_),className:P},`${_.label}, ${_.value}`)),T.length>0&&m&&Me(vs,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",P),onSelect:async()=>{to(!0),await(m==null?void 0:m(T))&&(ue(""),me(!1)),to(!1)},children:[Ti?D(ye,{className:"size-4 shrink-0"}):D(zt,{className:"size-4 shrink-0"}),D("div",{className:"grow truncate",children:(d==null?void 0:d(T))||`Create "${T}"`})]}),N?D(Ms,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:s||"No matches"}):hr.length===0?D("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:s||"No matches"}):null]}):D(Gt.Loading,{children:D("div",{className:"flex h-12 items-center justify-center",children:D(ye,{})})})})})]})}),children:D(se,{variant:"secondary",...i,className:n(i==null?void 0:i.className,"flex gap-2"),textWrapperClassName:n(i==null?void 0:i.textWrapperClassName,"w-full flex items-center justify-start"),text:Me(Pr,{children:[D("div",{className:"min-w-0 grow truncate text-left",children:b||O.map(_=>_.label).join(", ")||l}),f&&D(xs,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:a?ba(a)?a:D(a,{className:"size-4 shrink-0"}):void 0})})}var Ps=({children:e})=>{let t=Ns(null),{scrollProgress:r,updateScrollProgress:o}=tt(t);return Me(Pr,{children:[D("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:t,onScroll:o,children:e}),D("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 Ss({option:e,onSelect:t,multiple:r,selected:o,right:a,className:l}){return Me(Gt.Item,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100",l),onSelect:t,value:e.label+(e==null?void 0:e.value),children:[r&&D("div",{className:"shrink-0 text-gray-600",children:o?D(To,{className:"size-4 text-gray-600"}):D(Eo,{className:"size-4 text-gray-400"})}),Me("div",{className:"flex min-w-0 grow items-center gap-1",children:[e.icon&&D("span",{className:"shrink-0 text-gray-600",children:ba(e.icon)?e.icon:D(e.icon,{className:"h-4 w-4"})}),D("span",{className:"grow truncate",children:e.label})]}),a,!r&&o&&D(Lo,{className:"size-4 shrink-0 text-gray-600"})]})}var ba=e=>ws(e),Ms=ys((e,t)=>bs(o=>o.filtered.count===0)?D("div",{ref:t,"cmdk-empty":"",role:"presentation",...e}):null);import{addYears as $t,format as Rs,isSameMonth as Ls}from"date-fns";import{ChevronLeft as xa,ChevronRight as ya,ChevronsLeft as Ts,ChevronsRight as Es}from"lucide-react";import{forwardRef as As,useRef as Ds}from"react";import{DayPicker as Is,useDayPicker as zs,useDayRender as Os,useNavigation as Vs}from"react-day-picker";import{Fragment as _s,jsx as oe,jsxs as Kt}from"react/jsx-runtime";var gt=As(({onClick:e,icon:t,disabled:r,...o},a)=>oe("button",{ref:a,type:"button",disabled:r,className:n("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:e,...o,children:oe(t,{className:"h-full w-full shrink-0"})}));gt.displayName="NavigationButton";function wa({mode:e="single",weekStartsOn:t=1,numberOfMonths:r=1,showYearNavigation:o=!1,disableNavigation:a,locale:l,className:c,classNames:s,...d}){return oe(Is,{mode:e,weekStartsOn:t,numberOfMonths:r,locale:l,showOutsideDays:r===1,className:c,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-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:n("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-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-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-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",...s},components:{IconLeft:()=>oe(xa,{className:"h-4 w-4"}),IconRight:()=>oe(ya,{className:"h-4 w-4"}),Caption:({...m})=>{let{goToMonth:i,nextMonth:p,previousMonth:f,currentMonth:x,displayMonths:y}=Vs(),{numberOfMonths:v,fromDate:g,toDate:N}=zs(),S=y.findIndex(I=>Ls(m.displayMonth,I)),M=S===0,P=S===y.length-1,w=v>1&&(M||!P),b=v>1&&(P||!M),R=()=>{let I=$t(x,-1);f&&(!g||I.getTime()>=g.getTime())&&i(I)},O=()=>{let I=$t(x,1);p&&(!N||I.getTime()<=N.getTime())&&i(I)};return Kt("div",{className:"flex items-center justify-between",children:[Kt("div",{className:"flex items-center gap-1",children:[o&&!b&&oe(gt,{disabled:a||!f||g&&$t(x,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:Ts}),!b&&oe(gt,{disabled:a||!f,"aria-label":"Go to previous month",onClick:()=>f&&i(f),icon:xa})]}),oe("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:Rs(m.displayMonth,"LLLL yyy",{locale:l})}),Kt("div",{className:"flex items-center gap-1",children:[!w&&oe(gt,{disabled:a||!p,"aria-label":"Go to next month",onClick:()=>p&&i(p),icon:ya}),o&&!w&&oe(gt,{disabled:a||!p||N&&$t(x,1).getTime()>N.getTime(),"aria-label":"Go to next year",onClick:O,icon:Es})]})]})},Day:({date:m,displayMonth:i})=>{let p=Ds(null),{activeModifiers:f,buttonProps:x,divProps:y,isButton:v,isHidden:g}=Os(m,i,p),{selected:N,today:S,disabled:M,range_middle:P}=f;if(g)return oe(_s,{});if(!v)return oe("div",{...y,className:n("flex items-center justify-center",y.className)});let{children:w,...b}=x;return Kt("button",{ref:p,...b,type:"button",children:[w,S&&oe("span",{className:n("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!N,"!bg-white":N,"!bg-blue-400":N&&P,"text-gray-400":M})})]})}},...d})}import{enUS as Zs}from"date-fns/locale";import{useEffect as Er,useMemo as Na,useState as Yt}from"react";import{Command as Sr}from"cmdk";import{Lock as Hs}from"lucide-react";import{jsx as We,jsxs as Ws}from"react/jsx-runtime";var Mr=({presets:e,onSelect:t,currentValue:r})=>{let o=d=>"dateRange"in d,a=d=>"date"in d,l=(d,m)=>d.getDate()===m.getDate()&&d.getMonth()===m.getMonth()&&d.getFullYear()===m.getFullYear(),c=(d,m)=>{let i=d.from,p=m.from,f=!1;i&&p&&l(i,p)&&(f=!0);let x=d.to,y=m.to,v=!1;return x&&y&&l(x,y)&&(v=!0),f&&v},s=d=>{if(o(d)){let m=r;return m&&c(m,d.dateRange)}else if(a(d)){let m=r;return m&&l(m,d.date)}return!1};return We(Sr,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:We(Sr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,m)=>Ws(Sr.Item,{disabled:d.requiresUpgrade,onSelect:()=>t(d),title:d.label,value:d.id,className:n("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-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-gray-100",s(d)&&"font-semibold text-gray-800"),children:[We("span",{children:d.label}),d.requiresUpgrade?We(Hs,{className:"h-3.5 w-3.5","aria-hidden":"true"}):d.shortcut?We("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:d.shortcut.toUpperCase()}):null,d.requiresUpgrade&&d.tooltipContent&&We(re,{side:"bottom",content:d.tooltipContent,children:We("div",{className:"absolute inset-0 cursor-not-allowed"})})]},m))})})};Mr.displayName="DatePicker.Presets";import{format as Re}from"date-fns";import{createContext as Bs}from"react";var Rr=Bs({isOpen:!1,setIsOpen:()=>{}}),Fs=()=>{let e=typeof window<"u"?window.navigator.language:"en-US",t=new Intl.DateTimeFormat(e,{hour:"numeric"}).format();return Number.isInteger(Number(t))},Lr=(e,t,r=!1)=>{let o=!Fs(),a;return r?a=o?Re(e,"d MMM, yyyy h:mm a",{locale:t}):Re(e,"d MMM, yyyy HH:mm",{locale:t}):a=Re(e,"d MMM, yyyy",{locale:t}),a},Ca=(e,t)=>{let{toYear:r,fromYear:o,fromMonth:a,toMonth:l,fromDay:c,toDay:s}=t;if(e&&e.length>0){let d=o,m=r;e.forEach(i=>{var p,f,x,y,v,g;if("date"in i){let N=i.date.getFullYear();if(o&&N<o)throw new Error(`Preset ${i.label} is before fromYear ${d}.`);if(r&&N>r)throw new Error(`Preset ${i.label} is after toYear ${m}.`);if(a&&i.date.getMonth()<a.getMonth())throw new Error(`Preset ${i.label} is before fromMonth ${a}.`);if(l&&i.date.getMonth()>l.getMonth())throw new Error(`Preset ${i.label} is after toMonth ${l}.`);if(c&&i.date.getDate()<c.getDate())throw new Error(`Preset ${i.label} is before fromDay ${c}.`);if(s&&i.date.getDate()>s.getDate())throw new Error(`Preset ${i.label} is after toDay ${Re(s,"MMM dd, yyyy")}.`)}if("dateRange"in i){let N=(p=i.dateRange.from)==null?void 0:p.getFullYear(),S=(f=i.dateRange.to)==null?void 0:f.getFullYear();if(N&&o&&N<o)throw new Error(`Preset ${i.label}'s 'from' is before fromYear ${d}.`);if(S&&r&&S>r)throw new Error(`Preset ${i.label}'s 'to' is after toYear ${m}.`);if(a){let M=(x=i.dateRange.from)==null?void 0:x.getMonth();if(M&&M<a.getMonth())throw new Error(`Preset ${i.label}'s 'from' is before fromMonth ${Re(a,"MMM, yyyy")}.`)}if(l){let M=(y=i.dateRange.to)==null?void 0:y.getMonth();if(M&&M>l.getMonth())throw new Error(`Preset ${i.label}'s 'to' is after toMonth ${Re(l,"MMM, yyyy")}.`)}if(c){let M=(v=i.dateRange.from)==null?void 0:v.getDate();if(M&&M<c.getDate())throw new Error(`Preset ${i.dateRange.from}'s 'from' is before fromDay ${Re(c,"MMM dd, yyyy")}.`)}if(s){let M=(g=i.dateRange.to)==null?void 0:g.getDate();if(M&&M>s.getDate())throw new Error(`Preset ${i.label}'s 'to' is after toDay ${Re(s,"MMM dd, yyyy")}.`)}}})}};import{cva as Us}from"class-variance-authority";import{Calendar as Gs,ChevronDown as $s}from"lucide-react";import{forwardRef as Ks}from"react";import{jsx as jt,jsxs as Ys}from"react/jsx-runtime";var js=Us(["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-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),Tr=Ks(({className:e,children:t,placeholder:r,hasError:o,...a},l)=>Ys("button",{ref:l,className:n(js({hasError:o}),e),...a,children:[jt(Gs,{className:n("h-4 w-4 shrink-0 text-gray-400",!!t&&"text-gray-900")}),jt("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:t||(r?jt("span",{className:"text-gray-400",children:r}):null)}),jt($s,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));Tr.displayName="DatePicker.Trigger";import{jsx as he,jsxs as Qs}from"react/jsx-runtime";var qs=({value:e,defaultValue:t,presetId:r,onChange:o,presets:a,disabled:l,disableNavigation:c,disabledDays:s,showYearNavigation:d=!1,locale:m=Zs,placeholder:i="Select date range",hasError:p,align:f="center",className:x,...y})=>{let{isDesktop:v}=Z(),[g,N]=Yt(!1),[S,M]=Yt(a&&r?a==null?void 0:a.find(({id:T})=>T===r):void 0),[P,w]=Yt((S==null?void 0:S.dateRange)??e??t??void 0),[b,R]=Yt(P==null?void 0:P.to),O=Na(()=>P,[g]);Er(()=>{w(e)},[e]),Er(()=>{let T=a==null?void 0:a.find(({id:ue})=>ue===r);M(T),w((T==null?void 0:T.dateRange)??e??t)},[a,r]),Er(()=>{g?P&&R(P.to):R(P==null?void 0:P.to)},[g]);let I=(T,ue)=>{let te=(P==null?void 0:P.from)&&(P==null?void 0:P.to)?{from:ue}:T;w(te),M(void 0),(te==null?void 0:te.from)&&(te==null?void 0:te.to)&&(o==null||o(te),N(!1))},Q=T=>{w(T.dateRange),M(T),o==null||o(T.dateRange,T),N(!1)},C=()=>{w(O),N(!1)},V=T=>{T||C(),N(T)},me=Na(()=>P?`${P.from?Lr(P.from,m):""} - ${P.to?Lr(P.to,m):""}`:null,[P,m]);return et((a==null?void 0:a.filter(T=>T.shortcut).map(T=>T.shortcut))??[],T=>{let ue=a==null?void 0:a.find(te=>te.shortcut===T.key);ue&&Q(ue)}),he(Rr.Provider,{value:{isOpen:g,setIsOpen:N},children:he(ot,{align:f,openPopover:g,setOpenPopover:V,popoverContentClassName:"rounded-xl",content:he("div",{className:"flex w-full",children:Qs("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[a&&a.length>0&&he("div",{className:n("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:he("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:he(Mr,{currentValue:P,presets:a,onSelect:Q})})}),he("div",{className:"scrollbar-hide overflow-x-scroll",children:he(wa,{mode:"range",selected:P,onSelect:I,month:b,onMonthChange:R,numberOfMonths:v?2:1,disabled:s,disableNavigation:c,showYearNavigation:d,locale:m,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...y})})]})}),children:he(Tr,{placeholder:i,disabled:l,className:x,hasError:p,"aria-required":y.required||y["aria-required"],"aria-invalid":y["aria-invalid"],"aria-label":y["aria-label"],"aria-labelledby":y["aria-labelledby"],children:(S==null?void 0:S.label)??me})})})};function j1({presets:e,...t}){return e&&Ca(e,t),he(qs,{presets:e,...t})}import{jsx as Zt,jsxs as ka}from"react/jsx-runtime";function J1({icon:e,title:t,description:r,learnMore:o,children:a}){return ka("div",{className:"flex flex-col items-center justify-center gap-y-4",children:[Zt("div",{className:"flex size-16 items-center justify-center rounded-2xl border border-gray-200 bg-gray-50",children:Zt(e,{className:"size-6 text-gray-800"})}),Zt("p",{className:"text-center text-base font-medium text-gray-950",children:t}),r&&ka("p",{className:"max-w-sm text-balance text-center text-sm text-gray-500",children:[r," ",o&&Zt("a",{href:o,target:"_blank",className:"underline underline-offset-2 hover:text-gray-800",children:"Learn more \u2197"})]}),a]})}import{cva as Xs}from"class-variance-authority";import{useState as Pa}from"react";import{toast as Sa}from"sonner";import{Fragment as el,jsx as ve,jsxs as Dr}from"react/jsx-runtime";var Ar={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)"}},Js=Xs("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function ch({readFile:e,onChange:t,variant:r,className:o,iconClassName:a,previewClassName:l,customPreview:c,accept:s="any",imageSrc:d,loading:m=!1,clickToUpload:i=!0,showHoverOverlay:p=!0,content:f,maxFileSizeMB:x=0,targetResolution:y,accessibilityLabel:v="File upload",disabled:g=!1}){let[N,S]=Pa(!1),[M,P]=Pa(null),w=async b=>{let R="dataTransfer"in b?b.dataTransfer.files&&b.dataTransfer.files[0]:b.target.files&&b.target.files[0];if(!R)return;if(P(R.name),x>0&&R.size/1024/1024>x){Sa.error(`File size too big (max ${x} MB)`);return}let O=Ar[s].types;if(O.length&&!O.includes(R.type)){Sa.error(Ar[s].errorMessage??"File type not supported");return}let I=R;if(y&&R.type.startsWith("image/"))try{let Q=await no(R,y),C=await fetch(Q).then(V=>V.blob());I=new File([C],R.name,{type:R.type})}catch(Q){console.error("Error resizing image:",Q)}if(e){let Q=new FileReader;Q.onload=C=>{var V;return t==null?void 0:t({src:(V=C.target)==null?void 0:V.result,file:I})},Q.readAsDataURL(I);return}t==null||t({file:I})};return Dr("label",{className:n(Js({variant:r}),g?"cursor-not-allowed":n(i&&"cursor-pointer"),o),children:[m&&ve("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:ve(mt,{})}),ve("div",{className:"absolute inset-0 z-[5]",onDragOver:b=>{b.preventDefault(),b.stopPropagation(),S(!0)},onDragEnter:b=>{b.preventDefault(),b.stopPropagation(),S(!0)},onDragLeave:b=>{b.preventDefault(),b.stopPropagation(),S(!1)},onDrop:async b=>{b.preventDefault(),b.stopPropagation(),w(b),S(!1)}}),Dr("div",{className:n("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] border-2 border-transparent bg-white transition-all",g&&"bg-gray-50",N&&!g&&"cursor-copy border-black bg-gray-50 opacity-100",d?n("opacity-0",p&&!g&&"group-hover:opacity-100"):n(!g&&"group-hover:bg-gray-50")),children:[ve(Oo,{className:n("size-7 transition-all duration-75",g?"text-gray-400":n("text-gray-500 group-hover:scale-110 group-active:scale-95",N?"scale-110":"scale-100"),a)}),f!==null&&ve("div",{className:n("mt-2 text-center text-sm text-gray-500",g&&"text-gray-400"),children:f??ve(el,{children:Dr("p",{children:["Drag and drop ",i&&"or click"," to upload."]})})}),ve("span",{className:"sr-only",children:v})]}),d&&(c??ve("img",{src:d,alt:"Preview",className:n("h-full w-full rounded-[inherit] object-cover",l)})),i&&ve("div",{className:"sr-only mt-1 flex shadow-sm",children:ve("input",{type:"file",accept:Ar[s].types.join(","),onChange:w,disabled:g},M)})]})}import{AnimatePresence as tl,motion as Ma}from"framer-motion";import{X as rl}from"lucide-react";import{isValidElement as ol}from"react";import{Fragment as al,jsx as ee,jsxs as ht}from"react/jsx-runtime";function La({filters:e,activeFilters:t,onRemove:r,onRemoveAll:o,className:a}){return et("Escape",o,{priority:1}),ee(we,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:ht("div",{className:n("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",a),children:[ee("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:ee(tl,{children:t==null?void 0:t.map(({key:l,value:c})=>{if(l==="loader")return ee(Ma.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${c}`);let s=e.find(d=>d.key===l);return s?(s.multiple&&Array.isArray(c)?c:[c]).map(d=>{var f,x,y;let m=(f=s.options)==null?void 0:f.find(v=>typeof v.value=="string"&&typeof d=="string"?v.value.toLowerCase()===d.toLowerCase():v.value===d),i=(m==null?void 0:m.icon)??((x=s.getOptionIcon)==null?void 0:x.call(s,d,{key:s.key,option:m}))??s.icon,p=(m==null?void 0:m.label)??((y=s.getOptionLabel)==null?void 0:y.call(s,d,{key:s.key,option:m}))??d;return ht(Ma.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[ht("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[ee("span",{className:"shrink-0 text-gray-600",children:Ra(s.icon)?s.icon:ee(s.icon,{className:"h-4 w-4"})}),s.label]}),ee("div",{className:"px-3 py-2 text-gray-500",children:"is"}),ee("div",{className:"flex items-center gap-2.5 px-3 py-2",children:s.options?ht(al,{children:[ee("span",{className:"shrink-0 text-gray-600",children:Ra(i)?i:ee(i,{className:"h-4 w-4"})}),Mt(p,30)]}):ee("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),ee("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>r(l,d),children:ee(rl,{className:"h-3.5 w-3.5"})})]},`${l}-${d}`)}):(console.error("Filter.List received an activeFilter without a corresponding filter"),null)})})}),(t==null?void 0:t.length)!==0&&ht("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-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:o,children:["Clear Filters",ee("kbd",{className:"rounded-md border border-gray-200 px-1.5 py-0.5 text-xs text-gray-950 group-hover:bg-gray-50",children:"ESC"})]})]})})}var Ra=e=>ol(e);import{Command as Le,useCommandState as il}from"cmdk";import{ChevronDown as nl,ListFilter as sl}from"lucide-react";import{Fragment as ll,forwardRef as cl,isValidElement as Ea,useCallback as qt,useEffect as Qt,useImperativeHandle as dl,useRef as zr,useState as Ir}from"react";import{Fragment as hl,jsx as H,jsxs as be}from"react/jsx-runtime";function Aa({filters:e,onSelect:t,onRemove:r,onOpenFilter:o,onSearchChange:a,onSelectedFilterChange:l,activeFilters:c,askAI:s,children:d,emptyState:m,className:i}){var I,Q;let{isMobile:p}=Z(),f=zr(null),x=zr(),[y,v]=Ir(!1);et("f",()=>v(!0),{enabled:!y});let[g,N]=Ir(""),[S,M]=Ir(null),P=qt(()=>{N(""),M(null)},[]);Qt(()=>{y||P()},[y]);let w=S?e.find(({key:C})=>C===S):null,b=qt(C=>{f.current&&(x.current={width:f.current.clientWidth,height:f.current.clientHeight}),N(""),M(C),o==null||o(C)},[]),R=qt(C=>{if(!w||!c)return!1;let V=c.find(({key:me})=>me===S);return(V==null?void 0:V.value)===C||V&&w.multiple&&Array.isArray(V.value)&&V.value.includes(C)},[w]),O=qt(C=>{w&&(R(C)?r(w.key,C):t(w.key,C),w.multiple||v(!1))},[c,w,s]);return Qt(()=>{a==null||a(g)},[g]),Qt(()=>{l==null||l(S)},[S]),Qt(()=>{(w==null?void 0:w.options)&&f.current&&(x.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:y,setOpenPopover:v,onEscapeKeyDown:C=>{S&&(C.preventDefault(),P())},content:H(we,{width:!p,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:be(Le,{loop:!0,shouldFilter:!w||w.shouldFilter!==!1,children:[be("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[H(ul,{placeholder:`${(w==null?void 0:w.label)||"Filter"}...`,value:g,onValueChange:N,onKeyDown:C=>{(C.key==="Escape"||C.key==="Backspace"&&!g)&&(C.preventDefault(),C.stopPropagation(),S?P():v(!1))},emptySubmit:C=>{C.preventDefault(),C.stopPropagation(),s?(t("ai",w?`${w.label} ${g}`:g),v(!1)):O(g)}}),!w&&H("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),H(pl,{ref:f,children:be(Le.List,{className:n("flex w-full flex-col gap-1 p-1",w?"min-w-[100px]":"min-w-[180px]"),children:[w?((Q=(I=w.options)==null?void 0:I.filter(C=>!g||!C.hideDuringSearch))==null?void 0:Q.map(C=>{let V=R(C.value);return H(Ta,{filter:w,option:C,right:V?H(Ro,{className:"h-4 w-4"}):C.right,onSelect:()=>O(C.value)},C.value)}))??H(Le.Loading,{children:H("div",{className:"-m-1 flex items-center justify-center",style:x.current,children:H(ye,{})})}):e.map(C=>be(ll,{children:[H(Ta,{filter:C,onSelect:()=>b(C.key)}),C.separatorAfter&&H(Le.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},C.key)),(!w||w.options)&&H(fl,{search:g,askAI:s,children:m?ml(m)?(m==null?void 0:m[S??"default"])??"No matches":m:"No matches"})]})},S)]})}),children:be("button",{type:"button",className:n("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-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",i),children:[H(sl,{className:"size-4 shrink-0"}),H("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:d??"Filter"}),c!=null&&c.length?H("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:c.length}):H(nl,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function ml(e){return typeof e=="object"&&e!==null&&!Ea(e)}var ul=e=>{let t=il(r=>r.filtered.count===0);return H(Le.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-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"})},pl=cl(({children:e},t)=>{let r=zr(null);dl(t,()=>r.current);let{scrollProgress:o,updateScrollProgress:a}=tt(r);return be(hl,{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 Ta({filter:e,option:t,right:r,onSelect:o}){var s,d;let{isMobile:a}=Z(),l=t?t.icon??((s=e.getOptionIcon)==null?void 0:s.call(e,t.value,{key:e.key,option:t}))??e.icon:e.icon,c=t?t.label??((d=e.getOptionLabel)==null?void 0:d.call(e,t.value,{key:e.key,option:t})):e.label;return be(Le.Item,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:m=>{m.preventDefault()},onPointerUp:m=>{m.preventDefault(),a?setTimeout(o,100):o()},onSelect:o,value:c+(t==null?void 0:t.value),children:[H("span",{className:"shrink-0 text-gray-600",children:gl(l)?l:H(l,{className:"h-4 w-4"})}),Mt(c,48),H("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:r})]})}var fl=({search:e,askAI:t,children:r})=>t&&e?be(Le.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[H(fo,{className:"h-4 w-4"}),be("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",be("span",{className:"text-black",children:['"',e,'"']})]})]}):H(Le.Empty,{className:"p-2 text-center text-sm text-gray-400",children:r}),gl=e=>Ea(e);var Dh={Select:Aa,List:La};import{useMemo as vl,useState as Da}from"react";import{jsx as Be,jsxs as Xt}from"react/jsx-runtime";function Wh({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:l,handleSubmit:c}){let[s,d]=Da(r.defaultValue),[m,i]=Da(!1),p=vl(()=>m||!s||s===r.defaultValue,[m,s,r.defaultValue]);return Xt("form",{onSubmit:async f=>{f.preventDefault(),i(!0),await c({[r.name]:s}),i(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[Xt("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[Xt("div",{className:"flex flex-col space-y-3",children:[Be("h2",{className:"text-xl font-medium",children:e}),Be("p",{className:"text-sm text-gray-500",children:t})]}),typeof r.defaultValue=="string"?Be("input",{...r,type:r.type||"text",required:!0,disabled:!!l,onChange:f=>d(f.target.value),className:n("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":l})}):Be("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),Xt("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof o=="string"?Be("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:o||""}}):o,Be("div",{className:"shrink-0",children:Be(se,{text:a,loading:m,disabled:p,disabledTooltip:l})})]})]})}import{useId as bl}from"react";import{jsx as Jt,jsxs as xl}from"react/jsx-runtime";function Gh({cellSize:e=12,strokeWidth:t=1,patternOffset:r=[0,0],className:o}){let a=bl();return xl("svg",{className:n("pointer-events-none absolute inset-0 text-black/10",o),width:"100%",height:"100%",children:[Jt("defs",{children:Jt("pattern",{id:`grid-${a}`,x:r[0]-1,y:r[1]-1,width:e,height:e,patternUnits:"userSpaceOnUse",children:Jt("path",{d:`M ${e} 0 L 0 0 0 ${e}`,fill:"transparent",stroke:"currentColor",strokeWidth:t})})}),Jt("rect",{fill:`url(#grid-${a})`,width:"100%",height:"100%"})]})}import{AlertCircle as yl}from"lucide-react";import wl,{useCallback as Cl,useState as Nl}from"react";import{jsx as Fe,jsxs as Or}from"react/jsx-runtime";var kl=wl.forwardRef(({className:e,type:t,...r},o)=>{let[a,l]=Nl(!1),c=Cl(()=>l(!a),[a,l]);return Or("div",{children:[Or("div",{className:"relative flex",children:[Fe("input",{type:a?"text":t,className:n("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",e),ref:o,...r}),Or("div",{className:"group",children:[r.error&&Fe("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:Fe(yl,{className:n("size-5 text-white",t==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),t==="password"&&Fe("button",{className:n("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>c(),"aria-label":a?"Hide password":"Show Password",children:a?Fe(Vo,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):Fe(_o,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&Fe("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});kl.displayName="Input";import{flip as Rl,offset as Ll,size as Tl,useDismiss as El,useFloating as Al,useInteractions as Dl}from"@floating-ui/react";import{Command as Ne,useCommandState as Il}from"cmdk";import{Check as zl,ChevronDown as Ol,Search as Vr,X as Vl}from"lucide-react";import{createContext as _l,forwardRef as Hl,useContext as Fr,useEffect as _r,useMemo as Wl,useRef as za,useState as Hr}from"react";import{Drawer as at}from"vaul";import Pl from"next/image";import{useEffect as Sl,useState as Ia}from"react";import{jsx as Ml}from"react/jsx-runtime";function er(e){let[t,r]=Ia(!0),[o,a]=Ia(e.src);Sl(()=>a(e.src),[e.src]);let l=c=>{r(!1);let s=c.target;s.naturalWidth<=16&&s.naturalHeight<=16&&a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)};return Ml(Pl,{...e,src:o,alt:e.alt,className:n(t?"blur-[2px]":"blur-0",e.className),onLoad:l,onError:()=>{a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)},unoptimized:!0})}import{jsx as L,jsxs as J}from"react/jsx-runtime";var tr=_l({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function h2({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:l,icon:c,inputAttrs:s,noItemsElement:d}){let m=za(null),[i,p]=Hr(!1),[f,x]=Hr(""),[y,v]=Hr(!1);_r(()=>{i&&v(!1)},[i]),_r(()=>v(!0),[f]),_r(()=>{t&&x(t.value)},[t]);let g=Wl(()=>{let C=f.toLowerCase();return y?e.filter(V=>V.value.toLowerCase().includes(C)):f?e.sort((V,me)=>(me.value.toLowerCase().includes(C)?1:0)-(V.value.toLowerCase().includes(C)?1:0)):e},[y,f,e]),{refs:N,floatingStyles:S,context:M}=Al({open:i,onOpenChange:p,middleware:[Ll(8),Tl({apply({elements:{floating:C},availableHeight:V}){Object.assign(C.style,{maxHeight:`${Math.max(75,Math.min(V,290))}px`})},padding:8}),Rl({fallbackStrategy:"initialPlacement",padding:8})]}),P=El(M),{getReferenceProps:w,getFloatingProps:b}=Dl([P]),R=za(null),{scrollProgress:O,updateScrollProgress:I}=tt(R),{isMobile:Q}=Z();return L(tr.Provider,{value:{inputAttrs:s||{},openCommandList:i,setOpenCommandList:p,inputValue:f,setInputValue:x,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:Q&&l?J(at.Root,{open:i,onOpenChange:p,children:[L(at.Trigger,{className:"sm:hidden",asChild:!0,children:L(Ne,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:J("div",{className:n("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",o),children:[L("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{}),L(Br,{})]})]})})}),L(at.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),J(at.Portal,{children:[L(at.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",onPointerDownOutside:C=>{C.target instanceof Element&&C.target.closest("[data-sonner-toast]")&&C.preventDefault()},children:J(Ne,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:[J("div",{className:n("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",o),children:[L("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{}),L(Br,{})]})]}),i&&J(Ne.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&f===""&&(d?L("div",{children:d}):L("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),f!==""&&L(Ne.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),L(Oa,{items:g})]})]})}),L(at.Overlay,{})]})]}):J(Ne,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:[J("div",{className:n("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",o),children:[L("div",{onClick:()=>p(C=>!C),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{ref:N.setReference,...w()}),L(Br,{})]})]}),i&&J("div",{ref:N.setFloating,style:S,...b(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[J("div",{ref:R,onScroll:I,className:"grow overflow-y-auto p-2",children:[J(Ne.List,{children:[e.length===0&&f===""&&(d?L("div",{children:d}):L("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),f!==""&&L(Ne.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),L(Oa,{items:g})]}),L("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)}})]})]})})}var Wr=Hl((e,t)=>{let r=Il(m=>m.filtered.count===0),{inputAttrs:o,openCommandList:a,setOpenCommandList:l,inputValue:c,setInputValue:s,disabled:d}=Fr(tr);return L(Ne.Input,{ref:t,placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:a,onFocus:()=>l(!0),value:c,onValueChange:s,onKeyDown:m=>{m.key==="Escape"?(m.preventDefault(),l(!1)):m.key==="Enter"&&r?l(!1):m.key.match(/^[a-z0-9]$/i)&&!m.metaKey&&l(!0)},disabled:d,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function Br(){let{setSelectedItem:e,openCommandList:t,setOpenCommandList:r,inputValue:o,setInputValue:a}=Fr(tr);return L("button",{type:"button",onClick:()=>{r(l=>!l),e(null),a("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:o.length>0?L(Vl,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):L(Ol,{className:n("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":t})})})}function Oa({items:e}){let{setSelectedItem:t,setOpenCommandList:r,setInputValue:o}=Fr(tr);return e.map(a=>J(Ne.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-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[J("div",{className:"flex items-center space-x-2",children:[a.image&&L(er,{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full",width:16,height:16}),L("p",{className:n("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&&L(Ht,{className:"text-xs",variant:"neutral",children:a.label})]}),L(zl,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},a.id))}import*as Ur from"@radix-ui/react-label";import{cva as Bl}from"class-variance-authority";import*as Va from"react";import{jsx as Gl}from"react/jsx-runtime";var Fl=Bl("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ul=Va.forwardRef(({className:e,...t},r)=>Gl(Ur.Root,{ref:r,className:n(Fl(),e),...t}));Ul.displayName=Ur.Root.displayName;import{curveNatural as _a}from"@visx/curve";import{LinearGradient as Ha}from"@visx/gradient";import{Group as $l}from"@visx/group";import{ParentSize as Kl}from"@visx/responsive";import{scaleLinear as jl,scaleUtc as Yl}from"@visx/scale";import{Area as Zl,AreaClosed as ql}from"@visx/shape";import{motion as Wa}from"framer-motion";import{useId as Ql,useMemo as Ba}from"react";import{jsx as xe,jsxs as Gr}from"react/jsx-runtime";function L2(e){return xe(Kl,{className:"relative",children:({width:t,height:r})=>t>0&&r>0&&xe(Xl,{...{width:t,height:r,...e}})})}var Te={top:8,right:2,bottom:2,left:2};function Xl({width:e,height:t,data:r,curve:o=!0,color:a}){let l=Ql(),c=Ba(()=>r.map(({date:m})=>({date:m,value:0})),[r]),{yScale:s,xScale:d}=Ba(()=>{let m=r.map(({value:y})=>y),i=Math.max(...m),p=r.map(({date:y})=>y.getTime()),f=new Date(Math.min(...p)),x=new Date(Math.max(...p));return{yScale:jl({domain:[-2,Math.max(i,2)],range:[t-Te.top-Te.bottom,0],nice:!0,clamp:!0}),xScale:Yl({domain:[f,x],range:[0,e-Te.left-Te.right],nice:!0})}},[r,t,e]);return Gr("svg",{width:e,height:t,children:[Gr("defs",{children:[xe(Ha,{id:`${l}-color-gradient`,from:a||"#7D3AEC",to:a||"#DA2778",x1:0,x2:e-Te.left-Te.right,gradientUnits:"userSpaceOnUse"}),xe(Ha,{id:`${l}-mask-gradient`,from:"white",to:"white",fromOpacity:.3,toOpacity:0,x1:0,x2:0,y1:0,y2:1}),xe("mask",{id:`${l}-mask`,maskContentUnits:"objectBoundingBox",children:xe("rect",{width:"1",height:"1",fill:`url(#${l}-mask-gradient)`})})]}),Gr($l,{left:Te.left,top:Te.top,children:[xe(Zl,{data:r,x:({date:m})=>d(m),y:({value:m})=>s(m)??0,curve:o?_a:void 0,children:({path:m})=>xe(Wa.path,{initial:{d:m(c)||"",opacity:0},animate:{d:m(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),xe(ql,{data:r,x:({date:m})=>d(m),y:({value:m})=>s(m)??0,yScale:s,curve:o?_a:void 0,children:({path:m})=>xe(Wa.path,{initial:{d:m(c)||"",opacity:0},animate:{d:m(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as le from"@radix-ui/react-dialog";import*as $r from"@radix-ui/react-visually-hidden";import{useRouter as Jl}from"next/navigation";import{Drawer as Ue}from"vaul";import{jsx as ae,jsxs as it}from"react/jsx-runtime";function z2({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:l,preventDefaultClose:c,drawerRootProps:s}){let d=Jl(),m=({dragged:p}={})=>{c&&!p||(a&&a(),o?o(!1):d.back())},{isMobile:i}=Z();return i&&!l?ae(Ue.Root,{open:o?r:!0,onOpenChange:p=>{p||m({dragged:!0})},...s,children:it(Ue.Portal,{children:[ae(Ue.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),ae(Ue.Content,{onPointerDownOutside:p=>{p.target instanceof Element&&p.target.closest("[data-sonner-toast]")&&p.preventDefault()},className:n("fixed bottom-0 left-0 right-0 z-50 flex flex-col","rounded-t-[10px] border-t border-gray-200 bg-white",t),children:it("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-t-[10px] bg-inherit",children:[it($r.Root,{children:[ae(Ue.Title,{children:"Modal"}),ae(Ue.Description,{children:"This is a modal"})]}),ae(ec,{}),e]})}),ae(Ue.Overlay,{})]})}):ae(le.Root,{open:o?r:!0,onOpenChange:p=>{p||m()},children:it(le.Portal,{children:[ae(le.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),it(le.Content,{onOpenAutoFocus:p=>p.preventDefault(),onCloseAutoFocus:p=>p.preventDefault(),onPointerDownOutside:p=>{p.target instanceof Element&&p.target.closest("[data-sonner-toast]")&&p.preventDefault()},className:n("fixed inset-0 z-40 m-auto h-fit w-full max-w-md","border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl","scrollbar-hide animate-scale-in overflow-y-auto",t),children:[it($r.Root,{children:[ae(le.Title,{children:"Modal"}),ae(le.Description,{children:"This is a modal"})]}),e]})]})})}function ec(){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-gray-300"})})}import{Fragment as tc,jsx as rr,jsxs as nt}from"react/jsx-runtime";var Fa=n("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-gray-200 bg-white px-2 text-sm text-gray-600","outline-none hover:bg-gray-50 focus-visible:border-gray-500","disabled:cursor-not-allowed disabled:border-gray-200 disabled:text-gray-400 disabled:bg-gray-100");function _2({pagination:e,setPagination:t,totalCount:r,unit:o=c=>`item${c?"s":""}`,className:a,children:l}){return nt("div",{className:n("flex items-center justify-between gap-2 text-sm leading-6 text-gray-600",a),children:[nt("div",{className:"flex items-center gap-2",children:[nt("div",{children:[rr("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",r>0&&nt(tc,{children:[nt("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,r)]})," ","of"," "]}),rr("span",{className:"font-medium",children:Pt(r,{full:!0})})," ",typeof o=="function"?o(r!==1):o]}),l]}),nt("div",{className:"flex items-center gap-2",children:[rr("button",{type:"button",className:Fa,onClick:()=>t({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),rr("button",{type:"button",className:Fa,onClick:()=>t({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=r,children:"Next"})]})]})}import*as Ee from"@radix-ui/react-radio-group";import{Circle as rc}from"lucide-react";import*as Kr from"react";import{jsx as or}from"react/jsx-runtime";var oc=Kr.forwardRef(({className:e,...t},r)=>or(Ee.Root,{className:n("grid gap-2",e),...t,ref:r}));oc.displayName=Ee.Root.displayName;var ac=Kr.forwardRef(({className:e,...t},r)=>or(Ee.Item,{ref:r,className:n("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:or(Ee.Indicator,{className:"flex items-center justify-center",children:or(rc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ac.displayName=Ee.Item.displayName;import{Drawer as Ae}from"vaul";import{jsx as Ge,jsxs as cc}from"react/jsx-runtime";function ic({children:e,contentProps:t,nested:r=!1,...o}){let a=r?Ae.NestedRoot:Ae.Root;return Ge(a,{direction:"right",handleOnly:!0,...o,children:cc(Ae.Portal,{children:[Ge(Ae.Overlay,{className:"fixed inset-0 bg-black/20"}),Ge(Ae.Content,{...t,onPointerDownOutside:l=>{var c;l.target instanceof Element&&l.target.closest("[data-sonner-toast]")&&l.preventDefault(),(c=t==null?void 0:t.onPointerDownOutside)==null||c.call(t,l)},className:n("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:Ge("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:e})})]})})}function nc({className:e,...t}){return Ge(Ae.Title,{className:n("text-xl font-medium text-zinc-900",e),...t})}function sc(e){return Ge(Ae.Description,{...e})}function lc(e){return Ge(Ae.Close,{...e})}var K2=Object.assign(ic,{Title:nc,Description:sc,Close:lc});import{useEffect as dc,useRef as mc,useState as uc}from"react";import{jsx as Ua}from"react/jsx-runtime";var pc=`
2
+ import{$ as Hm,$a as S0,$b as uu,$c as lp,A as vm,Aa as To,Ab as Y0,Ac as Ou,B as bm,Ba as Eo,Bb as Z0,Bc as Jo,C as Co,Ca as Ao,Cb as q0,Cc as Vu,D as No,Da as Do,Db as Fo,Dc as _u,E as ko,Ea as c0,Eb as Q0,Ec as Hu,F as Po,Fa as d0,Fb as X0,Fc as Wu,G as So,Ga as m0,Gb as Uo,Gc as Bu,H as xm,Ha as Io,Hb as J0,Hc as Fu,I as ym,Ia as zo,Ib as Go,Ic as Uu,J as wm,Ja as Oo,Jb as eu,Jc as Gu,K as Cm,Ka as u0,Kb as tu,Kc as $u,L as Nm,La as p0,Lb as ru,Lc as Ku,M as km,Ma as f0,Mb as ou,Mc as ju,N as Pm,Na as br,Nb as au,Nc as Yu,O as Sm,Oa as g0,Ob as $o,Oc as Zu,P as Mm,Pa as h0,Pb as Ko,Pc as qu,Q as Rm,Qa as v0,Qb as jo,Qc as Qu,R as Lm,Ra as Vo,Rb as Yo,Rc as Xu,S as Tm,Sa as b0,Sb as iu,Sc as Ju,T as Em,Ta as x0,Tb as nu,Tc as ep,U as Am,Ua as y0,Ub as su,Uc as tp,V as Dm,Va as Dt,Vb as Zo,Vc as rp,W as Im,Wa as w0,Wb as lu,Wc as op,X as zm,Xa as C0,Xb as cu,Xc as ap,Y as Om,Ya as N0,Yb as du,Yc as ip,Z as Vm,Za as k0,Zb as mu,Zc as np,_ as _m,_a as P0,_b as qo,_c as sp,a as po,aa as Wm,ab as M0,ac as pu,ad as cp,b as nm,ba as Bm,bb as It,bc as fu,bd as dp,c as sm,ca as Fm,cb as R0,cc as gu,cd as mp,d as fo,da as Um,db as L0,dc as hu,dd as up,e as go,ea as Gm,eb as T0,ec as vu,ed as pp,f as lm,fa as $m,fb as E0,fc as bu,fd as fp,g as ho,ga as Km,gb as A0,gc as xu,gd as gp,h as vo,ha as jm,hb as D0,hc as yu,hd as hp,i as bo,ia as Ym,ib as I0,ic as wu,id as vp,j as xo,ja as Zm,jb as z0,jc as Cu,k as mt,ka as qm,kb as O0,kc as Nu,l as cm,la as Mo,lb as V0,lc as Qo,m as we,ma as Qm,mb as _o,mc as ku,n as dm,na as Xm,nb as Ho,nc as Pu,o as Lt,oa as Jm,ob as Wo,oc as Su,p as mm,pa as e0,pb as _0,pc as Mu,q as Tt,qa as Ro,qb as H0,qc as Ru,r as um,ra as t0,rb as W0,rc as Lu,s as yo,sa as r0,sb as B0,sc as Tu,t as wo,ta as o0,tb as F0,tc as zt,u as pm,ua as a0,ub as Bo,uc as Eu,v as Et,va as i0,vb as U0,vc as Au,w as fm,wa as n0,wb as G0,wc as Du,x as At,xa as s0,xb as $0,xc as Iu,y as gm,ya as l0,yb as K0,yc as Xo,z as hm,za as Lo,zb as j0,zc as zu}from"./chunk-K73SJYBA.mjs";import{a as Z}from"./chunk-NWME2ANF.mjs";import{a as ao,b as z,c as Pt,d as St,e as io,f as Ze,g as no,h as so,i as Mt,j as lo,k as co,l as Rt,m as mo,n as pe,o as n,p as uo}from"./chunk-LIMI5N4M.mjs";import*as ne from"@radix-ui/react-accordion";import{ChevronDown as Oi}from"lucide-react";import*as Vt from"react";import{jsx as Ot,jsxs as Wi}from"react/jsx-runtime";var Np=ne.Root,Vi=Vt.forwardRef(({className:e,...t},r)=>Ot(ne.Item,{ref:r,className:n("border-b border-b-slate-200 py-3 last:border-none",e),...t}));Vi.displayName="AccordionItem";var _i=Vt.forwardRef(({className:e,children:t,variant:r="chevron",...o},a)=>{let l=r==="chevron"?Oi:zt;return Ot(ne.Header,{className:"flex",children:Wi(ne.Trigger,{ref:a,className:n("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,Ot(l,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});_i.displayName=ne.Trigger.displayName;var Hi=Vt.forwardRef(({className:e,children:t,...r},o)=>Ot(ne.Content,{ref:o,className:n("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",e),...r,children:t}));Hi.displayName=ne.Content.displayName;import{cva as Bi}from"class-variance-authority";import*as _t from"react";import{jsx as xr}from"react/jsx-runtime";var Fi=Bi("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"}}),Ui=_t.forwardRef(({className:e,variant:t,...r},o)=>xr("div",{ref:o,role:"alert",className:n(Fi({variant:t}),e),...r}));Ui.displayName="Alert";var Gi=_t.forwardRef(({className:e,...t},r)=>xr("h5",{ref:r,className:n("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));Gi.displayName="AlertTitle";var $i=_t.forwardRef(({className:e,...t},r)=>xr("div",{ref:r,className:n("text-sm [&_p]:leading-relaxed",e),...t}));$i.displayName="AlertDescription";import{sha256 as Ki}from"js-sha256";import{useState as ji}from"react";import{jsx as yr}from"react/jsx-runtime";function Yi(e){if(e!=null&&e.image)return e.image;if(!(e!=null&&e.id))return"https://api.dicebear.com/9.x/micah/svg";let t=`https://api.dicebear.com/9.x/micah/svg?seed=${encodeURIComponent(e.id)}`,r=`https://api.dicebear.com/9.x/micah/png/${encodeURIComponent(`seed=${encodeURIComponent(e.id)}`)}`;return e.email?`https://www.gravatar.com/avatar/${Ki(e.email)}?d=${encodeURIComponent(r)}`:t}function Ep({user:e={},className:t}){if(!e)return yr("div",{className:n("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",t)});let[r,o]=ji(Yi(e));return yr("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:r,className:n("h-10 w-10 rounded-full border border-gray-300",t),draggable:!1,onError:()=>{o(`https://api.dicebear.com/9.x/micah/svg?seed=${encodeURIComponent(e.id||"")}`)}})}function Ap({id:e,className:t}){return yr("img",{src:`https://api.dicebear.com/9.x/shapes/svg?seed=${e}`,alt:"avatar",className:n("h-10 w-10 rounded-full",t),draggable:!1})}import{cva as Zi}from"class-variance-authority";import{jsx as Qi}from"react/jsx-runtime";var qi=Zi("max-w-fit rounded-full border px-2 py-px text-xs font-medium whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",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 Ht({className:e,variant:t,...r}){return Qi("span",{className:n(qi({variant:t}),e),...r})}import{cva as rn}from"class-variance-authority";import{forwardRef as on}from"react";import*as fe from"@radix-ui/react-tooltip";import Xi from"linkify-react";import{HelpCircle as Ji}from"lucide-react";import en from"next/link";import{useState as tn}from"react";import{jsx as K,jsxs as qe}from"react/jsx-runtime";function Kp({children:e}){return K(fe.Provider,{delayDuration:150,children:e})}function re({children:e,content:t,contentClassName:r,side:o="top",disableHoverableContent:a,delayDuration:l=0,...c}){let[s,d]=tn(!1);return qe(fe.Root,{open:s,onOpenChange:d,delayDuration:l,disableHoverableContent:a,children:[K(fe.Trigger,{asChild:!0,onClick:()=>{d(!0)},onBlur:()=>{d(!1)},children:e}),K(fe.Portal,{children:K(fe.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade pointer-events-auto z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...c,children:typeof t=="string"?K("span",{className:n("block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",r),children:t}):typeof t=="function"?t({setOpen:d}):t})})]})}function jp({title:e,cta:t,href:r,target:o,onClick:a}){return qe("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[K("p",{className:"text-sm text-gray-700",children:e}),t&&(r?K(en,{href:r,...o?{target:o}:{},className:n(ge({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:t}):a?K(se,{onClick:a,text:t,variant:"primary",className:"h-9"}):null)]})}function Yp({title:e,cta:t,href:r}){return qe("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",K("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:o=>o.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:t})]})}function Zp({children:e}){return K("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:K(Xi,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function qp(e){return K(re,{...e,children:K(Ji,{className:"h-4 w-4 text-gray-500"})})}function Qp({value:e,unit:t="total clicks",prefix:r,children:o,lastClicked:a}){return(!e||e<1e3)&&!a?o:K(re,{content:qe("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[qe("p",{className:"text-sm font-semibold text-gray-700",children:[r,Pt(e||0,{full:!0})," ",t]}),a&&qe("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",co(a,{withAgo:!0})]})]}),children:o})}function Xp({children:e,content:t,...r}){return K(re,{content:t,...r,children:K("div",{className:"flex cursor-pointer items-center",children:K(Ht,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function Jp({children:e,tooltipProps:t,...r}){return K(re,{...t,children:K("button",{type:"button",...r,className:n("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",r.className),children:e})})}import{jsx as Qe,jsxs as ea}from"react/jsx-runtime";var ge=rn("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:n("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-neutral-600 hover:bg-neutral-100",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=on(({text:e,variant:t="primary",className:r,textWrapperClassName:o,loading:a,icon:l,shortcut:c,disabledTooltip:s,right:d,...m},i)=>s?Qe(re,{content:s,children:ea("div",{className:n("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":t==null?void 0:t.endsWith("outline")},r),children:[l,e&&Qe("div",{className:n("min-w-0 truncate",c&&"flex-1 text-left",o),children:e}),c&&Qe("kbd",{className:n("hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":t==null?void 0:t.endsWith("outline")}),children:c})]})}):ea("button",{ref:i,type:m.onClick?"button":"submit",className:n("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",m.disabled||a?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":ge({variant:t}),r),disabled:m.disabled||a,...m,children:[a?Qe(we,{}):l||null,e&&Qe("div",{className:n("min-w-0 truncate",c&&"flex-1 text-left",o),children:e}),c&&Qe("kbd",{className:n("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":t==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":t==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":t==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":t==="danger-outline"}),children:c}),d]}));se.displayName="Button";import{cva as an}from"class-variance-authority";import{createContext as nn}from"react";import{jsx as ta}from"react/jsx-runtime";var sn=an("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"}}}),ut=nn({variant:"loose"});function ra({variant:e="loose",loading:t=!1,className:r,children:o}){return ta("ul",{className:n(sn({variant:e,loading:t}),r),"data-variant":e,children:ta(ut.Provider,{value:{variant:e},children:o})})}import{cva as ln}from"class-variance-authority";import{createContext as cn,useContext as dn,useEffect as mn,useRef as un,useState as pn}from"react";import{jsx as wr}from"react/jsx-runtime";var fn=ln("w-full group/card border-gray-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-gray-50 transition-colors",loose:"border rounded-xl transition-[filter] data-[hover-state-enabled=true]:hover:drop-shadow-card-hover"}}}),gn="w-full py-2.5 px-4",Cr=cn({hovered:!1});function oa({outerClassName:e,innerClassName:t,children:r,onClick:o,hoverStateEnabled:a=!0}){let{variant:l}=dn(ut),c=un(null),[s,d]=pn(!1);return mn(()=>{if(!s||!c.current)return;let m=setInterval(()=>{var i;((i=c.current)==null?void 0:i.matches(":hover"))===!1&&d(!1)},1e3);return()=>clearInterval(m)},[s]),wr("li",{ref:c,className:n(fn({variant:l}),e),onPointerEnter:()=>d(!0),onPointerLeave:()=>d(!1),"data-hover-state-enabled":a,children:wr("div",{className:n(gn,t),onClick:o?m=>{document.getElementById("modal-backdrop")||Rt(m)||o()}:void 0,children:wr(Cr.Provider,{value:{hovered:s},children:r})})})}var kf=Object.assign(ra,{Card:Object.assign(oa,{Context:Cr}),Context:ut});import{cva as hn}from"class-variance-authority";import vn from"embla-carousel-autoplay";import bn from"embla-carousel-react";import{motion as xn}from"framer-motion";import{ArrowLeft as yn,ArrowRight as wn,ChevronLeft as Cn,ChevronRight as Nn}from"lucide-react";import*as A from"react";import{jsx as X,jsxs as He}from"react/jsx-runtime";var aa=2e3,ia=A.createContext(null);function Xe(){let e=A.useContext(ia);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function If(){let{api:e}=Xe(),[t,r]=A.useState(0),o=A.useCallback(a=>r((a==null?void 0:a.selectedScrollSnap())??0),[]);return A.useEffect(()=>{!e||(o(e),e.on("reInit",o),e.on("select",o))},[e,o]),t}var kn=A.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,autoplay:o,plugins:a,className:l,children:c,...s},d)=>{let[m,i]=bn({...t,axis:e==="horizontal"?"x":"y"},[...o?[vn(typeof o=="object"?o:{delay:aa})]:[],...a||[]]),[p,f]=A.useState(!1),[x,h]=A.useState(!1),b=A.useCallback(M=>{!M||(f(M.canScrollPrev()),h(M.canScrollNext()))},[]),g=A.useCallback(()=>{i==null||i.scrollPrev()},[i]),N=A.useCallback(()=>{i==null||i.scrollNext()},[i]),S=A.useCallback(M=>{M.key==="ArrowLeft"?(M.preventDefault(),g()):M.key==="ArrowRight"&&(M.preventDefault(),N())},[g,N]);return A.useEffect(()=>{!i||!r||r(i)},[i,r]),A.useEffect(()=>{if(!!i)return b(i),i.on("reInit",b),i.on("select",b),()=>{i==null||i.off("select",b)}},[i,b]),X(ia.Provider,{value:{carouselRef:m,api:i,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:g,scrollNext:N,canScrollPrev:p,canScrollNext:x},children:X("div",{ref:d,onKeyDownCapture:S,className:n("relative",l),role:"region","aria-roledescription":"carousel",...s,children:c})})});kn.displayName="Carousel";var Pn=A.forwardRef(({className:e,...t},r)=>{let{carouselRef:o,orientation:a}=Xe();return X("div",{ref:o,className:"overflow-hidden",children:X("div",{ref:r,className:n("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Pn.displayName="CarouselContent";var Sn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o}=Xe();return X("div",{ref:r,role:"group","aria-roledescription":"slide",className:n("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",e),...t})});Sn.displayName="CarouselItem";var Mn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o,scrollPrev:a,canScrollPrev:l}=Xe();return He("button",{ref:r,className:n("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",ge({variant:"secondary",className:"p-2"}),e),disabled:!l,onClick:a,...t,children:[X(yn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Previous slide"})]})});Mn.displayName="CarouselPrevious";var Rn=A.forwardRef(({className:e,...t},r)=>{let{orientation:o,scrollNext:a,canScrollNext:l}=Xe();return He("button",{ref:r,className:n("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",ge({variant:"secondary",className:"p-2"}),e),disabled:!l,onClick:a,...t,children:[X(wn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Next slide"})]})});Rn.displayName="CarouselNext";var Ln=hn("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-gray-800/10 bg-white sm:bottom-6 "}}}),zf=({variant:e="simple",className:t})=>{var h;let{scrollNext:r,scrollPrev:o,canScrollNext:a,canScrollPrev:l,api:c}=Xe(),s=(h=c==null?void 0:c.plugins())==null?void 0:h.autoplay,[d,m]=A.useState(0),[i,p]=A.useState(!1),f=A.useCallback(b=>{m((b==null?void 0:b.selectedScrollSnap())??0)},[]),x=A.useCallback(b=>()=>{s&&s.isPlaying()&&s.stop(),b()},[s]);return A.useEffect(()=>{!c||(f(c),p((s==null?void 0:s.isPlaying())??!1),c.on("reInit",f),c.on("select",f),c.on("autoplay:play",()=>p(!0)),c.on("autoplay:stop",()=>p(!1)))},[c,s,f]),He("div",{className:n(Ln({variant:e}),t),children:[e!=="simple"&&He("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!l,onClick:x(o),children:[X(Cn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Previous slide"})]}),c!=null&&X("div",{className:"flex items-center gap-1",children:c.slideNodes().map((b,g)=>He("button",{onClick:x(()=>c.scrollTo(g)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[X("div",{className:n("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",g===d?"bg-black":"bg-black/20",i&&g===d&&"w-6 bg-black/20"),children:i&&g===d&&X(xn.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((s==null?void 0:s.options.delay)??aa)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),He("span",{className:"sr-only",children:["Slide ",g+1]})]},g))}),e!=="simple"&&He("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!a,onClick:x(r),children:[X(Nn,{className:"h-4 w-4"}),X("span",{className:"sr-only",children:"Next slide"})]})]})};import*as pt from"@radix-ui/react-checkbox";import{Check as Tn}from"lucide-react";import*as na from"react";import{jsx as Nr}from"react/jsx-runtime";var En=na.forwardRef(({className:e,...t},r)=>Nr(pt.Root,{ref:r,className:n("peer h-5 w-5 shrink-0 rounded-md border border-gray-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:Nr(pt.Indicator,{className:"flex items-center justify-center",children:Nr(Tn,{className:"h-3 w-3 text-white"})})}));En.displayName=pt.Root.displayName;import{Command as Gt,CommandInput as ys,CommandItem as ws,useCommandState as Cs}from"cmdk";import{ChevronDown as Ns}from"lucide-react";import{forwardRef as ks,isValidElement as Ps,useCallback as Ss,useEffect as Ut,useRef as Ms,useState as ft}from"react";import{motion as vs}from"framer-motion";import{forwardRef as bs,useRef as xs}from"react";import kr from"js-cookie";import{useEffect as An,useState as Dn}from"react";function Ff(e,t,r){let[o,a]=Dn(()=>{let c=kr.get(e);return c?JSON.parse(c):t});return An(()=>{let c=()=>{let s=kr.get(e);s&&a(JSON.parse(s))};return window.addEventListener("storage",c),()=>{window.removeEventListener("storage",c)}},[e]),[o,c=>{a(c),kr.set(e,JSON.stringify(c),r)}]}import{useCallback as In,useEffect as zn,useRef as On,useState as Vn}from"react";var Je=(e=3e3)=>{let t=On(null),[r,o]=Vn(!1),a=()=>{t.current&&(clearTimeout(t.current),t.current=null)},l=In(async c=>{a();try{typeof c=="string"?await navigator.clipboard.writeText(c):c instanceof ClipboardItem&&await navigator.clipboard.write([c]),o(!0),Number.isFinite(e)&&e>=0&&(t.current=setTimeout(()=>o(!1),e))}catch(s){console.error("Failed to copy: ",s)}},[e]);return zn(()=>()=>a(),[]),[r,l]};import{useEffect as _n,useState as Hn}from"react";function jf(){let[e,t]=Hn(null);return _n(()=>{let r=document.querySelector("[data-mdx-container]");if(!r)return;let o=r.offsetTop-1,a=new IntersectionObserver(s=>{var p,f,x;let d=s[0];if(!d)return;let m=(((p=d.rootBounds)==null?void 0:p.height)||0)*.3+o;for(let h=1;h<s.length;h++){let b=s[h];if(!b)break;(b.boundingClientRect.top<d.boundingClientRect.top||d.boundingClientRect.bottom<o)&&(d=b)}let i=d.target;for(;i&&i.getBoundingClientRect().bottom<o;)i=(f=l.get(i))==null?void 0:f.next;for(;i&&i.getBoundingClientRect().top>m;)i=(x=l.get(i))==null?void 0:x.prev;i&&t(i.getAttribute("href"))},{threshold:1,rootMargin:`-${o}px 0px 0px 0px`}),l=new Map;return(r==null?void 0:r.querySelectorAll("[data-mdx-heading]")).forEach(s=>a.observe(s)),()=>{a.disconnect()}},[]),e==null?void 0:e.replace("#","")}function Zf(e){return{handleKeyDown:r=>{r.key==="Enter"&&r.metaKey&&(r.preventDefault(),e.current&&e.current.requestSubmit())}}}import{useEffect as Wn,useState as Bn}from"react";function Jf(e,t={}){let{root:r,defaultValue:o}=t,[a,l]=Bn(o??!1);return Wn(()=>{let c=()=>{let d=e.current;if(!d)return;let m=r==null?void 0:r.current,i=d.getBoundingClientRect(),p=m?m.getBoundingClientRect():{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};l(i.top<p.bottom&&i.bottom>p.top&&i.left<p.right&&i.right>p.left)};((r==null?void 0:r.current)||window).addEventListener("scroll",c),window.addEventListener("resize",c);let s=null;return e.current&&(s=new IntersectionObserver(c),s.observe(e.current)),c(),()=>{((r==null?void 0:r.current)||window).removeEventListener("scroll",c),window.removeEventListener("resize",c),s==null||s.disconnect()}},[e,r]),a}import{useEffect as Fn,useState as Un}from"react";function rg(){let[e,t]=Un(!1);return Fn(()=>{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 Gn,useState as $n}from"react";function ng(e,{threshold:t=0,root:r=null,rootMargin:o="0%",freezeOnceVisible:a=!1}){let[l,c]=$n(),s=(l==null?void 0:l.isIntersecting)&&a,d=([m])=>{c(m)};return Gn(()=>{let m=e==null?void 0:e.current;if(!!!window.IntersectionObserver||s||!m)return;let p={threshold:t,root:r,rootMargin:o},f=new IntersectionObserver(d,p);return f.observe(m),()=>f.disconnect()},[e,JSON.stringify(t),r,o,s]),l}import{createContext as Kn,useCallback as jn,useContext as Yn,useEffect as sa,useId as Zn,useState as qn}from"react";import{jsx as Qn}from"react/jsx-runtime";var la=Kn({listeners:[],setListeners:()=>{}});function ug({children:e}){let[t,r]=qn([]);return Qn(la.Provider,{value:{listeners:t,setListeners:r},children:e})}function et(e,t,r={}){let o=Zn(),{listeners:a,setListeners:l}=Yn(la),c=jn(s=>{let d=s.target,m=document.getElementById("modal-backdrop");if(s.metaKey||s.ctrlKey||d.tagName==="INPUT"||d.tagName==="TEXTAREA"||!!m!=!!r.modal||(Array.isArray(e)?!e.includes(s.key):s.key!==e))return;let i=a.filter(f=>f.enabled!==!1&&(Array.isArray(f.key)?f.key.includes(s.key):f.key===s.key));!i.length||lo(i,(f,x)=>(x.priority??0)-(f.priority??0)).slice(-1)[0].id!==o||(s.preventDefault(),t(s))},[e,a,o,t]);sa(()=>(document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)),[c]),sa(()=>(l(s=>[...s.filter(d=>d.id!==o),{id:o,key:e,...r}]),()=>l(s=>s.filter(d=>d.id!==o))),[JSON.stringify(e),r.enabled,r.priority])}import{useEffect as Xn,useState as Jn}from"react";function ca(e){if(typeof window>"u")return null;let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}function gg(e,t){let[r,o]=Jn(ca(e)??t);return Xn(()=>{let l=ca(e);l&&o(l)},[e]),[r,l=>{o(l),window.localStorage.setItem(e,JSON.stringify(l))}]}import{toast as es}from"sonner";import ts from"swr";function yg(e,t){let{data:r,isLoading:o,mutate:a}=ts(e,pe);return{data:r,isLoading:o,update:async(l,c)=>es.promise(a(l(r),{optimisticData:c,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 pa,useMemo as ns}from"react";import{useEffect as da,useState as rs}from"react";function ma({pageSize:e,page:t,onPageChange:r}){let[o,a]=rs({pageIndex:t,pageSize:e});return da(()=>{a(l=>({...l,pageIndex:t}))},[t]),da(()=>{r==null||r(o.pageIndex)},[o]),{pagination:o,setPagination:a}}import{usePathname as os,useRouter as as,useSearchParams as is}from"next/navigation";function ua(){let e=os(),t=as(),r=is(),o=Object.fromEntries(r);return{pathname:e,router:t,searchParams:r,searchParamsObj:o,queryParams:({set:c,del:s,replace:d,scroll:m=!0,getNewPath:i,arrayDelimiter:p=","})=>{let f=new URLSearchParams(r);c&&Object.entries(c).forEach(([b,g])=>f.set(b,Array.isArray(g)?g.join(p):g)),s&&(Array.isArray(s)?s.forEach(b=>f.delete(b)):f.delete(s));let x=f.toString(),h=`${e}${x.length>0?`?${x}`:""}`;if(i)return h;d?t.replace(h,{scroll:!1}):t.push(h,{scroll:m})},getQueryString:(c,s)=>{let d=new URLSearchParams(r);c&&Object.entries(c).forEach(([i,p])=>d.set(i,p)),s!=null&&s.ignore&&s.ignore.forEach(i=>d.delete(i));let m=d.toString();return m.length>0?`?${m}`:""}}}function Eg(e=io){let{searchParams:t,queryParams:r}=ua(),o=ns(()=>parseInt(t.get("page")||"1")||1,[t.get("page")]),{pagination:a,setPagination:l}=ma({pageSize:e,page:o,onPageChange:c=>{r(c===1?{del:"page"}:{set:{page:c.toString()}})}});return pa(()=>{let c=parseInt(t.get("page")||"1")||1;l(s=>({...s,pageIndex:c}))},[t.get("page")]),pa(()=>{r(a.pageIndex===1?{del:"page"}:{set:{page:a.pageIndex.toString()}})},[a]),{pagination:a,setPagination:l}}import{useEffect as ss}from"react";function Ig(){ss(()=>{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 ls,useState as cs}from"react";function Wt(e){let[t,r]=cs(),o=([a])=>{r(a)};return ls(()=>{let a=e==null?void 0:e.current;if(!a)return;let l=new ResizeObserver(o);return l.observe(a),()=>l.disconnect()},[e]),t}import{useCallback as ds,useEffect as fa,useState as ms}from"react";function ga(e){let[t,r]=ms(!1),o=ds(()=>{r(window.scrollY>e)},[e]);return fa(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),fa(()=>{o()},[o]),t}import{useCallback as us,useEffect as ps,useState as fs}from"react";function tt(e){let[t,r]=fs(1),o=us(()=>{if(!e.current)return;let{scrollTop:l,scrollHeight:c,clientHeight:s}=e.current;r(c===s?1:Math.min(l/(c-s),1))},[]),a=Wt(e);return ps(o,[a]),{scrollProgress:t,updateScrollProgress:o}}import{useEffect as gs}from"react";import{toast as va}from"sonner";import{jsx as Bt,jsxs as ha}from"react/jsx-runtime";function hs({id:e,message:t,undo:r}){let o=()=>{r(),va.dismiss(e)},a=l=>{l.key==="z"&&(l.ctrlKey||l.metaKey)&&o()};return gs(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[]),ha("div",{className:"flex w-full items-center justify-between space-x-2",children:[ha("div",{className:"flex items-center space-x-2",children:[Bt(bo,{}),Bt("p",{className:"font-medium",children:t})]}),Bt("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 Yg(){return({id:t,message:r,undo:o,duration:a})=>va(Bt(hs,{id:t,message:r,undo:o}),{id:t,...a&&{duration:a}})}import{jsx as ba}from"react/jsx-runtime";var Ce=bs(({width:e=!1,height:t=!1,className:r,transition:o,children:a,...l},c)=>{var m,i;let s=xs(null),d=Wt(s);return ba(vs.div,{ref:c,className:n("overflow-hidden",r),animate:{width:e?((m=d==null?void 0:d.contentRect)==null?void 0:m.width)??"auto":"auto",height:t?((i=d==null?void 0:d.contentRect)==null?void 0:i.height)??"auto":"auto"},transition:o??{type:"spring",duration:.3},...l,children:ba("div",{ref:s,className:n(t&&"h-max",e&&"w-max"),children:a})})});Ce.displayName="AnimatedSizeContainer";import*as Me from"@radix-ui/react-popover";import{Drawer as rt}from"vaul";import{jsx as Ne,jsxs as Ft}from"react/jsx-runtime";function ot({children:e,content:t,align:r="center",side:o="bottom",openPopover:a,setOpenPopover:l,mobileOnly:c,popoverContentClassName:s,collisionBoundary:d,sticky:m,onEscapeKeyDown:i,onWheel:p}){let{isMobile:f}=Z();return c||f?Ft(rt.Root,{open:a,onOpenChange:l,children:[Ne(rt.Trigger,{className:"sm:hidden",asChild:!0,children:e}),Ft(rt.Portal,{children:[Ne(rt.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),Ft(rt.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:i,onPointerDownOutside:x=>{x.target instanceof Element&&x.target.closest("[data-sonner-toast]")&&x.preventDefault()},children:[Ne("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:Ne("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),Ne("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:t})]}),Ne(rt.Overlay,{})]})]}):Ft(Me.Root,{open:a,onOpenChange:l,children:[Ne(Me.Trigger,{className:"sm:inline-flex",asChild:!0,children:e}),Ne(Me.Portal,{children:Ne(Me.Content,{sideOffset:8,align:r,side:o,className:n("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",s),sticky:m,collisionBoundary:d,onEscapeKeyDown:i,onWheel:p,children:t})})]})}import{Fragment as Pr,jsx as D,jsxs as Re}from"react/jsx-runtime";function Rs(e,t){return e===!0}function C1({multiple:e,selected:t,setSelected:r,options:o,icon:a,placeholder:l="Select...",searchPlaceholder:c="Search...",emptyState:s,createLabel:d,onCreate:m,buttonProps:i,shortcutHint:p,caret:f,side:x,open:h,onOpenChange:b,onSearchChange:g,shouldFilter:N=!0,inputClassName:S,optionRight:M,optionClassName:P,matchTriggerWidth:w,children:y}){let R=Rs(e,r),O=Array.isArray(t)?t:t?[t]:[],{isMobile:I}=Z(),[Q,C]=ft(!1),V=h??Q,me=b??C,[T,ue]=ft(""),[te,gr]=ft(!1),[hr,Di]=ft(void 0),[Ii,ro]=ft(!1),zi=_=>{var Ye;if(R){let vr=O.some(({value:dt})=>dt===_.value);r(vr?O.filter(({value:dt})=>dt!==_.value):[...O,_])}else r(O.length&&((Ye=O[0])==null?void 0:Ye.value)===_.value?null:_),me(!1)},oo=Ss((_,Ye)=>Ye===""?[...O,..._.filter(vr=>O.findIndex(dt=>dt.value===vr.value)===-1)]:_,[O]);return Ut(()=>{te&&(Di(o&&oo(o,T)),gr(!1))},[te,o,oo,T]),Ut(()=>{gr(!0)},[o]),Ut(()=>{V||(ue(""),gr(!0))},[V]),Ut(()=>g==null?void 0:g(T),[T]),D(ot,{openPopover:V,setOpenPopover:me,align:"start",side:x,onWheel:_=>{_.stopPropagation()},popoverContentClassName:n(w&&"sm:w-[var(--radix-popover-trigger-width)]"),content:D(Ce,{width:!I&&!w,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:Re(Gt,{loop:!0,shouldFilter:N,children:[Re("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[D(ys,{placeholder:c,value:T,onValueChange:ue,className:n("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",S),onKeyDown:_=>{(_.key==="Escape"||_.key==="Backspace"&&!T)&&(_.preventDefault(),_.stopPropagation(),me(!1))}}),p&&D("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:p})]}),D(Ls,{children:D(Gt.List,{className:n("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:hr!==void 0?Re(Pr,{children:[hr.map(_=>D(Ts,{option:_,multiple:R,selected:O.some(({value:Ye})=>Ye===_.value),onSelect:()=>zi(_),right:M==null?void 0:M(_),className:P},`${_.label}, ${_.value}`)),T.length>0&&m&&Re(ws,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",P),onSelect:async()=>{ro(!0),await(m==null?void 0:m(T))&&(ue(""),me(!1)),ro(!1)},children:[Ii?D(we,{className:"size-4 shrink-0"}):D(zt,{className:"size-4 shrink-0"}),D("div",{className:"grow truncate",children:(d==null?void 0:d(T))||`Create "${T}"`})]}),N?D(Es,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:s||"No matches"}):hr.length===0?D("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:s||"No matches"}):null]}):D(Gt.Loading,{children:D("div",{className:"flex h-12 items-center justify-center",children:D(we,{})})})})})]})}),children:D(se,{variant:"secondary",...i,className:n(i==null?void 0:i.className,"flex gap-2"),textWrapperClassName:n(i==null?void 0:i.textWrapperClassName,"w-full flex items-center justify-start"),text:Re(Pr,{children:[D("div",{className:"min-w-0 grow truncate text-left",children:y||O.map(_=>_.label).join(", ")||l}),f&&D(Ns,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:a?xa(a)?a:D(a,{className:"size-4 shrink-0"}):void 0})})}var Ls=({children:e})=>{let t=Ms(null),{scrollProgress:r,updateScrollProgress:o}=tt(t);return Re(Pr,{children:[D("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:t,onScroll:o,children:e}),D("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 Ts({option:e,onSelect:t,multiple:r,selected:o,right:a,className:l}){return Re(Gt.Item,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100",l),onSelect:t,value:e.label+(e==null?void 0:e.value),children:[r&&D("div",{className:"shrink-0 text-gray-600",children:o?D(Eo,{className:"size-4 text-gray-600"}):D(Ao,{className:"size-4 text-gray-400"})}),Re("div",{className:"flex min-w-0 grow items-center gap-1",children:[e.icon&&D("span",{className:"shrink-0 text-gray-600",children:xa(e.icon)?e.icon:D(e.icon,{className:"h-4 w-4"})}),D("span",{className:"grow truncate",children:e.label})]}),a,!r&&o&&D(To,{className:"size-4 shrink-0 text-gray-600"})]})}var xa=e=>Ps(e),Es=ks((e,t)=>Cs(o=>o.filtered.count===0)?D("div",{ref:t,"cmdk-empty":"",role:"presentation",...e}):null);import{addYears as $t,format as As,isSameMonth as Ds}from"date-fns";import{ChevronLeft as ya,ChevronRight as wa,ChevronsLeft as Is,ChevronsRight as zs}from"lucide-react";import{forwardRef as Os,useRef as Vs}from"react";import{DayPicker as _s,useDayPicker as Hs,useDayRender as Ws,useNavigation as Bs}from"react-day-picker";import{Fragment as Fs,jsx as oe,jsxs as Kt}from"react/jsx-runtime";var gt=Os(({onClick:e,icon:t,disabled:r,...o},a)=>oe("button",{ref:a,type:"button",disabled:r,className:n("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:e,...o,children:oe(t,{className:"h-full w-full shrink-0"})}));gt.displayName="NavigationButton";function Ca({mode:e="single",weekStartsOn:t=1,numberOfMonths:r=1,showYearNavigation:o=!1,disableNavigation:a,locale:l,className:c,classNames:s,...d}){return oe(_s,{mode:e,weekStartsOn:t,numberOfMonths:r,locale:l,showOutsideDays:r===1,className:c,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-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:n("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-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-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-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",...s},components:{IconLeft:()=>oe(ya,{className:"h-4 w-4"}),IconRight:()=>oe(wa,{className:"h-4 w-4"}),Caption:({...m})=>{let{goToMonth:i,nextMonth:p,previousMonth:f,currentMonth:x,displayMonths:h}=Bs(),{numberOfMonths:b,fromDate:g,toDate:N}=Hs(),S=h.findIndex(I=>Ds(m.displayMonth,I)),M=S===0,P=S===h.length-1,w=b>1&&(M||!P),y=b>1&&(P||!M),R=()=>{let I=$t(x,-1);f&&(!g||I.getTime()>=g.getTime())&&i(I)},O=()=>{let I=$t(x,1);p&&(!N||I.getTime()<=N.getTime())&&i(I)};return Kt("div",{className:"flex items-center justify-between",children:[Kt("div",{className:"flex items-center gap-1",children:[o&&!y&&oe(gt,{disabled:a||!f||g&&$t(x,-1).getTime()<g.getTime(),"aria-label":"Go to previous year",onClick:R,icon:Is}),!y&&oe(gt,{disabled:a||!f,"aria-label":"Go to previous month",onClick:()=>f&&i(f),icon:ya})]}),oe("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:As(m.displayMonth,"LLLL yyy",{locale:l})}),Kt("div",{className:"flex items-center gap-1",children:[!w&&oe(gt,{disabled:a||!p,"aria-label":"Go to next month",onClick:()=>p&&i(p),icon:wa}),o&&!w&&oe(gt,{disabled:a||!p||N&&$t(x,1).getTime()>N.getTime(),"aria-label":"Go to next year",onClick:O,icon:zs})]})]})},Day:({date:m,displayMonth:i})=>{let p=Vs(null),{activeModifiers:f,buttonProps:x,divProps:h,isButton:b,isHidden:g}=Ws(m,i,p),{selected:N,today:S,disabled:M,range_middle:P}=f;if(g)return oe(Fs,{});if(!b)return oe("div",{...h,className:n("flex items-center justify-center",h.className)});let{children:w,...y}=x;return Kt("button",{ref:p,...y,type:"button",children:[w,S&&oe("span",{className:n("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!N,"!bg-white":N,"!bg-blue-400":N&&P,"text-gray-400":M})})]})}},...d})}import{enUS as Js}from"date-fns/locale";import{useEffect as Er,useMemo as ka,useState as Yt}from"react";import{Command as Sr}from"cmdk";import{Lock as Us}from"lucide-react";import{jsx as We,jsxs as Gs}from"react/jsx-runtime";var Mr=({presets:e,onSelect:t,currentValue:r})=>{let o=d=>"dateRange"in d,a=d=>"date"in d,l=(d,m)=>d.getDate()===m.getDate()&&d.getMonth()===m.getMonth()&&d.getFullYear()===m.getFullYear(),c=(d,m)=>{let i=d.from,p=m.from,f=!1;i&&p&&l(i,p)&&(f=!0);let x=d.to,h=m.to,b=!1;return x&&h&&l(x,h)&&(b=!0),f&&b},s=d=>{if(o(d)){let m=r;return m&&c(m,d.dateRange)}else if(a(d)){let m=r;return m&&l(m,d.date)}return!1};return We(Sr,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:We(Sr.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:e.map((d,m)=>Gs(Sr.Item,{disabled:d.requiresUpgrade,onSelect:()=>t(d),title:d.label,value:d.id,className:n("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-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-gray-100",s(d)&&"font-semibold text-gray-800"),children:[We("span",{children:d.label}),d.requiresUpgrade?We(Us,{className:"h-3.5 w-3.5","aria-hidden":"true"}):d.shortcut?We("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:d.shortcut.toUpperCase()}):null,d.requiresUpgrade&&d.tooltipContent&&We(re,{side:"bottom",content:d.tooltipContent,children:We("div",{className:"absolute inset-0 cursor-not-allowed"})})]},m))})})};Mr.displayName="DatePicker.Presets";import{format as Le}from"date-fns";import{createContext as $s}from"react";var Rr=$s({isOpen:!1,setIsOpen:()=>{}}),Ks=()=>{let e=typeof window<"u"?window.navigator.language:"en-US",t=new Intl.DateTimeFormat(e,{hour:"numeric"}).format();return Number.isInteger(Number(t))},Lr=(e,t,r=!1)=>{let o=!Ks(),a;return r?a=o?Le(e,"d MMM, yyyy h:mm a",{locale:t}):Le(e,"d MMM, yyyy HH:mm",{locale:t}):a=Le(e,"d MMM, yyyy",{locale:t}),a},Na=(e,t)=>{let{toYear:r,fromYear:o,fromMonth:a,toMonth:l,fromDay:c,toDay:s}=t;if(e&&e.length>0){let d=o,m=r;e.forEach(i=>{var p,f,x,h,b,g;if("date"in i){let N=i.date.getFullYear();if(o&&N<o)throw new Error(`Preset ${i.label} is before fromYear ${d}.`);if(r&&N>r)throw new Error(`Preset ${i.label} is after toYear ${m}.`);if(a&&i.date.getMonth()<a.getMonth())throw new Error(`Preset ${i.label} is before fromMonth ${a}.`);if(l&&i.date.getMonth()>l.getMonth())throw new Error(`Preset ${i.label} is after toMonth ${l}.`);if(c&&i.date.getDate()<c.getDate())throw new Error(`Preset ${i.label} is before fromDay ${c}.`);if(s&&i.date.getDate()>s.getDate())throw new Error(`Preset ${i.label} is after toDay ${Le(s,"MMM dd, yyyy")}.`)}if("dateRange"in i){let N=(p=i.dateRange.from)==null?void 0:p.getFullYear(),S=(f=i.dateRange.to)==null?void 0:f.getFullYear();if(N&&o&&N<o)throw new Error(`Preset ${i.label}'s 'from' is before fromYear ${d}.`);if(S&&r&&S>r)throw new Error(`Preset ${i.label}'s 'to' is after toYear ${m}.`);if(a){let M=(x=i.dateRange.from)==null?void 0:x.getMonth();if(M&&M<a.getMonth())throw new Error(`Preset ${i.label}'s 'from' is before fromMonth ${Le(a,"MMM, yyyy")}.`)}if(l){let M=(h=i.dateRange.to)==null?void 0:h.getMonth();if(M&&M>l.getMonth())throw new Error(`Preset ${i.label}'s 'to' is after toMonth ${Le(l,"MMM, yyyy")}.`)}if(c){let M=(b=i.dateRange.from)==null?void 0:b.getDate();if(M&&M<c.getDate())throw new Error(`Preset ${i.dateRange.from}'s 'from' is before fromDay ${Le(c,"MMM dd, yyyy")}.`)}if(s){let M=(g=i.dateRange.to)==null?void 0:g.getDate();if(M&&M>s.getDate())throw new Error(`Preset ${i.label}'s 'to' is after toDay ${Le(s,"MMM dd, yyyy")}.`)}}})}};import{cva as js}from"class-variance-authority";import{Calendar as Ys,ChevronDown as Zs}from"lucide-react";import{forwardRef as qs}from"react";import{jsx as jt,jsxs as Xs}from"react/jsx-runtime";var Qs=js(["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-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),Tr=qs(({className:e,children:t,placeholder:r,hasError:o,...a},l)=>Xs("button",{ref:l,className:n(Qs({hasError:o}),e),...a,children:[jt(Ys,{className:n("h-4 w-4 shrink-0 text-gray-400",!!t&&"text-gray-900")}),jt("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:t||(r?jt("span",{className:"text-gray-400",children:r}):null)}),jt(Zs,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));Tr.displayName="DatePicker.Trigger";import{jsx as he,jsxs as tl}from"react/jsx-runtime";var el=({value:e,defaultValue:t,presetId:r,onChange:o,presets:a,disabled:l,disableNavigation:c,disabledDays:s,showYearNavigation:d=!1,locale:m=Js,placeholder:i="Select date range",hasError:p,align:f="center",className:x,...h})=>{let{isDesktop:b}=Z(),[g,N]=Yt(!1),[S,M]=Yt(a&&r?a==null?void 0:a.find(({id:T})=>T===r):void 0),[P,w]=Yt((S==null?void 0:S.dateRange)??e??t??void 0),[y,R]=Yt(P==null?void 0:P.to),O=ka(()=>P,[g]);Er(()=>{w(e)},[e]),Er(()=>{let T=a==null?void 0:a.find(({id:ue})=>ue===r);M(T),w((T==null?void 0:T.dateRange)??e??t)},[a,r]),Er(()=>{g?P&&R(P.to):R(P==null?void 0:P.to)},[g]);let I=(T,ue)=>{let te=(P==null?void 0:P.from)&&(P==null?void 0:P.to)?{from:ue}:T;w(te),M(void 0),(te==null?void 0:te.from)&&(te==null?void 0:te.to)&&(o==null||o(te),N(!1))},Q=T=>{w(T.dateRange),M(T),o==null||o(T.dateRange,T),N(!1)},C=()=>{w(O),N(!1)},V=T=>{T||C(),N(T)},me=ka(()=>P?`${P.from?Lr(P.from,m):""} - ${P.to?Lr(P.to,m):""}`:null,[P,m]);return et((a==null?void 0:a.filter(T=>T.shortcut).map(T=>T.shortcut))??[],T=>{let ue=a==null?void 0:a.find(te=>te.shortcut===T.key);ue&&Q(ue)}),he(Rr.Provider,{value:{isOpen:g,setIsOpen:N},children:he(ot,{align:f,openPopover:g,setOpenPopover:V,popoverContentClassName:"rounded-xl",content:he("div",{className:"flex w-full",children:tl("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[a&&a.length>0&&he("div",{className:n("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:he("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:he(Mr,{currentValue:P,presets:a,onSelect:Q})})}),he("div",{className:"scrollbar-hide overflow-x-scroll",children:he(Ca,{mode:"range",selected:P,onSelect:I,month:y,onMonthChange:R,numberOfMonths:b?2:1,disabled:s,disableNavigation:c,showYearNavigation:d,locale:m,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...h})})]})}),children:he(Tr,{placeholder:i,disabled:l,className:x,hasError:p,"aria-required":h.required||h["aria-required"],"aria-invalid":h["aria-invalid"],"aria-label":h["aria-label"],"aria-labelledby":h["aria-labelledby"],children:(S==null?void 0:S.label)??me})})})};function ih({presets:e,...t}){return e&&Na(e,t),he(el,{presets:e,...t})}import{jsx as Zt,jsxs as Pa}from"react/jsx-runtime";function mh({icon:e,title:t,description:r,learnMore:o,children:a}){return Pa("div",{className:"flex flex-col items-center justify-center gap-y-4",children:[Zt("div",{className:"flex size-16 items-center justify-center rounded-2xl border border-gray-200 bg-gray-50",children:Zt(e,{className:"size-6 text-gray-800"})}),Zt("p",{className:"text-center text-base font-medium text-gray-950",children:t}),r&&Pa("p",{className:"max-w-sm text-balance text-center text-sm text-gray-500",children:[r," ",o&&Zt("a",{href:o,target:"_blank",className:"underline underline-offset-2 hover:text-gray-800",children:"Learn more \u2197"})]}),a]})}import{cva as rl}from"class-variance-authority";import{useState as Sa}from"react";import{toast as Ma}from"sonner";import{Fragment as al,jsx as ve,jsxs as Dr}from"react/jsx-runtime";var Ar={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)"}},ol=rl("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function wh({readFile:e,onChange:t,variant:r,className:o,iconClassName:a,previewClassName:l,customPreview:c,accept:s="any",imageSrc:d,loading:m=!1,clickToUpload:i=!0,showHoverOverlay:p=!0,content:f,maxFileSizeMB:x=0,targetResolution:h,accessibilityLabel:b="File upload",disabled:g=!1}){let[N,S]=Sa(!1),[M,P]=Sa(null),w=async y=>{let R="dataTransfer"in y?y.dataTransfer.files&&y.dataTransfer.files[0]:y.target.files&&y.target.files[0];if(!R)return;if(P(R.name),x>0&&R.size/1024/1024>x){Ma.error(`File size too big (max ${x} MB)`);return}let O=Ar[s].types;if(O.length&&!O.includes(R.type)){Ma.error(Ar[s].errorMessage??"File type not supported");return}let I=R;if(h&&R.type.startsWith("image/"))try{let Q=await so(R,h),C=await fetch(Q).then(V=>V.blob());I=new File([C],R.name,{type:R.type})}catch(Q){console.error("Error resizing image:",Q)}if(e){let Q=new FileReader;Q.onload=C=>{var V;return t==null?void 0:t({src:(V=C.target)==null?void 0:V.result,file:I})},Q.readAsDataURL(I);return}t==null||t({file:I})};return Dr("label",{className:n(ol({variant:r}),g?"cursor-not-allowed":n(i&&"cursor-pointer"),o),children:[m&&ve("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:ve(mt,{})}),ve("div",{className:"absolute inset-0 z-[5]",onDragOver:y=>{y.preventDefault(),y.stopPropagation(),S(!0)},onDragEnter:y=>{y.preventDefault(),y.stopPropagation(),S(!0)},onDragLeave:y=>{y.preventDefault(),y.stopPropagation(),S(!1)},onDrop:async y=>{y.preventDefault(),y.stopPropagation(),w(y),S(!1)}}),Dr("div",{className:n("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] border-2 border-transparent bg-white transition-all",g&&"bg-gray-50",N&&!g&&"cursor-copy border-black bg-gray-50 opacity-100",d?n("opacity-0",p&&!g&&"group-hover:opacity-100"):n(!g&&"group-hover:bg-gray-50")),children:[ve(Vo,{className:n("size-7 transition-all duration-75",g?"text-gray-400":n("text-gray-500 group-hover:scale-110 group-active:scale-95",N?"scale-110":"scale-100"),a)}),f!==null&&ve("div",{className:n("mt-2 text-center text-sm text-gray-500",g&&"text-gray-400"),children:f??ve(al,{children:Dr("p",{children:["Drag and drop ",i&&"or click"," to upload."]})})}),ve("span",{className:"sr-only",children:b})]}),d&&(c??ve("img",{src:d,alt:"Preview",className:n("h-full w-full rounded-[inherit] object-cover",l)})),i&&ve("div",{className:"sr-only mt-1 flex shadow-sm",children:ve("input",{type:"file",accept:Ar[s].types.join(","),onChange:w,disabled:g},M)})]})}import{AnimatePresence as il,motion as Ra}from"framer-motion";import{X as nl}from"lucide-react";import{isValidElement as sl}from"react";import{Fragment as ll,jsx as ee,jsxs as ht}from"react/jsx-runtime";function Ta({filters:e,activeFilters:t,onRemove:r,onRemoveAll:o,className:a}){return et("Escape",o,{priority:1}),ee(Ce,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:ht("div",{className:n("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",a),children:[ee("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:ee(il,{children:t==null?void 0:t.map(({key:l,value:c})=>{if(l==="loader")return ee(Ra.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${c}`);let s=e.find(d=>d.key===l);return s?(s.multiple&&Array.isArray(c)?c:[c]).map(d=>{var f,x,h;let m=(f=s.options)==null?void 0:f.find(b=>typeof b.value=="string"&&typeof d=="string"?b.value.toLowerCase()===d.toLowerCase():b.value===d),i=(m==null?void 0:m.icon)??((x=s.getOptionIcon)==null?void 0:x.call(s,d,{key:s.key,option:m}))??s.icon,p=(m==null?void 0:m.label)??((h=s.getOptionLabel)==null?void 0:h.call(s,d,{key:s.key,option:m}))??d;return ht(Ra.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[ht("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[ee("span",{className:"shrink-0 text-gray-600",children:La(s.icon)?s.icon:ee(s.icon,{className:"h-4 w-4"})}),s.label]}),ee("div",{className:"px-3 py-2 text-gray-500",children:"is"}),ee("div",{className:"flex items-center gap-2.5 px-3 py-2",children:s.options?ht(ll,{children:[ee("span",{className:"shrink-0 text-gray-600",children:La(i)?i:ee(i,{className:"h-4 w-4"})}),Mt(p,30)]}):ee("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),ee("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>r(l,d),children:ee(nl,{className:"h-3.5 w-3.5"})})]},`${l}-${d}`)}):(console.error("Filter.List received an activeFilter without a corresponding filter"),null)})})}),(t==null?void 0:t.length)!==0&&ht("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-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:o,children:["Clear Filters",ee("kbd",{className:"rounded-md border border-gray-200 px-1.5 py-0.5 text-xs text-gray-950 group-hover:bg-gray-50",children:"ESC"})]})]})})}var La=e=>sl(e);import{Command as Te,useCommandState as cl}from"cmdk";import{ChevronDown as dl,ListFilter as ml}from"lucide-react";import{Fragment as ul,forwardRef as pl,isValidElement as Aa,useCallback as qt,useEffect as Qt,useImperativeHandle as fl,useRef as zr,useState as Ir}from"react";import{Fragment as yl,jsx as H,jsxs as be}from"react/jsx-runtime";function Da({filters:e,onSelect:t,onRemove:r,onOpenFilter:o,onSearchChange:a,onSelectedFilterChange:l,activeFilters:c,askAI:s,children:d,emptyState:m,className:i}){var I,Q;let{isMobile:p}=Z(),f=zr(null),x=zr(),[h,b]=Ir(!1);et("f",()=>b(!0),{enabled:!h});let[g,N]=Ir(""),[S,M]=Ir(null),P=qt(()=>{N(""),M(null)},[]);Qt(()=>{h||P()},[h]);let w=S?e.find(({key:C})=>C===S):null,y=qt(C=>{f.current&&(x.current={width:f.current.clientWidth,height:f.current.clientHeight}),N(""),M(C),o==null||o(C)},[]),R=qt(C=>{if(!w||!c)return!1;let V=c.find(({key:me})=>me===S);return(V==null?void 0:V.value)===C||V&&w.multiple&&Array.isArray(V.value)&&V.value.includes(C)},[w]),O=qt(C=>{w&&(R(C)?r(w.key,C):t(w.key,C),w.multiple||b(!1))},[c,w,s]);return Qt(()=>{a==null||a(g)},[g]),Qt(()=>{l==null||l(S)},[S]),Qt(()=>{(w==null?void 0:w.options)&&f.current&&(x.current={width:f.current.clientWidth,height:f.current.clientHeight})},[w==null?void 0:w.options]),H(ot,{openPopover:h,setOpenPopover:b,onEscapeKeyDown:C=>{S&&(C.preventDefault(),P())},content:H(Ce,{width:!p,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:be(Te,{loop:!0,shouldFilter:!w||w.shouldFilter!==!1,children:[be("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[H(hl,{placeholder:`${(w==null?void 0:w.label)||"Filter"}...`,value:g,onValueChange:N,onKeyDown:C=>{(C.key==="Escape"||C.key==="Backspace"&&!g)&&(C.preventDefault(),C.stopPropagation(),S?P():b(!1))},emptySubmit:C=>{C.preventDefault(),C.stopPropagation(),s?(t("ai",w?`${w.label} ${g}`:g),b(!1)):O(g)}}),!w&&H("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),H(vl,{ref:f,children:be(Te.List,{className:n("flex w-full flex-col gap-1 p-1",w?"min-w-[100px]":"min-w-[180px]"),children:[w?((Q=(I=w.options)==null?void 0:I.filter(C=>!g||!C.hideDuringSearch))==null?void 0:Q.map(C=>{let V=R(C.value);return H(Ea,{filter:w,option:C,right:V?H(Lo,{className:"h-4 w-4"}):C.right,onSelect:()=>O(C.value)},C.value)}))??H(Te.Loading,{children:H("div",{className:"-m-1 flex items-center justify-center",style:x.current,children:H(we,{})})}):e.map(C=>be(ul,{children:[H(Ea,{filter:C,onSelect:()=>y(C.key)}),C.separatorAfter&&H(Te.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},C.key)),(!w||w.options)&&H(bl,{search:g,askAI:s,children:m?gl(m)?(m==null?void 0:m[S??"default"])??"No matches":m:"No matches"})]})},S)]})}),children:be("button",{type:"button",className:n("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-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",i),children:[H(ml,{className:"size-4 shrink-0"}),H("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:d??"Filter"}),c!=null&&c.length?H("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:c.length}):H(dl,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function gl(e){return typeof e=="object"&&e!==null&&!Aa(e)}var hl=e=>{let t=cl(r=>r.filtered.count===0);return H(Te.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-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"})},vl=pl(({children:e},t)=>{let r=zr(null);fl(t,()=>r.current);let{scrollProgress:o,updateScrollProgress:a}=tt(r);return be(yl,{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 Ea({filter:e,option:t,right:r,onSelect:o}){var s,d;let{isMobile:a}=Z(),l=t?t.icon??((s=e.getOptionIcon)==null?void 0:s.call(e,t.value,{key:e.key,option:t}))??e.icon:e.icon,c=t?t.label??((d=e.getOptionLabel)==null?void 0:d.call(e,t.value,{key:e.key,option:t})):e.label;return be(Te.Item,{className:n("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:m=>{m.preventDefault()},onPointerUp:m=>{m.preventDefault(),a?setTimeout(o,100):o()},onSelect:o,value:c+(t==null?void 0:t.value),children:[H("span",{className:"shrink-0 text-gray-600",children:xl(l)?l:H(l,{className:"h-4 w-4"})}),Mt(c,48),H("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:r})]})}var bl=({search:e,askAI:t,children:r})=>t&&e?be(Te.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[H(go,{className:"h-4 w-4"}),be("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",be("span",{className:"text-black",children:['"',e,'"']})]})]}):H(Te.Empty,{className:"p-2 text-center text-sm text-gray-400",children:r}),xl=e=>Aa(e);var $h={Select:Da,List:Ta};import{useMemo as wl,useState as Ia}from"react";import{jsx as Be,jsxs as Xt}from"react/jsx-runtime";function Xh({title:e,description:t,inputAttrs:r,helpText:o,buttonText:a="Save Changes",disabledTooltip:l,handleSubmit:c}){let[s,d]=Ia(r.defaultValue),[m,i]=Ia(!1),p=wl(()=>m||!s||s===r.defaultValue,[m,s,r.defaultValue]);return Xt("form",{onSubmit:async f=>{f.preventDefault(),i(!0),await c({[r.name]:s}),i(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[Xt("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[Xt("div",{className:"flex flex-col space-y-3",children:[Be("h2",{className:"text-xl font-medium",children:e}),Be("p",{className:"text-sm text-gray-500",children:t})]}),typeof r.defaultValue=="string"?Be("input",{...r,type:r.type||"text",required:!0,disabled:!!l,onChange:f=>d(f.target.value),className:n("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":l})}):Be("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),Xt("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof o=="string"?Be("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:o||""}}):o,Be("div",{className:"shrink-0",children:Be(se,{text:a,loading:m,disabled:p,disabledTooltip:l})})]})]})}import{useId as Cl}from"react";import{jsx as Jt,jsxs as Nl}from"react/jsx-runtime";function r2({cellSize:e=12,strokeWidth:t=1,patternOffset:r=[0,0],className:o}){let a=Cl();return Nl("svg",{className:n("pointer-events-none absolute inset-0 text-black/10",o),width:"100%",height:"100%",children:[Jt("defs",{children:Jt("pattern",{id:`grid-${a}`,x:r[0]-1,y:r[1]-1,width:e,height:e,patternUnits:"userSpaceOnUse",children:Jt("path",{d:`M ${e} 0 L 0 0 0 ${e}`,fill:"transparent",stroke:"currentColor",strokeWidth:t})})}),Jt("rect",{fill:`url(#grid-${a})`,width:"100%",height:"100%"})]})}import{AlertCircle as kl}from"lucide-react";import Pl,{useCallback as Sl,useState as Ml}from"react";import{jsx as Fe,jsxs as Or}from"react/jsx-runtime";var Rl=Pl.forwardRef(({className:e,type:t,...r},o)=>{let[a,l]=Ml(!1),c=Sl(()=>l(!a),[a,l]);return Or("div",{children:[Or("div",{className:"relative flex",children:[Fe("input",{type:a?"text":t,className:n("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",e),ref:o,...r}),Or("div",{className:"group",children:[r.error&&Fe("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:Fe(kl,{className:n("size-5 text-white",t==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),t==="password"&&Fe("button",{className:n("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>c(),"aria-label":a?"Hide password":"Show Password",children:a?Fe(_o,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):Fe(Ho,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&Fe("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});Rl.displayName="Input";import{flip as Al,offset as Dl,size as Il,useDismiss as zl,useFloating as Ol,useInteractions as Vl}from"@floating-ui/react";import{Command as ke,useCommandState as _l}from"cmdk";import{Check as Hl,ChevronDown as Wl,Search as Vr,X as Bl}from"lucide-react";import{createContext as Fl,forwardRef as Ul,useContext as Fr,useEffect as _r,useMemo as Gl,useRef as Oa,useState as Hr}from"react";import{Drawer as at}from"vaul";import Ll from"next/image";import{useEffect as Tl,useState as za}from"react";import{jsx as El}from"react/jsx-runtime";function er(e){let[t,r]=za(!0),[o,a]=za(e.src);Tl(()=>a(e.src),[e.src]);let l=c=>{r(!1);let s=c.target;s.naturalWidth<=16&&s.naturalHeight<=16&&a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)};return El(Ll,{...e,src:o,alt:e.alt,className:n(t?"blur-[2px]":"blur-0",e.className),onLoad:l,onError:()=>{a(`https://avatar.vercel.sh/${encodeURIComponent(e.alt)}`)},unoptimized:!0})}import{jsx as L,jsxs as J}from"react/jsx-runtime";var tr=Fl({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function R2({items:e,selectedItem:t,setSelectedItem:r,className:o,disabled:a,adjustForMobile:l,icon:c,inputAttrs:s,noItemsElement:d}){let m=Oa(null),[i,p]=Hr(!1),[f,x]=Hr(""),[h,b]=Hr(!1);_r(()=>{i&&b(!1)},[i]),_r(()=>b(!0),[f]),_r(()=>{t&&x(t.value)},[t]);let g=Gl(()=>{let C=f.toLowerCase();return h?e.filter(V=>V.value.toLowerCase().includes(C)):f?e.sort((V,me)=>(me.value.toLowerCase().includes(C)?1:0)-(V.value.toLowerCase().includes(C)?1:0)):e},[h,f,e]),{refs:N,floatingStyles:S,context:M}=Ol({open:i,onOpenChange:p,middleware:[Dl(8),Il({apply({elements:{floating:C},availableHeight:V}){Object.assign(C.style,{maxHeight:`${Math.max(75,Math.min(V,290))}px`})},padding:8}),Al({fallbackStrategy:"initialPlacement",padding:8})]}),P=zl(M),{getReferenceProps:w,getFloatingProps:y}=Vl([P]),R=Oa(null),{scrollProgress:O,updateScrollProgress:I}=tt(R),{isMobile:Q}=Z();return L(tr.Provider,{value:{inputAttrs:s||{},openCommandList:i,setOpenCommandList:p,inputValue:f,setInputValue:x,disabled:Boolean(a),selectedItem:t,setSelectedItem:r},children:Q&&l?J(at.Root,{open:i,onOpenChange:p,children:[L(at.Trigger,{className:"sm:hidden",asChild:!0,children:L(ke,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:J("div",{className:n("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",o),children:[L("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{}),L(Br,{})]})]})})}),L(at.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),J(at.Portal,{children:[L(at.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",onPointerDownOutside:C=>{C.target instanceof Element&&C.target.closest("[data-sonner-toast]")&&C.preventDefault()},children:J(ke,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:[J("div",{className:n("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",o),children:[L("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{}),L(Br,{})]})]}),i&&J(ke.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[e.length===0&&f===""&&(d?L("div",{children:d}):L("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),f!==""&&L(ke.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),L(Va,{items:g})]})]})}),L(at.Overlay,{})]})]}):J(ke,{ref:m,className:"relative",shouldFilter:!1,loop:!0,children:[J("div",{className:n("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",o),children:[L("div",{onClick:()=>p(C=>!C),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:t&&t.image?L("img",{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full"}):c||L(Vr,{className:"h-4 w-4 text-gray-400"})}),J("div",{className:"flex h-10 px-8",children:[L(Wr,{ref:N.setReference,...w()}),L(Br,{})]})]}),i&&J("div",{ref:N.setFloating,style:S,...y(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[J("div",{ref:R,onScroll:I,className:"grow overflow-y-auto p-2",children:[J(ke.List,{children:[e.length===0&&f===""&&(d?L("div",{children:d}):L("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),f!==""&&L(ke.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),L(Va,{items:g})]}),L("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)}})]})]})})}var Wr=Ul((e,t)=>{let r=_l(m=>m.filtered.count===0),{inputAttrs:o,openCommandList:a,setOpenCommandList:l,inputValue:c,setInputValue:s,disabled:d}=Fr(tr);return L(ke.Input,{ref:t,placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:a,onFocus:()=>l(!0),value:c,onValueChange:s,onKeyDown:m=>{m.key==="Escape"?(m.preventDefault(),l(!1)):m.key==="Enter"&&r?l(!1):m.key.match(/^[a-z0-9]$/i)&&!m.metaKey&&l(!0)},disabled:d,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function Br(){let{setSelectedItem:e,openCommandList:t,setOpenCommandList:r,inputValue:o,setInputValue:a}=Fr(tr);return L("button",{type:"button",onClick:()=>{r(l=>!l),e(null),a("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:o.length>0?L(Bl,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):L(Wl,{className:n("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":t})})})}function Va({items:e}){let{setSelectedItem:t,setOpenCommandList:r,setInputValue:o}=Fr(tr);return e.map(a=>J(ke.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-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[J("div",{className:"flex items-center space-x-2",children:[a.image&&L(er,{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full",width:16,height:16}),L("p",{className:n("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&&L(Ht,{className:"text-xs",variant:"neutral",children:a.label})]}),L(Hl,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},a.id))}import*as Ur from"@radix-ui/react-label";import{cva as $l}from"class-variance-authority";import*as _a from"react";import{jsx as Yl}from"react/jsx-runtime";var Kl=$l("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),jl=_a.forwardRef(({className:e,...t},r)=>Yl(Ur.Root,{ref:r,className:n(Kl(),e),...t}));jl.displayName=Ur.Root.displayName;import{curveNatural as Ha}from"@visx/curve";import{LinearGradient as Wa}from"@visx/gradient";import{Group as Zl}from"@visx/group";import{ParentSize as ql}from"@visx/responsive";import{scaleLinear as Ql,scaleUtc as Xl}from"@visx/scale";import{Area as Jl,AreaClosed as ec}from"@visx/shape";import{motion as Ba}from"framer-motion";import{useId as tc,useMemo as Fa}from"react";import{jsx as xe,jsxs as Gr}from"react/jsx-runtime";function B2(e){return xe(ql,{className:"relative",children:({width:t,height:r})=>t>0&&r>0&&xe(rc,{...{width:t,height:r,...e}})})}var Ee={top:8,right:2,bottom:2,left:2};function rc({width:e,height:t,data:r,curve:o=!0,color:a}){let l=tc(),c=Fa(()=>r.map(({date:m})=>({date:m,value:0})),[r]),{yScale:s,xScale:d}=Fa(()=>{let m=r.map(({value:h})=>h),i=Math.max(...m),p=r.map(({date:h})=>h.getTime()),f=new Date(Math.min(...p)),x=new Date(Math.max(...p));return{yScale:Ql({domain:[-2,Math.max(i,2)],range:[t-Ee.top-Ee.bottom,0],nice:!0,clamp:!0}),xScale:Xl({domain:[f,x],range:[0,e-Ee.left-Ee.right],nice:!0})}},[r,t,e]);return Gr("svg",{width:e,height:t,children:[Gr("defs",{children:[xe(Wa,{id:`${l}-color-gradient`,from:a||"#7D3AEC",to:a||"#DA2778",x1:0,x2:e-Ee.left-Ee.right,gradientUnits:"userSpaceOnUse"}),xe(Wa,{id:`${l}-mask-gradient`,from:"white",to:"white",fromOpacity:.3,toOpacity:0,x1:0,x2:0,y1:0,y2:1}),xe("mask",{id:`${l}-mask`,maskContentUnits:"objectBoundingBox",children:xe("rect",{width:"1",height:"1",fill:`url(#${l}-mask-gradient)`})})]}),Gr(Zl,{left:Ee.left,top:Ee.top,children:[xe(Jl,{data:r,x:({date:m})=>d(m),y:({value:m})=>s(m)??0,curve:o?Ha:void 0,children:({path:m})=>xe(Ba.path,{initial:{d:m(c)||"",opacity:0},animate:{d:m(r)||"",opacity:1},strokeWidth:1.5,stroke:`url(#${l}-color-gradient)`})}),xe(ec,{data:r,x:({date:m})=>d(m),y:({value:m})=>s(m)??0,yScale:s,curve:o?Ha:void 0,children:({path:m})=>xe(Ba.path,{initial:{d:m(c)||"",opacity:0},animate:{d:m(r)||"",opacity:1},fill:`url(#${l}-color-gradient)`,mask:`url(#${l}-mask)`})})]})]},r.length)}import*as le from"@radix-ui/react-dialog";import*as $r from"@radix-ui/react-visually-hidden";import{useRouter as oc}from"next/navigation";import{Drawer as Ue}from"vaul";import{jsx as ae,jsxs as it}from"react/jsx-runtime";function j2({children:e,className:t,showModal:r,setShowModal:o,onClose:a,desktopOnly:l,preventDefaultClose:c,drawerRootProps:s}){let d=oc(),m=({dragged:p}={})=>{c&&!p||(a&&a(),o?o(!1):d.back())},{isMobile:i}=Z();return i&&!l?ae(Ue.Root,{open:o?r:!0,onOpenChange:p=>{p||m({dragged:!0})},...s,children:it(Ue.Portal,{children:[ae(Ue.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),ae(Ue.Content,{onPointerDownOutside:p=>{p.target instanceof Element&&p.target.closest("[data-sonner-toast]")&&p.preventDefault()},className:n("fixed bottom-0 left-0 right-0 z-50 flex flex-col","rounded-t-[10px] border-t border-gray-200 bg-white",t),children:it("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-t-[10px] bg-inherit",children:[it($r.Root,{children:[ae(Ue.Title,{children:"Modal"}),ae(Ue.Description,{children:"This is a modal"})]}),ae(ac,{}),e]})}),ae(Ue.Overlay,{})]})}):ae(le.Root,{open:o?r:!0,onOpenChange:p=>{p||m()},children:it(le.Portal,{children:[ae(le.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),it(le.Content,{onOpenAutoFocus:p=>p.preventDefault(),onCloseAutoFocus:p=>p.preventDefault(),onPointerDownOutside:p=>{p.target instanceof Element&&p.target.closest("[data-sonner-toast]")&&p.preventDefault()},className:n("fixed inset-0 z-40 m-auto h-fit w-full max-w-md","border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl","scrollbar-hide animate-scale-in overflow-y-auto",t),children:[it($r.Root,{children:[ae(le.Title,{children:"Modal"}),ae(le.Description,{children:"This is a modal"})]}),e]})]})})}function ac(){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-gray-300"})})}import{Fragment as ic,jsx as rr,jsxs as nt}from"react/jsx-runtime";var Ua=n("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-gray-200 bg-white px-2 text-sm text-gray-600","outline-none hover:bg-gray-50 focus-visible:border-gray-500","disabled:cursor-not-allowed disabled:border-gray-200 disabled:text-gray-400 disabled:bg-gray-100");function q2({pagination:e,setPagination:t,totalCount:r,unit:o=c=>`item${c?"s":""}`,className:a,children:l}){return nt("div",{className:n("flex items-center justify-between gap-2 text-sm leading-6 text-gray-600",a),children:[nt("div",{className:"flex items-center gap-2",children:[nt("div",{children:[rr("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",r>0&&nt(ic,{children:[nt("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,r)]})," ","of"," "]}),rr("span",{className:"font-medium",children:Pt(r,{full:!0})})," ",typeof o=="function"?o(r!==1):o]}),l]}),nt("div",{className:"flex items-center gap-2",children:[rr("button",{type:"button",className:Ua,onClick:()=>t({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),rr("button",{type:"button",className:Ua,onClick:()=>t({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=r,children:"Next"})]})]})}import*as Ae from"@radix-ui/react-radio-group";import{Circle as nc}from"lucide-react";import*as Kr from"react";import{jsx as or}from"react/jsx-runtime";var sc=Kr.forwardRef(({className:e,...t},r)=>or(Ae.Root,{className:n("grid gap-2",e),...t,ref:r}));sc.displayName=Ae.Root.displayName;var lc=Kr.forwardRef(({className:e,...t},r)=>or(Ae.Item,{ref:r,className:n("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:or(Ae.Indicator,{className:"flex items-center justify-center",children:or(nc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));lc.displayName=Ae.Item.displayName;import{Drawer as De}from"vaul";import{jsx as Ge,jsxs as pc}from"react/jsx-runtime";function cc({children:e,contentProps:t,nested:r=!1,...o}){let a=r?De.NestedRoot:De.Root;return Ge(a,{direction:"right",handleOnly:!0,...o,children:pc(De.Portal,{children:[Ge(De.Overlay,{className:"fixed inset-0 bg-black/20"}),Ge(De.Content,{...t,onPointerDownOutside:l=>{var c;l.target instanceof Element&&l.target.closest("[data-sonner-toast]")&&l.preventDefault(),(c=t==null?void 0:t.onPointerDownOutside)==null||c.call(t,l)},className:n("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:Ge("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:e})})]})})}function dc({className:e,...t}){return Ge(De.Title,{className:n("text-xl font-medium text-zinc-900",e),...t})}function mc(e){return Ge(De.Description,{...e})}function uc(e){return Ge(De.Close,{...e})}var av=Object.assign(cc,{Title:dc,Description:mc,Close:uc});import{useEffect as fc,useRef as gc,useState as hc}from"react";import{jsx as Ga}from"react/jsx-runtime";var vc=`
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
- `,fc=`
9
+ `,bc=`
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
- `,gc=60,hc=1e3/gc;function q2({dotSize:e=1,cellSize:t=3,speed:r=5,className:o}){let a=mc(null),[l,c]=uc(!1);return dc(()=>{let s=a.current;if(!s||!s.parentElement)return;let d=s.parentElement,m=window.devicePixelRatio||1;s.width=d.clientWidth*m,s.height=d.clientHeight*m;let i=s.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(i===null){alert("Failed to initialize WebGL");return}let p=i.createProgram();if(!p){console.error("Failed to create shader program");return}for(let R=0;R<2;++R){let O=R===0?pc:fc,I=i.createShader(R===0?i.VERTEX_SHADER:i.FRAGMENT_SHADER);if(!I){console.error("Failed to create shader");return}i.shaderSource(I,O),i.compileShader(I),i.getShaderParameter(I,i.COMPILE_STATUS)||console.error(i.getShaderInfoLog(I)),i.attachShader(p,I),i.linkProgram(p)}i.getProgramParameter(p,i.LINK_STATUS)||console.error(i.getProgramInfoLog(p));let f=i.getAttribLocation(p,"position"),x=i.getUniformLocation(p,"time"),y=i.getUniformLocation(p,"resolution"),v=i.getUniformLocation(p,"dotSize"),g=i.getUniformLocation(p,"cellSize"),N=i.getUniformLocation(p,"speed");i.useProgram(p);let S=[1,1,-1,1,1,-1,-1,-1],M=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,M),i.bufferData(i.ARRAY_BUFFER,new Float32Array(S),i.STATIC_DRAW),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,2,i.FLOAT,!1,0,0),i.uniform1f(v,e*window.devicePixelRatio),i.uniform1f(g,t*window.devicePixelRatio),i.uniform1f(N,r);let P,w=0;function b(R){if(R-w<hc){P=requestAnimationFrame(b);return}w=R,i&&s&&p&&(i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.uniform1f(x,R/1e3),i.uniform2f(y,s.width,s.height),i.drawArrays(i.TRIANGLE_STRIP,0,4)),P=requestAnimationFrame(b)}return P=requestAnimationFrame(b),s.addEventListener("webglcontextlost",R=>{R.preventDefault(),c(!0),cancelAnimationFrame(P)}),()=>{cancelAnimationFrame(P),s.removeEventListener("webglcontextlost",()=>{})}},[e,t,r]),Ua("div",{className:n("absolute inset-0",o,l&&"opacity-0"),children:Ua("canvas",{ref:a,width:"100%",height:"100%",className:"size-full"})})}import{cva as vc}from"class-variance-authority";import{jsx as yc,jsxs as wc}from"react/jsx-runtime";var bc=vc("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-gray-500/[.15] text-gray-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"}}),xc={neutral:zo,new:Do,success:Ao,pending:Io,warning:br,error:br};function rv({className:e,variant:t,icon:r,onClick:o,children:a,...l}){let c=r!==null?r??xc[t??"neutral"]:null;return wc("span",{className:n(bc({variant:t}),o&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",e),onClick:o,...l,children:[c&&yc(c,{className:"h-3 w-3 shrink-0"}),a]})}import*as ir from"@radix-ui/react-switch";import{useMemo as Cc}from"react";import{jsx as ar}from"react/jsx-runtime";function dv({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:l,checked:c=!0,loading:s=!1,disabled:d=!1,disabledTooltip:m}){let i=Cc(()=>m?!0:d||s,[m,d,s]),p=ar(ir.Root,{checked:s?!1:c,name:"switch",id:t,...e&&{onCheckedChange:e},disabled:i,className:n("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-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:ar(ir.Thumb,{className:n(`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:l})});return m?ar(re,{content:m,children:ar("div",{children:p})}):p}import{flexRender as Ga,getCoreRowModel as Nc,useReactTable as kc}from"@tanstack/react-table";import{AnimatePresence as Pc,motion as Sc}from"framer-motion";import{useEffect as $a,useState as Mc}from"react";import{jsx as j,jsxs as ke}from"react/jsx-runtime";var Ka=(e,t)=>n(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",e==="menu"&&"bg-white border-l-transparent py-0 px-1",t&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function Av(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:l,pagination:c,onPaginationChange:s}=e,[d,m]=Mc(e.columnVisibility??{});$a(()=>{e.columnVisibility&&!co(e.columnVisibility,d)&&m(e.columnVisibility??{})},[e.columnVisibility]),$a(()=>{var p;(p=e.onColumnVisibilityChange)==null||p.call(e,d)},[d]);let i=kc({data:t,rowCount:r,columns:o,defaultColumn:{minSize:120,size:0,maxSize:300,...a},getCoreRowModel:Nc(),onPaginationChange:s,onColumnVisibilityChange:p=>m(p),state:{pagination:c,columnVisibility:d,columnPinning:{left:[],right:[],...l}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...e,columnVisibility:d,table:i}}function Dv({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:l,sortBy:c,sortOrder:s,onSortChange:d,sortableColumns:m=[],className:i,containerClassName:p,scrollWrapperClassName:f,thClassName:x,tdClassName:y,table:v,pagination:g,resourceName:N,onRowClick:S,rowCount:M,children:P}){return ke("div",{className:n("relative rounded-xl border border-gray-200 bg-white",p),children:[!o&&!!(t!=null&&t.length)||r?ke("div",{className:n("relative min-h-[400px] overflow-x-auto rounded-[inherit]",f),children:[ke("table",{className:n(["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"],i),children:[j("thead",{children:v.getHeaderGroups().map(w=>j("tr",{children:w.headers.map(b=>{let R=m.includes(b.column.id),O=R?"button":"div";return j("th",{className:n(Ka(b.id),"select-none font-medium",ja(b.column,!v.getRowModel().rows.length),typeof x=="function"?x(b.column.id):x),style:{minWidth:b.column.columnDef.minSize,maxWidth:b.column.columnDef.maxSize,width:b.column.columnDef.size||"auto",...Ya(b.column)},children:j("div",{className:"flex items-center justify-between gap-6 !pr-0",children:ke(O,{className:"flex items-center gap-2",...R&&{type:"button",disabled:!R,"aria-label":"Sort by column",onClick:()=>d==null?void 0:d({sortBy:b.column.id,sortOrder:c!==b.column.id||s==="asc"?"desc":"asc"})},children:[j("span",{children:b.isPlaceholder?null:Ga(b.column.columnDef.header,b.getContext())}),R&&j(ho,{order:c===b.column.id?s||"desc":null})]})})},b.id)})},w.id))}),j("tbody",{children:v.getRowModel().rows.map(w=>j("tr",{className:n("group/row",S&&"cursor-pointer select-none",v.getRowModel().rows.length>8&&w.index===v.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:S?b=>{Rt(b)||S(w,b)}:void 0,children:w.getVisibleCells().map(b=>j("td",{className:n(Ka(b.column.id,!!S),"group text-gray-600",ja(b.column,w.index===v.getRowModel().rows.length-1),typeof y=="function"?y(b.column.id):y),style:{minWidth:b.column.columnDef.minSize,maxWidth:b.column.columnDef.maxSize,width:b.column.columnDef.size||"auto",...Ya(b.column)},children:ke("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[j("div",{className:"min-w-0 shrink grow truncate",children:Ga(b.column.columnDef.cell,b.getContext())}),l==null?void 0:l(b)]})},b.id))},w.id))})]}),P]}):j("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:o||a||`No ${(N==null?void 0:N(!0))||"items"} found.`}),g&&!o&&!!(t!=null&&t.length)&&!!M&&ke("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[ke("div",{children:[j("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",ke("span",{className:"font-medium",children:[(g.pageIndex-1)*g.pageSize+1,"-",Math.min((g.pageIndex-1)*g.pageSize+g.pageSize,v.getRowCount())]})," ","of"," ",j("span",{className:"font-medium",children:v.getRowCount().toLocaleString()})," ",(N==null?void 0:N(v.getRowCount()!==1))||"items"]}),ke("div",{className:"flex items-center gap-2",children:[j(se,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>v.previousPage(),disabled:g.pageIndex===1}),j(se,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>v.nextPage(),disabled:g.pageIndex===v.getPageCount()})]})]}),j(Pc,{children:r&&j(Sc.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:j(ye,{})})})]})}var ja=(e,t)=>{let r=e.getIsPinned();return n(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},Ya=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 Rc,motion as Za}from"framer-motion";import{useId as Lc}from"react";import{jsx as nr,jsxs as Tc}from"react/jsx-runtime";function _v({options:e,selected:t,selectAction:r,className:o,optionClassName:a,indicatorClassName:l,style:c}){let s=Lc();return nr(Rc,{id:s,children:nr(Za.div,{layout:!0,className:n("relative inline-flex items-center gap-1 rounded-xl border border-gray-200 bg-white p-1",o),style:c,children:e.map(d=>Tc("button",{type:"button",className:n("relative z-10 flex items-center gap-2 px-3 py-1 text-sm font-medium capitalize",{"z-[11] transition-colors hover:text-gray-500":d.value!==t},a),onClick:()=>r(d.value),children:[typeof d.label=="string"?nr("p",{children:d.label}):d.label,d.badge,d.value===t&&nr(Za.div,{layoutId:s,className:n("absolute left-0 top-0 -z-[1] h-full w-full rounded-lg border border-gray-200 bg-gray-50",l),transition:{duration:.25}})]},d.value))})})}import{useEffect as Ec,useId as Ac,useRef as Dc,useState as Ic}from"react";import{jsx as ce,jsxs as jr}from"react/jsx-runtime";var zc=[{key:"utm_source",icon:Fo,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:Xo,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:Wo,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:Yo,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:qo,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:Bo,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function Kv({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:l}){let{isMobile:c}=Z(),s=Ac(),[d,m]=Ic(!1),i=Dc(null);return Ec(()=>{i.current&&!c&&o&&setTimeout(()=>{var p;return(p=i.current)==null?void 0:p.focus()},10)},[]),ce("div",{className:n("grid gap-y-3",l),children:zc.map(({key:p,icon:f,label:x,placeholder:y,description:v},g)=>ce("div",{className:"group relative",children:jr("div",{className:"relative z-10 flex",children:[ce(re,{content:jr("div",{className:"p-3 text-center text-xs",children:[ce("p",{className:"text-gray-600",children:v}),ce("span",{className:"font-mono text-gray-400",children:p})]}),sideOffset:4,disableHoverableContent:!0,children:jr("div",{className:n("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",d?"sm:min-w-36":"sm:min-w-28"),onClick:()=>m(N=>!N),children:[ce(f,{className:"size-4 shrink-0"}),ce("label",{htmlFor:`${s}-${p}`,className:"select-none text-sm",children:d?ce("span",{className:"font-mono text-xs",children:p}):x})]})}),ce("div",{className:"min-w-0 grow",children:ce(Oc,{disabledTooltip:a,children:ce("input",{type:"text",id:`${s}-${p}`,ref:g===0?i:void 0,placeholder:y,disabled:r||Boolean(a),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:e[p]||"",onChange:N=>t(p,N.target.value)})})})]})},p))})}function Oc({children:e,disabledTooltip:t}){return t?ce(re,{content:t,disableHoverableContent:!0,children:e}):e}import{jsx as Yr,jsxs as Vc}from"react/jsx-runtime";function Yv(){return Vc("div",{style:sr.backgroundMain,children:[Yr("div",{style:sr.backgroundMainBefore}),Yr("div",{style:sr.backgroundMainAfter}),Yr("div",{style:sr.backgroundContent})]})}var sr={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
+ `,xc=60,yc=1e3/xc;function lv({dotSize:e=1,cellSize:t=3,speed:r=5,className:o}){let a=gc(null),[l,c]=hc(!1);return fc(()=>{let s=a.current;if(!s||!s.parentElement)return;let d=s.parentElement,m=window.devicePixelRatio||1;s.width=d.clientWidth*m,s.height=d.clientHeight*m;let i=s.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(i===null){alert("Failed to initialize WebGL");return}let p=i.createProgram();if(!p){console.error("Failed to create shader program");return}for(let R=0;R<2;++R){let O=R===0?vc:bc,I=i.createShader(R===0?i.VERTEX_SHADER:i.FRAGMENT_SHADER);if(!I){console.error("Failed to create shader");return}i.shaderSource(I,O),i.compileShader(I),i.getShaderParameter(I,i.COMPILE_STATUS)||console.error(i.getShaderInfoLog(I)),i.attachShader(p,I),i.linkProgram(p)}i.getProgramParameter(p,i.LINK_STATUS)||console.error(i.getProgramInfoLog(p));let f=i.getAttribLocation(p,"position"),x=i.getUniformLocation(p,"time"),h=i.getUniformLocation(p,"resolution"),b=i.getUniformLocation(p,"dotSize"),g=i.getUniformLocation(p,"cellSize"),N=i.getUniformLocation(p,"speed");i.useProgram(p);let S=[1,1,-1,1,1,-1,-1,-1],M=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,M),i.bufferData(i.ARRAY_BUFFER,new Float32Array(S),i.STATIC_DRAW),i.enableVertexAttribArray(f),i.vertexAttribPointer(f,2,i.FLOAT,!1,0,0),i.uniform1f(b,e*window.devicePixelRatio),i.uniform1f(g,t*window.devicePixelRatio),i.uniform1f(N,r);let P,w=0;function y(R){if(R-w<yc){P=requestAnimationFrame(y);return}w=R,i&&s&&p&&(i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),i.uniform1f(x,R/1e3),i.uniform2f(h,s.width,s.height),i.drawArrays(i.TRIANGLE_STRIP,0,4)),P=requestAnimationFrame(y)}return P=requestAnimationFrame(y),s.addEventListener("webglcontextlost",R=>{R.preventDefault(),c(!0),cancelAnimationFrame(P)}),()=>{cancelAnimationFrame(P),s.removeEventListener("webglcontextlost",()=>{})}},[e,t,r]),Ga("div",{className:n("absolute inset-0",o,l&&"opacity-0"),children:Ga("canvas",{ref:a,width:"100%",height:"100%",className:"size-full"})})}import{cva as wc}from"class-variance-authority";import{jsx as kc,jsxs as Pc}from"react/jsx-runtime";var Cc=wc("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-gray-500/[.15] text-gray-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"}}),Nc={neutral:Oo,new:Io,success:Do,pending:zo,warning:br,error:br};function fv({className:e,variant:t,icon:r,onClick:o,children:a,...l}){let c=r!==null?r??Nc[t??"neutral"]:null;return Pc("span",{className:n(Cc({variant:t}),o&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",e),onClick:o,...l,children:[c&&kc(c,{className:"h-3 w-3 shrink-0"}),a]})}import*as ir from"@radix-ui/react-switch";import{useMemo as Sc}from"react";import{jsx as ar}from"react/jsx-runtime";function Cv({fn:e,id:t,trackDimensions:r,thumbDimensions:o,thumbTranslate:a,thumbIcon:l,checked:c=!0,loading:s=!1,disabled:d=!1,disabledTooltip:m}){let i=Sc(()=>m?!0:d||s,[m,d,s]),p=ar(ir.Root,{checked:s?!1:c,name:"switch",id:t,...e&&{onCheckedChange:e},disabled:i,className:n("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-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:ar(ir.Thumb,{className:n(`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:l})});return m?ar(re,{content:m,children:ar("div",{children:p})}):p}import{flexRender as $a,getCoreRowModel as Mc,useReactTable as Rc}from"@tanstack/react-table";import{AnimatePresence as Lc,motion as Tc}from"framer-motion";import{useEffect as jr,useState as Ka}from"react";import{jsx as Y,jsxs as Pe}from"react/jsx-runtime";var ja=(e,t)=>n(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",e==="menu"&&"bg-white border-l-transparent py-0 px-1",t&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function $v(e){let{data:t,rowCount:r,columns:o,defaultColumn:a,columnPinning:l,pagination:c,onPaginationChange:s,getRowId:d}=e,[m,i]=Ka(e.columnVisibility??{}),[p,f]=Ka(e.selectedRows??{});jr(()=>{var h;(h=e.onRowSelectionChange)==null||h.call(e,x.getSelectedRowModel().rows)},[p]),jr(()=>{e.columnVisibility&&!mo(e.columnVisibility,m)&&i(e.columnVisibility??{})},[e.columnVisibility]),jr(()=>{var h;(h=e.onColumnVisibilityChange)==null||h.call(e,m)},[m]);let x=Rc({data:t,rowCount:r,columns:o,defaultColumn:{minSize:120,size:0,maxSize:300,...a},getCoreRowModel:Mc(),onPaginationChange:s,onColumnVisibilityChange:h=>i(h),onRowSelectionChange:f,state:{pagination:c,columnVisibility:m,columnPinning:{left:[],right:[],...l},rowSelection:p},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0,getRowId:d});return{...e,columnVisibility:m,table:x}}function Kv({columns:e,data:t,loading:r,error:o,emptyState:a,cellRight:l,sortBy:c,sortOrder:s,onSortChange:d,sortableColumns:m=[],className:i,containerClassName:p,scrollWrapperClassName:f,thClassName:x,tdClassName:h,table:b,pagination:g,resourceName:N,onRowClick:S,rowCount:M,children:P}){return Pe("div",{className:n("relative rounded-xl border border-gray-200 bg-white",p),children:[!o&&!!(t!=null&&t.length)||r?Pe("div",{className:n("relative min-h-[400px] overflow-x-auto rounded-[inherit]",f),children:[Pe("table",{className:n(["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"],i),children:[Y("thead",{children:b.getHeaderGroups().map(w=>Y("tr",{children:w.headers.map(y=>{let R=m.includes(y.column.id),O=R?"button":"div";return Y("th",{className:n(ja(y.id),"select-none font-medium",Ya(y.column,!b.getRowModel().rows.length),typeof x=="function"?x(y.column.id):x),style:{minWidth:y.column.columnDef.minSize,maxWidth:y.column.columnDef.maxSize,width:y.column.columnDef.size||"auto",...Za(y.column)},children:Y("div",{className:"flex items-center justify-between gap-6 !pr-0",children:Pe(O,{className:"flex items-center gap-2",...R&&{type:"button",disabled:!R,"aria-label":"Sort by column",onClick:()=>d==null?void 0:d({sortBy:y.column.id,sortOrder:c!==y.column.id||s==="asc"?"desc":"asc"})},children:[Y("span",{children:y.isPlaceholder?null:$a(y.column.columnDef.header,y.getContext())}),R&&Y(vo,{order:c===y.column.id?s||"desc":null})]})})},y.id)})},w.id))}),Y("tbody",{children:b.getRowModel().rows.map(w=>Y("tr",{className:n("group/row",S&&"cursor-pointer select-none",b.getRowModel().rows.length>8&&w.index===b.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:S?y=>{Rt(y)||S(w,y)}:void 0,children:w.getVisibleCells().map(y=>Y("td",{className:n(ja(y.column.id,!!S),"group text-gray-600",Ya(y.column,w.index===b.getRowModel().rows.length-1),typeof h=="function"?h(y.column.id):h),style:{minWidth:y.column.columnDef.minSize,maxWidth:y.column.columnDef.maxSize,width:y.column.columnDef.size||"auto",...Za(y.column)},children:Pe("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[Y("div",{className:"min-w-0 shrink grow truncate",children:$a(y.column.columnDef.cell,y.getContext())}),l==null?void 0:l(y)]})},y.id))},w.id))})]}),P]}):Y("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:o||a||`No ${(N==null?void 0:N(!0))||"items"} found.`}),g&&!o&&!!(t!=null&&t.length)&&!!M&&Pe("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[Pe("div",{children:[Y("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,b.getRowCount())]})," ","of"," ",Y("span",{className:"font-medium",children:b.getRowCount().toLocaleString()})," ",(N==null?void 0:N(b.getRowCount()!==1))||"items"]}),Pe("div",{className:"flex items-center gap-2",children:[Y(se,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>b.previousPage(),disabled:g.pageIndex===1}),Y(se,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>b.nextPage(),disabled:g.pageIndex===b.getPageCount()})]})]}),Y(Lc,{children:r&&Y(Tc.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:Y(we,{})})})]})}var Ya=(e,t)=>{let r=e.getIsPinned();return n(r&&!t&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},Za=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 Ec,motion as qa}from"framer-motion";import{useId as Ac}from"react";import{jsx as nr,jsxs as Dc}from"react/jsx-runtime";function Qv({options:e,selected:t,selectAction:r,className:o,optionClassName:a,indicatorClassName:l,style:c}){let s=Ac();return nr(Ec,{id:s,children:nr(qa.div,{layout:!0,className:n("relative inline-flex items-center gap-1 rounded-xl border border-gray-200 bg-white p-1",o),style:c,children:e.map(d=>Dc("button",{type:"button",className:n("relative z-10 flex items-center gap-2 px-3 py-1 text-sm font-medium capitalize",{"z-[11] transition-colors hover:text-gray-500":d.value!==t},a),onClick:()=>r(d.value),children:[typeof d.label=="string"?nr("p",{children:d.label}):d.label,d.badge,d.value===t&&nr(qa.div,{layoutId:s,className:n("absolute left-0 top-0 -z-[1] h-full w-full rounded-lg border border-gray-200 bg-gray-50",l),transition:{duration:.25}})]},d.value))})})}import{useEffect as Ic,useId as zc,useRef as Oc,useState as Vc}from"react";import{jsx as ce,jsxs as Yr}from"react/jsx-runtime";var _c=[{key:"utm_source",icon:Uo,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:Jo,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:Bo,label:"Campaign",placeholder:"summer sale",description:"The name of the campaign"},{key:"utm_term",icon:Zo,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:Qo,label:"Content",placeholder:"logo link",description:"The content of the campaign"},{key:"ref",icon:Fo,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function i4({values:e,onChange:t,disabled:r,autoFocus:o,disabledTooltip:a,className:l}){let{isMobile:c}=Z(),s=zc(),[d,m]=Vc(!1),i=Oc(null);return Ic(()=>{i.current&&!c&&o&&setTimeout(()=>{var p;return(p=i.current)==null?void 0:p.focus()},10)},[]),ce("div",{className:n("grid gap-y-3",l),children:_c.map(({key:p,icon:f,label:x,placeholder:h,description:b},g)=>ce("div",{className:"group relative",children:Yr("div",{className:"relative z-10 flex",children:[ce(re,{content:Yr("div",{className:"p-3 text-center text-xs",children:[ce("p",{className:"text-gray-600",children:b}),ce("span",{className:"font-mono text-gray-400",children:p})]}),sideOffset:4,disableHoverableContent:!0,children:Yr("div",{className:n("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",d?"sm:min-w-36":"sm:min-w-28"),onClick:()=>m(N=>!N),children:[ce(f,{className:"size-4 shrink-0"}),ce("label",{htmlFor:`${s}-${p}`,className:"select-none text-sm",children:d?ce("span",{className:"font-mono text-xs",children:p}):x})]})}),ce("div",{className:"min-w-0 grow",children:ce(Hc,{disabledTooltip:a,children:ce("input",{type:"text",id:`${s}-${p}`,ref:g===0?i:void 0,placeholder:h,disabled:r||Boolean(a),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:e[p]||"",onChange:N=>t(p,N.target.value)})})})]})},p))})}function Hc({children:e,disabledTooltip:t}){return t?ce(re,{content:t,disableHoverableContent:!0,children:e}):e}import{jsx as Zr,jsxs as Wc}from"react/jsx-runtime";function s4(){return Wc("div",{style:sr.backgroundMain,children:[Zr("div",{style:sr.backgroundMainBefore}),Zr("div",{style:sr.backgroundMainAfter}),Zr("div",{style:sr.backgroundContent})]})}var sr={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 xd from"next/image";import Ve from"next/link";import{useParams as yd}from"next/navigation";import{useEffect as wd,useState as yi}from"react";import Cd from"swr";import{jsx as qa}from"react/jsx-runtime";function Qa(e){return qa("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:qa("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"})})}import{jsx as Xa}from"react/jsx-runtime";function vt({className:e}){return Xa("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-10 w-10 text-black dark:text-white",e),children:Xa("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"})})}var lr=[{title:"Dub Links",description:"Short links with superpowers",icon:jo,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:Zo,href:"/analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:It,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Dt,href:"/docs/integrations"}],Ja=[{icon:yo,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:xo,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:Qa,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],ei=[{icon:Po,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:No,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:wo,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:ko,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:Co,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],ti=[{icon:So,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:Go,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:Ko,title:"Dub Brand",description:"Logos, wordmark, etc.",href:"/brand"}],cr=[{icon:vt,title:"About",description:"Company and team",href:"/about"},{icon:Ho,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:Mo,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:$o,title:"Customers",description:"Success stories and use cases",href:"/customers"}],dr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],ri=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}],oi=[{name:"X (Twitter)",icon:Et,href:"https://x.com/dubdotco"},{name:"LinkedIn",icon:Tt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:Lt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:At,href:"https://www.youtube.com/@dubdotco"}];import{jsx as _c}from"react/jsx-runtime";function mr({className:e,children:t}){return _c("div",{className:n("mx-auto w-full max-w-screen-xl px-3 lg:px-10",e),children:t})}import*as Oe from"@radix-ui/react-popover";import{BoxSelect as ld,Home as cd,LayoutGrid as dd,Type as md}from"lucide-react";import{useParams as ud}from"next/navigation";import{useCallback as pd,useContext as fd,useState as gd}from"react";import{toast as hd}from"sonner";import*as de from"@radix-ui/react-navigation-menu";import{LayoutGroup as $c}from"framer-motion";import Kc from"js-cookie";import bt from"next/link";import{useParams as jc,usePathname as Yc}from"next/navigation";import{createContext as Zc,useId as qc}from"react";import Qc from"swr";import ai from"next/link";import{jsx as De,jsxs as ur}from"react/jsx-runtime";var $e="text-xs uppercase text-neutral-500 dark:text-white/60",Hc="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",ie=({domain:e,...t})=>({utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,...t});function Ie({icon:e,title:t,description:r,descriptionLines:o=1,className:a,showArrow:l,...c}){return De(ai,{className:n(Hc,a),...c,children:ur("div",{className:"flex items-center justify-between gap-3",children:[e,ur("div",{className:"flex-1",children:[De("p",{className:"text-sm font-medium text-neutral-700 dark:text-white",children:t}),r&&De("p",{className:n("text-xs text-neutral-500 dark:text-white/60",["line-clamp-1","line-clamp-2"][o-1]),children:r})]}),l&&De(po,{className:"invisible -ml-6 h-4 w-4 text-neutral-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})}function pr({icon:e,title:t,description:r,iconClassName:o,...a}){return De(ai,{...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:ur("div",{className:"flex items-center justify-between px-5 py-4",children:[ur("div",{children:[De("span",{className:"text-sm font-medium leading-none text-neutral-900 dark:text-white",children:t}),De("p",{className:"mt-1 text-sm text-neutral-500 dark:text-white/60",children:r})]}),De(e,{className:n("size-6 text-neutral-700 dark:text-neutral-200",o)})]})})}import{jsx as Ke,jsxs as ii}from"react/jsx-runtime";function ni({domain:e}){return ii("div",{className:"grid w-[540px] grid-cols-[minmax(0,1fr),minmax(0,0.75fr)] divide-x divide-neutral-200",children:[Ke("div",{className:"flex flex-col gap-4 p-4",children:cr.map(({title:t,description:r,icon:o,href:a})=>Ke(pr,{title:t,description:r,icon:o,iconClassName:"size-5",href:z(a,e,ie({domain:e,utm_content:t}))},t))}),ii("div",{className:"px-6 py-4",children:[Ke("p",{className:n($e,"mb-2"),children:"Social"}),Ke("div",{className:"grid grid-cols-1",children:oi.map(({icon:t,name:r,href:o})=>Ke(Ie,{href:o,target:"_blank",className:"-mx-2",icon:Ke("div",{className:"shrink-0 rounded-lg border border-neutral-200 bg-white/50 p-1.5 dark:border-white/20 dark:bg-white/10",children:Ke(t,{className:"size-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60"})}),title:r},o))})]})]})}import ci from"next/link";import{jsx as k,jsxs as Zr}from"react/jsx-runtime";function si(e){return Zr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...e,className:n("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",e.className),children:[Zr("g",{className:"text-[var(--grid)]",children:[k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),k("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),k("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),k("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"232.909",children:"402"})}),k("g",{filter:"url(#a)",children:k("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),k("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),k("defs",{children:Zr("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[k("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),k("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k("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"}),k("feOffset",{dy:"2"}),k("feGaussianBlur",{stdDeviation:"1"}),k("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),k("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),k("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}import{useId as Wc}from"react";import{jsx as u,jsxs as W}from"react/jsx-runtime";function li(e){let t=Wc();return W("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...e,className:n("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",e.className),children:[W("g",{clipPath:`url(#${t}-a)`,children:[u("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"}),u("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),u("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),u("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),u("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),u("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),u("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),u("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),u("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),u("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),u("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),u("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),u("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),u("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),u("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),W("g",{children:[u("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"}),u("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"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),u("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:u("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),u("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:u("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),u("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),W("g",{children:[u("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),u("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),u("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),u("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:u("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),u("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),u("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),u("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:u("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),u("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"}),u("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"}),u("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:u("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"})}),u("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:u("tspan",{x:"251",y:"171.636",children:"51K"})})]}),W("defs",{children:[W("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EAB308",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#EAB308"})]}),W("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EAB308",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#EAB308"})]}),W("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#030712",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),W("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[u("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),u("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),u("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),W("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[u("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),u("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),u("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),u("clipPath",{id:`${t}-a`,children:u("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),u("clipPath",{id:`${t}-y`,children:u("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),u("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:u("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),u("image",{href:`${St}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}import{jsx as $,jsxs as Pe}from"react/jsx-runtime";var Bc=[{title:"Dub API",description:"Programmatic link creation at scale",icon:It,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Dt,href:"/docs/integrations"}];function di({domain:e}){return Pe("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-gray-200",children:[Pe("div",{className:"grid grid-cols-2 gap-4 p-4",children:[Pe(ci,{href:z("/home",e,ie({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:[Pe("div",{className:"p-5 pb-0",children:[$("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),$("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"})]}),$("div",{className:"relative grow overflow-hidden",children:$(li,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),$("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]"})]}),Pe("div",{className:"flex flex-col gap-4",children:[Pe(ci,{href:z("/analytics",e,ie({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:[$(si,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),$("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]"}),Pe("div",{className:"h-56 p-5",children:[$("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),$("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]}),$("div",{className:"grid grow grid-rows-2 gap-4",children:Bc.map(({title:t,description:r,icon:o,href:a})=>$(pr,{title:t,description:r,icon:o,href:z(a,e,ie({domain:e,utm_content:t}))},t))})]})]}),Pe("div",{className:"px-6 py-4",children:[$("p",{className:n($e,"mb-2"),children:"Customer Stories"}),Pe("div",{className:"grid grid-cols-1",children:[Ja.map(({icon:t,iconClassName:r,title:o,description:a,href:l})=>$(Ie,{className:"-mx-2",href:z(l,e,ie({domain:e,utm_content:o})),icon:$("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:$(t,{className:n("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},l)),$(Ie,{className:"-mx-2",href:z("/customers",e,ie({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),$("p",{className:n($e,"mb-2 mt-5"),children:"Compare"}),$("div",{className:"flex flex-col",children:dr.map(({name:t,slug:r})=>$(Ie,{className:"-mx-2",href:z(`/compare/${r}`,e,ie({domain:e,utm_content:`Dub vs. ${t}`})),title:`Dub vs. ${t}`,showArrow:!0},r))})]})]})}import Uc from"next/image";import ui from"next/link";import{useId as Fc}from"react";import{jsx as h,jsxs as st}from"react/jsx-runtime";function mi({className:e,...t}){let r=Fc();return st("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"114",viewBox:"0 0 247 114",fill:"none",className:n("",e),...t,children:[h("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"}),st("g",{opacity:"0.5",children:[h("mask",{id:`${r}-a`,width:"187",height:"89",x:"27",y:"12",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:h("ellipse",{cx:"120.71",cy:"56.432",fill:"#D9D9D9",rx:"92.717",ry:"44.041"})}),h("g",{stroke:"#fff",strokeWidth:"0.089",mask:`url(#${r}-a)`,children:h("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"})})]}),h("g",{filter:`url(#${r}-b)`,opacity:"0.3",children:h("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"})}),h("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"}),h("circle",{cx:"85.073",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"147.866",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"147.866",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"156.704",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"156.704",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"168.565",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"168.565",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"168.565",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"168.565",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"180.426",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"189.496",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"99.957",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"99.957",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"132.982",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"120.888",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"112.516",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"101.586",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"139.959",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"129.494",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"120.888",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"108.795",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"132.982",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"132.982",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"93.911",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"156.704",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"108.795",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"108.795",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"141.82",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"141.82",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"93.911",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"73.213",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"73.213",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"73.213",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"73.213",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"85.073",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"85.073",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"61.118",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"52.281",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"85.073",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"85.073",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),h("circle",{cx:"93.911",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),st("defs",{children:[st("linearGradient",{id:`${r}-c`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[h("stop",{stopColor:"#fff",stopOpacity:"0"}),h("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0.3"})]}),st("linearGradient",{id:`${r}-d`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[h("stop",{stopColor:"#5B5B5B"}),h("stop",{offset:"1",stopColor:"#757575"})]}),st("filter",{id:`${r}-b`,width:"154.246",height:"73.748",x:"43.768",y:"19.38",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[h("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),h("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"4.262"}),h("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_7_2"}),h("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_7_2",result:"shape"}),h("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"}),h("feOffset",{dx:"-0.991",dy:"0.991"}),h("feGaussianBlur",{stdDeviation:"0.496"}),h("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),h("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.354 0"}),h("feBlend",{in2:"shape",result:"effect2_innerShadow_7_2"}),h("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"}),h("feOffset",{dx:"0.991",dy:"-0.991"}),h("feGaussianBlur",{stdDeviation:"0.496"}),h("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),h("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"}),h("feBlend",{in2:"effect2_innerShadow_7_2",result:"effect3_innerShadow_7_2"}),h("feGaussianBlur",{result:"effect4_foregroundBlur_7_2",stdDeviation:"0.357"})]})]})]})}import{jsx as Y,jsxs as ze}from"react/jsx-runtime";var Gc=[{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 pi({domain:e}){return ze("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200",children:[Y("div",{className:"grid grid-cols-2 gap-4 p-4",children:Gc.map(({title:t,description:r,thumbnail:o,href:a})=>ze(ui,{href:z(a,e,ie({domain:e,utm_content:t})),className:n("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:[ze("div",{className:"p-5 pb-0",children:[Y("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:t}),Y("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:r})]}),Y("div",{className:"relative mt-7 grow overflow-hidden pl-5 [mask-image:linear-gradient(90deg,black_50%,transparent)]",children:Y("div",{className:n("relative size-full overflow-hidden rounded-tl-lg border-l border-t border-black/10","[mask-image:linear-gradient(black_50%,transparent)]"),children:Y(Uc,{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))}),ze("div",{className:"flex flex-col gap-2 px-6 py-4",children:[ze("div",{children:[Y("p",{className:n($e,"mb-2"),children:"SDKs"}),Y("div",{className:"flex flex-col gap-0.5",children:ei.map(({icon:t,iconClassName:r,title:o,href:a})=>Y(Ie,{className:"-mx-2",href:z(a,e,ie({domain:e,utm_content:o})),icon:Y("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:Y(t,{className:n("size-5 text-gray-600 transition-colors dark:text-white/60",r)})}),title:o,showArrow:!0},a))})]}),Y("div",{className:"-mx-2 flex grow flex-col justify-end",children:ze(ui,{href:z("/brand",e,ie({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:[ze("div",{className:"pointer-events-none absolute inset-0",children:[Y("div",{className:"absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:Y("div",{className:n("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)]")})}),Y(mi,{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)]"})]}),Y("div",{className:"relative flex items-center justify-between px-5 py-4",children:ze("div",{children:[Y("span",{className:"block text-sm font-medium text-white",children:"Dub Brand"}),Y("p",{className:"text-sm text-white/60",children:"Logos, wordmark, etc."})]})})]})})]})]})}import{Fragment as ed,jsx as B,jsxs as lt}from"react/jsx-runtime";var qr=Zc({theme:"light"}),Qr=[{name:"Product",content:di,childItems:lr,segments:["/home","/analytics","/features","/compare"]},{name:"Resources",content:pi,childItems:ti,segments:["/solutions","/docs","/help","/brand"]},{name:"Company",content:ni,childItems:cr,segments:["about","/blog","/changelog","/customers"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],fi=n("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 rb({theme:e="light",staticDomain:t,maxWidthWrapperClassName:r}){let{domain:o="dub.co"}=jc();t&&(o=t);let a=qc(),l=fa(40),c=Yc(),{data:s,isLoading:d}=Qc(o.endsWith("dub.co")&&"/api/auth/session",pe,{dedupingInterval:6e4}),m=!!(o==="dub.co"&&Kc.get("dub_id"));return B(qr.Provider,{value:{theme:e},children:B($c,{id:a,children:lt("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",e==="dark"&&"dark"),children:[B("div",{className:n("absolute inset-0 block border-b border-transparent transition-all",l&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),B(mr,{className:n("relative",r),children:lt("div",{className:"flex h-14 items-center justify-between",children:[B("div",{className:"grow basis-0",children:B(bt,{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:B(fr,{})})}),lt(de.Root,{delayDuration:0,className:"relative hidden lg:block",children:[B(de.List,{className:"group relative z-0 flex",children:Qr.map(({name:i,href:p,segments:f,content:x})=>{let y=f.some(v=>c==null?void 0:c.startsWith(v));return lt(de.Item,{children:[B(Jc,{trigger:!!x,children:p!==void 0?B(bt,{id:`nav-${p}`,href:z(p,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:i}),className:fi,"data-active":y,children:i}):lt("button",{className:fi,"data-active":y,children:[i,B(Xc,{className:"ml-1.5 size-2.5 text-neutral-700"})]})}),x&&B(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:B(x,{domain:o})})]},i)})}),B("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:B(de.Viewport,{className:n("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]")})})]}),B("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:s&&Object.keys(s).length>0?B(bt,{href:Ze,className:n(ge({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"}):d?null:lt(ed,{children:[B(bt,{href:m?"https://app.dub.co/login":"https://d.to/login",className:n(ge({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"}),B(bt,{href:m?"https://app.dub.co/register":"https://d.to/register",className:n(ge({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 Xc(e){return B("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",fill:"none",viewBox:"0 0 9 9",...e,children:B("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 Jc({trigger:e,children:t}){return e?B(de.Trigger,{asChild:!0,children:t}):t}import{ChevronDown as td,Menu as rd,X as od}from"lucide-react";import xt from"next/link";import{useParams as gi}from"next/navigation";import{useEffect as ad,useState as hi}from"react";import id from"swr";import{Fragment as sd,jsx as F,jsxs as je}from"react/jsx-runtime";function pb({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=gi();t&&(r=t);let[o,a]=hi(!1);ad(()=>{o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[o]);let{data:l}=id(r.endsWith("dub.co")&&"/api/auth/session",pe,{dedupingInterval:6e4});return je("div",{className:n(e==="dark"&&"dark"),children:[F("button",{onClick:()=>a(!o),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",o&&"hover:bg-gray-100 active:bg-gray-200"),children:o?F(od,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):F(rd,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),F("nav",{className:n("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:je("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[Qr.map(({name:c,href:s,childItems:d},m)=>F(nd,{name:c,href:s,childItems:d,setOpen:a},m)),l&&Object.keys(l).length>0?F("li",{className:"py-3",children:F(xt,{href:Ze,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):je(sd,{children:[F("li",{className:"py-3",children:F(xt,{href:`${Ze}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),F("li",{className:"py-3",children:F(xt,{href:`${Ze}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var nd=({name:e,href:t,childItems:r,setOpen:o})=>{let{domain:a="dub.co"}=gi(),[l,c]=hi(!1);return r?F("li",{className:"py-3",children:je(we,{height:!0,children:[je("button",{className:"flex w-full justify-between",onClick:()=>c(!l),children:[F("p",{className:"font-semibold",children:e}),F(td,{className:n("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&F("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:s,href:d,icon:m,description:i})=>je(xt,{href:z(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:s}),onClick:()=>o(!1),className:"flex w-full gap-3",children:[F("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:F(m,{className:"size-5 text-neutral-700"})}),je("div",{children:[F("div",{className:"flex items-center gap-2",children:F("h2",{className:"text-sm font-medium text-neutral-900",children:s})}),F("p",{className:"text-sm text-neutral-500",children:i})]})]},d))})]})}):t?F("li",{className:"py-3",children:F(xt,{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};import{jsx as vi}from"react/jsx-runtime";function bi({className:e}){return vi("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-6 w-auto text-black dark:text-white",e),children:vi("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 q,jsxs as xi}from"react/jsx-runtime";var vd=`<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 Cd from"next/image";import Ve from"next/link";import{useParams as Nd}from"next/navigation";import{useEffect as kd,useState as ki}from"react";import Pd from"swr";import{jsx as Qa}from"react/jsx-runtime";function Xa(e){return Qa("svg",{width:"16",height:"11",viewBox:"0 0 16 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Qa("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"})})}import{jsx as Ja}from"react/jsx-runtime";function vt({className:e}){return Ja("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-10 w-10 text-black dark:text-white",e),children:Ja("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"})})}var lr=[{title:"Dub Links",description:"Short links with superpowers",icon:Yo,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:qo,href:"/analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:It,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Dt,href:"/docs/integrations"}],ei=[{icon:wo,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:yo,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:Xa,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],ti=[{icon:So,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:ko,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:Co,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:Po,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:No,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],ri=[{icon:Mo,title:"Docs",description:"Platform documentation",href:"/docs/introduction"},{icon:$o,title:"Help Center",description:"Answers to your questions",href:"/help"},{icon:jo,title:"Dub Brand",description:"Logos, wordmark, etc.",href:"/brand"}],cr=[{icon:vt,title:"About",description:"Company and team",href:"/about"},{icon:Wo,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:Ro,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:Ko,title:"Customers",description:"Success stories and use cases",href:"/customers"}],dr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],oi=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}],ai=[{name:"X (Twitter)",icon:Et,href:"https://x.com/dubdotco"},{name:"LinkedIn",icon:Tt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:Lt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:At,href:"https://www.youtube.com/@dubdotco"}];import{jsx as Bc}from"react/jsx-runtime";function mr({className:e,children:t}){return Bc("div",{className:n("mx-auto w-full max-w-screen-xl px-3 lg:px-10",e),children:t})}import*as Oe from"@radix-ui/react-popover";import{BoxSelect as md,Home as ud,LayoutGrid as pd,Type as fd}from"lucide-react";import{useParams as gd}from"next/navigation";import{useCallback as hd,useContext as vd,useState as bd}from"react";import{toast as xd}from"sonner";import*as de from"@radix-ui/react-navigation-menu";import{LayoutGroup as Yc}from"framer-motion";import Zc from"js-cookie";import bt from"next/link";import{useParams as qc,usePathname as Qc}from"next/navigation";import{createContext as Xc,useId as Jc}from"react";import ed from"swr";import{Link as ii}from"@radix-ui/react-navigation-menu";import ni from"next/link";import{jsx as ye,jsxs as ur}from"react/jsx-runtime";var $e="text-xs uppercase text-neutral-500 dark:text-white/60",Fc="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",ie=({domain:e,...t})=>({utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,...t});function Ie({icon:e,title:t,description:r,descriptionLines:o=1,className:a,showArrow:l,...c}){return ye(ii,{asChild:!0,children:ye(ni,{className:n(Fc,a),...c,children:ur("div",{className:"flex items-center justify-between gap-3",children:[e,ur("div",{className:"flex-1",children:[ye("p",{className:"text-sm font-medium text-neutral-700 dark:text-white",children:t}),r&&ye("p",{className:n("text-xs text-neutral-500 dark:text-white/60",["line-clamp-1","line-clamp-2"][o-1]),children:r})]}),l&&ye(fo,{className:"invisible -ml-6 h-4 w-4 text-neutral-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})})}function pr({icon:e,title:t,description:r,iconClassName:o,...a}){return ye(ii,{asChild:!0,children:ye(ni,{...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:ur("div",{className:"flex items-center justify-between px-5 py-4",children:[ur("div",{children:[ye("span",{className:"text-sm font-medium leading-none text-neutral-900 dark:text-white",children:t}),ye("p",{className:"mt-1 text-sm text-neutral-500 dark:text-white/60",children:r})]}),ye(e,{className:n("size-6 text-neutral-700 dark:text-neutral-200",o)})]})})})}import{jsx as Ke,jsxs as si}from"react/jsx-runtime";function li({domain:e}){return si("div",{className:"grid w-[540px] grid-cols-[minmax(0,1fr),minmax(0,0.75fr)] divide-x divide-neutral-200",children:[Ke("div",{className:"flex flex-col gap-4 p-4",children:cr.map(({title:t,description:r,icon:o,href:a})=>Ke(pr,{title:t,description:r,icon:o,iconClassName:"size-5",href:z(a,e,ie({domain:e,utm_content:t}))},t))}),si("div",{className:"px-6 py-4",children:[Ke("p",{className:n($e,"mb-2"),children:"Social"}),Ke("div",{className:"grid grid-cols-1",children:ai.map(({icon:t,name:r,href:o})=>Ke(Ie,{href:o,target:"_blank",className:"-mx-2",icon:Ke("div",{className:"shrink-0 rounded-lg border border-neutral-200 bg-white/50 p-1.5 dark:border-white/20 dark:bg-white/10",children:Ke(t,{className:"size-4 shrink-0 text-neutral-600 transition-colors dark:text-white/60"})}),title:r},o))})]})]})}import{Link as mi}from"@radix-ui/react-navigation-menu";import ui from"next/link";import{jsx as k,jsxs as qr}from"react/jsx-runtime";function ci(e){return qr("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...e,className:n("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",e.className),children:[qr("g",{className:"text-[var(--grid)]",children:[k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("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"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),k("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),k("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),k("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),k("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),k("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),k("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:k("tspan",{x:"157.667",y:"232.909",children:"402"})}),k("g",{filter:"url(#a)",children:k("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),k("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),k("defs",{children:qr("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[k("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),k("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),k("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"}),k("feOffset",{dy:"2"}),k("feGaussianBlur",{stdDeviation:"1"}),k("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),k("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),k("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}import{useId as Uc}from"react";import{jsx as u,jsxs as W}from"react/jsx-runtime";function di(e){let t=Uc();return W("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...e,className:n("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",e.className),children:[W("g",{clipPath:`url(#${t}-a)`,children:[u("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"}),u("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),u("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),u("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),u("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),u("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),u("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),u("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),u("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),u("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),u("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),u("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),u("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),u("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),u("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),u("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),u("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),u("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),u("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),W("g",{children:[u("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"}),u("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"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),u("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"})]}),W("g",{children:[u("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),u("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"}),u("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),u("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:u("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),u("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:u("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),u("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),u("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),W("g",{children:[u("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),u("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),u("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),u("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:u("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),u("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),u("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),u("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:u("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),u("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"}),u("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"}),u("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:u("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"})}),u("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:u("tspan",{x:"251",y:"171.636",children:"51K"})})]}),W("defs",{children:[W("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EA580C"}),u("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),u("stop",{offset:"1",stopColor:"#EA580C"})]}),W("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EAB308",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#EAB308"})]}),W("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#EAB308",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#EAB308"})]}),W("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[u("stop",{stopColor:"#030712",stopOpacity:"0"}),u("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),W("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[u("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),u("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),u("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),W("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[u("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),u("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),u("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),u("clipPath",{id:`${t}-a`,children:u("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),u("clipPath",{id:`${t}-y`,children:u("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),u("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:u("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),u("image",{href:`${St}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}import{jsx as U,jsxs as Se}from"react/jsx-runtime";var Gc=[{title:"Dub API",description:"Programmatic link creation at scale",icon:It,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:Dt,href:"/docs/integrations"}];function pi({domain:e}){return Se("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-gray-200",children:[Se("div",{className:"grid grid-cols-2 gap-4 p-4",children:[U(mi,{asChild:!0,children:Se(ui,{href:z("/home",e,ie({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:[Se("div",{className:"p-5 pb-0",children:[U("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),U("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"})]}),U("div",{className:"relative grow overflow-hidden",children:U(di,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),U("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]"})]})}),Se("div",{className:"flex flex-col gap-4",children:[U(mi,{asChild:!0,children:Se(ui,{href:z("/analytics",e,ie({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:[U(ci,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),U("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]"}),Se("div",{className:"h-56 p-5",children:[U("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),U("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]})}),U("div",{className:"grid grow grid-rows-2 gap-4",children:Gc.map(({title:t,description:r,icon:o,href:a})=>U(pr,{title:t,description:r,icon:o,href:z(a,e,ie({domain:e,utm_content:t}))},t))})]})]}),Se("div",{className:"px-6 py-4",children:[U("p",{className:n($e,"mb-2"),children:"Customer Stories"}),Se("div",{className:"grid grid-cols-1",children:[ei.map(({icon:t,iconClassName:r,title:o,description:a,href:l})=>U(Ie,{className:"-mx-2",href:z(l,e,ie({domain:e,utm_content:o})),icon:U("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:U(t,{className:n("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)})}),title:o,description:a},l)),U(Ie,{className:"-mx-2",href:z("/customers",e,ie({domain:e,utm_content:"Customer Stories"})),title:"View all stories",showArrow:!0})]}),U("p",{className:n($e,"mb-2 mt-5"),children:"Compare"}),U("div",{className:"flex flex-col",children:dr.map(({name:t,slug:r})=>U(Ie,{className:"-mx-2",href:z(`/compare/${r}`,e,ie({domain:e,utm_content:`Dub vs. ${t}`})),title:`Dub vs. ${t}`,showArrow:!0},r))})]})]})}import{Link as gi}from"@radix-ui/react-navigation-menu";import Kc from"next/image";import hi from"next/link";import{useId as $c}from"react";import{jsx as v,jsxs as st}from"react/jsx-runtime";function fi({className:e,...t}){let r=$c();return st("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"114",viewBox:"0 0 247 114",fill:"none",className:n("",e),...t,children:[v("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"}),st("g",{opacity:"0.5",children:[v("mask",{id:`${r}-a`,width:"187",height:"89",x:"27",y:"12",maskUnits:"userSpaceOnUse",style:{maskType:"alpha"},children:v("ellipse",{cx:"120.71",cy:"56.432",fill:"#D9D9D9",rx:"92.717",ry:"44.041"})}),v("g",{stroke:"#fff",strokeWidth:"0.089",mask:`url(#${r}-a)`,children:v("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"})})]}),v("g",{filter:`url(#${r}-b)`,opacity:"0.3",children:v("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"})}),v("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"}),v("circle",{cx:"85.073",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"147.866",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"147.866",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"156.704",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"156.704",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"168.565",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"168.565",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"168.565",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"168.565",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"180.426",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"189.496",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"99.957",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"99.957",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"132.982",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"120.888",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"112.516",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"101.586",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"139.959",cy:"71.782",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"129.494",cy:"72.247",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"120.888",cy:"84.806",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"108.795",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"132.982",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"132.982",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"93.911",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"156.704",cy:"28.059",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"108.795",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"108.795",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"141.82",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"141.82",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"93.911",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"73.213",cy:"42.944",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"73.213",cy:"75.736",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"73.213",cy:"51.781",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"73.213",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"85.073",cy:"46.665",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"85.073",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"61.118",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"52.281",cy:"63.875",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"85.073",cy:"80.852",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"85.073",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),v("circle",{cx:"93.911",cy:"84.573",r:"0.814",fill:"#565656",stroke:"#fffa",strokeWidth:"0.233"}),st("defs",{children:[st("linearGradient",{id:`${r}-c`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[v("stop",{stopColor:"#fff",stopOpacity:"0"}),v("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0.3"})]}),st("linearGradient",{id:`${r}-d`,x1:"120.889",x2:"120.889",y1:"27.982",y2:"84.689",gradientUnits:"userSpaceOnUse",children:[v("stop",{stopColor:"#5B5B5B"}),v("stop",{offset:"1",stopColor:"#757575"})]}),st("filter",{id:`${r}-b`,width:"154.246",height:"73.748",x:"43.768",y:"19.38",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[v("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),v("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:"4.262"}),v("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_7_2"}),v("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_7_2",result:"shape"}),v("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"}),v("feOffset",{dx:"-0.991",dy:"0.991"}),v("feGaussianBlur",{stdDeviation:"0.496"}),v("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),v("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.354 0"}),v("feBlend",{in2:"shape",result:"effect2_innerShadow_7_2"}),v("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"}),v("feOffset",{dx:"0.991",dy:"-0.991"}),v("feGaussianBlur",{stdDeviation:"0.496"}),v("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),v("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"}),v("feBlend",{in2:"effect2_innerShadow_7_2",result:"effect3_innerShadow_7_2"}),v("feGaussianBlur",{result:"effect4_foregroundBlur_7_2",stdDeviation:"0.357"})]})]})]})}import{jsx as $,jsxs as ze}from"react/jsx-runtime";var jc=[{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 vi({domain:e}){return ze("div",{className:"grid w-[1020px] grid-cols-[minmax(0,1fr),0.4fr] divide-x divide-neutral-200",children:[$("div",{className:"grid grid-cols-2 gap-4 p-4",children:jc.map(({title:t,description:r,thumbnail:o,href:a})=>$(gi,{asChild:!0,children:ze(hi,{href:z(a,e,ie({domain:e,utm_content:t})),className:n("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:[ze("div",{className:"p-5 pb-0",children:[$("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:t}),$("p",{className:"mt-3 max-w-56 text-sm text-neutral-500 dark:text-white/60",children:r})]}),$("div",{className:"relative mt-7 grow overflow-hidden pl-5 [mask-image:linear-gradient(90deg,black_50%,transparent)]",children:$("div",{className:n("relative size-full overflow-hidden rounded-tl-lg border-l border-t border-black/10","[mask-image:linear-gradient(black_50%,transparent)]"),children:$(Kc,{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)}))}),ze("div",{className:"flex flex-col gap-2 px-6 py-4",children:[ze("div",{children:[$("p",{className:n($e,"mb-2"),children:"SDKs"}),$("div",{className:"flex flex-col gap-0.5",children:ti.map(({icon:t,iconClassName:r,title:o,href:a})=>$(Ie,{className:"-mx-2",href:z(a,e,ie({domain:e,utm_content:o})),icon:$("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:$(t,{className:n("size-5 text-gray-600 transition-colors dark:text-white/60",r)})}),title:o,showArrow:!0},a))})]}),$("div",{className:"-mx-2 flex grow flex-col justify-end",children:$(gi,{asChild:!0,children:ze(hi,{href:z("/brand",e,ie({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:[ze("div",{className:"pointer-events-none absolute inset-0",children:[$("div",{className:"absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:$("div",{className:n("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)]")})}),$(fi,{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)]"})]}),$("div",{className:"relative flex items-center justify-between px-5 py-4",children:ze("div",{children:[$("span",{className:"block text-sm font-medium text-white",children:"Dub Brand"}),$("p",{className:"text-sm text-white/60",children:"Logos, wordmark, etc."})]})})]})})})]})]})}import{Fragment as od,jsx as B,jsxs as lt}from"react/jsx-runtime";var Qr=Xc({theme:"light"}),Xr=[{name:"Product",content:pi,childItems:lr,segments:["/home","/analytics","/features","/compare"]},{name:"Resources",content:vi,childItems:ri,segments:["/solutions","/docs","/help","/brand"]},{name:"Company",content:li,childItems:cr,segments:["about","/blog","/changelog","/customers"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],bi=n("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 bb({theme:e="light",staticDomain:t,maxWidthWrapperClassName:r}){let{domain:o="dub.co"}=qc();t&&(o=t);let a=Jc(),l=ga(40),c=Qc(),{data:s,isLoading:d}=ed(o.endsWith("dub.co")&&"/api/auth/session",pe,{dedupingInterval:6e4}),m=!!(o==="dub.co"&&Zc.get("dub_id"));return B(Qr.Provider,{value:{theme:e},children:B(Yc,{id:a,children:lt("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",e==="dark"&&"dark"),children:[B("div",{className:n("absolute inset-0 block border-b border-transparent transition-all",l&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),B(mr,{className:n("relative",r),children:lt("div",{className:"flex h-14 items-center justify-between",children:[B("div",{className:"grow basis-0",children:B(bt,{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:B(fr,{})})}),lt(de.Root,{delayDuration:0,className:"relative hidden lg:block",children:[B(de.List,{className:"group relative z-0 flex",children:Xr.map(({name:i,href:p,segments:f,content:x})=>{let h=f.some(b=>c==null?void 0:c.startsWith(b));return lt(de.Item,{children:[B(rd,{trigger:!!x,children:p!==void 0?B(bt,{id:`nav-${p}`,href:z(p,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:i}),className:bi,"data-active":h,children:i}):lt("button",{className:bi,"data-active":h,children:[i,B(td,{className:"ml-1.5 size-2.5 text-neutral-700"})]})}),x&&B(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:B(x,{domain:o})})]},i)})}),B("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:B(de.Viewport,{className:n("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]")})})]}),B("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:s&&Object.keys(s).length>0?B(bt,{href:Ze,className:n(ge({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"}):d?null:lt(od,{children:[B(bt,{href:m?"https://app.dub.co/login":"https://d.to/login",className:n(ge({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"}),B(bt,{href:m?"https://app.dub.co/register":"https://d.to/register",className:n(ge({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 td(e){return B("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",fill:"none",viewBox:"0 0 9 9",...e,children:B("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 rd({trigger:e,children:t}){return e?B(de.Trigger,{asChild:!0,children:t}):t}import{ChevronDown as ad,Menu as id,X as nd}from"lucide-react";import xt from"next/link";import{useParams as xi}from"next/navigation";import{useEffect as sd,useState as yi}from"react";import ld from"swr";import{Fragment as dd,jsx as F,jsxs as je}from"react/jsx-runtime";function Lb({theme:e="light",staticDomain:t}){let{domain:r="dub.co"}=xi();t&&(r=t);let[o,a]=yi(!1);sd(()=>{o?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[o]);let{data:l}=ld(r.endsWith("dub.co")&&"/api/auth/session",pe,{dedupingInterval:6e4});return je("div",{className:n(e==="dark"&&"dark"),children:[F("button",{onClick:()=>a(!o),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",o&&"hover:bg-gray-100 active:bg-gray-200"),children:o?F(nd,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):F(id,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),F("nav",{className:n("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:je("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[Xr.map(({name:c,href:s,childItems:d},m)=>F(cd,{name:c,href:s,childItems:d,setOpen:a},m)),l&&Object.keys(l).length>0?F("li",{className:"py-3",children:F(xt,{href:Ze,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):je(dd,{children:[F("li",{className:"py-3",children:F(xt,{href:`${Ze}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),F("li",{className:"py-3",children:F(xt,{href:`${Ze}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var cd=({name:e,href:t,childItems:r,setOpen:o})=>{let{domain:a="dub.co"}=xi(),[l,c]=yi(!1);return r?F("li",{className:"py-3",children:je(Ce,{height:!0,children:[je("button",{className:"flex w-full justify-between",onClick:()=>c(!l),children:[F("p",{className:"font-semibold",children:e}),F(ad,{className:n("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&F("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:s,href:d,icon:m,description:i})=>je(xt,{href:z(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:s}),onClick:()=>o(!1),className:"flex w-full gap-3",children:[F("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:F(m,{className:"size-5 text-neutral-700"})}),je("div",{children:[F("div",{className:"flex items-center gap-2",children:F("h2",{className:"text-sm font-medium text-neutral-900",children:s})}),F("p",{className:"text-sm text-neutral-500",children:i})]})]},d))})]})}):t?F("li",{className:"py-3",children:F(xt,{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};import{jsx as wi}from"react/jsx-runtime";function Ci({className:e}){return wi("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-6 w-auto text-black dark:text-white",e),children:wi("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 q,jsxs as Ni}from"react/jsx-runtime";var yd=`<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>`,bd=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
50
+ </svg>`,wd=`<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 fr({variant:e="full",isInApp:t,className:r}){let{domain:o="dub.co"}=ud(),{theme:a}=fd(qr),[l,c]=gd(!1),s=pd(i=>{i.preventDefault(),c(!0)},[]),[,d]=Je();function m(i){hd.promise(d(i),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return xi(Oe.Root,{open:l,onOpenChange:c,children:[q(Oe.Anchor,{asChild:!0,children:q("div",{onContextMenu:s,className:"max-w-fit",children:e==="full"?q(bi,{className:r}):q(vt,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),q(Oe.Portal,{children:q(Oe.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5",!t&&"-translate-x-8",a==="dark"&&"dark"),onClick:i=>{i.stopPropagation(),c(!1)},children:xi("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[q(yt,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(vd),icon:q(vt,{className:"h-4 w-4"})}),q(yt,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(bd),icon:q(md,{strokeWidth:2,className:"h-4 w-4"})}),q(yt,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:q(ld,{strokeWidth:2,className:"h-4 w-4"})}),t||o!="dub.co"?q(yt,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:q(cd,{strokeWidth:2,className:"h-4 w-4"})}):q(yt,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:q(dd,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function yt({className:e,...t}){return q(se,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",e),...t})}import{jsx as E,jsxs as U}from"react/jsx-runtime";var Nd=[{name:"Twitter",icon:Et,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:Tt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:Lt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:At,href:"https://www.youtube.com/@dubdotco"}],wt={features:lr.map(({title:e,href:t})=>({name:e,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:dr.map(({name:e,slug:t})=>({name:e,href:`/compare/${t}`})),legal:ri.map(({name:e,slug:t})=>({name:e,href:`/legal/${t}`})),tools:mo.map(({name:e,slug:t})=>({name:e,href:`/tools/${t}`}))},Ct="text-sm font-medium text-neutral-900",Nt="flex flex-col mt-2.5 gap-2.5",ct="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function Wb({staticDomain:e,className:t}){let{domain:r="dub.co"}=yd();return e&&(r=e),E(mr,{className:n("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:U("footer",{children:[U("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[U("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:U(Ve,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[U("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),E(fr,{className:"h-8 text-gray-800"})]})}),E("div",{className:"flex items-center gap-3",children:Nd.map(({name:o,icon:a,href:l})=>U("a",{href:l,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))})]}),U("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[U("div",{className:"md:grid md:grid-cols-2",children:[U("div",{children:[E("h3",{className:Ct,children:"Product"}),E("ul",{role:"list",className:Nt,children:wt.features.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:ct,children:o.name})},o.name))})]}),U("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:Ct,children:"Resources"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]})]}),U("div",{className:"md:grid md:grid-cols-2",children:[U("div",{className:"flex flex-col space-y-8",children:[U("div",{children:[E("h3",{className:Ct,children:"Compare"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]}),U("div",{children:[E("h3",{className:Ct,children:"Legal"}),U("ul",{role:"list",className:Nt,children:[wt.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:ct,children:o.name})},o.name)),E("li",{children:U("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:n(ct,"flex items-center gap-1"),children:["Trust Center ",E(Qo,{className:"size-3.5"})]})})]})]})]}),U("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:Ct,children:"Tools"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]})]})]})]}),U("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[E(kd,{}),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(xd,{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"})}),U("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function kd(){let{data:e}=Cd("https://status.dub.co/api/v1/summary",pe),[t,r]=yi("bg-neutral-200"),[o,a]=yi("Loading status...");return wd(()=>{if(!e)return;let{ongoing_incidents:l}=e;if(l.length>0){let{current_worst_impact:c,name:s}=l[0],d=c==="degraded_performance"?"bg-yellow-500":"bg-red-500";a(s),r(d)}else a("All systems operational"),r("bg-green-500")},[e]),U(Ve,{href:"https://status.dub.co",target:"_blank",className:"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",children:[U("div",{className:"relative size-2",children:[E("div",{className:n("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,o==="Loading status..."&&"animate-none")}),E("div",{className:n("absolute inset-0 z-10 m-auto size-2 rounded-full",t)})]}),E("p",{className:"text-xs font-medium leading-none text-neutral-600",children:o})]})}import{AnimatePresence as Pd,motion as Sd}from"framer-motion";import{useEffect as Md,useState as Rd}from"react";import{jsx as wi}from"react/jsx-runtime";var Ci=({children:e,fallback:t,fadeInDuration:r=.5,className:o})=>{let[a,l]=Rd(!1);Md(()=>{l(!0)},[]);let c=r?Sd.div:"div";return wi(Pd,{children:a?wi(c,{...r?{initial:{opacity:0},animate:{opacity:1},transition:{duration:r}}:{},className:o,children:e}):t||null})};import{cva as Ld}from"class-variance-authority";import{toast as Td}from"sonner";import{jsx as Xr,jsxs as Ad}from"react/jsx-runtime";var Ed=Ld("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-gray-100 active:bg-gray-200",neutral:"bg-transparent hover:bg-gray-100 active:bg-gray-200"}},defaultVariants:{variant:"default"}});function Xb({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[l,c]=Je(),s=o||uo;return Ad("button",{onClick:d=>{d.stopPropagation(),Td.promise(c(t),{success:a||"Copied to clipboard!"})},className:n(Ed({variant:e}),r),type:"button",children:[Xr("span",{className:"sr-only",children:"Copy"}),l?Xr(bo,{className:"h-3.5 w-3.5"}):Xr(s,{className:"h-3.5 w-3.5"})]})}import{toast as Dd}from"sonner";import{jsx as Id}from"react/jsx-runtime";function ox({value:e,children:t,className:r,successMessage:o}){let[a,l]=Je();return Id("button",{onClick:c=>{c.stopPropagation(),Dd.promise(l(e),{success:o||"Copied to clipboard!"})},type:"button",className:n("cursor-copy text-sm text-gray-700 decoration-dotted hover:underline",a&&"cursor-default",r),children:t})}import{jsx as zd,jsxs as Od}from"react/jsx-runtime";function ix({icon:e,text:t}){return Od("div",{className:"flex items-center justify-start space-x-2 truncate",children:[e,zd("p",{className:"truncate text-sm",children:t})]})}import{jsx as Vd}from"react/jsx-runtime";var sx=({children:e})=>Vd("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:e});import{jsx as Jr}from"react/jsx-runtime";function ux({apexDomain:e,className:t,imageProps:r}){return e?Jr(er,{src:`${St}${e}`,alt:e,className:n("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20,draggable:!1,...r}):Jr("div",{className:n("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:Jr(Uo,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}import{Link2 as Ni}from"lucide-react";import{useRouter as _d,useSearchParams as Hd}from"next/navigation";import{useEffect as Wd,useMemo as Bd,useRef as Fd}from"react";import Ud from"swr";import{useDebounce as Gd}from"use-debounce";import{Fragment as ki,jsx as K,jsxs as _e}from"react/jsx-runtime";function Cx({defaultUrl:e}){let t=_d(),r=Hd(),o=e||(r==null?void 0:r.get("url"))||"https://github.com/dubinc/dub",[a]=Gd(oo(o),500),l=Bd(()=>io(a||""),[a]),{data:c,isValidating:s}=Ud(a&&`/api/metatags?url=${encodeURIComponent(a)}`,pe,{revalidateOnFocus:!1}),{title:d,description:m,image:i}=c||{},p=Fd(null);Wd(()=>{!e&&p.current&&p.current.select()},[e]);let{isMobile:f}=Z();return _e(ki,{children:[!e&&_e("div",{className:"relative flex items-center",children:[K(Ni,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),K("input",{ref:p,name:"url",id:"url",type:"url",autoFocus:!f,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:o,onChange:x=>t.replace(`/tools/metatags${x.target.value.length>0?`?url=${x.target.value}`:""}`),"aria-invalid":"true"})]}),_e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[s&&K("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:K(mt,{})}),i?K("img",{src:i,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):_e("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[K(go,{className:"h-8 w-8 text-gray-400"}),K("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),_e("div",{className:"grid gap-1 bg-white p-3 text-left",children:[l?K("p",{className:"text-sm text-[#536471]",children:l}):K("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),d?K("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:d}):K("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),m?K("p",{className:"line-clamp-2 text-sm text-[#536471]",children:m}):_e("div",{className:"grid gap-2",children:[K("div",{className:"h-4 w-full rounded-md bg-gray-100"}),K("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function Nx({defaultUrl:e}){return _e(ki,{children:[_e("div",{className:"relative flex items-center",children:[K(Ni,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),K("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:e||"https://github.com/dubinc/dub"})]}),K("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:K("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:K(mt,{})})})]})}import{AnimatePresence as $d}from"framer-motion";import Pi from"js-cookie";import{createContext as Kd,useState as jd}from"react";import{jsx as eo}from"react/jsx-runtime";var Yd=Kd({hidePopup:()=>{}});function Tx({children:e,hiddenCookieId:t}){let[r,o]=jd(Pi.get(t)==="1"),a=()=>{o(!0),Pi.set(t,"1")};return eo(Ci,{children:eo(Yd.Provider,{value:{hidePopup:a},children:eo($d,{children:!r&&e})})})}import{motion as Zd}from"framer-motion";import{jsx as Si}from"react/jsx-runtime";function Ix({value:e=0,max:t=100,className:r}){return Si("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",r),children:Si(Zd.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 Mi}from"class-variance-authority";import{LayoutGroup as qd,motion as Qd}from"framer-motion";import{useId as Xd}from"react";import{jsx as kt,jsxs as tm}from"react/jsx-runtime";var Jd=Mi("p-4 transition-colors duration-75",{variants:{variant:{default:"text-gray-400 data-[selected=true]:text-black data-[selected=false]:hover:text-gray-500",accent:"text-neutral-500 transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-neutral-700 data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),em=Mi("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-black",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function Ux({variant:e,options:t,selected:r,onSelect:o,className:a}){let l=Xd();return kt("div",{className:n("flex text-sm",a),children:kt(qd,{id:l,children:t.map(({id:c,label:s})=>tm("div",{className:"relative",children:[kt("button",{type:"button",onClick:()=>o==null?void 0:o(c),className:Jd({variant:e}),"data-selected":c===r,"aria-selected":c===r,children:s}),c===r&&kt(Qd.div,{layoutId:"indicator",transition:{duration:.1},className:em({variant:e}),children:kt("div",{className:"h-0.5 rounded-t-full bg-current"})})]},c))})})}import{jsx as Ri,jsxs as rm}from"react/jsx-runtime";function Kx({className:e}){return rm("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-6 w-auto text-black dark:text-white",e),children:[Ri("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"}),Ri("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{oa as AUTOPLAY_DEFAULT_DELAY,up as Accordion,zi as AccordionContent,Di as AccordionItem,Ii as AccordionTrigger,mm as Africa,Nm as Airtm,Hi as Alert,Bi as AlertDescription,Wi as AlertTitle,vm as Amazon,we as AnimatedSizeContainer,Lm as Apple,Tm as ArrowBoldUp,Em as ArrowRight,Am as ArrowTrendUp,Dm as ArrowTurnLeft,Im as ArrowTurnRight2,zm as ArrowUpRight,Om as ArrowsOppositeDirectionY,um as Asia,yp as Avatar,Yv as Background,Ht as Badge,Vm as BadgeCheck,Bp as BadgeTooltip,_m as Blog,er as BlurImage,Hm as Bolt,Wm as BoltFill,Fm as Book2,So as Book2Fill,Um as Book2Small,Bm as BookOpen,Gm as Books2,$m as BoxArchive,Km as BulletList,Mo as BulletListFill,se as Button,Fp as ButtonTooltip,cr as COMPANY,dr as COMPARE_PAGES,Ja as CUSTOMER_STORIES,wa as Calendar,Zm as Calendar6,Ym as CalendarDays,jm as CalendarIcon,pf as CardList,qm as Cards,Qm as CaretUpFill,yn as Carousel,wn as CarouselContent,Cn as CarouselItem,kf as CarouselNavBar,kn as CarouselNext,Nn as CarouselPrevious,km as CashApp,Xm as ChartActivity2,Jm as ChartLine,bm as ChatGPT,Ro as Check,Lo as Check2,Mn as Checkbox,To as CheckboxCheckedFill,Eo as CheckboxUnchecked,Ao as CircleCheck,e0 as CircleCheckFill,t0 as CircleDollar,r0 as CircleDotted,Do as CircleHalfDottedCheck,Io as CircleHalfDottedClock,zo as CircleInfo,o0 as CirclePlay,a0 as CirclePlayFill,i0 as CircleQuestion,br as CircleWarning,n0 as CircleXmark,s0 as Circles,l0 as Circles3,Ci as ClientOnly,Oo as CloudUpload,c0 as Code,d0 as ColorPalette2,d1 as Combobox,Kx as CompositeLogo,m0 as ConnectedDots,u0 as ConnectedDots4,Dt as ConnectedDotsFill,p0 as Connections3,uo as Copy,Xb as CopyButton,ox as CopyText,f0 as CreditCard,g0 as Crosshairs3,h0 as Crown,om as CrownSmall,v0 as Cube,b0 as CubeSettings,It as CubeSettingsFill,x0 as CurrencyDollar,y0 as CursorRays,w0 as DatabaseKey,Rr as DatePickerContext,j1 as DateRangePicker,C0 as Desktop,N0 as DiamondTurnRight,k0 as Dots,P0 as Download,S0 as Duplicate,M0 as EarthPosition,J1 as EmptyState,R0 as EnvelopeArrowRight,pm as Europe,po as ExpandingArrow,Vo as Eye,_o as EyeSlash,lr as FEATURES_LIST,nm as Facebook,Ho as FeatherFill,xm as Figma,ch as FileUpload,L0 as FileZip2,Dh as Filter,E0 as Filter2,T0 as FilterBars,D0 as Flag2,Wo as Flag6,A0 as FlagWavy,I0 as Folder,z0 as Folder5,Wb as Footer,Wh as Form,O0 as GamingConsole,V0 as Gauge6,_0 as Gear,H0 as Gear2,W0 as Gear3,B0 as Gem,Bo as Gift,F0 as GiftFill,ym as GitHubEnhanced,Lt as Github,U0 as Globe,Uo as Globe2,Fo as GlobePointer,G0 as GlobeSearch,wo as Go,sm as Google,wm as GoogleEnhanced,$0 as GreekTemple,Gh as Grid,K0 as GridIcon,j0 as GridLayoutRows,Y0 as GridPlus,Z0 as Headset,Go as HeadsetFill,$o as HeartFill,Ko as HexadecagonStar,jo as Hyperlink,ix as IconMenu,q0 as Icosahedron,Q0 as Incognito,Hp as InfoTooltip,sx as InlineSnippet,kl as Input,X0 as InputPassword,Yo as InputSearch,h2 as InputSelect,J0 as InvoiceDollar,eu as Key,sa as KeyboardShortcutContext,tg as KeyboardShortcutProvider,ri as LEGAL_PAGES,Ul as Label,tu as LayoutSidebar,ru as License,Zo as LinesY,au as Link4,ou as LinkBroken,ux as LinkLogo,Cx as LinkPreview,Nx as LinkPreviewPlaceholder,Tt as LinkedIn,_p as LinkifyTooltipContent,mt as LoadingCircle,im as LoadingDots,ye as LoadingSpinner,iu as LocationPin,vt as Logo,fo as Magic,nu as Magnifier,su as MapPosition,am as MatrixLines,mr as MaxWidthWrapper,lu as Menu3,cu as MessageSmile,L2 as MiniAreaChart,du as MobilePhone,z2 as Modal,mu as MoneyBill2,uu as MoneyBills2,rb as Nav,qr as NavContext,pb as NavMobile,fr as NavWordmark,fm as NorthAmerica,pu as Note,yu as NucleoPhoto,Wp as NumberTooltip,gm as Oceania,fu as OfficeBuilding,qo as Page2,_2 as PaginationControls,gu as Paintbrush,hu as Palette2,Pm as Payoneer,Sm as Paypal,bu as Pen2,vu as PenWriting,xu as PercentageArrowDown,go as Photo,Co as Php,wu as Plug2,zt as Plus,ot as Popover,Tx as Popup,Yd as PopupContext,Cu as Post,lm as Prisma,xo as ProductHunt,Ix as ProgressBar,Nu as Pyramid,No as Python,ku as QRCode,ti as RESOURCES,oc as RadioGroup,ac as RadioGroupItem,yo as Raycast,Pu as Receipt2,Qo as ReferredVia,Su as Refresh2,Mu as Robot,ko as Ruby,ei as SDKS,oi as SOCIAL_LINKS,Xo as SatelliteDish,Ru as ScanText,Lu as Scribble,K2 as Sheet,Tu as ShieldAlert,Eu as ShieldCheck,Au as ShieldKeyhole,q2 as ShimmerDots,Du as Shuffle,Vp as SimpleTooltipContent,Iu as Sliders,ho as SortOrder,hm as SouthAmerica,zu as Sparkle3,Cm as Spotify,Ou as SquareChart,Vu as SquareLayoutGrid6,_u as Stars2,rv as StatusBadge,Mm as StripeLink,vo as Success,dv as Switch,Ku as TV,Ux as TabSelect,Dv as Table,Hu as TableIcon,Wu as TableRows2,Bu as Tablet,Fu as Tag,Uu as Tags,bo as Tick,cm as Tinybird,Gu as Toggle2Fill,_v as ToggleGroup,wp as TokenAvatar,re as Tooltip,Op as TooltipContent,zp as TooltipProvider,$u as Trash,Et as Twitter,Po as Typescript,Kv as UTMBuilder,zc as UTM_PARAMETERS,dm as Unsplash,ju as User,Yu as UserCheck,Zu as UserCrown,qu as Users,Xu as Users2,Ju as Users6,Qu as UsersSettings,Rm as Venmo,ep as Versions2,tp as Watch,rp as Webhook,op as Window,ap as WindowSearch,ip as WindowSettings,bi as Wordmark,np as Xmark,At as YouTube,Ki as badgeVariants,ge as buttonVariants,Gi as getUserAvatarUrl,Qr as navItems,bc as statusBadgeVariants,Xe as useCarousel,Nf as useCarouselActiveIndex,Ef as useCookies,Je as useCopyToClipboard,Of as useCurrentAnchor,_f as useEnterSubmit,Ff as useInViewport,$f as useInputFocused,Zf as useIntersectionObserver,et as useKeyboardShortcut,ag as useLocalStorage,Z as useMediaQuery,cg as useOptimisticUpdate,xg as usePagination,Cg as useRemoveGAParams,Wt as useResizeObserver,ma as useRouterStuff,fa as useScroll,tt as useScrollProgress,Av as useTable,da as useTablePagination,Og as useToastWithUndo};
52
+ </svg>`;function fr({variant:e="full",isInApp:t,className:r}){let{domain:o="dub.co"}=gd(),{theme:a}=vd(Qr),[l,c]=bd(!1),s=hd(i=>{i.preventDefault(),c(!0)},[]),[,d]=Je();function m(i){xd.promise(d(i),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return Ni(Oe.Root,{open:l,onOpenChange:c,children:[q(Oe.Anchor,{asChild:!0,children:q("div",{onContextMenu:s,className:"max-w-fit",children:e==="full"?q(Ci,{className:r}):q(vt,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),q(Oe.Portal,{children:q(Oe.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5",!t&&"-translate-x-8",a==="dark"&&"dark"),onClick:i=>{i.stopPropagation(),c(!1)},children:Ni("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[q(yt,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(yd),icon:q(vt,{className:"h-4 w-4"})}),q(yt,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(wd),icon:q(fd,{strokeWidth:2,className:"h-4 w-4"})}),q(yt,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:q(md,{strokeWidth:2,className:"h-4 w-4"})}),t||o!="dub.co"?q(yt,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:q(ud,{strokeWidth:2,className:"h-4 w-4"})}):q(yt,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:q(pd,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function yt({className:e,...t}){return q(se,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",e),...t})}import{jsx as E,jsxs as G}from"react/jsx-runtime";var Sd=[{name:"Twitter",icon:Et,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:Tt,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:Lt,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:At,href:"https://www.youtube.com/@dubdotco"}],wt={features:lr.map(({title:e,href:t})=>({name:e,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs/introduction"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:dr.map(({name:e,slug:t})=>({name:e,href:`/compare/${t}`})),legal:oi.map(({name:e,slug:t})=>({name:e,href:`/legal/${t}`})),tools:uo.map(({name:e,slug:t})=>({name:e,href:`/tools/${t}`}))},Ct="text-sm font-medium text-neutral-900",Nt="flex flex-col mt-2.5 gap-2.5",ct="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function rx({staticDomain:e,className:t}){let{domain:r="dub.co"}=Nd();return e&&(r=e),E(mr,{className:n("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:G("footer",{children:[G("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[G("div",{className:"flex flex-col gap-6",children:[E("div",{className:"grow",children:G(Ve,{href:z("/",r,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:r,utm_content:"Logo"}),className:"block max-w-fit",children:[G("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),E(fr,{className:"h-8 text-gray-800"})]})}),E("div",{className:"flex items-center gap-3",children:Sd.map(({name:o,icon:a,href:l})=>G("a",{href:l,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))})]}),G("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[G("div",{className:"md:grid md:grid-cols-2",children:[G("div",{children:[E("h3",{className:Ct,children:"Product"}),E("ul",{role:"list",className:Nt,children:wt.features.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:ct,children:o.name})},o.name))})]}),G("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:Ct,children:"Resources"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]})]}),G("div",{className:"md:grid md:grid-cols-2",children:[G("div",{className:"flex flex-col space-y-8",children:[G("div",{children:[E("h3",{className:Ct,children:"Compare"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]}),G("div",{children:[E("h3",{className:Ct,children:"Legal"}),G("ul",{role:"list",className:Nt,children:[wt.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:ct,children:o.name})},o.name)),E("li",{children:G("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:n(ct,"flex items-center gap-1"),children:["Trust Center ",E(Xo,{className:"size-3.5"})]})})]})]})]}),G("div",{className:"mt-10 md:mt-0",children:[E("h3",{className:Ct,children:"Tools"}),E("ul",{role:"list",className:Nt,children:wt.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:ct,children:o.name})},o.name))})]})]})]})]}),G("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[E(Md,{}),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(Cd,{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"})}),G("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function Md(){let{data:e}=Pd("https://status.dub.co/api/v1/summary",pe),[t,r]=ki("bg-neutral-200"),[o,a]=ki("Loading status...");return kd(()=>{if(!e)return;let{ongoing_incidents:l}=e;if(l.length>0){let{current_worst_impact:c,name:s}=l[0],d=c==="degraded_performance"?"bg-yellow-500":"bg-red-500";a(s),r(d)}else a("All systems operational"),r("bg-green-500")},[e]),G(Ve,{href:"https://status.dub.co",target:"_blank",className:"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",children:[G("div",{className:"relative size-2",children:[E("div",{className:n("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,o==="Loading status..."&&"animate-none")}),E("div",{className:n("absolute inset-0 z-10 m-auto size-2 rounded-full",t)})]}),E("p",{className:"text-xs font-medium leading-none text-neutral-600",children:o})]})}import{AnimatePresence as Rd,motion as Ld}from"framer-motion";import{useEffect as Td,useState as Ed}from"react";import{jsx as Pi}from"react/jsx-runtime";var Si=({children:e,fallback:t,fadeInDuration:r=.5,className:o})=>{let[a,l]=Ed(!1);Td(()=>{l(!0)},[]);let c=r?Ld.div:"div";return Pi(Rd,{children:a?Pi(c,{...r?{initial:{opacity:0},animate:{opacity:1},transition:{duration:r}}:{},className:o,children:e}):t||null})};import{cva as Ad}from"class-variance-authority";import{toast as Dd}from"sonner";import{jsx as Jr,jsxs as zd}from"react/jsx-runtime";var Id=Ad("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-gray-100 active:bg-gray-200",neutral:"bg-transparent hover:bg-gray-100 active:bg-gray-200"}},defaultVariants:{variant:"default"}});function fx({variant:e="default",value:t,className:r,icon:o,successMessage:a}){let[l,c]=Je(),s=o||po;return zd("button",{onClick:d=>{d.stopPropagation(),Dd.promise(c(t),{success:a||"Copied to clipboard!"})},className:n(Id({variant:e}),r),type:"button",children:[Jr("span",{className:"sr-only",children:"Copy"}),l?Jr(xo,{className:"h-3.5 w-3.5"}):Jr(s,{className:"h-3.5 w-3.5"})]})}import{toast as Od}from"sonner";import{jsx as Vd}from"react/jsx-runtime";function xx({value:e,children:t,className:r,successMessage:o}){let[a,l]=Je();return Vd("button",{onClick:c=>{c.stopPropagation(),Od.promise(l(e),{success:o||"Copied to clipboard!"})},type:"button",className:n("cursor-copy text-sm text-gray-700 decoration-dotted hover:underline",a&&"cursor-default",r),children:t})}import{jsx as _d,jsxs as Hd}from"react/jsx-runtime";function wx({icon:e,text:t}){return Hd("div",{className:"flex items-center justify-start space-x-2 truncate",children:[e,_d("p",{className:"truncate text-sm",children:t})]})}import{jsx as Wd}from"react/jsx-runtime";var Nx=({children:e})=>Wd("span",{className:"inline-block rounded-md bg-blue-100 px-1 py-0.5 font-mono text-blue-900",children:e});import{jsx as eo}from"react/jsx-runtime";function Rx({apexDomain:e,className:t,imageProps:r}){return e?eo(er,{src:`${St}${e}`,alt:e,className:n("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20,draggable:!1,...r}):eo("div",{className:n("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:eo(Go,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}import{Link2 as Mi}from"lucide-react";import{useRouter as Bd,useSearchParams as Fd}from"next/navigation";import{useEffect as Ud,useMemo as Gd,useRef as $d}from"react";import Kd from"swr";import{useDebounce as jd}from"use-debounce";import{Fragment as Ri,jsx as j,jsxs as _e}from"react/jsx-runtime";function _x({defaultUrl:e}){let t=Bd(),r=Fd(),o=e||(r==null?void 0:r.get("url"))||"https://github.com/dubinc/dub",[a]=jd(ao(o),500),l=Gd(()=>no(a||""),[a]),{data:c,isValidating:s}=Kd(a&&`/api/metatags?url=${encodeURIComponent(a)}`,pe,{revalidateOnFocus:!1}),{title:d,description:m,image:i}=c||{},p=$d(null);Ud(()=>{!e&&p.current&&p.current.select()},[e]);let{isMobile:f}=Z();return _e(Ri,{children:[!e&&_e("div",{className:"relative flex items-center",children:[j(Mi,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),j("input",{ref:p,name:"url",id:"url",type:"url",autoFocus:!f,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:o,onChange:x=>t.replace(`/tools/metatags${x.target.value.length>0?`?url=${x.target.value}`:""}`),"aria-invalid":"true"})]}),_e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[s&&j("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:j(mt,{})}),i?j("img",{src:i,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):_e("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[j(ho,{className:"h-8 w-8 text-gray-400"}),j("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),_e("div",{className:"grid gap-1 bg-white p-3 text-left",children:[l?j("p",{className:"text-sm text-[#536471]",children:l}):j("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),d?j("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:d}):j("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),m?j("p",{className:"line-clamp-2 text-sm text-[#536471]",children:m}):_e("div",{className:"grid gap-2",children:[j("div",{className:"h-4 w-full rounded-md bg-gray-100"}),j("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function Hx({defaultUrl:e}){return _e(Ri,{children:[_e("div",{className:"relative flex items-center",children:[j(Mi,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),j("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:e||"https://github.com/dubinc/dub"})]}),j("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:j("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:j(mt,{})})})]})}import{AnimatePresence as Yd}from"framer-motion";import Li from"js-cookie";import{createContext as Zd,useState as qd}from"react";import{jsx as to}from"react/jsx-runtime";var Qd=Zd({hidePopup:()=>{}});function Kx({children:e,hiddenCookieId:t}){let[r,o]=qd(Li.get(t)==="1"),a=()=>{o(!0),Li.set(t,"1")};return to(Si,{children:to(Qd.Provider,{value:{hidePopup:a},children:to(Yd,{children:!r&&e})})})}import{motion as Xd}from"framer-motion";import{jsx as Ti}from"react/jsx-runtime";function qx({value:e=0,max:t=100,className:r}){return Ti("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",r),children:Ti(Xd.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 Ei}from"class-variance-authority";import{LayoutGroup as Jd,motion as em}from"framer-motion";import{useId as tm}from"react";import{jsx as kt,jsxs as am}from"react/jsx-runtime";var rm=Ei("p-4 transition-colors duration-75",{variants:{variant:{default:"text-gray-400 data-[selected=true]:text-black data-[selected=false]:hover:text-gray-500",accent:"text-neutral-500 transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-neutral-700 data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),om=Ei("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-black",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function iy({variant:e,options:t,selected:r,onSelect:o,className:a}){let l=tm();return kt("div",{className:n("flex text-sm",a),children:kt(Jd,{id:l,children:t.map(({id:c,label:s})=>am("div",{className:"relative",children:[kt("button",{type:"button",onClick:()=>o==null?void 0:o(c),className:rm({variant:e}),"data-selected":c===r,"aria-selected":c===r,children:s}),c===r&&kt(em.div,{layoutId:"indicator",transition:{duration:.1},className:om({variant:e}),children:kt("div",{className:"h-0.5 rounded-t-full bg-current"})})]},c))})})}import{jsx as Ai,jsxs as im}from"react/jsx-runtime";function ly({className:e}){return im("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n("h-6 w-auto text-black dark:text-white",e),children:[Ai("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"}),Ai("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{aa as AUTOPLAY_DEFAULT_DELAY,Np as Accordion,Hi as AccordionContent,Vi as AccordionItem,_i as AccordionTrigger,xm as Africa,Em as Airtm,Ui as Alert,$i as AlertDescription,Gi as AlertTitle,Pm as Amazon,Ce as AnimatedSizeContainer,Vm as Apple,_m as ArrowBoldUp,Hm as ArrowRight,Wm as ArrowTrendUp,Bm as ArrowTurnLeft,Fm as ArrowTurnRight2,Um as ArrowUpRight,Gm as ArrowsOppositeDirectionY,ym as Asia,Ep as Avatar,s4 as Background,Ht as Badge,$m as BadgeCheck,Xp as BadgeTooltip,Km as Blog,er as BlurImage,jm as Bolt,Ym as BoltFill,qm as Book2,Mo as Book2Fill,Qm as Book2Small,Zm as BookOpen,Xm as Books2,Jm as BoxArchive,e0 as BulletList,Ro as BulletListFill,se as Button,Jp as ButtonTooltip,cr as COMPANY,dr as COMPARE_PAGES,ei as CUSTOMER_STORIES,Ca as Calendar,a0 as Calendar6,r0 as CalendarDays,t0 as CalendarIcon,o0 as CalendarRefresh,gm as CardAmex,hm as CardDiscover,kf as CardList,vm as CardMastercard,bm as CardVisa,i0 as Cards,n0 as CaretUpFill,kn as Carousel,Pn as CarouselContent,Sn as CarouselItem,zf as CarouselNavBar,Rn as CarouselNext,Mn as CarouselPrevious,Am as CashApp,s0 as ChartActivity2,l0 as ChartLine,Sm as ChatGPT,Lo as Check,To as Check2,En as Checkbox,Eo as CheckboxCheckedFill,Ao as CheckboxUnchecked,Do as CircleCheck,c0 as CircleCheckFill,d0 as CircleDollar,m0 as CircleDotted,Io as CircleHalfDottedCheck,zo as CircleHalfDottedClock,Oo as CircleInfo,u0 as CirclePlay,p0 as CirclePlayFill,f0 as CircleQuestion,br as CircleWarning,g0 as CircleXmark,h0 as Circles,v0 as Circles3,Si as ClientOnly,Vo as CloudUpload,b0 as Code,x0 as ColorPalette2,C1 as Combobox,ly as CompositeLogo,y0 as ConnectedDots,w0 as ConnectedDots4,Dt as ConnectedDotsFill,C0 as Connections3,po as Copy,fx as CopyButton,xx as CopyText,N0 as CreditCard,k0 as Crosshairs3,P0 as Crown,nm as CrownSmall,S0 as Cube,M0 as CubeSettings,It as CubeSettingsFill,R0 as CurrencyDollar,L0 as CursorRays,T0 as DatabaseKey,Rr as DatePickerContext,ih as DateRangePicker,E0 as Desktop,A0 as DiamondTurnRight,D0 as Dots,I0 as Download,sm as DubCraftedShield,z0 as Duplicate,O0 as EarthPosition,mh as EmptyState,V0 as EnvelopeArrowRight,wm as Europe,fo as ExpandingArrow,_o as Eye,Ho as EyeSlash,lr as FEATURES_LIST,dm as Facebook,Wo as FeatherFill,Mm as Figma,wh as FileUpload,_0 as FileZip2,$h as Filter,W0 as Filter2,H0 as FilterBars,F0 as Flag2,Bo as Flag6,B0 as FlagWavy,U0 as Folder,G0 as Folder5,rx as Footer,Xh as Form,$0 as GamingConsole,K0 as Gauge6,j0 as Gear,Y0 as Gear2,Z0 as Gear3,q0 as Gem,Fo as Gift,Q0 as GiftFill,Rm as GitHubEnhanced,Lt as Github,X0 as Globe,Go as Globe2,Uo as GlobePointer,J0 as GlobeSearch,Co as Go,mm as Google,Lm as GoogleEnhanced,eu as GreekTemple,r2 as Grid,tu as GridIcon,ru as GridLayoutRows,ou as GridPlus,au as Headset,$o as HeadsetFill,Ko as HeartFill,jo as HexadecagonStar,Yo as Hyperlink,wx as IconMenu,iu as Icosahedron,nu as Incognito,qp as InfoTooltip,Nx as InlineSnippet,Rl as Input,su as InputPassword,Zo as InputSearch,R2 as InputSelect,lu as InvoiceDollar,cu as Key,la as KeyboardShortcutContext,ug as KeyboardShortcutProvider,oi as LEGAL_PAGES,jl as Label,du as LayoutSidebar,mu as License,qo as LinesY,pu as Link4,uu as LinkBroken,Rx as LinkLogo,_x as LinkPreview,Hx as LinkPreviewPlaceholder,Tt as LinkedIn,Zp as LinkifyTooltipContent,mt as LoadingCircle,cm as LoadingDots,we as LoadingSpinner,fu as LocationPin,vt as Logo,go as Magic,gu as Magnifier,hu as MapPosition,lm as MatrixLines,mr as MaxWidthWrapper,vu as Menu3,bu as MessageSmile,B2 as MiniAreaChart,xu as MobilePhone,j2 as Modal,yu as MoneyBill2,wu as MoneyBills2,bb as Nav,Qr as NavContext,Lb as NavMobile,fr as NavWordmark,Cm as NorthAmerica,Cu as Note,Lu as NucleoPhoto,Qp as NumberTooltip,Nm as Oceania,Nu as OfficeBuilding,Qo as Page2,q2 as PaginationControls,ku as Paintbrush,Pu as Palette2,Dm as Payoneer,Im as Paypal,Mu as Pen2,Su as PenWriting,Ru as PercentageArrowDown,ho as Photo,No as Php,Tu as Plug2,zt as Plus,ot as Popover,Kx as Popup,Qd as PopupContext,Eu as Post,um as Prisma,yo as ProductHunt,qx as ProgressBar,Au as Pyramid,ko as Python,Du as QRCode,ri as RESOURCES,sc as RadioGroup,lc as RadioGroupItem,wo as Raycast,Iu as Receipt2,Xo as ReferredVia,zu as Refresh2,Ou as Robot,Po as Ruby,ti as SDKS,ai as SOCIAL_LINKS,Jo as SatelliteDish,Vu as ScanText,_u as Scribble,av as Sheet,Hu as ShieldAlert,Wu as ShieldCheck,Bu as ShieldKeyhole,Fu as ShieldSlash,lv as ShimmerDots,Uu as Shuffle,Yp as SimpleTooltipContent,Gu as Sliders,vo as SortOrder,km as SouthAmerica,$u as Sparkle3,Tm as Spotify,Ku as SquareChart,ju as SquareLayoutGrid6,Yu as SquareXmark,Zu as Stars2,fv as StatusBadge,zm as StripeLink,bo as Success,Cv as Switch,op as TV,iy as TabSelect,Kv as Table,qu as TableIcon,Qu as TableRows2,Xu as Tablet,Ju as Tag,ep as Tags,xo as Tick,pm as Tinybird,tp as Toggle2Fill,Qv as ToggleGroup,Ap as TokenAvatar,re as Tooltip,jp as TooltipContent,Kp as TooltipProvider,rp as Trash,Et as Twitter,So as Typescript,i4 as UTMBuilder,_c as UTM_PARAMETERS,fm as Unsplash,ap as User,ip as UserCheck,np as UserCrown,sp as Users,cp as Users2,dp as Users6,lp as UsersSettings,Om as Venmo,mp as Versions2,up as Watch,pp as Webhook,fp as Window,gp as WindowSearch,hp as WindowSettings,Ci as Wordmark,vp as Xmark,At as YouTube,qi as badgeVariants,ge as buttonVariants,Yi as getUserAvatarUrl,Xr as navItems,Cc as statusBadgeVariants,Xe as useCarousel,If as useCarouselActiveIndex,Ff as useCookies,Je as useCopyToClipboard,jf as useCurrentAnchor,Zf as useEnterSubmit,Jf as useInViewport,rg as useInputFocused,ng as useIntersectionObserver,et as useKeyboardShortcut,gg as useLocalStorage,Z as useMediaQuery,yg as useOptimisticUpdate,Eg as usePagination,Ig as useRemoveGAParams,Wt as useResizeObserver,ua as useRouterStuff,ga as useScroll,tt as useScrollProgress,$v as useTable,ma as useTablePagination,Yg as useToastWithUndo};