@dub/ui 0.1.28 → 0.1.30

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 (182) hide show
  1. package/dist/animated-size-container.d.ts +11 -11
  2. package/dist/badge.d.ts +1 -1
  3. package/dist/chunk-22D6WP5Q.mjs +2 -0
  4. package/dist/chunk-23N33NQO.mjs +2 -0
  5. package/dist/chunk-24ADOCGG.mjs +2 -0
  6. package/dist/chunk-2BDHRV72.mjs +6 -0
  7. package/dist/chunk-2BGB4FJM.mjs +2 -0
  8. package/dist/chunk-2CIKTR54.mjs +2 -0
  9. package/dist/chunk-2RASYGS4.mjs +6 -0
  10. package/dist/chunk-2YBVJILI.mjs +2 -0
  11. package/dist/chunk-2ZLFWGWU.mjs +6 -0
  12. package/dist/chunk-355SZGSF.mjs +2 -0
  13. package/dist/chunk-365IWN2X.mjs +2 -0
  14. package/dist/chunk-3BJLRBYV.mjs +2 -0
  15. package/dist/chunk-3CEOF4RW.mjs +2 -0
  16. package/dist/chunk-3FYCYCOM.mjs +6 -0
  17. package/dist/chunk-3SFJW3T2.mjs +6 -0
  18. package/dist/chunk-42HHSNKN.mjs +2 -0
  19. package/dist/chunk-46VM3HIX.mjs +2 -0
  20. package/dist/chunk-4JU56V4A.mjs +2 -0
  21. package/dist/chunk-4KW3UAAX.mjs +2 -0
  22. package/dist/chunk-4QD4Q7MG.mjs +2 -0
  23. package/dist/chunk-4R644UDY.mjs +2 -0
  24. package/dist/chunk-4UH77SDX.mjs +2 -0
  25. package/dist/chunk-4V27UDE7.mjs +2 -0
  26. package/dist/chunk-4VNR4WNO.mjs +2 -0
  27. package/dist/chunk-5BTIC34L.mjs +6 -0
  28. package/dist/chunk-5FIQH3JH.mjs +2 -0
  29. package/dist/chunk-627CXJ4T.mjs +2 -0
  30. package/dist/chunk-65IDKLRU.mjs +2 -0
  31. package/dist/chunk-6AN62KWH.mjs +2 -0
  32. package/dist/chunk-6DCBFITF.mjs +2 -0
  33. package/dist/chunk-6HDZCIZ7.mjs +2 -0
  34. package/dist/chunk-74ZP4LUP.mjs +2 -0
  35. package/dist/chunk-76DQLMFL.mjs +2 -0
  36. package/dist/chunk-7ADCHWNQ.mjs +2 -0
  37. package/dist/chunk-7CAB2GAS.mjs +2 -0
  38. package/dist/chunk-7HHW4PSP.mjs +6 -0
  39. package/dist/chunk-7R47WBQ2.mjs +2 -0
  40. package/dist/chunk-A24CUX22.mjs +2 -0
  41. package/dist/chunk-A37FLX7K.mjs +2 -0
  42. package/dist/chunk-AKQFTL4D.mjs +6 -0
  43. package/dist/chunk-AMQUCN4W.mjs +2 -0
  44. package/dist/chunk-ANHC6DL4.mjs +2 -0
  45. package/dist/chunk-AQBEFWVX.mjs +2 -0
  46. package/dist/chunk-ASWBGCGQ.mjs +2 -0
  47. package/dist/chunk-B2X27MMZ.mjs +6 -0
  48. package/dist/chunk-B66IOMQW.mjs +2 -0
  49. package/dist/chunk-B76EV3DL.mjs +2 -0
  50. package/dist/chunk-BCQHRMQG.mjs +2 -0
  51. package/dist/chunk-BLCPJTBH.mjs +2 -0
  52. package/dist/chunk-BOCZC55J.mjs +6 -0
  53. package/dist/chunk-BTIUERWS.mjs +2 -0
  54. package/dist/chunk-BW2HO3N6.mjs +2 -0
  55. package/dist/chunk-C2HTZNAD.mjs +2 -0
  56. package/dist/chunk-C5EX35QO.mjs +2 -0
  57. package/dist/chunk-CALKE3DX.mjs +6 -0
  58. package/dist/chunk-CCCJUZDX.mjs +2 -0
  59. package/dist/chunk-CGGIMI4I.mjs +2 -0
  60. package/dist/chunk-CODNMPNC.mjs +2 -0
  61. package/dist/chunk-D2AO3N3J.mjs +2 -0
  62. package/dist/chunk-D4OXQJSZ.mjs +2 -0
  63. package/dist/chunk-DIPZ2RJI.mjs +2 -0
  64. package/dist/chunk-DSW6VZL4.mjs +2 -0
  65. package/dist/chunk-E6NVIM65.mjs +6 -0
  66. package/dist/chunk-E7O2MRAR.mjs +2 -0
  67. package/dist/chunk-ECFIPYFC.mjs +2 -0
  68. package/dist/chunk-EFVAPRLM.mjs +2 -0
  69. package/dist/chunk-EQ3AME6H.mjs +2 -0
  70. package/dist/chunk-ETDEGJI2.mjs +2 -0
  71. package/dist/chunk-F445VFZG.mjs +2 -0
  72. package/dist/chunk-F6AR4BUB.mjs +6 -0
  73. package/dist/chunk-FOAMODJC.mjs +6 -0
  74. package/dist/chunk-G2WCHWZT.mjs +2 -0
  75. package/dist/chunk-GGEIKCLL.mjs +2 -0
  76. package/dist/chunk-GO6IRHYG.mjs +2 -0
  77. package/dist/chunk-GOU43VTY.mjs +2 -0
  78. package/dist/chunk-HAONXXJI.mjs +2 -0
  79. package/dist/chunk-HCIR7AVB.mjs +6 -0
  80. package/dist/chunk-HFKRFV5G.mjs +6 -0
  81. package/dist/chunk-IBZOYTUN.mjs +2 -0
  82. package/dist/chunk-IIZ5YAGV.mjs +6 -0
  83. package/dist/chunk-IOAQGQB5.mjs +2 -0
  84. package/dist/chunk-IPK6BMCM.mjs +2 -0
  85. package/dist/chunk-IT7D7TL2.mjs +6 -0
  86. package/dist/chunk-IX3B3DFG.mjs +2 -0
  87. package/dist/chunk-IX6VCMOC.mjs +2 -0
  88. package/dist/chunk-JJS3Z2WQ.mjs +2 -0
  89. package/dist/chunk-JKXT4O7X.mjs +2 -0
  90. package/dist/chunk-JTEIFDV6.mjs +2 -0
  91. package/dist/chunk-JX5F66A6.mjs +2 -0
  92. package/dist/chunk-JYL3LLZM.mjs +6 -0
  93. package/dist/chunk-K7WAA2CW.mjs +2 -0
  94. package/dist/chunk-KVXQZZ5R.mjs +6 -0
  95. package/dist/chunk-KZCPJHZW.mjs +2 -0
  96. package/dist/chunk-L7DRQ6VD.mjs +6 -0
  97. package/dist/chunk-LLS3TFLD.mjs +2 -0
  98. package/dist/chunk-LTKPC2AT.mjs +6 -0
  99. package/dist/chunk-LVCSUZWS.mjs +2 -0
  100. package/dist/chunk-LWSQWW73.mjs +2 -0
  101. package/dist/chunk-MHVDS4GY.mjs +2 -0
  102. package/dist/chunk-MJDLGJSF.mjs +2 -0
  103. package/dist/chunk-MMK2IVBS.mjs +2 -0
  104. package/dist/chunk-MSQKQFFE.mjs +2 -0
  105. package/dist/chunk-MZBK4VG2.mjs +2 -0
  106. package/dist/chunk-N2GRS3UD.mjs +2 -0
  107. package/dist/chunk-N6XMDOFN.mjs +2 -0
  108. package/dist/chunk-NEQAQ43L.mjs +2 -0
  109. package/dist/chunk-NNGQKHBJ.mjs +6 -0
  110. package/dist/chunk-NOILNSUE.mjs +2 -0
  111. package/dist/chunk-NZEVLJBB.mjs +2 -0
  112. package/dist/chunk-OHOCK6O4.mjs +2 -0
  113. package/dist/chunk-OISCCHB2.mjs +2 -0
  114. package/dist/chunk-OKGKVBF7.mjs +2 -0
  115. package/dist/chunk-OT5ETN6C.mjs +2 -0
  116. package/dist/chunk-P3UBIJOK.mjs +2 -0
  117. package/dist/chunk-P7FUUM6Q.mjs +2 -0
  118. package/dist/chunk-QD2ZU643.mjs +2 -0
  119. package/dist/chunk-QHKNZUUP.mjs +2 -0
  120. package/dist/chunk-QIEJSFAK.mjs +2 -0
  121. package/dist/chunk-QJAFUSHQ.mjs +2 -0
  122. package/dist/chunk-QMSDUWBN.mjs +2 -0
  123. package/dist/chunk-SDC3TEES.mjs +2 -0
  124. package/dist/chunk-SHMGBQRE.mjs +2 -0
  125. package/dist/chunk-SWNQYIKE.mjs +2 -0
  126. package/dist/chunk-SXX5HYJM.mjs +6 -0
  127. package/dist/chunk-TFHKJFBT.mjs +2 -0
  128. package/dist/chunk-TYIGCRB3.mjs +2 -0
  129. package/dist/chunk-UB65Z43I.mjs +2 -0
  130. package/dist/chunk-UJAXDMZC.mjs +2 -0
  131. package/dist/chunk-UJK4QYF3.mjs +2 -0
  132. package/dist/chunk-UPIPBLLQ.mjs +2 -0
  133. package/dist/chunk-UPS6PRTD.mjs +2 -0
  134. package/dist/chunk-UZGRCX6V.mjs +2 -0
  135. package/dist/chunk-V36EV4OA.mjs +2 -0
  136. package/dist/chunk-V6POVIH7.mjs +2 -0
  137. package/dist/chunk-VAHB3NLZ.mjs +6 -0
  138. package/dist/chunk-VASTBJTB.mjs +2 -0
  139. package/dist/chunk-VCZC6JFC.mjs +2 -0
  140. package/dist/chunk-VDWVXYLK.mjs +2 -0
  141. package/dist/chunk-VFGAHQ66.mjs +2 -0
  142. package/dist/chunk-VKPVSMGQ.mjs +2 -0
  143. package/dist/chunk-VMV3QMHC.mjs +2 -0
  144. package/dist/chunk-VQ573D3P.mjs +6 -0
  145. package/dist/chunk-WFI7K3QK.mjs +2 -0
  146. package/dist/chunk-WITV7L6K.mjs +6 -0
  147. package/dist/chunk-WLWM7CQV.mjs +2 -0
  148. package/dist/chunk-WRRRT54O.mjs +6 -0
  149. package/dist/chunk-XFGR5YGY.mjs +2 -0
  150. package/dist/chunk-XN3XP2SY.mjs +6 -0
  151. package/dist/chunk-XP6KH4RO.mjs +6 -0
  152. package/dist/chunk-XSW4KRTI.mjs +2 -0
  153. package/dist/chunk-XV7R6OVA.mjs +2 -0
  154. package/dist/chunk-XYE2MVSL.mjs +6 -0
  155. package/dist/chunk-XZWUN4PR.mjs +2 -0
  156. package/dist/chunk-Y3HFWA7J.mjs +2 -0
  157. package/dist/chunk-YSU7XWUW.mjs +2 -0
  158. package/dist/chunk-YTCLGZWE.mjs +2 -0
  159. package/dist/chunk-Z5YR3JLM.mjs +2 -0
  160. package/dist/chunk-ZPAWHVN7.mjs +2 -0
  161. package/dist/chunk-ZPPV2YHQ.mjs +2 -0
  162. package/dist/chunk-ZSO5EULJ.mjs +2 -0
  163. package/dist/chunk-ZXLYIX5A.mjs +2 -0
  164. package/dist/chunk-ZYDTVBRP.mjs +2 -0
  165. package/dist/chunk-ZZCR55ZV.mjs +2 -0
  166. package/dist/footer.mjs +1 -1
  167. package/dist/index.css +1 -1
  168. package/dist/index.d.ts +1 -2
  169. package/dist/index.mjs +1 -1
  170. package/dist/nav/content/product-content.mjs +1 -1
  171. package/dist/nav/content/resources-content.mjs +1 -1
  172. package/dist/nav/content/shared.d.ts +2 -1
  173. package/dist/nav/content/shared.mjs +1 -1
  174. package/dist/nav/content/solutions-content.mjs +1 -1
  175. package/dist/nav/nav-mobile.d.ts +1 -3
  176. package/dist/nav/nav-mobile.mjs +1 -1
  177. package/dist/nav/nav.d.ts +0 -12
  178. package/dist/nav/nav.mjs +1 -1
  179. package/dist/nav-logo.mjs +1 -1
  180. package/dist/nav-mobile.mjs +1 -1
  181. package/dist/nav.mjs +1 -1
  182. package/package.json +1 -1
