@dub/ui 0.0.44 → 0.0.46

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 (254) hide show
  1. package/dist/button.d.ts +1 -1
  2. package/dist/button.mjs +1 -1
  3. package/dist/chunk-24WVXUMS.mjs +2 -0
  4. package/dist/chunk-2DHSZE3S.mjs +2 -0
  5. package/dist/chunk-2FNXBCRL.mjs +2 -0
  6. package/dist/chunk-2JESVESV.mjs +2 -0
  7. package/dist/chunk-2MKBNVSL.mjs +2 -0
  8. package/dist/chunk-2NKJAABV.mjs +2 -0
  9. package/dist/chunk-2PUKHRNN.mjs +2 -0
  10. package/dist/chunk-2QMW5HAF.mjs +2 -0
  11. package/dist/chunk-3H4CXXDI.mjs +2 -0
  12. package/dist/chunk-3JTIQKR4.mjs +2 -0
  13. package/dist/chunk-3KECEXN4.mjs +2 -0
  14. package/dist/chunk-3VHTHP5T.mjs +2 -0
  15. package/dist/chunk-44XF4SSI.mjs +2 -0
  16. package/dist/chunk-4732JF6P.mjs +2 -0
  17. package/dist/chunk-4DZHBBRS.mjs +2 -0
  18. package/dist/chunk-4MQY4CPQ.mjs +2 -0
  19. package/dist/chunk-4QFJCWUU.mjs +2 -0
  20. package/dist/chunk-4UJM4A7R.mjs +2 -0
  21. package/dist/chunk-56QOE5F6.mjs +2 -0
  22. package/dist/chunk-5CZKRR37.mjs +2 -0
  23. package/dist/chunk-5LWN5CQN.mjs +2 -0
  24. package/dist/chunk-5MHIZVJP.mjs +2 -0
  25. package/dist/chunk-5OWEVG6E.mjs +2 -0
  26. package/dist/chunk-5XPCYIRK.mjs +2 -0
  27. package/dist/chunk-5YPYUIWX.mjs +2 -0
  28. package/dist/chunk-65J33VGP.mjs +2 -0
  29. package/dist/chunk-6EABPBKA.mjs +2 -0
  30. package/dist/chunk-6G5NUJEB.mjs +2 -0
  31. package/dist/chunk-6HWTQIJR.mjs +2 -0
  32. package/dist/chunk-6KBSGANG.mjs +2 -0
  33. package/dist/chunk-6MATYYPP.mjs +2 -0
  34. package/dist/chunk-6MDW4UDZ.mjs +2 -0
  35. package/dist/chunk-6NEQD7YV.mjs +2 -0
  36. package/dist/chunk-6NGE5NBQ.mjs +2 -0
  37. package/dist/chunk-6WDZRS6W.mjs +2 -0
  38. package/dist/chunk-6X5KTESJ.mjs +2 -0
  39. package/dist/chunk-6ZXL7GLO.mjs +3 -0
  40. package/dist/chunk-7CPSFTQU.mjs +2 -0
  41. package/dist/chunk-7TAKCRXX.mjs +2 -0
  42. package/dist/chunk-7UJ6CHKP.mjs +2 -0
  43. package/dist/chunk-7WAFJXNA.mjs +2 -0
  44. package/dist/chunk-7XGE22WJ.mjs +3 -0
  45. package/dist/chunk-A7NZD3XO.mjs +2 -0
  46. package/dist/chunk-ABVNM66N.mjs +2 -0
  47. package/dist/chunk-ANRVTCV6.mjs +2 -0
  48. package/dist/chunk-ASORRTCW.mjs +2 -0
  49. package/dist/chunk-AZUUS6X3.mjs +2 -0
  50. package/dist/chunk-B5QIEJ2F.mjs +3 -0
  51. package/dist/chunk-BGME547M.mjs +2 -0
  52. package/dist/chunk-BIYB4VGJ.mjs +2 -0
  53. package/dist/chunk-BK2NYKS6.mjs +2 -0
  54. package/dist/chunk-BLYYJHJC.mjs +2 -0
  55. package/dist/chunk-BOCIVZFK.mjs +2 -0
  56. package/dist/chunk-BSR6KGZI.mjs +2 -0
  57. package/dist/chunk-BWAIQVM3.mjs +2 -0
  58. package/dist/chunk-BWHWPD5I.mjs +2 -0
  59. package/dist/chunk-C6EI7JYY.mjs +2 -0
  60. package/dist/chunk-CB4NDPL2.mjs +2 -0
  61. package/dist/chunk-CBJ2ZTWK.mjs +2 -0
  62. package/dist/chunk-CC6NYL7Q.mjs +2 -0
  63. package/dist/chunk-CMW6BUJU.mjs +2 -0
  64. package/dist/chunk-CTZC2L6N.mjs +2 -0
  65. package/dist/chunk-CWHIY7CL.mjs +2 -0
  66. package/dist/chunk-CYXHSV2T.mjs +2 -0
  67. package/dist/chunk-D3ZGHYBA.mjs +2 -0
  68. package/dist/chunk-D56QZPNZ.mjs +2 -0
  69. package/dist/chunk-D6KQCSBB.mjs +2 -0
  70. package/dist/chunk-DATUZFCG.mjs +3 -0
  71. package/dist/chunk-DB36HKKH.mjs +2 -0
  72. package/dist/chunk-DBG25TVO.mjs +2 -0
  73. package/dist/chunk-DBP5ZRVC.mjs +2 -0
  74. package/dist/chunk-DL36NXQC.mjs +2 -0
  75. package/dist/chunk-EP7JEBJH.mjs +2 -0
  76. package/dist/chunk-EPH4Y72H.mjs +2 -0
  77. package/dist/chunk-EXD3FG2Q.mjs +2 -0
  78. package/dist/chunk-EYKRE23H.mjs +2 -0
  79. package/dist/chunk-F5GHPKDX.mjs +2 -0
  80. package/dist/chunk-FCBATSCJ.mjs +2 -0
  81. package/dist/chunk-FDELX4XE.mjs +2 -0
  82. package/dist/chunk-FH4QP5E6.mjs +2 -0
  83. package/dist/chunk-FNFL3ZLA.mjs +3 -0
  84. package/dist/chunk-FRG7KOPC.mjs +2 -0
  85. package/dist/chunk-FT7M4T56.mjs +2 -0
  86. package/dist/chunk-FVI5HKV2.mjs +2 -0
  87. package/dist/chunk-FX6A573Y.mjs +2 -0
  88. package/dist/chunk-G2HDS4ED.mjs +2 -0
  89. package/dist/chunk-G4JJBVFO.mjs +3 -0
  90. package/dist/chunk-G5H2ERES.mjs +2 -0
  91. package/dist/chunk-GDXPUBTW.mjs +2 -0
  92. package/dist/chunk-GPO5ZWCJ.mjs +2 -0
  93. package/dist/chunk-GQDZQYD4.mjs +2 -0
  94. package/dist/chunk-GVUGL4RW.mjs +2 -0
  95. package/dist/chunk-GWDVVBE4.mjs +2 -0
  96. package/dist/chunk-HBWQUYIL.mjs +2 -0
  97. package/dist/chunk-HJG7LPHL.mjs +2 -0
  98. package/dist/chunk-HU2636ZN.mjs +2 -0
  99. package/dist/chunk-I2CDI3OM.mjs +2 -0
  100. package/dist/chunk-I47LAKOU.mjs +2 -0
  101. package/dist/chunk-I7SFBPFU.mjs +2 -0
  102. package/dist/chunk-IAXGLIX6.mjs +2 -0
  103. package/dist/chunk-ICTF6T57.mjs +2 -0
  104. package/dist/chunk-IUOJZ77W.mjs +2 -0
  105. package/dist/chunk-J2Z4FS3O.mjs +2 -0
  106. package/dist/chunk-J6JH2AY2.mjs +2 -0
  107. package/dist/chunk-JAARZ5DC.mjs +2 -0
  108. package/dist/chunk-JCKKGYCO.mjs +2 -0
  109. package/dist/chunk-JE3L3QFO.mjs +2 -0
  110. package/dist/chunk-JIY66Q4F.mjs +2 -0
  111. package/dist/chunk-JOWANU4L.mjs +2 -0
  112. package/dist/chunk-JPRCVT5P.mjs +2 -0
  113. package/dist/chunk-JRWSO2CQ.mjs +2 -0
  114. package/dist/chunk-JUH5MLTO.mjs +2 -0
  115. package/dist/chunk-JY7QXONF.mjs +2 -0
  116. package/dist/chunk-JZDUV4CZ.mjs +2 -0
  117. package/dist/chunk-K3STOT34.mjs +2 -0
  118. package/dist/chunk-KAVK5BIX.mjs +2 -0
  119. package/dist/chunk-KFTUCT6W.mjs +2 -0
  120. package/dist/chunk-KIMNIE3N.mjs +2 -0
  121. package/dist/chunk-KNAUZSXA.mjs +2 -0
  122. package/dist/chunk-KPJ73B5O.mjs +2 -0
  123. package/dist/chunk-KRORHL4K.mjs +2 -0
  124. package/dist/chunk-KWH3JGOB.mjs +2 -0
  125. package/dist/chunk-L3MON66X.mjs +2 -0
  126. package/dist/chunk-L4U7HJPB.mjs +2 -0
  127. package/dist/chunk-L5QPLR3B.mjs +2 -0
  128. package/dist/chunk-L5R3SGN4.mjs +2 -0
  129. package/dist/chunk-L7LEAD2Q.mjs +2 -0
  130. package/dist/chunk-LENRWNR2.mjs +2 -0
  131. package/dist/chunk-LROIBZ52.mjs +2 -0
  132. package/dist/chunk-LUASQR7O.mjs +2 -0
  133. package/dist/chunk-LUHJR232.mjs +2 -0
  134. package/dist/chunk-M2VPOILV.mjs +2 -0
  135. package/dist/chunk-M4PZIV66.mjs +2 -0
  136. package/dist/chunk-M56IPKDN.mjs +2 -0
  137. package/dist/chunk-M7Y2DDZZ.mjs +2 -0
  138. package/dist/chunk-MCSNR3RV.mjs +2 -0
  139. package/dist/chunk-MDKAHIEN.mjs +2 -0
  140. package/dist/chunk-MFTBA53X.mjs +2 -0
  141. package/dist/chunk-MG52EK2D.mjs +2 -0
  142. package/dist/chunk-MHOVUAJ3.mjs +2 -0
  143. package/dist/chunk-MNEHOVKM.mjs +2 -0
  144. package/dist/chunk-MUDLYNKK.mjs +2 -0
  145. package/dist/chunk-MXSIAELM.mjs +2 -0
  146. package/dist/chunk-N3RKXVWB.mjs +2 -0
  147. package/dist/chunk-N7DCAD65.mjs +2 -0
  148. package/dist/chunk-NLVXHVQD.mjs +2 -0
  149. package/dist/chunk-NMWGFLEP.mjs +2 -0
  150. package/dist/chunk-NNX4AZ53.mjs +2 -0
  151. package/dist/chunk-NRUT32DK.mjs +2 -0
  152. package/dist/chunk-NRWVU33T.mjs +2 -0
  153. package/dist/chunk-NS3XSB7X.mjs +2 -0
  154. package/dist/chunk-O577AWGM.mjs +2 -0
  155. package/dist/chunk-O5UXJ5TV.mjs +2 -0
  156. package/dist/chunk-O6T7PYPO.mjs +2 -0
  157. package/dist/chunk-OG2EWHP4.mjs +2 -0
  158. package/dist/chunk-OWNEFV5N.mjs +2 -0
  159. package/dist/chunk-P2XB5HXU.mjs +2 -0
  160. package/dist/chunk-P4WTNKKQ.mjs +2 -0
  161. package/dist/chunk-PED7LGDN.mjs +2 -0
  162. package/dist/chunk-PGMM6IZR.mjs +2 -0
  163. package/dist/chunk-PI2KK7JA.mjs +2 -0
  164. package/dist/chunk-PL4MUQPO.mjs +2 -0
  165. package/dist/chunk-PNPCNTXV.mjs +2 -0
  166. package/dist/chunk-PPMWXH4T.mjs +2 -0
  167. package/dist/chunk-PZCD3PH4.mjs +2 -0
  168. package/dist/chunk-Q5IFEBUV.mjs +2 -0
  169. package/dist/chunk-Q6PKQDAT.mjs +2 -0
  170. package/dist/chunk-QB2QUGUJ.mjs +2 -0
  171. package/dist/chunk-QBV4OBTO.mjs +2 -0
  172. package/dist/chunk-QF5H5BML.mjs +2 -0
  173. package/dist/chunk-QGG5JSKP.mjs +2 -0
  174. package/dist/chunk-QHDEWW5R.mjs +2 -0
  175. package/dist/chunk-QJNQCXZS.mjs +2 -0
  176. package/dist/chunk-QKCDKUCB.mjs +2 -0
  177. package/dist/chunk-QLQWV345.mjs +2 -0
  178. package/dist/chunk-QPKZPJI6.mjs +2 -0
  179. package/dist/chunk-QROG2QLI.mjs +2 -0
  180. package/dist/chunk-R4A46K3X.mjs +2 -0
  181. package/dist/chunk-RB4WRVF5.mjs +2 -0
  182. package/dist/chunk-RINURLBP.mjs +2 -0
  183. package/dist/chunk-RLSA263A.mjs +2 -0
  184. package/dist/chunk-RQI53XVI.mjs +2 -0
  185. package/dist/chunk-RYBMD7N2.mjs +2 -0
  186. package/dist/chunk-RYEHH4UZ.mjs +3 -0
  187. package/dist/chunk-STBHUTSV.mjs +2 -0
  188. package/dist/chunk-T4N4RTTI.mjs +2 -0
  189. package/dist/chunk-T7JWIKKK.mjs +2 -0
  190. package/dist/chunk-TAUEQNF4.mjs +2 -0
  191. package/dist/chunk-TCEAZUXJ.mjs +2 -0
  192. package/dist/chunk-TGV3YIDK.mjs +2 -0
  193. package/dist/chunk-TOPGRSFC.mjs +2 -0
  194. package/dist/chunk-TS5DAVLL.mjs +2 -0
  195. package/dist/chunk-U2LHHG65.mjs +2 -0
  196. package/dist/chunk-U2RA2JHH.mjs +2 -0
  197. package/dist/chunk-U5MJMKLM.mjs +2 -0
  198. package/dist/chunk-UFB2YKVQ.mjs +2 -0
  199. package/dist/chunk-ULL5QWJ7.mjs +2 -0
  200. package/dist/chunk-UQKPTJDI.mjs +2 -0
  201. package/dist/chunk-UUZUIQWW.mjs +2 -0
  202. package/dist/chunk-UY3BOLNT.mjs +2 -0
  203. package/dist/chunk-UYS7CWEH.mjs +2 -0
  204. package/dist/chunk-V4SBHGVM.mjs +2 -0
  205. package/dist/chunk-V4UBRSIW.mjs +2 -0
  206. package/dist/chunk-V4ZUZXSO.mjs +2 -0
  207. package/dist/chunk-V57QSO2N.mjs +2 -0
  208. package/dist/chunk-VQ74FCZH.mjs +2 -0
  209. package/dist/chunk-VVF3ILDO.mjs +2 -0
  210. package/dist/chunk-VWVFVW4E.mjs +2 -0
  211. package/dist/chunk-VZ7AIGZN.mjs +2 -0
  212. package/dist/chunk-VZKGSZIR.mjs +2 -0
  213. package/dist/chunk-W7KZ6IYI.mjs +2 -0
  214. package/dist/chunk-WAKMXGKA.mjs +2 -0
  215. package/dist/chunk-WCGKG7M2.mjs +2 -0
  216. package/dist/chunk-WFEF657Y.mjs +2 -0
  217. package/dist/chunk-WFR6WTUY.mjs +2 -0
  218. package/dist/chunk-WGTCPQS6.mjs +2 -0
  219. package/dist/chunk-WJPOTR4Z.mjs +2 -0
  220. package/dist/chunk-WNBVXJ4B.mjs +2 -0
  221. package/dist/chunk-WNVAEGFJ.mjs +2 -0
  222. package/dist/chunk-WOAG5CNT.mjs +2 -0
  223. package/dist/chunk-WTOM3O4X.mjs +3 -0
  224. package/dist/chunk-WZKKITQV.mjs +2 -0
  225. package/dist/chunk-XCZGK2LO.mjs +2 -0
  226. package/dist/chunk-XHTZQO7G.mjs +2 -0
  227. package/dist/chunk-XLGAWDW4.mjs +2 -0
  228. package/dist/chunk-XO2GV5UD.mjs +2 -0
  229. package/dist/chunk-XRM5S7SD.mjs +2 -0
  230. package/dist/chunk-XTVDT2HL.mjs +2 -0
  231. package/dist/chunk-Y2DBYIW3.mjs +2 -0
  232. package/dist/chunk-Y4WEO72E.mjs +2 -0
  233. package/dist/chunk-Y5NAZGZK.mjs +2 -0
  234. package/dist/chunk-YD3UERVY.mjs +2 -0
  235. package/dist/chunk-Z5Z46ENF.mjs +2 -0
  236. package/dist/chunk-ZF6FT4R2.mjs +2 -0
  237. package/dist/chunk-ZJDXBL4L.mjs +2 -0
  238. package/dist/chunk-ZKZPF6SN.mjs +2 -0
  239. package/dist/chunk-ZLJIJ3DZ.mjs +2 -0
  240. package/dist/chunk-ZRPNBLV4.mjs +2 -0
  241. package/dist/copy-button.d.ts +3 -1
  242. package/dist/copy-button.mjs +1 -1
  243. package/dist/footer.mjs +1 -1
  244. package/dist/form.mjs +1 -1
  245. package/dist/icons/google.mjs +1 -1
  246. package/dist/icons/index.mjs +1 -1
  247. package/dist/icons/twitter.mjs +1 -1
  248. package/dist/index.css +1 -1
  249. package/dist/index.mjs +1 -1
  250. package/dist/link-preview.mjs +1 -1
  251. package/dist/nav-mobile.mjs +1 -1
  252. package/dist/nav.mjs +1 -1
  253. package/dist/tooltip.d.ts +1 -1
  254. package/package.json +1 -1
