@dub/ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/animated-size-container.d.ts +48 -48
- package/dist/badge.d.ts +1 -1
- package/dist/button.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chunk-2GUJHDAS.mjs +2 -0
- package/dist/chunk-2TMCZ6EC.mjs +2 -0
- package/dist/chunk-3PTQ2O6L.mjs +2 -0
- package/dist/chunk-3XJH3RQZ.mjs +2 -0
- package/dist/chunk-4ZBKGDMP.mjs +2 -0
- package/dist/chunk-53XPMGPD.mjs +2 -0
- package/dist/chunk-5FM7X6BM.mjs +2 -0
- package/dist/chunk-5GD2TDY3.mjs +2 -0
- package/dist/chunk-5T44O33J.mjs +2 -0
- package/dist/chunk-5T5U6F2F.mjs +2 -0
- package/dist/chunk-5YWZRRD6.mjs +2 -0
- package/dist/chunk-62E6WQUN.mjs +2 -0
- package/dist/chunk-6GTHEK47.mjs +2 -0
- package/dist/chunk-6JPGFKB2.mjs +2 -0
- package/dist/chunk-6OPUAEWL.mjs +2 -0
- package/dist/chunk-6TDDH2EB.mjs +2 -0
- package/dist/chunk-6UJFRY7B.mjs +2 -0
- package/dist/chunk-6XUYTO5W.mjs +2 -0
- package/dist/chunk-6ZOKH6QF.mjs +2 -0
- package/dist/chunk-7MELRKEB.mjs +2 -0
- package/dist/chunk-A7KCVS4K.mjs +2 -0
- package/dist/chunk-BCCERKXV.mjs +2 -0
- package/dist/chunk-BJ2TBUPA.mjs +2 -0
- package/dist/chunk-BVADGNH2.mjs +2 -0
- package/dist/chunk-CC7FC2P2.mjs +6 -0
- package/dist/chunk-CCB3DLYP.mjs +2 -0
- package/dist/chunk-CFECTWZH.mjs +6 -0
- package/dist/chunk-CWA7WG5D.mjs +2 -0
- package/dist/chunk-D4YC6I2W.mjs +2 -0
- package/dist/chunk-D7GJ24CE.mjs +2 -0
- package/dist/chunk-DFNKUE6L.mjs +2 -0
- package/dist/chunk-DKNHUDVA.mjs +2 -0
- package/dist/chunk-DTJCB2RD.mjs +2 -0
- package/dist/chunk-EIAVN75M.mjs +2 -0
- package/dist/chunk-EITMVJMA.mjs +2 -0
- package/dist/chunk-EL7HCBXU.mjs +2 -0
- package/dist/chunk-EPHCO3CD.mjs +2 -0
- package/dist/chunk-ESJLTMZF.mjs +2 -0
- package/dist/chunk-EYZ75MUF.mjs +2 -0
- package/dist/chunk-F3RXWFN6.mjs +2 -0
- package/dist/chunk-FHWV6EZK.mjs +2 -0
- package/dist/chunk-FURMHWBX.mjs +6 -0
- package/dist/chunk-FYLBFGW6.mjs +2 -0
- package/dist/chunk-G2TPPB4K.mjs +2 -0
- package/dist/chunk-GI2H7XEU.mjs +2 -0
- package/dist/chunk-GLDAVYEQ.mjs +2 -0
- package/dist/chunk-GZ4DTMTM.mjs +2 -0
- package/dist/chunk-H7IGGMFA.mjs +2 -0
- package/dist/chunk-HDOI5EQW.mjs +2 -0
- package/dist/chunk-HF42FNW3.mjs +2 -0
- package/dist/chunk-HJ3FT7UF.mjs +2 -0
- package/dist/chunk-HPEZARCH.mjs +2 -0
- package/dist/chunk-HR5D3LHZ.mjs +2 -0
- package/dist/chunk-I2VZ4H4T.mjs +2 -0
- package/dist/chunk-INAQFTLC.mjs +2 -0
- package/dist/chunk-IUYMNTFF.mjs +2 -0
- package/dist/chunk-J4UBC754.mjs +42 -0
- package/dist/chunk-JUK3BSPJ.mjs +2 -0
- package/dist/chunk-KLTXZAIY.mjs +2 -0
- package/dist/chunk-KMQMBLT2.mjs +6 -0
- package/dist/chunk-KPEW67VO.mjs +2 -0
- package/dist/chunk-KWC53MIT.mjs +2 -0
- package/dist/chunk-L3AP4Y57.mjs +6 -0
- package/dist/chunk-LCK4FVHT.mjs +2 -0
- package/dist/chunk-LCWQ4TZM.mjs +2 -0
- package/dist/chunk-LEJDEPZ2.mjs +2 -0
- package/dist/chunk-LFIJPVK5.mjs +2 -0
- package/dist/chunk-MZOM2NGV.mjs +2 -0
- package/dist/chunk-NGCWPE34.mjs +2 -0
- package/dist/chunk-NJOTBGN7.mjs +6 -0
- package/dist/chunk-NQ3MBQQK.mjs +2 -0
- package/dist/chunk-O52SPTHJ.mjs +2 -0
- package/dist/chunk-OGB73ZXU.mjs +2 -0
- package/dist/chunk-OGERVKXP.mjs +2 -0
- package/dist/chunk-OHMNPTR5.mjs +2 -0
- package/dist/chunk-OWUMBKQJ.mjs +2 -0
- package/dist/chunk-P6UU3LOT.mjs +2 -0
- package/dist/chunk-PLKV4MSY.mjs +2 -0
- package/dist/chunk-POOAXUIT.mjs +6 -0
- package/dist/chunk-PXYJZOKT.mjs +2 -0
- package/dist/chunk-QFSAUJG2.mjs +2 -0
- package/dist/chunk-QX5YCOLF.mjs +6 -0
- package/dist/chunk-RBC7W2VB.mjs +2 -0
- package/dist/chunk-RKZAZITS.mjs +2 -0
- package/dist/chunk-SEDTUIGY.mjs +2 -0
- package/dist/chunk-SGAGJGU3.mjs +2 -0
- package/dist/chunk-SMB7YSW4.mjs +2 -0
- package/dist/chunk-SSCU4GTA.mjs +2 -0
- package/dist/chunk-TSXXMRBO.mjs +2 -0
- package/dist/chunk-UBGYO7DP.mjs +2 -0
- package/dist/chunk-UKCQDICA.mjs +2 -0
- package/dist/chunk-VAWGQAJH.mjs +2 -0
- package/dist/chunk-VDOBFGKK.mjs +2 -0
- package/dist/chunk-VE7F6DL7.mjs +2 -0
- package/dist/chunk-VG2STBJF.mjs +2 -0
- package/dist/chunk-VSBJT2HU.mjs +2 -0
- package/dist/chunk-W4HUB4IA.mjs +2 -0
- package/dist/chunk-WJJAI57W.mjs +2 -0
- package/dist/chunk-WNQXYUOC.mjs +2 -0
- package/dist/chunk-WPK3JDEP.mjs +2 -0
- package/dist/chunk-WPKZ47JI.mjs +2 -0
- package/dist/chunk-XD7B4PQA.mjs +2 -0
- package/dist/chunk-XET5E7ZS.mjs +2 -0
- package/dist/chunk-XFLCS6FV.mjs +2 -0
- package/dist/chunk-XGKGA7WI.mjs +2 -0
- package/dist/chunk-XHWZJWCU.mjs +2 -0
- package/dist/chunk-XK6OV4GX.mjs +6 -0
- package/dist/chunk-XLYFRGMR.mjs +2 -0
- package/dist/chunk-XTAT375U.mjs +2 -0
- package/dist/chunk-XUM3VTA2.mjs +2 -0
- package/dist/chunk-Y5J4NQP3.mjs +2 -0
- package/dist/chunk-YFMMJQ5R.mjs +2 -0
- package/dist/chunk-YNQBHWQN.mjs +2 -0
- package/dist/chunk-Z5JVLUE2.mjs +2 -0
- package/dist/chunk-ZAELBMA2.mjs +2 -0
- package/dist/chunk-ZCXNUI7M.mjs +2 -0
- package/dist/chunk-ZLF3DQAM.mjs +2 -0
- package/dist/chunk-ZOJ7UDOQ.mjs +2 -0
- package/dist/chunk-ZZCS4DBZ.mjs +2 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/nucleo/book-open.d.ts +6 -0
- package/dist/icons/nucleo/book-open.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.d.ts +1 -0
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/status-badge.d.ts +2 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-KLTXZAIY.mjs";import{a as H}from"./chunk-5T5U6F2F.mjs";import{a as S,d as _}from"./chunk-OWUMBKQJ.mjs";import{a as I}from"./chunk-TEY5O3RA.mjs";import{a as N}from"./chunk-BR2VFDDF.mjs";import{a as T}from"./chunk-ZN3PNOIE.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-ER4DXXJA.mjs";import{i as x,j as M,l as L,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as R,useState as z}from"react";function D(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return R(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),R(()=>{o()},[o]),r}import*as d from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as B}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<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"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<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"/>
|
|
6
|
+
</svg>`;function G({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(P),[f,l]=Q(!1),h=J(s=>{s.preventDefault(),l(!0)},[]),[,C]=W();function c(s){X.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return B(d.Root,{open:f,onOpenChange:l,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(I,{className:m}):e(N,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),l(!1)},children:B("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:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(N,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(V,{className:a("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",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var P=nt({theme:"light"}),lt=[{name:"Product",content:E,childItems:S,segments:["/features","/compare"]},{name:"Resources",content:H,childItems:_,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Customers",href:"/customers",segments:["/customers"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],O=a("relative block 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 At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=D(40),l=it(),{data:h,isLoading:C}=dt(o.endsWith("dub.co")&&"/api/auth/session",L,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(P.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(T,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:x("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(G,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:k,segments:Z,content:w})=>{let y=Z.some(A=>l==null?void 0:l.startsWith(A));return v(i.Item,{children:[t(mt,{trigger:!!w,children:k!==void 0?t(p,{id:`nav-${k}`,href:x(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:O,"data-active":y,children:s}):t("button",{className:O,"data-active":y,children:s})}),w&&t(i.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:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-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]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:M,className:a(g({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"}):C?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({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"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({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 mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{D as a,P as b,lt as c,At as d,G as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-WMTXO7RT.mjs";import{m as r}from"./chunk-NGCWPE34.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as f}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as A}from"react/jsx-runtime";var y=e.Root,p=c.forwardRef(({className:t,...i},o)=>n(e.Item,{ref:o,className:r("border-b border-b-slate-200 py-3 last:border-none",t),...i}));p.displayName="AccordionItem";var l=c.forwardRef(({className:t,children:i,variant:o="chevron",...a},d)=>{let s=o==="chevron"?f:m;return n(e.Header,{className:"flex",children:A(e.Trigger,{ref:d,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":o==="chevron","[&[data-state=open]>svg]:rotate-45":o==="plus"},t),...a,children:[i,n(s,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});l.displayName=e.Trigger.displayName;var v=c.forwardRef(({className:t,children:i,...o},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",t),...o,children:i}));v.displayName=e.Content.displayName;export{y as a,p as b,l as c,v as d};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-W4HUB4IA.mjs";import{a as H}from"./chunk-HDOI5EQW.mjs";import{a as S,d as _}from"./chunk-LCWQ4TZM.mjs";import{a as I}from"./chunk-TEY5O3RA.mjs";import{a as N}from"./chunk-BR2VFDDF.mjs";import{a as T}from"./chunk-ZN3PNOIE.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-ER4DXXJA.mjs";import{i as x,j as M,l as L,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as R,useState as z}from"react";function D(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return R(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),R(()=>{o()},[o]),r}import*as d from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as B}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<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"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<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"/>
|
|
6
|
+
</svg>`;function G({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(P),[f,l]=Q(!1),h=J(s=>{s.preventDefault(),l(!0)},[]),[,C]=W();function c(s){X.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return B(d.Root,{open:f,onOpenChange:l,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(I,{className:m}):e(N,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),l(!1)},children:B("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:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(N,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(V,{className:a("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",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var P=nt({theme:"light"}),lt=[{name:"Product",content:E,childItems:S,segments:["/features","/compare"]},{name:"Resources",content:H,childItems:_,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Customers",href:"/customers",segments:["/customers"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],O=a("relative block 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 At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=D(40),l=it(),{data:h,isLoading:C}=dt(o.endsWith("dub.co")&&"/api/auth/session",L,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(P.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(T,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:x("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(G,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:k,segments:Z,content:w})=>{let y=Z.some(A=>l==null?void 0:l.startsWith(A));return v(i.Item,{children:[t(mt,{trigger:!!w,children:k!==void 0?t(p,{id:`nav-${k}`,href:x(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:O,"data-active":y,children:s}):t("button",{className:O,"data-active":y,children:s})}),w&&t(i.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:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-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]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:M,className:a(g({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"}):C?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({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"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({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 mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{D as a,P as b,lt as c,At as d,G as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as n}from"./chunk-AXZJPLZ2.mjs";import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-BKZ6TNZC.mjs";import{m as t}from"./chunk-NGCWPE34.mjs";import{cva as d}from"class-variance-authority";import{toast as y}from"sonner";import{jsx as o,jsxs as b}from"react/jsx-runtime";var f=d("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 P({variant:s="default",value:i,className:e,icon:p,successMessage:c}){let[u,l]=n(),m=p||a;return b("button",{onClick:g=>{g.stopPropagation(),y.promise(l(i),{success:c||"Copied to clipboard!"})},className:t(f({variant:s}),e),type:"button",children:[o("span",{className:"sr-only",children:"Copy"}),u?o(r,{className:"h-3.5 w-3.5"}):o(m,{className:"h-3.5 w-3.5"})]})}export{P as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-XK6OV4GX.mjs";import{a as x,e as k,f as L}from"./chunk-O52SPTHJ.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),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"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{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"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{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:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-7NSJS37T.mjs";import{a as n}from"./chunk-TBQBNOUS.mjs";import{m as s}from"./chunk-NGCWPE34.mjs";import{AlertCircle as u}from"lucide-react";import p,{useCallback as f,useState as x}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var g=p.forwardRef(({className:d,type:a,...r},c)=>{let[t,i]=x(!1),m=f(()=>i(!t),[t,i]);return o("div",{children:[o("div",{className:"relative flex",children:[e("input",{type:t?"text":a,className:s("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",d),ref:c,...r}),o("div",{className:"group",children:[r.error&&e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:e(u,{className:s("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:s("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>m(),"aria-label":t?"Hide password":"Show Password",children:t?e(n,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):e(l,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});g.displayName="Input";export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as y,e as C}from"./chunk-5T44O33J.mjs";import{a as f,c as p,f as M}from"./chunk-N4B7OYMT.mjs";import{d as g,e as m}from"./chunk-6OPUAEWL.mjs";import{i as s,m as l,o as v}from"./chunk-HVAJT6I7.mjs";import A from"next/link";import{jsx as e,jsxs as x}from"react/jsx-runtime";function k(a){return x("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...a,className:l("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",a.className),children:[x("g",{className:"text-[var(--grid)]",children:[e("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"}),e("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"}),e("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"}),e("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"}),e("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"}),e("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"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),e("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),e("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),e("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"232.909",children:"402"})}),e("g",{filter:"url(#a)",children:e("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),e("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),e("defs",{children:x("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e("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"}),e("feOffset",{dy:"2"}),e("feGaussianBlur",{stdDeviation:"1"}),e("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),e("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),e("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}import{useId as S}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";function z(a){let r=S();return o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...a,className:l("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",a.className),children:[o("g",{clipPath:`url(#${r}-a)`,children:[t("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"}),t("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),t("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-b)`,d:"M192 144v-35"}),t("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),t("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-c)`,d:"M192 228v-35"}),t("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),t("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-d)`,d:"M144 144v-35"}),t("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),t("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-e)`,d:"M144 228v-35"}),t("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),t("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-f)`,d:"M96 144v-35"}),t("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),t("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-g)`,d:"M96 228v-35"}),t("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),t("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-h)`,d:"M240 144v-35"}),t("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),t("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),t("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),t("path",{stroke:`url(#${r}-i)`,d:"M240 228v-35"}),t("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),t("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),t("path",{stroke:`url(#${r}-j)`,d:"M13 168h34"}),t("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),t("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),t("path",{stroke:`url(#${r}-k)`,d:"M323 168h-34"}),o("g",{children:[t("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"}),t("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"}),t("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"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),t("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"})]}),o("g",{children:[t("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),t("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"}),t("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),t("g",{filter:`url(#${r}-t)`,opacity:"0.16",children:t("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),t("g",{filter:`url(#${r}-u)`,opacity:"0.16",children:t("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),t("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),t("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),o("g",{children:[t("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${r}-w)`,rx:"12"}),t("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),t("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${r}-x)`})]}),t("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:t("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),t("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),t("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),t("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:t("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),t("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"}),t("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"}),t("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${r}-y)`,children:t("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"})}),t("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:t("tspan",{x:"251",y:"171.636",children:"51K"})})]}),o("defs",{children:[o("linearGradient",{id:`${r}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EA580C"}),t("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),o("linearGradient",{id:`${r}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EAB308",stopOpacity:"0"}),t("stop",{offset:"1",stopColor:"#EAB308"})]}),o("linearGradient",{id:`${r}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#EAB308",stopOpacity:"0"}),t("stop",{offset:"1",stopColor:"#EAB308"})]}),o("linearGradient",{id:`${r}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#030712",stopOpacity:"0"}),t("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),o("filter",{id:`${r}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[t("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),o("filter",{id:`${r}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[t("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),t("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),t("clipPath",{id:`${r}-a`,children:t("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),t("clipPath",{id:`${r}-y`,children:t("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),t("pattern",{id:`${r}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:t("use",{xlinkHref:`#${r}-z`,transform:"scale(.01563)"})}),t("image",{href:`${v}dub.co`,id:`${r}-z`,width:"64",height:"64"})]})]})}import{jsx as i,jsxs as c}from"react/jsx-runtime";var w=[{title:"Dub API",description:"Programmatic link creation at scale",icon:m,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:g,href:"/docs/integrations"}];function F({domain:a}){return c("div",{className:"grid w-[1020px] grid-cols-[repeat(2,minmax(0,1fr)),0.8fr] gap-4 p-5",children:[c(A,{href:s("/home",a),className:"group relative flex flex-col rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[c("div",{className:"p-5 pb-0",children:[i("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),i("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"})]}),i("div",{className:"relative grow overflow-hidden",children:i(z,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),i("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]"})]}),c("div",{className:"flex flex-col gap-4",children:[c(A,{href:s("/help/article/dub-analytics",a),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:[i(k,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),i("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]"}),c("div",{className:"h-56 p-5",children:[i("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),i("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]}),i("div",{className:"grid grow grid-rows-2 gap-4",children:w.map(({title:r,description:n,icon:h,href:d})=>i(M,{title:r,description:n,icon:h,href:s(d,a)},r))})]}),c("div",{className:"pl-2 pt-2",children:[i("p",{className:l(f,"mb-2"),children:"Customer Stories"}),c("div",{className:"grid grid-cols-1",children:[y.map(({icon:r,iconClassName:n,title:h,description:d,href:u})=>i(p,{href:s(u,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:h}),className:"-mx-2",icon:i("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:i(r,{className:l("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",n)})}),title:h,description:d},u)),i(p,{href:s("/customers",a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:"Customer Stories"}),title:"View all stories",showArrow:!0})]}),i("p",{className:l(f,"mb-2 mt-5"),children:"Compare"}),i("div",{className:"flex flex-col",children:C.map(({name:r,slug:n})=>i(p,{href:s(`/compare/${n}`,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:`Dub vs. ${r}`}),title:`Dub vs. ${r}`,showArrow:!0},n))})]})]})}export{F as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-CFECTWZH.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-CC7FC2P2.mjs";import{a as x,e as k,f as L}from"./chunk-OWUMBKQJ.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),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"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{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"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{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:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-NWME2ANF.mjs";import{m as d}from"./chunk-NGCWPE34.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function C({children:t,content:n,align:p="center",side:v="bottom",openPopover:a,setOpenPopover:l,mobileOnly:g,popoverContentClassName:c,collisionBoundary:P,sticky:b,onEscapeKeyDown:s,onWheel:f}){let{isMobile:h}=m();return g||h?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),i(r.Portal,{children:[e(r.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:p,side:v,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:b,collisionBoundary:P,onEscapeKeyDown:s,onWheel:f,children:n})})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-POOAXUIT.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as o}from"./chunk-NGCWPE34.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as m}from"./chunk-EYZ75MUF.mjs";import{m as i}from"./chunk-NGCWPE34.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("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":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("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 s=="string"?a("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:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-XK6OV4GX.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as h}from"./chunk-OHMNPTR5.mjs";import{b as v}from"./chunk-BCCERKXV.mjs";import{d as f,e as y,m as l}from"./chunk-NGCWPE34.mjs";import*as s from"@radix-ui/react-tooltip";import R from"linkify-react";import{HelpCircle as B}from"lucide-react";import C from"next/link";import{useState as L}from"react";import{cva as P}from"class-variance-authority";import{forwardRef as k}from"react";import{jsx as p,jsxs as T}from"react/jsx-runtime";var c=P("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:l("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"}}),b=k(({text:t,variant:e="primary",className:o,textWrapperClassName:i,loading:n,icon:m,shortcut:a,disabledTooltip:x,right:N,...u},w)=>x?p(d,{content:x,children:T("div",{className:l("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":e==null?void 0:e.endsWith("outline")},o),children:[m,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("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":e==null?void 0:e.endsWith("outline")}),children:a})]})}):T("button",{ref:w,type:u.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",u.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":c({variant:e}),o),disabled:u.disabled||n,...u,children:[n?p(h,{}):m||null,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("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":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:a}),N]}));b.displayName="Button";import{jsx as r,jsxs as g}from"react/jsx-runtime";function K({children:t}){return r(s.Provider,{delayDuration:150,children:t})}function d({children:t,content:e,side:o="top",disableHoverableContent:i,...n}){let[m,a]=L(!1);return g(s.Root,{open:m,onOpenChange:a,delayDuration:0,disableHoverableContent:i,children:[r(s.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),r(s.Portal,{children:r(s.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...n,children:typeof e=="string"?r("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:e}):typeof e=="function"?e({setOpen:a}):e})})]})}function Q({title:t,cta:e,href:o,target:i,onClick:n}){return g("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[r("p",{className:"text-sm text-gray-700",children:t}),e&&(o?r(C,{href:o,...i?{target:i}:{},className:l(c({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:e}):n?r(b,{onClick:n,text:e,variant:"primary",className:"h-9"}):null)]})}function U({title:t,cta:e,href:o}){return g("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",r("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function X({children:t}){return r("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:r(R,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function Y(t){return r(d,{...t,children:r(B,{className:"h-4 w-4 text-gray-500"})})}function Z({value:t,unit:e="total clicks",prefix:o,children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:r(d,{content:g("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[g("p",{className:"text-sm font-semibold text-gray-700",children:[o,y(t||0,{full:!0})," ",e]}),n&&g("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",f(n,{withAgo:!0})]})]}),children:i})}function $({children:t,content:e,...o}){return r(d,{content:e,...o,children:r("div",{className:"flex cursor-pointer items-center",children:r(v,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}function ee({children:t,tooltipProps:e,...o}){return r(d,{...e,children:r("button",{type:"button",...o,className:l("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",o.className),children:t})})}export{K as a,d as b,Q as c,U as d,X as e,Y as f,Z as g,$ as h,ee as i,c as j,b as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-KMQMBLT2.mjs";import{a as b}from"./chunk-I2VZ4H4T.mjs";import{h as g,i as f,k as h,m as s}from"./chunk-NGCWPE34.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-FYLBFGW6.mjs";import{a as H}from"./chunk-LEJDEPZ2.mjs";import{a as S,d as _}from"./chunk-WPKZ47JI.mjs";import{a as I}from"./chunk-TEY5O3RA.mjs";import{a as N}from"./chunk-BR2VFDDF.mjs";import{a as T}from"./chunk-ZN3PNOIE.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-ER4DXXJA.mjs";import{i as x,j as M,l as L,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as R,useState as z}from"react";function D(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return R(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),R(()=>{o()},[o]),r}import*as d from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as B}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<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"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<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"/>
|
|
6
|
+
</svg>`;function G({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(P),[f,l]=Q(!1),h=J(s=>{s.preventDefault(),l(!0)},[]),[,C]=W();function c(s){X.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return B(d.Root,{open:f,onOpenChange:l,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(I,{className:m}):e(N,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),l(!1)},children:B("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:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(N,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(V,{className:a("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",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var P=nt({theme:"light"}),lt=[{name:"Product",content:E,childItems:S,segments:["/features","/compare"]},{name:"Resources",content:H,childItems:_,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Customers",href:"/customers",segments:["/customers"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],O=a("relative block 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 At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=D(40),l=it(),{data:h,isLoading:C}=dt(o.endsWith("dub.co")&&"/api/auth/session",L,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(P.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(T,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:x("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(G,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:k,segments:Z,content:w})=>{let y=Z.some(A=>l==null?void 0:l.startsWith(A));return v(i.Item,{children:[t(mt,{trigger:!!w,children:k!==void 0?t(p,{id:`nav-${k}`,href:x(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:O,"data-active":y,children:s}):t("button",{className:O,"data-active":y,children:s})}),w&&t(i.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:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-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]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:M,className:a(g({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"}):C?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({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"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({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 mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{D as a,P as b,lt as c,At as d,G as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{b as g,e as b}from"./chunk-WPKZ47JI.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as u}from"./chunk-SMHQYHDD.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{i,m as n}from"./chunk-HVAJT6I7.mjs";import k from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";var w=[{title:"Dub API",description:"Programmatic link creation at scale",icon:u,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:p,href:"/docs/integrations"}];function S({domain:t}){return a("div",{className:"grid w-[1020px] grid-cols-[repeat(2,minmax(0,1fr)),0.8fr] gap-4 p-5",children:[a(k,{href:i("/home",t),className:"group relative flex flex-col rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[a("div",{className:"p-5 pb-0",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),e("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"})]}),e("div",{className:"relative grow overflow-hidden",children:e(v,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),e("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]"})]}),a("div",{className:"flex flex-col gap-4",children:[a(k,{href:i("/help/article/dub-analytics",t),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:[e(h,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),e("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]"}),a("div",{className:"h-56 p-5",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),e("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]}),e("div",{className:"grid grow grid-rows-2 gap-4",children:w.map(({title:r,description:o,icon:s,href:m})=>e(f,{title:r,description:o,icon:s,href:i(m,t)},r))})]}),a("div",{className:"pl-2 pt-2",children:[e("p",{className:n(c,"mb-2"),children:"Customer Stories"}),a("div",{className:"grid grid-cols-1",children:[g.map(({icon:r,iconClassName:o,title:s,description:m,href:d})=>e(l,{href:i(d,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:s}),className:"-mx-2",icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:e(r,{className:n("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",o)})}),title:s,description:m},d)),e(l,{href:i("/customers",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Customer Stories"}),title:"View all stories",showArrow:!0})]}),e("p",{className:n(c,"mb-2 mt-5"),children:"Compare"}),e("div",{className:"flex flex-col",children:b.map(({name:r,slug:o})=>e(l,{href:i(`/compare/${o}`,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:`Dub vs. ${r}`}),title:`Dub vs. ${r}`,showArrow:!0},o))})]})]})}export{S as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c,d as m}from"./chunk-SEDTUIGY.mjs";import{a as p,c as f,f as v}from"./chunk-N4B7OYMT.mjs";import{a as g}from"./chunk-2T3IVINA.mjs";import{a as l}from"./chunk-BOCPUR5Z.mjs";import{i as s,m as d}from"./chunk-HVAJT6I7.mjs";import x from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({domain:t}){return a("div",{className:"grid w-[584px] grid-cols-2 gap-4 p-5",children:[e("div",{children:e("div",{className:"flex flex-col gap-4",children:m.map(({icon:n,title:r,description:i,href:o})=>e(v,{title:r,description:i,icon:n,href:s(o,t)},r))})}),a("div",{className:"flex flex-col gap-4",children:[a("div",{children:[e("p",{className:d(p,"my-2"),children:"SDKs"}),e("div",{className:"flex flex-col gap-0.5",children:c.map(({icon:n,iconClassName:r,title:i,href:o})=>e(f,{href:s(o,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:i}),icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:e(n,{className:d("size-5 text-gray-600 transition-colors dark:text-white/60",r)})}),title:i,showArrow:!0},o))})]}),e("div",{className:"flex grow flex-col justify-end",children:a(x,{href:s("/brand",t),className:"group relative flex flex-col overflow-hidden rounded-xl bg-black transition-colors duration-75 dark:border dark:border-white/20",children:[e(g,{cellSize:20,patternOffset:[0,-5],className:"text-neutral-600 [mask-image:radial-gradient(75%_50%_at_50%_0,black,transparent)]"}),e("div",{className:"pointer-events-none absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:e("div",{className:d("absolute inset-[16%] 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)]")})}),a("div",{className:"relative flex items-center justify-between px-5 py-4",children:[a("div",{children:[e("span",{className:"text-sm font-medium leading-none text-white",children:"Dub Brand"}),e("p",{className:"mt-1 text-sm text-white/70",children:"Logos, wordmark, etc."})]}),e(l,{className:"size-6 text-white"})]})]})})]})]})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-NGCWPE34.mjs";import{sha256 as o}from"js-sha256";import{useState as d}from"react";import{jsx as t}from"react/jsx-runtime";function c(e){if(e!=null&&e.image)return e.image;if(!(e!=null&&e.id))return"https://api.dicebear.com/9.x/micah/svg";let a=`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/${o(e.email)}?d=${encodeURIComponent(r)}`:a}function g({user:e={},className:a}){if(!e)return t("div",{className:n("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",a)});let[r,i]=d(c(e));return t("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",a),draggable:!1,onError:()=>{i(`https://api.dicebear.com/9.x/micah/svg?seed=${encodeURIComponent(e.id||"")}`)}})}function p({id:e,className:a}){return t("img",{src:`https://api.dicebear.com/9.x/shapes/svg?seed=${e}`,alt:"avatar",className:n("h-10 w-10 rounded-full",a),draggable:!1})}export{c as a,g as b,p as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-NGCWPE34.mjs";import{jsx as r}from"react/jsx-runtime";function h({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as e}from"./chunk-NGCWPE34.mjs";import{jsx as t,jsxs as C}from"react/jsx-runtime";function o({className:a}){return C("svg",{className:e("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_linear_39_35)"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.627 151.288C165.868 148.976 155.967 150.187 151.538 150.74C150.176 150.91 149.967 149.698 151.198 148.825C159.073 143.144 172.023 144.772 173.515 146.687C175.032 148.602 173.137 161.895 165.718 168.236C164.584 169.22 163.503 168.692 164.012 167.402C165.66 163.141 169.406 153.595 167.627 151.288ZM161.889 158.017C148.087 168.43 128.096 174 110.873 174C86.7384 174 65.0031 164.852 48.5549 149.615C47.2658 148.423 48.424 146.794 49.9749 147.72C67.7121 158.308 89.6704 164.668 112.331 164.668C127.607 164.668 144.438 161.43 159.888 154.686C162.233 153.683 164.186 156.257 161.894 158.002M120.018 102.131C120.018 108.758 120.187 114.27 116.989 120.141C114.415 124.911 110.325 127.849 105.765 127.849C99.5374 127.849 95.9221 122.889 95.9221 115.559C95.9221 101.093 108.304 98.4611 120.022 98.4611L120.022 102.136M136.379 143.493C135.317 144.496 133.766 144.574 132.555 143.91C127.18 139.231 126.211 137.055 123.24 132.585C114.343 142.092 108.057 144.932 96.5085 144.932C82.8614 144.932 72.2288 136.129 72.2288 118.497C72.2288 104.729 79.3673 95.3391 89.5105 90.753C98.2967 86.7002 110.601 85.9828 120.008 84.863L120.008 82.6669C120.008 78.6335 120.313 73.8632 118.06 70.3776C116.073 67.2508 112.288 65.9661 108.954 65.9661C102.765 65.9661 97.2548 69.2819 95.9124 76.1562C95.6265 77.6881 94.57 79.1861 93.0919 79.2637L77.361 77.5039C76.0379 77.1839 74.5792 76.0641 74.9379 73.9456C78.5725 54.0258 95.8009 48 111.207 48C119.102 48 129.419 50.1961 135.632 56.4449C143.527 64.153 142.771 74.4352 142.771 85.6289L142.771 112.064C142.771 120.019 145.911 123.5 148.887 127.8C149.929 129.318 150.156 131.169 148.848 132.309C145.533 135.227 139.65 140.564 136.412 143.575L136.354 143.517",fill:"url(#paint1_radial_39_35)"}),C("defs",{children:[C("linearGradient",{id:"paint0_linear_39_35",x1:"0",y1:"0",x2:"222",y2:"222",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#FF9900"}),t("stop",{offset:"0.5",stopColor:"#FF9900"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),C("radialGradient",{id:"paint1_radial_39_35",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(48 48) rotate(45) scale(178.191 178.229)",children:[t("stop",{stopColor:"white"}),t("stop",{offset:"1",stopColor:"white",stopOpacity:"0.5"})]})]})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as W}from"./chunk-XD7B4PQA.mjs";import{a as $}from"./chunk-EIAVN75M.mjs";import{a as j}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-I2VZ4H4T.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-OHMNPTR5.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{b as K,m as k}from"./chunk-NGCWPE34.mjs";import{Command as y,useCommandState as G}from"cmdk";import{ChevronDown as J,ListFilter as X}from"lucide-react";import{Fragment as Y,forwardRef as _,isValidElement as V,useCallback as N,useEffect as w,useImperativeHandle as ee,useRef as S,useState as D}from"react";import{Fragment as se,jsx as n,jsxs as m}from"react/jsx-runtime";function be({filters:t,onSelect:o,onRemove:a,onOpenFilter:s,onSearchChange:l,onSelectedFilterChange:g,activeFilters:i,askAI:h,children:v,emptyState:c,className:Q}){var L,A;let{isMobile:U}=P(),f=S(null),C=S(),[x,b]=D(!1);W("f",()=>b(!0),{enabled:!x});let[d,R]=D(""),[u,F]=D(null),E=N(()=>{R(""),F(null)},[]);w(()=>{x||E()},[x]);let r=u?t.find(({key:e})=>e===u):null,Z=N(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=N(e=>{if(!r||!i)return!1;let p=i.find(({key:q})=>q===u);return(p==null?void 0:p.value)===e||p&&r.multiple&&Array.isArray(p.value)&&p.value.includes(e)},[r]),O=N(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||b(!1))},[i,r,h]);return w(()=>{l==null||l(d)},[d]),w(()=>{g==null||g(u)},[u]),w(()=>{(r==null?void 0:r.options)&&f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight})},[r==null?void 0:r.options]),n($,{openPopover:x,setOpenPopover:b,onEscapeKeyDown:e=>{u&&(e.preventDefault(),E())},content:n(T,{width:!U,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(y,{loop:!0,shouldFilter:!r||r.shouldFilter!==!1,children:[m("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(re,{placeholder:`${(r==null?void 0:r.label)||"Filter"}...`,value:d,onValueChange:R,onKeyDown:e=>{(e.key==="Escape"||e.key==="Backspace"&&!d)&&(e.preventDefault(),e.stopPropagation(),u?E():b(!1))},emptySubmit:e=>{e.preventDefault(),e.stopPropagation(),h?(o("ai",r?`${r.label} ${d}`:d),b(!1)):O(d)}}),!r&&n("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"})]}),n(ne,{ref:f,children:m(y.List,{className:k("flex w-full flex-col gap-1 p-1",r?"min-w-[100px]":"min-w-[180px]"),children:[r?((A=(L=r.options)==null?void 0:L.filter(e=>!d||!e.hideDuringSearch))==null?void 0:A.map(e=>{let p=I(e.value);return n(B,{filter:r,option:e,right:p?n(H,{className:"h-4 w-4"}):e.right,onSelect:()=>O(e.value)},e.value)}))??n(y.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:C.current,children:n(z,{})})}):t.map(e=>m(Y,{children:[n(B,{filter:e,onSelect:()=>Z(e.key)}),e.separatorAfter&&n(y.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},e.key)),(!r||r.options)&&n(oe,{search:d,askAI:h,children:c?te(c)?(c==null?void 0:c[u??"default"])??"No matches":c:"No matches"})]})},u)]})}),children:m("button",{type:"button",className:k("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",Q),children:[n(X,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:v??"Filter"}),i!=null&&i.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:i.length}):n(J,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function te(t){return typeof t=="object"&&t!==null&&!V(t)}var re=t=>{let o=G(a=>a.filtered.count===0);return n(y.Input,{...t,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:a=>{var s,l;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((l=t.emptySubmit)==null||l.call(t,a))},autoCapitalize:"none"})},ne=_(({children:t},o)=>{let a=S(null);ee(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:l}=j(a);return m(se,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:l,children:t}),n("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(s,2)}})]})});function B({filter:t,option:o,right:a,onSelect:s}){var h,v;let{isMobile:l}=P(),g=o?o.icon??((h=t.getOptionIcon)==null?void 0:h.call(t,o.value,{key:t.key,option:o}))??t.icon:t.icon,i=o?o.label??((v=t.getOptionLabel)==null?void 0:v.call(t,o.value,{key:t.key,option:o})):t.label;return m(y.Item,{className:k("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:c=>{c.preventDefault()},onPointerUp:c=>{c.preventDefault(),l?setTimeout(s,100):s()},onSelect:s,value:i+(o==null?void 0:o.value),children:[n("span",{className:"shrink-0 text-gray-600",children:ae(g)?g:n(g,{className:"h-4 w-4"})}),K(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var oe=({search:t,askAI:o,children:a})=>o&&t?m(y.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(M,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',t,'"']})]})]}):n(y.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),ae=t=>V(t);export{be as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c,d as m}from"./chunk-LCWQ4TZM.mjs";import{a as p,c as f,f as v}from"./chunk-N4B7OYMT.mjs";import{a as g}from"./chunk-2T3IVINA.mjs";import{a as l}from"./chunk-BOCPUR5Z.mjs";import{i as s,m as d}from"./chunk-HVAJT6I7.mjs";import x from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({domain:t}){return a("div",{className:"grid w-[584px] grid-cols-2 gap-4 p-5",children:[e("div",{children:e("div",{className:"flex flex-col gap-4",children:m.map(({icon:n,title:r,description:i,href:o})=>e(v,{title:r,description:i,icon:n,href:s(o,t)},r))})}),a("div",{className:"flex flex-col gap-4",children:[a("div",{children:[e("p",{className:d(p,"my-2"),children:"SDKs"}),e("div",{className:"flex flex-col gap-0.5",children:c.map(({icon:n,iconClassName:r,title:i,href:o})=>e(f,{href:s(o,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:i}),icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:e(n,{className:d("size-5 text-gray-600 transition-colors dark:text-white/60",r)})}),title:i,showArrow:!0},o))})]}),e("div",{className:"flex grow flex-col justify-end",children:a(x,{href:s("/brand",t),className:"group relative flex flex-col overflow-hidden rounded-xl bg-black transition-colors duration-75 dark:border dark:border-white/20",children:[e(g,{cellSize:20,patternOffset:[0,-5],className:"text-neutral-600 [mask-image:radial-gradient(75%_50%_at_50%_0,black,transparent)]"}),e("div",{className:"pointer-events-none absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:e("div",{className:d("absolute inset-[16%] 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)]")})}),a("div",{className:"relative flex items-center justify-between px-5 py-4",children:[a("div",{children:[e("span",{className:"text-sm font-medium leading-none text-white",children:"Dub Brand"}),e("p",{className:"mt-1 text-sm text-white/70",children:"Logos, wordmark, etc."})]}),e(l,{className:"size-6 text-white"})]})]})})]})]})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-KMQMBLT2.mjs";import{a as x,f as k,g as L}from"./chunk-WPK3JDEP.mjs";import{a as C}from"./chunk-FHWV6EZK.mjs";import{a as v}from"./chunk-GLDAVYEQ.mjs";import{a as b}from"./chunk-5FM7X6BM.mjs";import{a as _}from"./chunk-5YWZRRD6.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{h as m,k as f,m as g,n as h}from"./chunk-NGCWPE34.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),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"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{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"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{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:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-NGCWPE34.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function l({className:i}){return a("svg",{className:t("h-full w-full",i),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"#0D1117"}),C("path",{d:"M111.001 44C72.8976 44 42 74.7556 42 112.696C42 143.048 61.7708 168.798 89.1868 177.882C92.6352 178.518 93.9013 176.392 93.9013 174.577C93.9013 172.939 93.8373 167.528 93.8076 161.787C74.6115 165.943 70.5609 153.682 70.5609 153.682C67.4222 145.742 62.8997 143.63 62.8997 143.63C56.6393 139.367 63.3716 139.454 63.3716 139.454C70.3004 139.939 73.9488 146.534 73.9488 146.534C80.103 157.036 90.0906 154 94.0281 152.244C94.6474 147.804 96.4356 144.774 98.4089 143.058C83.0829 141.321 66.972 135.431 66.972 109.108C66.972 101.608 69.6674 95.4801 74.0814 90.6693C73.3649 88.939 71.0031 81.952 74.7498 72.4896C74.7498 72.4896 80.544 70.6433 93.7299 79.5312C99.2339 78.0091 105.137 77.2458 111.001 77.2196C116.864 77.2458 122.772 78.0091 128.286 79.5312C141.456 70.6433 147.242 72.4896 147.242 72.4896C150.998 81.952 148.635 88.939 147.919 90.6693C152.343 95.4801 155.02 101.608 155.02 109.108C155.02 135.493 138.878 141.303 123.513 143.004C125.988 145.136 128.194 149.316 128.194 155.725C128.194 164.917 128.114 172.315 128.114 174.577C128.114 176.405 129.356 178.547 132.853 177.873C160.254 168.779 180 143.038 180 112.696C180 74.7556 149.107 44 111.001 44ZM67.843 141.859C67.691 142.201 67.1517 142.303 66.6603 142.069C66.1599 141.844 65.8788 141.379 66.041 141.037C66.1896 140.685 66.73 140.587 67.2294 140.823C67.731 141.047 68.0166 141.517 67.843 141.859ZM71.237 144.874C70.9079 145.178 70.2646 145.037 69.8282 144.557C69.3768 144.078 69.2923 143.438 69.6259 143.129C69.9653 142.826 70.5892 142.968 71.0416 143.447C71.493 143.931 71.5809 144.567 71.237 144.874ZM73.5655 148.732C73.1427 149.024 72.4514 148.75 72.0241 148.139C71.6013 147.529 71.6013 146.796 72.0332 146.502C72.4617 146.209 73.1427 146.473 73.5758 147.079C73.9974 147.7 73.9974 148.433 73.5655 148.732ZM77.5034 153.2C77.1252 153.615 76.3196 153.504 75.73 152.937C75.1267 152.383 74.9588 151.597 75.3381 151.182C75.7209 150.766 76.531 150.883 77.1252 151.445C77.7239 151.998 77.9067 152.789 77.5034 153.2ZM82.5928 154.708C82.4259 155.246 81.6501 155.491 80.8685 155.262C80.0881 155.027 79.5774 154.397 79.7351 153.853C79.8973 153.311 80.6766 153.056 81.4639 153.301C82.2431 153.535 82.755 154.161 82.5928 154.708ZM88.3847 155.348C88.4041 155.915 87.7414 156.384 86.921 156.395C86.096 156.413 85.4287 155.954 85.4196 155.397C85.4196 154.825 86.0674 154.359 86.8924 154.346C87.7128 154.33 88.3847 154.785 88.3847 155.348ZM94.0746 155.131C94.1729 155.684 93.6027 156.251 92.788 156.403C91.987 156.548 91.2455 156.207 91.1438 155.659C91.0444 155.092 91.6248 154.525 92.4247 154.378C93.2405 154.237 93.9706 154.569 94.0746 155.131Z",fill:"url(#paint0_radial_39_32)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(42 44) rotate(44.1575) scale(192.354 192.312)",children:[C("stop",{stopColor:"white",stopOpacity:"0.77"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{l as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-CC7FC2P2.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as u}from"./chunk-NGCWPE34.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as G}from"react";import{DayPicker as I,useDayPicker as j,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:N,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:u("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:w,...y,children:e(N,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function X({mode:w="single",weekStartsOn:N=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:M,className:L,classNames:D,...R}){return e(I,{mode:w,weekStartsOn:N,numberOfMonths:m,locale:M,showOutsideDays:m===1,className:L,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:u("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",...D},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:n,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:o}=j(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);n&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!o||a.getTime()<=o.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!n||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!n,"aria-label":"Go to previous month",onClick:()=>n&&r(n),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:M})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||o&&P(s,1).getTime()>o.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=G(null),{activeModifiers:n,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:o,today:b,disabled:f,range_middle:h}=n;if(l)return e(z,{});if(!g)return e("div",{...d,className:u("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:u("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!o,"!bg-white":o,"!bg-blue-400":o&&h,"text-gray-400":f})})]})}},...R})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as r}from"./chunk-7TBGFJM2.mjs";import{m as t}from"./chunk-NGCWPE34.mjs";import{motion as c}from"framer-motion";import{forwardRef as u,useRef as C}from"react";import{jsx as d}from"react/jsx-runtime";var R=u(({width:i=!1,height:e=!1,className:p,transition:f,children:s,...h},l)=>{var a,m;let n=C(null),o=r(n);return d(c.div,{ref:l,className:t("overflow-hidden",p),animate:{width:i?((a=o==null?void 0:o.contentRect)==null?void 0:a.width)??"auto":"auto",height:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.height)??"auto":"auto"},transition:f??{type:"spring",duration:.3},...h,children:d("div",{ref:n,className:t(e&&"h-max",i&&"w-max"),children:s})})});R.displayName="AnimatedSizeContainer";export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{b as g,e as b}from"./chunk-62E6WQUN.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as u}from"./chunk-SMHQYHDD.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{i,m as n}from"./chunk-HVAJT6I7.mjs";import k from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";var w=[{title:"Dub API",description:"Programmatic link creation at scale",icon:u,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:p,href:"/docs/integrations"}];function S({domain:t}){return a("div",{className:"grid w-[1020px] grid-cols-[repeat(2,minmax(0,1fr)),0.8fr] gap-4 p-5",children:[a(k,{href:i("/home",t),className:"group relative flex flex-col rounded-xl border border-neutral-100 bg-neutral-50 dark:border-white/20 dark:bg-white/10",children:[a("div",{className:"p-5 pb-0",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Links"}),e("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"})]}),e("div",{className:"relative grow overflow-hidden",children:e(v,{className:"absolute bottom-0 h-auto w-full [mask-image:linear-gradient(transparent,black_20%,black_80%,transparent)]"})}),e("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]"})]}),a("div",{className:"flex flex-col gap-4",children:[a(k,{href:i("/help/article/dub-analytics",t),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:[e(h,{className:"absolute bottom-0 h-auto w-full translate-y-[15%] [mask-image:linear-gradient(90deg,transparent,black)]"}),e("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]"}),a("div",{className:"h-56 p-5",children:[e("span",{className:"text-sm font-medium text-neutral-900 dark:text-white",children:"Dub Analytics"}),e("p",{className:"mt-3 max-w-48 text-sm text-neutral-500 dark:text-white/60",children:"Powerful real-time analytics with conversion tracking"})]})]}),e("div",{className:"grid grow grid-rows-2 gap-4",children:w.map(({title:r,description:o,icon:s,href:m})=>e(f,{title:r,description:o,icon:s,href:i(m,t)},r))})]}),a("div",{className:"pl-2 pt-2",children:[e("p",{className:n(c,"mb-2"),children:"Customer Stories"}),a("div",{className:"grid grid-cols-1",children:[g.map(({icon:r,iconClassName:o,title:s,description:m,href:d})=>e(l,{href:i(d,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:s}),className:"-mx-2",icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-2 dark:border-white/20 dark:bg-white/10",children:e(r,{className:n("h-4 w-4 shrink-0 text-gray-600 transition-colors dark:text-white/60",o)})}),title:s,description:m},d)),e(l,{href:i("/customers",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Customer Stories"}),title:"View all stories",showArrow:!0})]}),e("p",{className:n(c,"mb-2 mt-5"),children:"Compare"}),e("div",{className:"flex flex-col",children:b.map(({name:r,slug:o})=>e(l,{href:i(`/compare/${o}`,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:`Dub vs. ${r}`}),title:`Dub vs. ${r}`,showArrow:!0},o))})]})]})}export{S as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-FURMHWBX.mjs";import{a as x,e as k,f as L}from"./chunk-WPKZ47JI.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),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"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{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"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{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:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as v}from"./chunk-NGCWPE34.mjs";import{useEffect as U,useRef as w,useState as _}from"react";import{jsx as S}from"react/jsx-runtime";var y=`
|
|
3
|
+
attribute vec2 position;
|
|
4
|
+
|
|
5
|
+
void main()
|
|
6
|
+
{
|
|
7
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
8
|
+
}
|
|
9
|
+
`,z=`
|
|
10
|
+
precision mediump float;
|
|
11
|
+
|
|
12
|
+
uniform vec2 resolution;
|
|
13
|
+
uniform float time;
|
|
14
|
+
uniform float dotSize;
|
|
15
|
+
uniform float cellSize;
|
|
16
|
+
uniform float speed;
|
|
17
|
+
|
|
18
|
+
// Gold noise: https://stackoverflow.com/a/28095165
|
|
19
|
+
float PHI = 1.61803398874989484820459;
|
|
20
|
+
float random(in vec2 xy){
|
|
21
|
+
return fract(tan(distance(xy*PHI, xy))*xy.x);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void main(void) {
|
|
25
|
+
vec2 uv = gl_FragCoord.xy;
|
|
26
|
+
|
|
27
|
+
vec2 cellUv = vec2(int(uv.x / cellSize), int(uv.y / cellSize));
|
|
28
|
+
float id = random(cellUv + 1.0);
|
|
29
|
+
|
|
30
|
+
float fadeEffect = (sin(time * speed + id * 20.0) + 1.0) * 0.5;
|
|
31
|
+
|
|
32
|
+
vec2 dotUv = fract(uv / cellSize);
|
|
33
|
+
float dot = step(max(dotUv.x, dotUv.y), dotSize / cellSize);
|
|
34
|
+
|
|
35
|
+
float opacity = dot * fadeEffect;
|
|
36
|
+
|
|
37
|
+
vec4 fragColor = vec4(vec3(0.0), opacity);
|
|
38
|
+
fragColor.rgb *= fragColor.a;
|
|
39
|
+
|
|
40
|
+
gl_FragColor = fragColor;
|
|
41
|
+
}
|
|
42
|
+
`,I=60,C=1e3/I;function H({dotSize:c=1,cellSize:l=3,speed:s=5,className:p}){let f=w(null),[h,A]=_(!1);return U(()=>{let o=f.current;if(!o||!o.parentElement)return;let m=o.parentElement,d=window.devicePixelRatio||1;o.width=m.clientWidth*d,o.height=m.clientHeight*d;let e=o.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(e===null){alert("Failed to initialize WebGL");return}let t=e.createProgram();if(!t){console.error("Failed to create shader program");return}for(let r=0;r<2;++r){let T=r===0?y:z,i=e.createShader(r===0?e.VERTEX_SHADER:e.FRAGMENT_SHADER);if(!i){console.error("Failed to create shader");return}e.shaderSource(i,T),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)||console.error(e.getShaderInfoLog(i)),e.attachShader(t,i),e.linkProgram(t)}e.getProgramParameter(t,e.LINK_STATUS)||console.error(e.getProgramInfoLog(t));let u=e.getAttribLocation(t,"position"),R=e.getUniformLocation(t,"time"),F=e.getUniformLocation(t,"resolution"),E=e.getUniformLocation(t,"dotSize"),x=e.getUniformLocation(t,"cellSize"),P=e.getUniformLocation(t,"speed");e.useProgram(t);let L=[1,1,-1,1,1,-1,-1,-1],b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,b),e.bufferData(e.ARRAY_BUFFER,new Float32Array(L),e.STATIC_DRAW),e.enableVertexAttribArray(u),e.vertexAttribPointer(u,2,e.FLOAT,!1,0,0),e.uniform1f(E,c*window.devicePixelRatio),e.uniform1f(x,l*window.devicePixelRatio),e.uniform1f(P,s);let n,g=0;function a(r){if(r-g<C){n=requestAnimationFrame(a);return}g=r,e&&o&&t&&(e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.uniform1f(R,r/1e3),e.uniform2f(F,o.width,o.height),e.drawArrays(e.TRIANGLE_STRIP,0,4)),n=requestAnimationFrame(a)}return n=requestAnimationFrame(a),o.addEventListener("webglcontextlost",r=>{r.preventDefault(),A(!0),cancelAnimationFrame(n)}),()=>{cancelAnimationFrame(n),o.removeEventListener("webglcontextlost",()=>{})}},[c,l,s]),S("div",{className:v("absolute inset-0",p,h&&"opacity-0"),children:S("canvas",{ref:f,width:"100%",height:"100%",className:"size-full"})})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-NGCWPE34.mjs";import{motion as t}from"framer-motion";import{jsx as e}from"react/jsx-runtime";function s({value:i=0,max:r=100,className:o}){return e("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",o),children:e(t.div,{initial:{width:0},animate:{width:i&&r?i/r*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${i&&r&&i>r?"bg-red-500":"bg-blue-500"} h-full`})})}export{s as a};
|