@@ -10,6 +10,9 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
10
10
  } & {
11
11
  children?: react.ReactNode;
12
12
  } & Omit<Omit<{
13
+ className?: string | undefined;
14
+ id?: string | undefined;
15
+ draggable?: (boolean | "true" | "false") | undefined;
13
16
  slot?: string | undefined;
14
17
  title?: string | undefined;
15
18
  defaultChecked?: boolean | undefined;
@@ -18,13 +21,10 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
18
21
  suppressHydrationWarning?: boolean | undefined;
19
22
  accessKey?: string | undefined;
20
23
  autoFocus?: boolean | undefined;
21
- className?: string | undefined;
22
- contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
24
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
23
25
  contextMenu?: string | undefined;
24
26
  dir?: string | undefined;
25
- draggable?: (boolean | "true" | "false") | undefined;
26
27
  hidden?: boolean | undefined;
27
- id?: string | undefined;
28
28
  lang?: string | undefined;
29
29
  nonce?: string | undefined;
30
30
  spellCheck?: (boolean | "true" | "false") | undefined;
@@ -55,12 +55,12 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
55
55
  results?: number | undefined;
56
56
  security?: string | undefined;
57
57
  unselectable?: "on" | "off" | undefined;
58
- inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
58
+ inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
59
59
  is?: string | undefined;
60
60
  tw?: string | undefined;
61
61
  "aria-activedescendant"?: string | undefined;
62
62
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
63
- "aria-autocomplete"?: "inline" | "none" | "list" | "both" | undefined;
63
+ "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
64
64
  "aria-braillelabel"?: string | undefined;
65
65
  "aria-brailleroledescription"?: string | undefined;
66
66
  "aria-busy"?: (boolean | "true" | "false") | undefined;
@@ -70,17 +70,17 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
70
70
  "aria-colindextext"?: string | undefined;
71
71
  "aria-colspan"?: number | undefined;
72
72
  "aria-controls"?: string | undefined;
73
- "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
73
+ "aria-current"?: boolean | "true" | "false" | "time" | "page" | "step" | "location" | "date" | undefined;
74
74
  "aria-describedby"?: string | undefined;
75
75
  "aria-description"?: string | undefined;
76
76
  "aria-details"?: string | undefined;
77
77
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
78
- "aria-dropeffect"?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
78
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
79
79
  "aria-errormessage"?: string | undefined;
80
80
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
81
81
  "aria-flowto"?: string | undefined;
82
82
  "aria-grabbed"?: (boolean | "true" | "false") | undefined;
83
- "aria-haspopup"?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | undefined;
83
+ "aria-haspopup"?: boolean | "true" | "false" | "dialog" | "menu" | "grid" | "listbox" | "tree" | undefined;
84
84
  "aria-hidden"?: (boolean | "true" | "false") | undefined;
85
85
  "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
86
86
  "aria-keyshortcuts"?: string | undefined;
@@ -97,7 +97,7 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
97
97
  "aria-posinset"?: number | undefined;
98
98
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
99
99
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
100
- "aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
100
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
101
101
  "aria-required"?: (boolean | "true" | "false") | undefined;
102
102
  "aria-roledescription"?: string | undefined;
103
103
  "aria-rowcount"?: number | undefined;
@@ -272,6 +272,6 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
272
272
  onAnimationIterationCapture?: react.AnimationEventHandler<HTMLDivElement> | undefined;
273
273
  onTransitionEnd?: react.TransitionEventHandler<HTMLDivElement> | undefined;
274
274
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
275
- } & framer_motion.MotionProps & react.RefAttributes<HTMLDivElement>, "ref">, "children" | "animate"> & react.RefAttributes<HTMLDivElement>>;
275
+ } & framer_motion.MotionProps & react.RefAttributes<HTMLDivElement>, "ref">, "animate" | "children"> & react.RefAttributes<HTMLDivElement>>;
276
276
 