package/dist/button.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
- text: string;
5
+ text?: string;
6
6
  variant?: "primary" | "secondary" | "outline" | "success" | "danger";
7
7
  loading?: boolean;
8
8
  icon?: ReactNode;
package/dist/button.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- import{a}from"./chunk-7B6GEHI6.mjs";import"./chunk-2UCND3ZA.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-OY2A77RB.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-JQZF43TW.mjs";import"./chunk-62XRBJQN.mjs";import"./chunk-4O5C2RDY.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-3PBCZKAW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-OYEGFR5W.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-22Q4RG25.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-3YWKTNW4.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Button};
2
+ import{a}from"./chunk-MDKAHIEN.mjs";import"./chunk-2UCND3ZA.mjs";import"./chunk-KONPNG2A.mjs";import"./chunk-VWVFVW4E.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-JQZF43TW.mjs";import"./chunk-62XRBJQN.mjs";import"./chunk-4O5C2RDY.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-3PBCZKAW.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-5EWSH7PD.mjs";import"./chunk-22Q4RG25.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-3YWKTNW4.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Button};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as t}from"./chunk-MXSIAELM.mjs";import*as e from"@radix-ui/react-label";import{cva as l}from"class-variance-authority";import*as o from"react";import{jsx as s}from"react/jsx-runtime";var m=l("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=o.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:t(m(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as y,b as E}from"./chunk-AUBFB4SI.mjs";var h=y((J,d)=>{var o=1e3,i=o*60,n=i*60,s=n*24,N=s*7,D=s*365.25;d.exports=function(e,a){a=a||{};var t=typeof e;if(t==="string"&&e.length>0)return C(e);if(t==="number"&&isFinite(e))return a.long?U(e):R(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function C(e){if(e=String(e),!(e.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!a){var t=parseFloat(a[1]),p=(a[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return t*D;case"weeks":case"week":case"w":return t*N;case"days":case"day":case"d":return t*s;case"hours":case"hour":case"hrs":case"hr":case"h":return t*n;case"minutes":case"minute":case"mins":case"min":case"m":return t*i;case"seconds":case"second":case"secs":case"sec":case"s":return t*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function R(e){var a=Math.abs(e);return a>=s?Math.round(e/s)+"d":a>=n?Math.round(e/n)+"h":a>=i?Math.round(e/i)+"m":a>=o?Math.round(e/o)+"s":e+"ms"}function U(e){var a=Math.abs(e);return a>=s?l(e,a,s,"day"):a>=n?l(e,a,n,"hour"):a>=i?l(e,a,i,"minute"):a>=o?l(e,a,o,"second"):e+" ms"}function l(e,a,t,p){var A=a>=t*1.5;return Math.round(e/t)+" "+p+(A?"s":"")}});var u=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",price:{monthly:49,yearly:39,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]},limits:{links:5e3,clicks:25e4,domains:20,tags:150,users:15},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:"5,000 links/mo"},{text:"250K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}},{text:"Event callbacks (Beta)",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],k=u.find(e=>e.name==="free"),I=u.filter(e=>e.name==="Pro"||e.name==="Business");var m=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",S=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,v=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),_=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",P=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",b=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${m}`,"api.localhost:8888"]),L=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",T=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var c="cl7pj5kq4006835rbjlt2ofka";var O=["stats","changelog","terms","privacy","abuse"],w=[{id:"clce1z7ch00j0rbstbjufva4j",slug:m,verified:!0,primary:!0,archived:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:c},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:c},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca"],projectId:c},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:c}]:[]],x=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code API",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}];var g=E(h(),1),M=(e,{withAgo:a}={})=>{if(!e)return"Never";let t=Date.now()-new Date(e).getTime();return t<1e3?"Just now":t>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,g.default)(t)}${a?" ago":""}`};var B=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),V=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),F=new RegExp(/^[a-zA-Z0-9\-]+$/);var G=e=>{if((void 0)(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};export{_ as a,O as b,x as c,M as d,G as e,$ as f,r as g,j as h,Y as i};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as f}from"./chunk-HYYV36TO.mjs";import{h as i}from"./chunk-MXSIAELM.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-MCSNR3RV.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b}from"./chunk-WAKMXGKA.mjs";import{a as s}from"./chunk-NS3XSB7X.mjs";import{i as l}from"./chunk-7WAFJXNA.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function m({text:i,variant:t="primary",loading:n,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):u("button",{type:r.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",r.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},r.className),disabled:r.disabled||n,...r,children:[n?e(s,{}):a||null,e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as y}from"./chunk-HYYV36TO.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-QHDEWW5R.mjs";import{e as g,f,h as b}from"./chunk-MCSNR3RV.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j((void 0)(i),500),d=P(()=>g(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,f,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-MDKAHIEN.mjs";import{i as d}from"./chunk-3YWKTNW4.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as x}from"./chunk-HYYV36TO.mjs";import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-XTVDT2HL.mjs";import{a as v}from"./chunk-XCZGK2LO.mjs";import{d as l,e as g,h as p,i as c}from"./chunk-BGME547M.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-2DHSZE3S.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as y}from"./chunk-HYYV36TO.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-SKY5WBZH.mjs";import{c as g,d as f,e as b}from"./chunk-MVSKGD5I.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j((void 0)(i),500),d=P(()=>(void 0)(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,void 0,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as t}from"./chunk-MXSIAELM.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-200 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b}from"./chunk-EXD3FG2Q.mjs";import{a as s}from"./chunk-VVF3ILDO.mjs";import{c as l}from"./chunk-ZLJIJ3DZ.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function m({text:i,variant:t="primary",loading:n,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):u("button",{type:r.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",r.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},r.className),disabled:r.disabled||n,...r,children:[n?e(s,{}):a||null,e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-JE3L3QFO.mjs";import{a as g}from"./chunk-B5QIEJ2F.mjs";import{a as n}from"./chunk-CTZC2L6N.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-MCSNR3RV.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-FCBATSCJ.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:(void 0)("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:(void 0)("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-MCSNR3RV.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:(void 0)("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:(void 0)("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-QJNQCXZS.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{e as d,f as t,g as n}from"./chunk-MVSKGD5I.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",void 0,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:(void 0)("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:(void 0)("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:(void 0)("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:void 0,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${void 0}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${void 0}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as f}from"./chunk-HYYV36TO.mjs";import{i}from"./chunk-FCBATSCJ.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:(void 0)("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:(void 0)("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-7WAFJXNA.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:e("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-BGME547M.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-FT7M4T56.mjs";import{f as g,g as f,h as b}from"./chunk-7WAFJXNA.mjs";import{Link2 as y}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as k,useMemo as R,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as v,jsx as e,jsxs as r}from"react/jsx-runtime";function D({defaultUrl:t}){let h=w(),l=L(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=W(g(i),500),d=R(()=>f(a||""),[a]),{data:x,isValidating:N}=P(a&&`/api/edge/metatags?url=${a}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=x||{},s=E(null);return k(()=>{!t&&s.current&&s.current.select()},[t]),r(v,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>h.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[N&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function M({defaultUrl:t}){return r(v,{children:[r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{D as a,M as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as a}from"./chunk-GWDVVBE4.mjs";import{i}from"./chunk-3YWKTNW4.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:r,checked:d=!0,disabled:o=!1,disabledTooltip:n}){return n?e(a,{content:n,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:o,className:i(o?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,r)})})}export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{jsx as t}from"react/jsx-runtime";function s({className:h}){return t("svg",{width:"300",height:"300.251",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:h,children:t("path",{d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-GPO5ZWCJ.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,h as d,i as n}from"./chunk-AMMXFRNR.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as s,e as p}from"./chunk-3YWKTNW4.mjs";import*as i from"@radix-ui/react-tooltip";import{HelpCircle as c}from"lucide-react";import x from"next/link";import{useState as d}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function h({children:t}){return e(i.Provider,{delayDuration:0,children:t})}function m({children:t,content:o,side:r="top"}){let[n,l]=d(!1);return a(i.Root,{open:n,onOpenChange:l,children:[e(i.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(i.Portal,{children:e(i.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function T({title:t,cta:o,href:r,target:n,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(r?e(x,{href:r,...n?{target:n}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function y({title:t,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:r,target:"_blank",className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function N({content:t}){return e(m,{content:t,children:e(c,{className:"h-4 w-4 text-gray-500"})})}function P({value:t,unit:o="total clicks",children:r,lastClicked:n}){return(!t||t<1e3)&&!n?r:e(m,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(t||0,{full:!0})," ",o]}),n&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",p(n,{withAgo:!0})]})]}),children:r})}export{h as a,m as b,T as c,y as d,N as e,P as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-MCSNR3RV.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:(void 0)("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:(void 0)("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as a}from"./chunk-U2LHHG65.mjs";import{i}from"./chunk-2DHSZE3S.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:r,checked:d=!0,disabled:o=!1,disabledTooltip:n}){return n?e(a,{content:n,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:o,className:(void 0)(o?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:(void 0)(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,r)})})}export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-2DHSZE3S.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:(void 0)("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:(void 0)("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-3EC4P73R.mjs";import{a as g}from"./chunk-5MHIZVJP.mjs";import{a as n}from"./chunk-4O5C2RDY.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-3YWKTNW4.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as x}from"./chunk-HYYV36TO.mjs";import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-4UJM4A7R.mjs";import{a as v}from"./chunk-ZKZPF6SN.mjs";import{a as l,b as g,h as p,i as c}from"./chunk-7WAFJXNA.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{i as e}from"./chunk-3YWKTNW4.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:i,className:s,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(i).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",s),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"w-fit text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"w-fit text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{i as e}from"./chunk-3YWKTNW4.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function C({value:s,className:n,icon:i}){let[l,t]=u(!1),p=i||a;return g("button",{onClick:c=>{c.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",n),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(p,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-2DHSZE3S.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-200 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:(void 0)(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as x}from"./chunk-HYYV36TO.mjs";import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-WFR6WTUY.mjs";import{a as v}from"./chunk-JRWSO2CQ.mjs";import{a as l,b as g,h as p,i as c}from"./chunk-2DHSZE3S.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",void 0,{dedupingInterval:6e4});return e("div",{className:(void 0)("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:(void 0)("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:(void 0)("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,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-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-MCSNR3RV.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-200 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:(void 0)(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{c as e}from"./chunk-ZLJIJ3DZ.mjs";import{useState as p}from"react";import{toast as u}from"sonner";import{jsx as t,jsxs as c}from"react/jsx-runtime";function f({value:s,className:i}){let[l,o]=p(!1);return c("button",{onClick:n=>{n.stopPropagation(),o(!0),navigator.clipboard.writeText(s).then(()=>{u.success("Copied to clipboard!")}),setTimeout(()=>o(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[t("span",{className:"sr-only",children:"Copy"}),l?t(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):t(a,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{f as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-3O5LIADU.mjs";import{a as g}from"./chunk-W4SOCMNO.mjs";import{a as n}from"./chunk-6SIFX2IC.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{g as i}from"./chunk-MVSKGD5I.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:(void 0).map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
@@ -0,0 +1,3 @@
1
+ "use client"
2
+ import{jsx as l}from"react/jsx-runtime";function r({className:t}){return l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",className:t,children:l("g",{transform:"translate(52.390088,-25.058597)",children:l("path",{fill:"currentColor",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99
3
+ h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})})})}export{r as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as f}from"./chunk-HYYV36TO.mjs";import{i}from"./chunk-7WAFJXNA.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as s,b as p}from"./chunk-BGME547M.mjs";import*as i from"@radix-ui/react-tooltip";import{HelpCircle as c}from"lucide-react";import x from"next/link";import{useState as d}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function h({children:t}){return e(i.Provider,{delayDuration:100,children:t})}function m({children:t,content:o,side:r="top"}){let[n,l]=d(!1);return a(i.Root,{open:n,onOpenChange:l,children:[e(i.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(i.Portal,{children:e(i.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function T({title:t,cta:o,href:r,target:n,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(r?e(x,{href:r,...n?{target:n}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function y({title:t,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:r,target:"_blank",className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function N({content:t}){return e(m,{content:t,children:e(c,{className:"h-4 w-4 text-gray-500"})})}function P({value:t,unit:o="total clicks",children:r,lastClicked:n}){return(!t||t<1e3)&&!n?r:e(m,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(t||0,{full:!0})," ",o]}),n&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",p(n,{withAgo:!0})]})]}),children:r})}export{h as a,m as b,T as c,y as d,N as e,P as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b}from"./chunk-2UCND3ZA.mjs";import{a as s}from"./chunk-JQZF43TW.mjs";import{i as l}from"./chunk-3YWKTNW4.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function x({text:n,variant:t="primary",loading:i,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:n}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):u("button",{type:r.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",r.disabled||i?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:bg-gray-100":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},r.className),disabled:r.disabled||i,...r,children:[i?e(s,{}):a||null,n&&e("p",{children:n}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as Ne,b as Re}from"./chunk-AUBFB4SI.mjs";var ce=Ne((Er,le)=>{var P=1e3,T=P*60,L=T*60,I=L*24,Ze=I*7,qe=I*365.25;le.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Ke(e);if(t==="number"&&isFinite(e))return r.long?Qe(e):Xe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ke(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*qe;case"weeks":case"week":case"w":return t*Ze;case"days":case"day":case"d":return t*I;case"hours":case"hour":case"hrs":case"hr":case"h":return t*L;case"minutes":case"minute":case"mins":case"min":case"m":return t*T;case"seconds":case"second":case"secs":case"sec":case"s":return t*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Xe(e){var r=Math.abs(e);return r>=I?Math.round(e/I)+"d":r>=L?Math.round(e/L)+"h":r>=T?Math.round(e/T)+"m":r>=P?Math.round(e/P)+"s":e+"ms"}function Qe(e){var r=Math.abs(e);return r>=I?B(e,r,I,"day"):r>=L?B(e,r,L,"hour"):r>=T?B(e,r,T,"minute"):r>=P?B(e,r,P,"second"):e+" ms"}function B(e,r,t,o){var n=r>=t*1.5;return Math.round(e/t)+" "+o+(n?"s":"")}});var W=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",price:{monthly:49,yearly:39,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]},limits:{links:5e3,clicks:25e4,domains:20,tags:150,users:15},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:"5,000 links/mo"},{text:"250K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}},{text:"Event callbacks (Beta)",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],ze=W.find(e=>e.name==="free"),Ue=W.filter(e=>e.name==="Pro"||e.name==="Business");var H=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",De=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Ge=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),Be=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",je=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",Ve=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${H}`,"api.localhost:8888"]),Fe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",$e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var R="cl7pj5kq4006835rbjlt2ofka";var Je=["stats","changelog","terms","privacy","abuse"],Ye=[{id:"clce1z7ch00j0rbstbjufva4j",slug:H,verified:!0,primary:!0,archived:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:R},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:R},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca"],projectId:R},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:R}]:[]],We=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code API",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}];function He(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var n=t.slice().reverse().find(function(i){return e>=i.value});return n?(e/n.value).toFixed(r.digits).replace(o,"$1")+n.symbol:"0"}var de=Re(ce(),1),er=(e,{withAgo:r}={})=>{if(!e)return"Never";let t=Date.now()-new Date(e).getTime();return t<1e3?"Just now":t>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,de.default)(t)}${r?" ago":""}`};var j=e=>{try{return new URL(e),!0}catch{return!1}},rr=e=>{if(j(e))return new URL(e).toString();try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{return null}};var or=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ar=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),sr=new RegExp(/^[a-zA-Z0-9\-]+$/);var nr=e=>{if(j(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};async function ir(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),n=new Error(o);throw n.status=t.status,n}return t.json()}function ue(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=ue(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function pe(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=ue(e))&&(o&&(o+=" "),o+=r);return o}function me(){for(var e=0,r,t,o="";e<arguments.length;)(r=arguments[e++])&&(t=fe(r))&&(o&&(o+=" "),o+=t);return o}function fe(e){if(typeof e=="string")return e;for(var r,t="",o=0;o<e.length;o++)e[o]&&(r=fe(e[o]))&&(t&&(t+=" "),t+=r);return t}var q="-";function be(e){var r=cr(e),t=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function i(s){var l=s.split(q);return l[0]===""&&l.length!==1&&l.shift(),ve(l,r)||lr(s)}function a(s,l){var d=t[s]||[];return l&&n[s]?[].concat(d,n[s]):d}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function ve(e,r){var a;if(e.length===0)return r.classGroupId;var t=e[0],o=r.nextPart.get(t),n=o?ve(e.slice(1),o):void 0;if(n)return n;if(r.validators.length!==0){var i=e.join(q);return(a=r.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var ge=/^\[(.+)\]$/;function lr(e){if(ge.test(e)){var r=ge.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function cr(e){var r=e.theme,t=e.prefix,o={nextPart:new Map,validators:[]},n=ur(Object.entries(e.classGroups),t);return n.forEach(function(i){var a=i[0],s=i[1];Z(s,o,a,r)}),o}function Z(e,r,t,o){e.forEach(function(n){if(typeof n=="string"){var i=n===""?r:he(r,n);i.classGroupId=t;return}if(typeof n=="function"){if(dr(n)){Z(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(a){var s=a[0],l=a[1];Z(l,he(r,s),t,o)})})}function he(e,r){var t=e;return r.split(q).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function dr(e){return e.isThemeGetter}function ur(e,r){return r?e.map(function(t){var o=t[0],n=t[1],i=n.map(function(a){return typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],d=s[1];return[r+l,d]})):a});return[o,i]}):e}function ye(e){if(e<1)return{get:function(){},set:function(){}};var r=0,t=new Map,o=new Map;function n(i,a){t.set(i,a),r++,r>e&&(r=0,o=t,t=new Map)}return{get:function(a){var s=t.get(a);if(s!==void 0)return s;if((s=o.get(a))!==void 0)return n(a,s),s},set:function(a,s){t.has(a)?t.set(a,s):n(a,s)}}}var K="!";function xe(e){var r=e.separator||":",t=r.length===1,o=r[0],n=r.length;return function(a){for(var s=[],l=0,d=0,m,u=0;u<a.length;u++){var f=a[u];if(l===0){if(f===o&&(t||a.slice(u,u+n)===r)){s.push(a.slice(d,u)),d=u+n;continue}if(f==="/"){m=u;continue}}f==="["?l++:f==="]"&&l--}var h=s.length===0?a:a.substring(d),y=h.startsWith(K),g=y?h.substring(1):h,x=m&&m>d?m-d:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:x}}}function we(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(o){var n=o[0]==="[";n?(r.push.apply(r,t.sort().concat([o])),t=[]):t.push(o)}),r.push.apply(r,t.sort()),r}function Ae(e){return{cache:ye(e.cacheSize),splitModifiers:xe(e),...be(e)}}var pr=/\s+/;function ke(e,r){var t=r.splitModifiers,o=r.getClassGroupId,n=r.getConflictingClassGroupIds,i=new Set;return e.trim().split(pr).map(function(a){var s=t(a),l=s.modifiers,d=s.hasImportantModifier,m=s.baseClassName,u=s.maybePostfixModifierPosition,f=o(u?m.substring(0,u):m),h=Boolean(u);if(!f){if(!u)return{isTailwindClass:!1,originalClassName:a};if(f=o(m),!f)return{isTailwindClass:!1,originalClassName:a};h=!1}var y=we(l).join(":"),g=d?y+K:y;return{isTailwindClass:!0,modifierId:g,classGroupId:f,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,d=a.hasPostfixModifier,m=s+l;return i.has(m)?!1:(i.add(m),n(l,d).forEach(function(u){return i.add(s+u)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Ee(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o,n,i,a=s;function s(d){var m=r[0],u=r.slice(1),f=u.reduce(function(h,y){return y(h)},m());return o=Ae(f),n=o.cache.get,i=o.cache.set,a=l,l(d)}function l(d){var m=n(d);if(m)return m;var u=ke(d,o);return i(d,u),u}return function(){return a(me.apply(null,arguments))}}function c(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,mr=/^\d+\/\d+$/,fr=new Set(["px","full","screen"]),gr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,br=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function v(e){return S(e)||fr.has(e)||mr.test(e)||A(e)}function A(e){return C(e,"length",vr)}function Ce(e){return C(e,"size",_e)}function Pe(e){return C(e,"position",_e)}function Te(e){return C(e,"url",yr)}function z(e){return C(e,"number",S)}function S(e){return!Number.isNaN(Number(e))}function Le(e){return e.endsWith("%")&&S(e.slice(0,-1))}function M(e){return Se(e)||C(e,"number",Se)}function p(e){return Ie.test(e)}function _(){return!0}function k(e){return gr.test(e)}function Me(e){return C(e,"",xr)}function C(e,r,t){var o=Ie.exec(e);return o?o[1]?o[1]===r:t(o[2]):!1}function vr(e){return hr.test(e)}function _e(){return!1}function yr(e){return e.startsWith("url(")}function Se(e){return Number.isInteger(Number(e))}function xr(e){return br.test(e)}function Oe(){var e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),n=c("borderColor"),i=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),l=c("contrast"),d=c("grayscale"),m=c("hueRotate"),u=c("invert"),f=c("gap"),h=c("gradientColorStops"),y=c("gradientColorStopPositions"),g=c("inset"),x=c("margin"),E=c("opacity"),w=c("padding"),Q=c("saturate"),V=c("scale"),ee=c("sepia"),re=c("skew"),te=c("space"),oe=c("translate"),F=function(){return["auto","contain","none"]},$=function(){return["auto","hidden","clip","visible","scroll"]},J=function(){return["auto",r]},ae=function(){return["",v]},U=function(){return["auto",S,p]},se=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},D=function(){return["solid","dashed","dotted","double","none"]},ne=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},Y=function(){return["start","end","center","between","around","evenly","stretch"]},O=function(){return["","0",p]},ie=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},N=function(){return[S,z]},G=function(){return[S,p]};return{cacheSize:500,theme:{colors:[_],spacing:[v],blur:["none","",k,A],brightness:N(),borderColor:[e],borderRadius:["none","","full",k,A],borderSpacing:[r],borderWidth:ae(),contrast:N(),grayscale:O(),hueRotate:G(),invert:O(),gap:[r],gradientColorStops:[e],gradientColorStopPositions:[Le,A],inset:J(),margin:J(),opacity:N(),padding:[r],saturate:N(),scale:N(),sepia:O(),skew:G(),space:[r],translate:[r]},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(se(),[p])}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",M]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",M]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:[M]},p]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[M]},p]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(Y())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(Y(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(Y(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[te]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[te]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",r]}],"min-w":[{"min-w":["min","max","fit",v]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[k]},k,A]}],h:[{h:[r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",v]}],"max-h":[{"max-h":[r,"min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",z]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",A]}],"line-clamp":[{"line-clamp":["none",S,z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(D(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",v]}],"underline-offset":[{"underline-offset":["auto",v]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[r]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(se(),[Pe])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ce]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Te]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[].concat(D(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:D()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(D())}],"outline-offset":[{"outline-offset":[v]}],"outline-w":[{outline:[v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[v]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,Me]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":ne()}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",k,p]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[u]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[M,p]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[r]}],"scroll-mx":[{"scroll-mx":[r]}],"scroll-my":[{"scroll-my":[r]}],"scroll-ms":[{"scroll-ms":[r]}],"scroll-me":[{"scroll-me":[r]}],"scroll-mt":[{"scroll-mt":[r]}],"scroll-mr":[{"scroll-mr":[r]}],"scroll-mb":[{"scroll-mb":[r]}],"scroll-ml":[{"scroll-ml":[r]}],"scroll-p":[{"scroll-p":[r]}],"scroll-px":[{"scroll-px":[r]}],"scroll-py":[{"scroll-py":[r]}],"scroll-ps":[{"scroll-ps":[r]}],"scroll-pe":[{"scroll-pe":[r]}],"scroll-pt":[{"scroll-pt":[r]}],"scroll-pr":[{"scroll-pr":[r]}],"scroll-pb":[{"scroll-pb":[r]}],"scroll-pl":[{"scroll-pl":[r]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[v,z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var X=Ee(Oe);function wr(...e){return X(pe(e))}export{Be as a,Je as b,We as c,He as d,er as e,rr as f,nr as g,ir as h,wr as i};
@@ -0,0 +1,3 @@
1
+ "use client"
2
+ import{h as r}from"./chunk-MXSIAELM.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:o}){return t("div",{className:"group",children:[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 248 204",className:r("group-hover:hidden",o),children:l("path",{fill:"currentColor",d:"M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07 7.57 1.46 15.37 1.16 22.8-.87-23.56-4.76-40.51-25.46-40.51-49.5v-.64c7.02 3.91 14.88 6.08 22.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71c25.64 31.55 63.47 50.73 104.08 52.76-4.07-17.54 1.49-35.92 14.61-48.25 20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26-3.77 11.69-11.66 21.62-22.2 27.93 10.01-1.18 19.79-3.86 29-7.95-6.78 10.16-15.32 19.01-25.2 26.16z"})}),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",className:r("hidden scale-150 group-hover:block",o),children:l("g",{transform:"translate(52.390088,-25.058597)",children:l("path",{fill:"currentColor",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99
3
+ h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})})})]})}export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b}from"./chunk-GWDVVBE4.mjs";import{a as s}from"./chunk-JQZF43TW.mjs";import{i as l}from"./chunk-3YWKTNW4.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function m({text:i,variant:t="primary",loading:n,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):u("button",{type:r.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",r.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},r.className),disabled:r.disabled||n,...r,children:[n?e(s,{}):a||null,e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-2QMW5HAF.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{d as t,h as d,i as n}from"./chunk-BGME547M.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-2DHSZE3S.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:(void 0)("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:(void 0)("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-BGME547M.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-FCBATSCJ.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:(void 0)("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
@@ -0,0 +1,3 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-MCSNR3RV.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:o}){return t("div",{className:"group",children:[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 248 204",className:(void 0)("group-hover:hidden",o),children:l("path",{fill:"currentColor",d:"M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07 7.57 1.46 15.37 1.16 22.8-.87-23.56-4.76-40.51-25.46-40.51-49.5v-.64c7.02 3.91 14.88 6.08 22.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71c25.64 31.55 63.47 50.73 104.08 52.76-4.07-17.54 1.49-35.92 14.61-48.25 20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26-3.77 11.69-11.66 21.62-22.2 27.93 10.01-1.18 19.79-3.86 29-7.95-6.78 10.16-15.32 19.01-25.2 26.16z"})}),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",className:(void 0)("hidden scale-150 group-hover:block",o),children:l("g",{transform:"translate(52.390088,-25.058597)",children:l("path",{fill:"currentColor",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99
3
+ h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})})})]})}export{s as a};