@dub/ui 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/animated-size-container.d.ts +9 -9
  3. package/dist/badge.d.ts +1 -1
  4. package/dist/button.mjs +1 -1
  5. package/dist/carousel.mjs +1 -1
  6. package/dist/chunk-2ECKTJTV.mjs +2 -0
  7. package/dist/chunk-2I2HNQZS.mjs +2 -0
  8. package/dist/chunk-2JN3SZ3B.mjs +2 -0
  9. package/dist/chunk-2UTN6IZK.mjs +6 -0
  10. package/dist/chunk-33ECFKCV.mjs +2 -0
  11. package/dist/chunk-354GSIM7.mjs +2 -0
  12. package/dist/chunk-36HSK7U6.mjs +2 -0
  13. package/dist/chunk-36LOFUEW.mjs +2 -0
  14. package/dist/chunk-3BL2KJ5R.mjs +2 -0
  15. package/dist/chunk-3FKURQMW.mjs +2 -0
  16. package/dist/chunk-3NIJ7ELB.mjs +2 -0
  17. package/dist/chunk-3P5K2NA4.mjs +2 -0
  18. package/dist/chunk-4UT3ACOW.mjs +2 -0
  19. package/dist/chunk-5MDTRWS5.mjs +2 -0
  20. package/dist/chunk-6IOOALV7.mjs +2 -0
  21. package/dist/chunk-6LCX33KU.mjs +2 -0
  22. package/dist/chunk-73H2SLZX.mjs +2 -0
  23. package/dist/chunk-77PWZUMW.mjs +2 -0
  24. package/dist/chunk-7ARMYSBX.mjs +2 -0
  25. package/dist/chunk-7GUYWBRA.mjs +2 -0
  26. package/dist/chunk-7XSOQOCS.mjs +6 -0
  27. package/dist/chunk-A5JU5WYY.mjs +2 -0
  28. package/dist/chunk-AUXZMELI.mjs +2 -0
  29. package/dist/chunk-B2VUXR6K.mjs +2 -0
  30. package/dist/chunk-BRXSNJNL.mjs +2 -0
  31. package/dist/chunk-BZD5HLBP.mjs +2 -0
  32. package/dist/chunk-C6IESAG3.mjs +2 -0
  33. package/dist/chunk-C6S6CVNM.mjs +2 -0
  34. package/dist/chunk-CBRXGVSY.mjs +2 -0
  35. package/dist/chunk-D3EEBJKC.mjs +2 -0
  36. package/dist/chunk-DHJLWHX6.mjs +2 -0
  37. package/dist/chunk-DM2W2FCI.mjs +2 -0
  38. package/dist/chunk-DXK7AZ47.mjs +2 -0
  39. package/dist/chunk-EDFEA2WG.mjs +2 -0
  40. package/dist/chunk-EJSANVXT.mjs +6 -0
  41. package/dist/chunk-FE3IQIYS.mjs +2 -0
  42. package/dist/chunk-FOPMPAOZ.mjs +2 -0
  43. package/dist/chunk-FPHUF4BY.mjs +2 -0
  44. package/dist/chunk-HH4RBXD6.mjs +2 -0
  45. package/dist/chunk-HP4PMEZ2.mjs +2 -0
  46. package/dist/chunk-HUN3QJA4.mjs +2 -0
  47. package/dist/chunk-IBXQNRVJ.mjs +2 -0
  48. package/dist/chunk-IKE3KMMI.mjs +2 -0
  49. package/dist/chunk-INE3CH73.mjs +2 -0
  50. package/dist/chunk-IS6CA527.mjs +2 -0
  51. package/dist/chunk-IUN3QSG7.mjs +2 -0
  52. package/dist/chunk-IYX6WFG2.mjs +2 -0
  53. package/dist/chunk-J3VT4F7U.mjs +2 -0
  54. package/dist/chunk-J7QUH2V5.mjs +2 -0
  55. package/dist/chunk-JOKYJTIA.mjs +2 -0
  56. package/dist/chunk-JSBJKIXG.mjs +2 -0
  57. package/dist/chunk-JYMBRXHQ.mjs +2 -0
  58. package/dist/chunk-KVEJNXMB.mjs +2 -0
  59. package/dist/chunk-L2X75V4V.mjs +2 -0
  60. package/dist/chunk-LBDMIW7S.mjs +6 -0
  61. package/dist/chunk-LJHMFBUB.mjs +2 -0
  62. package/dist/chunk-LKO36VEM.mjs +6 -0
  63. package/dist/chunk-LNYXD3LT.mjs +2 -0
  64. package/dist/chunk-LOYIZKXB.mjs +2 -0
  65. package/dist/chunk-MSQFZ4CY.mjs +2 -0
  66. package/dist/chunk-MWQ5UCT5.mjs +2 -0
  67. package/dist/chunk-NCS67LZR.mjs +2 -0
  68. package/dist/chunk-ND5PQILC.mjs +2 -0
  69. package/dist/chunk-NVQWOLE6.mjs +2 -0
  70. package/dist/chunk-OEZ5OJNE.mjs +6 -0
  71. package/dist/chunk-OQG4VIMK.mjs +2 -0
  72. package/dist/chunk-OQKJJM7K.mjs +2 -0
  73. package/dist/chunk-OTWIQJAR.mjs +2 -0
  74. package/dist/chunk-OWC2FKLC.mjs +2 -0
  75. package/dist/chunk-P6YEQDLL.mjs +2 -0
  76. package/dist/chunk-PBIGB4XC.mjs +2 -0
  77. package/dist/chunk-PK5IFPTU.mjs +2 -0
  78. package/dist/chunk-PW6XVAH6.mjs +6 -0
  79. package/dist/chunk-QEXQZ47C.mjs +2 -0
  80. package/dist/chunk-QJJL4F6M.mjs +2 -0
  81. package/dist/chunk-RAAECPRB.mjs +2 -0
  82. package/dist/chunk-RB4P3HZT.mjs +6 -0
  83. package/dist/chunk-RHDA2VO2.mjs +2 -0
  84. package/dist/chunk-RURMT663.mjs +6 -0
  85. package/dist/chunk-RVCKKHSV.mjs +2 -0
  86. package/dist/chunk-TJKIUYZQ.mjs +2 -0
  87. package/dist/chunk-UM7WJ76W.mjs +6 -0
  88. package/dist/chunk-UMYM62V4.mjs +6 -0
  89. package/dist/chunk-UVXGLFKJ.mjs +2 -0
  90. package/dist/chunk-V4JRTKIY.mjs +6 -0
  91. package/dist/chunk-W7C555QS.mjs +2 -0
  92. package/dist/chunk-WOKW2YRN.mjs +2 -0
  93. package/dist/chunk-WR7KV6D2.mjs +2 -0
  94. package/dist/chunk-XIRFOUI7.mjs +2 -0
  95. package/dist/chunk-XRGORMYH.mjs +2 -0
  96. package/dist/chunk-XXNNOATU.mjs +2 -0
  97. package/dist/chunk-YHBCUTQJ.mjs +2 -0
  98. package/dist/chunk-YJLOZDW5.mjs +2 -0
  99. package/dist/chunk-YSFGOBVD.mjs +6 -0
  100. package/dist/chunk-ZW7YITEF.mjs +2 -0
  101. package/dist/combobox/index.mjs +1 -1
  102. package/dist/copy-button.mjs +1 -1
  103. package/dist/date-picker/date-range-picker.mjs +1 -1
  104. package/dist/date-picker/presets.mjs +1 -1
  105. package/dist/file-upload.mjs +1 -1
  106. package/dist/filter/filter-select.mjs +1 -1
  107. package/dist/footer.mjs +1 -1
  108. package/dist/form.mjs +1 -1
  109. package/dist/icons/index.mjs +1 -1
  110. package/dist/index.css +1 -1
  111. package/dist/index.mjs +1 -1
  112. package/dist/input.mjs +1 -1
  113. package/dist/link-logo.mjs +1 -1
  114. package/dist/link-preview.mjs +1 -1
  115. package/dist/nav/content/product-content.mjs +1 -1
  116. package/dist/nav/content/resources-content.mjs +1 -1
  117. package/dist/nav/content/shared.mjs +1 -1
  118. package/dist/nav/content/solutions-content.mjs +1 -1
  119. package/dist/nav/nav-mobile.mjs +1 -1
  120. package/dist/nav/nav.mjs +1 -1
  121. package/dist/nav-wordmark.mjs +1 -1
  122. package/dist/status-badge.d.ts +1 -1
  123. package/dist/status-badge.mjs +1 -1
  124. package/dist/switch.mjs +1 -1
  125. package/dist/table/table.mjs +1 -1
  126. package/dist/tooltip.d.ts +1 -1
  127. package/dist/tooltip.mjs +1 -1
  128. package/dist/utm-builder.mjs +1 -1
  129. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-3P5K2NA4.mjs";import{a as H}from"./chunk-XXNNOATU.mjs";import{a as S,d as _}from"./chunk-HH4RBXD6.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{c,d as m}from"./chunk-77PWZUMW.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,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-RHDA2VO2.mjs";import{a as H}from"./chunk-SMB7YSW4.mjs";import{a as S,d as _}from"./chunk-O52SPTHJ.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 i}from"./chunk-CGL6YSX7.mjs";import{a as l}from"./chunk-IGIB6XZB.mjs";import{a as c}from"./chunk-GYE7FFDN.mjs";import{a as e}from"./chunk-UUJYTAK4.mjs";import{a as s}from"./chunk-GV2NLM3E.mjs";import{m as o}from"./chunk-NGCWPE34.mjs";import{cva as d}from"class-variance-authority";import{jsx as x,jsxs as b}from"react/jsx-runtime";var f=d("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),m={neutral:c,new:i,success:s,pending:l,warning:e,error:e};function v({className:g,variant:t,icon:r,onClick:n,children:u,...p}){let a=r!==null?r??m[t??"neutral"]:null;return b("span",{className:o(f({variant:t}),n&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",g),onClick:n,...p,children:[a&&x(a,{className:"h-3 w-3 shrink-0"}),u]})}export{f as a,v as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as g,e as b}from"./chunk-77PWZUMW.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.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{b as g,e as b}from"./chunk-QJJL4F6M.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{a as u}from"./chunk-SMHQYHDD.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{a as y}from"./chunk-V6CYMTUE.mjs";import{a as m}from"./chunk-DDH3RGOS.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as u}from"./chunk-55MW6BPC.mjs";import{a as p}from"./chunk-SMHQYHDD.mjs";import{a as c}from"./chunk-4Y25GOWJ.mjs";import{a}from"./chunk-Q4S6TICU.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a as n}from"./chunk-PDSUXFDU.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as r}from"./chunk-TNAH7N5Q.mjs";import{a as s}from"./chunk-PRJVDP45.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var b=[{title:"Dub Links",description:"Short links with superpowers",icon:g,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:m,href:"/help/article/dub-analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:p,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:c,href:"/docs/integrations"}],C=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:y,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],x=[{icon:n,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],P=[{icon:u,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:a,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],v=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],S=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{b as a,C as b,x as c,P as d,v as e,S as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as w}from"./chunk-UMYM62V4.mjs";import{a as x,e as k,f as L}from"./chunk-PK5IFPTU.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{c as v}from"./chunk-YSFGOBVD.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{c as v}from"./chunk-V4JRTKIY.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,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-PBIGB4XC.mjs";import{a as H}from"./chunk-2JN3SZ3B.mjs";import{a as S,d as _}from"./chunk-6LCX33KU.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{c as C}from"./chunk-I64FUP6F.mjs";import{a as I}from"./chunk-OQKJJM7K.mjs";import{a as U}from"./chunk-PVGXQRQY.mjs";import{a as q}from"./chunk-ABBVN54D.mjs";import{a as H}from"./chunk-O54LVCRS.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-HVAJT6I7.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as u}from"./chunk-HVAJT6I7.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 j}from"react";import{DayPicker as G,useDayPicker as I,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:M,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(M,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function Z({mode:w="single",weekStartsOn:M=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:N,className:L,classNames:R,...D}){return e(G,{mode:w,weekStartsOn:M,numberOfMonths:m,locale:N,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",...R},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:o,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:n}=I(),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);o&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!n||a.getTime()<=n.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||!o||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!o,"aria-label":"Go to previous month",onClick:()=>o&&r(o),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:N})}),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||n&&P(s,1).getTime()>n.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=j(null),{activeModifiers:o,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:n,today:b,disabled:f,range_middle:h}=o;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":!n,"!bg-white":n,"!bg-blue-400":n&&h,"text-gray-400":f})})]})}},...D})}export{Z as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as g,e as b}from"./chunk-JSBJKIXG.mjs";import{a as c,c as l,f}from"./chunk-WOKW2YRN.mjs";import{a as h}from"./chunk-XRGORMYH.mjs";import{a as v}from"./chunk-J3VT4F7U.mjs";import{a as u}from"./chunk-SMHQYHDD.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{h as i,m as n}from"./chunk-NGCWPE34.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{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{b as g,e as b}from"./chunk-IUN3QSG7.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-LKO36VEM.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 h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.mjs";import{b as g,e as b}from"./chunk-6LCX33KU.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as p}from"./chunk-4Y25GOWJ.mjs";import{a as u}from"./chunk-SMHQYHDD.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{a as y}from"./chunk-V6CYMTUE.mjs";import{a as m}from"./chunk-DDH3RGOS.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as u}from"./chunk-55MW6BPC.mjs";import{a as p}from"./chunk-SMHQYHDD.mjs";import{a as c}from"./chunk-4Y25GOWJ.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a}from"./chunk-Q4S6TICU.mjs";import{a as r}from"./chunk-TNAH7N5Q.mjs";import{a as n}from"./chunk-PDSUXFDU.mjs";import{a as s}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var b=[{title:"Dub Links",description:"Short links with superpowers",icon:g,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:m,href:"/help/article/dub-analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:p,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:c,href:"/docs/integrations"}],C=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:y,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],x=[{icon:n,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],P=[{icon:u,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:a,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],v=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],S=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{b as a,C as b,x as c,P as d,v as e,S as f};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-6IOOALV7.mjs";import{a as H}from"./chunk-IYX6WFG2.mjs";import{a as S,d as _}from"./chunk-AUXZMELI.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{c as W}from"./chunk-I64FUP6F.mjs";import{a as $}from"./chunk-O54LVCRS.mjs";import{a as j}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-XTK2BTRW.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-AIVHYQG5.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{b as K,m as k}from"./chunk-HVAJT6I7.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 w,useEffect as N,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:i,onSelectedFilterChange:g,activeFilters:l,askAI:h,children:v,emptyState:c,className:Q}){var L,A;let{isMobile:U}=P(),f=S(null),C=S({width:0,height:0}),[x,b]=D(!1);W("f",()=>b(!0),{enabled:!x});let[d,R]=D(""),[u,F]=D(null),E=w(()=>{R(""),F(null)},[]);N(()=>{x||E()},[x]);let r=u?t.find(({key:e})=>e===u):null,Z=w(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=w(e=>{if(!r||!l)return!1;let p=l.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=w(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||b(!1))},[l,r,h]);return N(()=>{i==null||i(d)},[d]),N(()=>{g==null||g(u)},[u]),N(()=>{(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"}),l!=null&&l.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:l.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,i;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((i=t.emptySubmit)==null||i.call(t,a))},autoCapitalize:"none"})},ne=_(({children:t},o)=>{let a=S(null);ee(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:i}=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:i,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:i}=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,l=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(),i?setTimeout(s,100):s()},onSelect:s,value:l+(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(l,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{a as y}from"./chunk-V6CYMTUE.mjs";import{a as m}from"./chunk-DDH3RGOS.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as u}from"./chunk-55MW6BPC.mjs";import{a as c}from"./chunk-4Y25GOWJ.mjs";import{a as p}from"./chunk-SMHQYHDD.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a}from"./chunk-Q4S6TICU.mjs";import{a as n}from"./chunk-PDSUXFDU.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as r}from"./chunk-TNAH7N5Q.mjs";import{a as s}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var b=[{title:"Dub Links",description:"Short links with superpowers",icon:g,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:m,href:"/help/article/dub-analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:p,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:c,href:"/docs/integrations"}],C=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Programmatic link sharing",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:y,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],x=[{icon:n,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],P=[{icon:u,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:a,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],v=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],S=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{b as a,C as b,x as c,P as d,v as e,S as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as y}from"./chunk-RURMT663.mjs";import{a as x,e as k,f as L}from"./chunk-FOPMPAOZ.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 w}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"}],l={features:x.map(({title:r,href:o})=>({name:r,href:o})),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:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:L.map(({name:r,slug:o})=>({name:r,href:`/legal/${o}`})),tools:h.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))},c="text-sm font-medium text-neutral-900",u="flex flex-col mt-2.5 gap-2.5",i="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:r,className:o}){let{domain:s="dub.co"}=E();return r&&(s=r),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",o),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(y,{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:c,children:"Product"}),t("ul",{role:"list",className:u,children:[l.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:i,children:a.name})},a.name)),e("li",{children:e("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:i,children:"Trust Center"})})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:c,children:"Resources"}),e("ul",{role:"list",className:u,children:l.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:i,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:c,children:"Compare"}),e("ul",{role:"list",className:u,children:l.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:i,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:c,children:"Legal"}),e("ul",{role:"list",className:u,children:l.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:i,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:c,children:"Tools"}),e("ul",{role:"list",className:u,children:l.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:i,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:r}=I("https://status.dub.co/api/v1/summary",f),[o,s]=w("bg-neutral-200"),[a,d]=w("Loading status...");return F(()=>{if(!r)return;let{ongoing_incidents:p}=r;if(p.length>0){let{current_worst_impact:T,name:A}=p[0],S=T==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(A),s(S)}else d("All systems operational"),s("bg-green-500")},[r]),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",o,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",o)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-C6IESAG3.mjs";import{a as H}from"./chunk-BZD5HLBP.mjs";import{a as S,d as _}from"./chunk-DM2W2FCI.mjs";import{a as I}from"./chunk-UKCQDICA.mjs";import{a as N}from"./chunk-KWC53MIT.mjs";import{a as T}from"./chunk-FHWV6EZK.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-EYZ75MUF.mjs";import{h as x,i as M,k as L,m as a}from"./chunk-NGCWPE34.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{b as g,e as b}from"./chunk-O52SPTHJ.mjs";import{a as c,c as l,f}from"./chunk-N4B7OYMT.mjs";import{a as h}from"./chunk-AY63N3KD.mjs";import{a as v}from"./chunk-LUCC6FPP.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,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-EDFEA2WG.mjs";import{a as H}from"./chunk-RVCKKHSV.mjs";import{a as S,d as _}from"./chunk-FOPMPAOZ.mjs";import{a as I}from"./chunk-UKCQDICA.mjs";import{a as N}from"./chunk-KWC53MIT.mjs";import{a as T}from"./chunk-FHWV6EZK.mjs";import{a as W}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as V}from"./chunk-EYZ75MUF.mjs";import{h as x,i as M,k as L,m as a}from"./chunk-NGCWPE34.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{c,d as m}from"./chunk-FOPMPAOZ.mjs";import{a as p,c as f,f as v}from"./chunk-WOKW2YRN.mjs";import{a as g}from"./chunk-YNQBHWQN.mjs";import{a as l}from"./chunk-BOCPUR5Z.mjs";import{h as s,m as d}from"./chunk-NGCWPE34.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{c as v}from"./chunk-RB4P3HZT.mjs";import{a as b}from"./chunk-I2VZ4H4T.mjs";import{h as g,i as u,k as h,m as r}from"./chunk-NGCWPE34.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,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-INE3CH73.mjs";import{a as H}from"./chunk-2JN3SZ3B.mjs";import{a as S,d as _}from"./chunk-6LCX33KU.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,6 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-DXK7AZ47.mjs";import{a as H}from"./chunk-7GUYWBRA.mjs";import{a as S,d as _}from"./chunk-PK5IFPTU.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{e as y}from"./chunk-RURMT663.mjs";import{a as x,e as k,f as L}from"./chunk-FOPMPAOZ.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 l,n as h}from"./chunk-NGCWPE34.mjs";import{ExternalLink as S}from"lucide-react";import D from"next/image";import n from"next/link";import{useParams as F}from"next/navigation";import{useEffect as I,useState as w}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var z=[{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"}],c={features:x.map(({title:r,href:o})=>({name:r,href:o})),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:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:L.map(({name:r,slug:o})=>({name:r,href:`/legal/${o}`})),tools:h.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))},u="text-sm font-medium text-neutral-900",d="flex flex-col mt-2.5 gap-2.5",i="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function q({staticDomain:r,className:o}){let{domain:s="dub.co"}=F();return r&&(s=r),e(C,{className:l("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",o),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(y,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:z.map(({name:a,icon:p,href:g})=>t("a",{href:g,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(p,{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:u,children:"Product"}),e("ul",{role:"list",className:d,children:c.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:i,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Resources"}),e("ul",{role:"list",className:d,children:c.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:i,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:u,children:"Compare"}),e("ul",{role:"list",className:d,children:c.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:i,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:u,children:"Legal"}),t("ul",{role:"list",className:d,children:[c.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:i,children:a.name})},a.name)),e("li",{children:t("a",{href:"https://security.dub.co",target:"_blank",rel:"noreferrer",className:l(i,"flex items-center gap-1"),children:["Trust Center ",e(S,{className:"size-3"})]})})]})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:u,children:"Tools"}),e("ul",{role:"list",className:d,children:c.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:i,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(W,{}),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 W(){let{data:r}=P("https://status.dub.co/api/v1/summary",f),[o,s]=w("bg-neutral-200"),[a,p]=w("Loading status...");return I(()=>{if(!r)return;let{ongoing_incidents:g}=r;if(g.length>0){let{current_worst_impact:T,name:A}=g[0],E=T==="degraded_performance"?"bg-yellow-500":"bg-red-500";p(A),s(E)}else p("All systems operational"),s("bg-green-500")},[r]),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:l("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,a==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto size-2 rounded-full",o)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{q as a};