277
277
  export { AnimatedSizeContainer };
package/dist/badge.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "black" | "blue" | "gray" | "violet" | "default" | "sky" | "neutral" | "rainbow" | null | undefined;
6
+ variant?: "default" | "black" | "blue" | "gray" | "violet" | "sky" | "neutral" | "rainbow" | null | undefined;
7
7
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
8
8
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
9
9
  }
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as v}from"./chunk-N2GRS3UD.mjs";import{jsx as h}from"react/jsx-runtime";function c({className:t}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:(void 0)("text-[#0077b5]",t),children:h("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-JYL3LLZM.mjs";import{f as h}from"./chunk-E6HWCEBB.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as e}from"./chunk-N2GRS3UD.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:(void 0)("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-CGGIMI4I.mjs";import{a as W}from"./chunk-IOAQGQB5.mjs";import{a as _}from"./chunk-4UH77SDX.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import g from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:p}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",p==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-full px-3 py-1 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white bg-red-100"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:p,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(g,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 p-1.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(g,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:p&&Object.keys(p).length>0?t(g,{href:h,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:u(ne,{children:[t(g,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(g,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-2ZLFWGWU.mjs";import{f as h}from"./chunk-E6HWCEBB.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-2ZLFWGWU.mjs";import{a as x}from"./chunk-E6HWCEBB.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-V6POVIH7.mjs";import{a as W}from"./chunk-3CEOF4RW.mjs";import{a as _}from"./chunk-GO6IRHYG.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:g}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:g,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(p,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:g&&Object.keys(g).length>0?t(p,{href:h,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:u(ne,{children:[t(p,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-FOAMODJC.mjs";import{a as x}from"./chunk-JG7HARGV.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-CGGIMI4I.mjs";import{a as W}from"./chunk-IOAQGQB5.mjs";import{a as _}from"./chunk-4UH77SDX.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:g}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-full px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white bg-red-50"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:g,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(p,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:g&&Object.keys(g).length>0?t(p,{href:h,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:u(ne,{children:[t(p,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as a}from"./chunk-N2GRS3UD.mjs";import{motion as l}from"framer-motion";import{forwardRef as R,useRef as b}from"react";import{useEffect as h,useState as v}from"react";function p(e){let[n,r]=v(),s=([t])=>{r(t)};return h(()=>{let t=e==null?void 0:e.current;if(!t)return;let i=new ResizeObserver(s);return i.observe(t),()=>i.disconnect()},[e]),n}import{jsx as u}from"react/jsx-runtime";var C=R(({width:e=!1,height:n=!1,className:r,transition:s,children:t,...i},f)=>{var m,c;let d=b(null),o=p(d);return u(l.div,{ref:f,className:(void 0)("overflow-hidden",r),animate:{width:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.width)??"auto":"auto",height:n?((c=o==null?void 0:o.contentRect)==null?void 0:c.height)??"auto":"auto"},transition:s??{type:"spring",duration:.3},...i,children:u("div",{ref:d,className:(void 0)(n&&"h-max",e&&"w-max"),children:t})})});C.displayName="AnimatedSizeContainer";export{p as a,C as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-5BTIC34L.mjs";import{f as h}from"./chunk-E6HWCEBB.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as g,b as f,f as m}from"./chunk-JG7HARGV.mjs";import{a as c,c as p,d as x}from"./chunk-UJK4QYF3.mjs";import{a as v}from"./chunk-FXXDWSKY.mjs";import{i as s,l as d}from"./chunk-JP57AFGB.mjs";import k from"@vercel/analytics";import{ChevronRight as N}from"lucide-react";import h from"next/link";import{jsx as e,jsxs as o}from"react/jsx-runtime";function P({domain:r}){return o("div",{className:"grid w-[40rem] grid-cols-2",children:[o("div",{className:"p-5",children:[e("p",{className:s(c,"mb-2"),children:"Features"}),e("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:g.map(({icon:i,title:t,description:n,href:a})=>e(p,{href:m(a,r),...r!=="dub.co"&&{onClick:()=>{k.track("Referred from custom domain",{domain:r,medium:`navbar item (${a})`})}},icon:e(x,{icon:i}),title:t,description:n},a))})]}),o("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[o(h,{href:m("/blog/category/customers",r),className:s(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",e(N,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),e("div",{className:"grid grid-cols-1",children:f.map(({icon:i,iconClassName:t,title:n,description:a,href:l})=>e(p,{href:m(l,r),className:"-mx-2",icon:e(i,{className:s("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:n,description:a,descriptionLines:2},l))}),e("p",{className:s(c,"my-4"),children:"Compare"}),e("div",{className:"flex flex-col gap-1.5",children:d.map(({name:i,slug:t})=>o(h,{href:m(`/compare/${t}`,r),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[o("p",{className:"text-sm font-medium",children:["Dub vs. ",i]})," ",e(v,{className:"h-3 w-3"})]},t))})]})]})}export{P as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as d,d as p,f as s}from"./chunk-E6HWCEBB.mjs";import{a as n,c as l,d as f}from"./chunk-NEQAQ43L.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function b({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a},o))})]})]})}export{b as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-CGGIMI4I.mjs";import{a as W}from"./chunk-IOAQGQB5.mjs";import{a as _}from"./chunk-4UH77SDX.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import g from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:p}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",p==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-full px-3 py-1 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white bg-red-100"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:p,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(g,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 p-2",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(g,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:p&&Object.keys(p).length>0?t(g,{href:h,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:u(ne,{children:[t(g,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(g,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-CGGIMI4I.mjs";import{a as W}from"./chunk-IOAQGQB5.mjs";import{a as _}from"./chunk-4UH77SDX.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as p,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import g from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:h}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",h==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as v}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block border rounded-full px-3 py-1 text-sm text-gray-900/60 hover:text-gray-900/80 hover:bg-gray-100 hover:border-gray-100","dark:text-white/70 dark:hover:text-white dark:hover:bg-gray-800 dark:hover:border-gray-700","transition-all"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:h,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:v("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:v("div",{className:"flex h-14 items-center justify-between",children:[t(g,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[v(i.List,{className:"relative flex flex-row gap-2 p-1.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return v(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(g,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:h&&Object.keys(h).length>0?t(g,{href:p,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:v(ne,{children:[t(g,{href:`${p}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(g,{href:`${p}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-5BTIC34L.mjs";import{a as x}from"./chunk-E6HWCEBB.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as d,d as p,f as s}from"./chunk-E6HWCEBB.mjs";import{a as n,c as l,d as f}from"./chunk-JX5F66A6.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function b({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a},o))})]})]})}export{b as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-3SFJW3T2.mjs";import{a as x}from"./chunk-E6HWCEBB.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as r}from"./chunk-N2GRS3UD.mjs";import{LayoutGroup as l,motion as u}from"framer-motion";import{useId as m}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";function x({options:s,selected:a,onSelect:i}){let n=m();return o("div",{className:"flex text-sm",children:o(l,{id:n,children:s.map(({id:t,label:e})=>p("div",{className:"relative",children:[o("button",{type:"button",onClick:()=>i==null?void 0:i(t),className:(void 0)("px-3 py-4 transition-colors duration-75",t===a?"text-black":"text-gray-400 hover:text-gray-500"),"aria-selected":t===a,children:e}),t===a&&o(u.div,{layoutId:"indicator",transition:{duration:.1},className:"absolute bottom-0 w-full px-1.5",children:o("div",{className:"h-0.5 bg-black"})})]},t))})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-XYE2MVSL.mjs";import{f as h}from"./chunk-E6HWCEBB.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-355SZGSF.mjs";import{a as y,h as g}from"./chunk-N2GRS3UD.mjs";import{AnimatePresence as v,motion as b}from"framer-motion";import{X as k}from"lucide-react";import{isValidElement as L}from"react";import{Fragment as C,jsx as t,jsxs as s}from"react/jsx-runtime";function E({filters:l,activeFilters:n,onRemove:x,onRemoveAll:h,className:w}){return t(u,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:s("div",{className:(void 0)("flex w-full flex-wrap items-start gap-4",w),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(v,{children:n==null?void 0:n.map(({key:a,value:o})=>{var d,p,c;if(a==="loader")return t(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${o}`);let e=l.find(r=>r.key===a);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");let i=(d=e.options)==null?void 0:d.find(r=>typeof r.value=="string"&&typeof o=="string"?r.value.toLowerCase()===o.toLowerCase():r.value===o),m=(i==null?void 0:i.icon)??((p=e.getOptionIcon)==null?void 0:p.call(e,o,{key:e.key,option:i}))??e.icon,N=(i==null?void 0:i.label)??((c=e.getOptionLabel)==null?void 0:c.call(e,o,{key:e.key,option:i}))??o;return s(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[s("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:f(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?s(C,{children:[t("span",{className:"shrink-0 text-gray-600",children:f(m)?m:t(m,{className:"h-4 w-4"})}),y(N,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>x(a),children:t(k,{className:"h-3.5 w-3.5"})})]},a)})})}),(n==null?void 0:n.length)!==0&&t("button",{type:"button",className:"whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:h,children:"Clear Filters"})]})})}var f=l=>L(l);export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as g,b as f,f as m}from"./chunk-E6HWCEBB.mjs";import{a as c,c as p,d as x}from"./chunk-UJK4QYF3.mjs";import{a as v}from"./chunk-FXXDWSKY.mjs";import{i as s,l as d}from"./chunk-JP57AFGB.mjs";import k from"@vercel/analytics";import{ChevronRight as N}from"lucide-react";import h from"next/link";import{jsx as e,jsxs as o}from"react/jsx-runtime";function P({domain:r}){return o("div",{className:"grid w-[40rem] grid-cols-2",children:[o("div",{className:"p-5",children:[e("p",{className:s(c,"mb-2"),children:"Features"}),e("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:g.map(({icon:i,title:t,description:n,href:a})=>e(p,{href:m(a,r),...r!=="dub.co"&&{onClick:()=>{k.track("Referred from custom domain",{domain:r,medium:`navbar item (${a})`})}},icon:e(x,{icon:i}),title:t,description:n},a))})]}),o("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[o(h,{href:m("/blog/category/customers",r),className:s(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",e(N,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),e("div",{className:"grid grid-cols-1",children:f.map(({icon:i,iconClassName:t,title:n,description:a,href:l})=>e(p,{href:m(l,r),className:"-mx-2",icon:e(i,{className:s("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:n,description:a,descriptionLines:2},l))}),e("p",{className:s(c,"my-4"),children:"Compare"}),e("div",{className:"flex flex-col gap-1.5",children:d.map(({name:i,slug:t})=>o(h,{href:m(`/compare/${t}`,r),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[o("p",{className:"text-sm font-medium",children:["Dub vs. ",i]})," ",e(v,{className:"h-3 w-3"})]},t))})]})]})}export{P as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-IT7D7TL2.mjs";import{a as x}from"./chunk-E6HWCEBB.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as n}from"./chunk-N2GRS3UD.mjs";import{motion as t}from"framer-motion";import{jsx as e}from"react/jsx-runtime";function s({value:i=0,max:r=100,className:o}){return e("div",{className:(void 0)("h-3 w-full overflow-hidden rounded-full bg-gray-200",o),children:e(t.div,{initial:{width:0},animate:{width:i&&r?i/r*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${i&&r&&i>r?"bg-red-500":"bg-blue-500"} h-full`})})}export{s as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as R}from"./chunk-P3UBIJOK.mjs";import{a as W}from"./chunk-OKGKVBF7.mjs";import{a as _}from"./chunk-UZGRCX6V.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-E6HWCEBB.mjs";import{a as E}from"./chunk-DMLF4GJF.mjs";import{a as V}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as n,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<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>`,Q=`<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>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:g}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",href:"/",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:g,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(p,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&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(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:n("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 lg:flex",children:g&&Object.keys(g).length>0?t(p,{href:h,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):b?null:u(ne,{children:[t(p,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as l}from"./chunk-TYIGCRB3.mjs";import{g as e,h as s}from"./chunk-N2GRS3UD.mjs";import{Globe as o}from"lucide-react";import{jsx as m}from"react/jsx-runtime";function f({apexDomain:r,className:t}){return r?m(l,{src:`${void 0}${r}`,alt:r,className:(void 0)("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20}):m("div",{className:(void 0)("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:m(o,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as y,f as v}from"./chunk-IIZ5YAGV.mjs";import{a as x}from"./chunk-24ADOCGG.mjs";import{a as h}from"./chunk-MHVDS4GY.mjs";import{a as b}from"./chunk-B66IOMQW.mjs";import{a as p}from"./chunk-T4YFARK5.mjs";import{a as f}from"./chunk-22D6WP5Q.mjs";import{f as g,h as i,i as l}from"./chunk-N2GRS3UD.mjs";import m from"@vercel/analytics";import _ from"next/image";import s from"next/link";import{useParams as C}from"next/navigation";import{useEffect as T,useState as N}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:y.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:(void 0).map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:(void 0).map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function D(){let{domain:a="dub.co"}=C(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(x,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(v,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(R,{})]}),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:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.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:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(_,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function R(){let{data:a}=P("https://status.dub.co/api/v1/summary",void 0),[o,r]=N("bg-gray-200"),[c,d]=N("Loading status...");return T(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:w}=u[0],L=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(w),r(L)}else d("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:(void 0)("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,c==="Loading status..."&&"animate-none")}),e("div",{className:(void 0)("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:c})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-E6NVIM65.mjs";import{f as h}from"./chunk-E6HWCEBB.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};