@dub/ui 0.1.64 → 0.1.65

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 (611) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/alert.mjs +1 -1
  3. package/dist/animated-size-container.d.ts +12 -12
  4. package/dist/animated-size-container.mjs +1 -1
  5. package/dist/avatar.mjs +1 -1
  6. package/dist/badge.d.ts +1 -1
  7. package/dist/badge.mjs +1 -1
  8. package/dist/blur-image.mjs +1 -1
  9. package/dist/button.mjs +1 -1
  10. package/dist/card-list/card-list-card.mjs +1 -1
  11. package/dist/card-list/card-list.mjs +1 -1
  12. package/dist/carousel.mjs +1 -1
  13. package/dist/checkbox.mjs +1 -1
  14. package/dist/chunk-22G7CNUP.mjs +2 -0
  15. package/dist/chunk-23XIZXUJ.mjs +2 -0
  16. package/dist/chunk-24L5RJT7.mjs +6 -0
  17. package/dist/chunk-266CR3JW.mjs +2 -0
  18. package/dist/chunk-27HFRPZ2.mjs +2 -0
  19. package/dist/chunk-27WZGLRK.mjs +2 -0
  20. package/dist/chunk-2ARGZAIC.mjs +2 -0
  21. package/dist/chunk-2B4J4WCM.mjs +2 -0
  22. package/dist/chunk-2DGI3N2A.mjs +2 -0
  23. package/dist/chunk-2ENJDUG6.mjs +2 -0
  24. package/dist/chunk-2F4BO55L.mjs +2 -0
  25. package/dist/chunk-2KUZ4P7L.mjs +2 -0
  26. package/dist/chunk-2LEO5N2F.mjs +42 -0
  27. package/dist/chunk-2LGFU4IK.mjs +6 -0
  28. package/dist/chunk-2LVMLNNB.mjs +2 -0
  29. package/dist/chunk-2N6HVSPE.mjs +2 -0
  30. package/dist/chunk-2NOMB236.mjs +2 -0
  31. package/dist/chunk-2SR2L3ZY.mjs +2 -0
  32. package/dist/chunk-2VNRSO5I.mjs +2 -0
  33. package/dist/chunk-2WSV4YH7.mjs +2 -0
  34. package/dist/chunk-2YXXAFBG.mjs +2 -0
  35. package/dist/chunk-324JZKTT.mjs +2 -0
  36. package/dist/chunk-352GTGOZ.mjs +2 -0
  37. package/dist/chunk-353TDDBD.mjs +2 -0
  38. package/dist/chunk-3AGS4CL3.mjs +2 -0
  39. package/dist/chunk-3CAINAYF.mjs +2 -0
  40. package/dist/chunk-3CRSMS33.mjs +2 -0
  41. package/dist/chunk-3DNI4UTR.mjs +2 -0
  42. package/dist/chunk-3DPJ4BHL.mjs +2 -0
  43. package/dist/chunk-3GWAD6PK.mjs +2 -0
  44. package/dist/chunk-3HO2QB3O.mjs +2 -0
  45. package/dist/chunk-3LMZVQIJ.mjs +6 -0
  46. package/dist/chunk-3MAO7ZUE.mjs +2 -0
  47. package/dist/chunk-3MNJAW3K.mjs +2 -0
  48. package/dist/chunk-3P2LZKNZ.mjs +2 -0
  49. package/dist/chunk-3PFRUDGR.mjs +2 -0
  50. package/dist/chunk-3Q67Z2ZQ.mjs +2 -0
  51. package/dist/chunk-3RJ6HILN.mjs +2 -0
  52. package/dist/chunk-3RPAER42.mjs +2 -0
  53. package/dist/chunk-3SBZZTKO.mjs +2 -0
  54. package/dist/chunk-3SL2UW4L.mjs +2 -0
  55. package/dist/chunk-3XI4D5KG.mjs +2 -0
  56. package/dist/chunk-47AFEU2D.mjs +2 -0
  57. package/dist/chunk-4B6U4GO7.mjs +2 -0
  58. package/dist/chunk-4DH2JJYJ.mjs +2 -0
  59. package/dist/chunk-4EWLMMOI.mjs +2 -0
  60. package/dist/chunk-4JFW4IBU.mjs +2 -0
  61. package/dist/chunk-4JN2E5ON.mjs +2 -0
  62. package/dist/chunk-4JXYVJYL.mjs +2 -0
  63. package/dist/chunk-4NCL3JOG.mjs +2 -0
  64. package/dist/chunk-4NKXIIGO.mjs +2 -0
  65. package/dist/chunk-4QLGWBWI.mjs +2 -0
  66. package/dist/chunk-4RK2SNLT.mjs +2 -0
  67. package/dist/chunk-4S4QDTNM.mjs +2 -0
  68. package/dist/chunk-4TKMVD3I.mjs +2 -0
  69. package/dist/chunk-4V4VNXHX.mjs +2 -0
  70. package/dist/chunk-4W3KDOST.mjs +2 -0
  71. package/dist/chunk-53QOFIHT.mjs +2 -0
  72. package/dist/chunk-5A3E7WHW.mjs +6 -0
  73. package/dist/chunk-5CSEIRJK.mjs +2 -0
  74. package/dist/chunk-5FOSABUZ.mjs +2 -0
  75. package/dist/chunk-5GRZQNXD.mjs +2 -0
  76. package/dist/chunk-5KHVEQXR.mjs +2 -0
  77. package/dist/chunk-5S6YVJRP.mjs +6 -0
  78. package/dist/chunk-5ULT3OX5.mjs +6 -0
  79. package/dist/chunk-5WVTOY4P.mjs +2 -0
  80. package/dist/chunk-5X37KZB5.mjs +2 -0
  81. package/dist/chunk-5XXBRPKG.mjs +2 -0
  82. package/dist/chunk-63VJXGTK.mjs +2 -0
  83. package/dist/chunk-64QQA4QW.mjs +2 -0
  84. package/dist/chunk-663VVVWM.mjs +2 -0
  85. package/dist/chunk-6CN4PV56.mjs +2 -0
  86. package/dist/chunk-6EXURXEE.mjs +2 -0
  87. package/dist/chunk-6HNDCIAI.mjs +2 -0
  88. package/dist/chunk-6I7YDKNG.mjs +2 -0
  89. package/dist/chunk-6JSI46AL.mjs +6 -0
  90. package/dist/chunk-6JXDFNYL.mjs +2 -0
  91. package/dist/chunk-6M22A3I2.mjs +2 -0
  92. package/dist/chunk-6ORGKCTT.mjs +2 -0
  93. package/dist/chunk-6Z4LCVCW.mjs +2 -0
  94. package/dist/chunk-72IF7VSJ.mjs +2 -0
  95. package/dist/chunk-73LCVKEY.mjs +2 -0
  96. package/dist/chunk-75ETXOAN.mjs +2 -0
  97. package/dist/chunk-75JQAERL.mjs +2 -0
  98. package/dist/chunk-76I3EX6E.mjs +2 -0
  99. package/dist/chunk-77SZ3IDE.mjs +2 -0
  100. package/dist/chunk-7A2MD2ZI.mjs +2 -0
  101. package/dist/chunk-7IDAN342.mjs +2 -0
  102. package/dist/chunk-7MNNAEZG.mjs +2 -0
  103. package/dist/chunk-7MQRFL5W.mjs +2 -0
  104. package/dist/chunk-7Y7DUQA4.mjs +2 -0
  105. package/dist/chunk-7ZKP5C4K.mjs +2 -0
  106. package/dist/chunk-A3LILCE2.mjs +2 -0
  107. package/dist/chunk-A7XAZNUY.mjs +2 -0
  108. package/dist/chunk-AAQ63WES.mjs +2 -0
  109. package/dist/chunk-ABIDKQLU.mjs +2 -0
  110. package/dist/chunk-AGH7ZEIK.mjs +2 -0
  111. package/dist/chunk-AGLNGBQP.mjs +2 -0
  112. package/dist/chunk-AH7XQ5K4.mjs +2 -0
  113. package/dist/chunk-AKIOXJYS.mjs +2 -0
  114. package/dist/chunk-ALA7PTL2.mjs +6 -0
  115. package/dist/chunk-AMIQBOQQ.mjs +2 -0
  116. package/dist/chunk-AYMV2XWG.mjs +2 -0
  117. package/dist/chunk-AYN6PQHJ.mjs +2 -0
  118. package/dist/chunk-B4NKNS6J.mjs +2 -0
  119. package/dist/chunk-B6LRIXJS.mjs +2 -0
  120. package/dist/chunk-B6MJ3SDC.mjs +2 -0
  121. package/dist/chunk-B76JSEEL.mjs +2 -0
  122. package/dist/chunk-B7S6GSB7.mjs +2 -0
  123. package/dist/chunk-BA2WAV55.mjs +2 -0
  124. package/dist/chunk-BBBROSDY.mjs +2 -0
  125. package/dist/chunk-BCFAWJEI.mjs +6 -0
  126. package/dist/chunk-BD76EQXI.mjs +2 -0
  127. package/dist/chunk-BFY5K5XP.mjs +2 -0
  128. package/dist/chunk-BGJJBYFF.mjs +2 -0
  129. package/dist/chunk-BIEJ6N7V.mjs +2 -0
  130. package/dist/chunk-BKXIX76I.mjs +2 -0
  131. package/dist/chunk-BPB42YAU.mjs +2 -0
  132. package/dist/chunk-BR4NCCQD.mjs +2 -0
  133. package/dist/chunk-BVAXTLWS.mjs +6 -0
  134. package/dist/chunk-BVUJO35O.mjs +2 -0
  135. package/dist/chunk-BW5I5LYX.mjs +2 -0
  136. package/dist/chunk-C3T67R3F.mjs +2 -0
  137. package/dist/chunk-C6C7ZMXM.mjs +2 -0
  138. package/dist/chunk-C7PORKCZ.mjs +2 -0
  139. package/dist/chunk-CBAK6IP3.mjs +2 -0
  140. package/dist/chunk-CBWWJMSP.mjs +6 -0
  141. package/dist/chunk-CC6UA2SY.mjs +2 -0
  142. package/dist/chunk-CJMH3V5J.mjs +2 -0
  143. package/dist/chunk-CL2JQR6L.mjs +2 -0
  144. package/dist/chunk-CM6SHJGO.mjs +2 -0
  145. package/dist/chunk-CMHXPQHR.mjs +2 -0
  146. package/dist/chunk-CNTA33PG.mjs +2 -0
  147. package/dist/chunk-COAUXGXL.mjs +2 -0
  148. package/dist/chunk-COMF4NPA.mjs +2 -0
  149. package/dist/chunk-CR6ZAJ2S.mjs +2 -0
  150. package/dist/chunk-CUAW3MWU.mjs +2 -0
  151. package/dist/chunk-CY644ZMD.mjs +2 -0
  152. package/dist/chunk-CYLUQHC7.mjs +2 -0
  153. package/dist/chunk-CZDFLXQX.mjs +42 -0
  154. package/dist/chunk-D5KJG3UR.mjs +2 -0
  155. package/dist/chunk-D7LKVBEO.mjs +2 -0
  156. package/dist/chunk-DDFAQ4KU.mjs +2 -0
  157. package/dist/chunk-DI5MMUHP.mjs +2 -0
  158. package/dist/chunk-DK7Q6FIF.mjs +2 -0
  159. package/dist/chunk-DNSDRMPX.mjs +2 -0
  160. package/dist/chunk-DPC3OMTK.mjs +2 -0
  161. package/dist/chunk-DTRNSEJR.mjs +2 -0
  162. package/dist/chunk-DWDN2PTA.mjs +2 -0
  163. package/dist/chunk-DWFKK5Z3.mjs +2 -0
  164. package/dist/chunk-DX3XHYLN.mjs +2 -0
  165. package/dist/chunk-E3MDGMRJ.mjs +2 -0
  166. package/dist/chunk-E64DRJH4.mjs +6 -0
  167. package/dist/chunk-E6DIYFDF.mjs +2 -0
  168. package/dist/chunk-EBYUINSY.mjs +2 -0
  169. package/dist/chunk-EBZHILLP.mjs +2 -0
  170. package/dist/chunk-EC2552BK.mjs +2 -0
  171. package/dist/chunk-ECRO7TY7.mjs +2 -0
  172. package/dist/chunk-EDNRTMPR.mjs +2 -0
  173. package/dist/chunk-EDPQF4LV.mjs +2 -0
  174. package/dist/chunk-EFVBEU4A.mjs +2 -0
  175. package/dist/chunk-EI63UUR5.mjs +2 -0
  176. package/dist/chunk-ELGETJHO.mjs +2 -0
  177. package/dist/chunk-EPQOXXCH.mjs +2 -0
  178. package/dist/chunk-EQGVKMNM.mjs +2 -0
  179. package/dist/chunk-EQQBGD3H.mjs +2 -0
  180. package/dist/chunk-ESVOYZCU.mjs +2 -0
  181. package/dist/chunk-ET532A2U.mjs +2 -0
  182. package/dist/chunk-EUBDOIEF.mjs +2 -0
  183. package/dist/chunk-EW4EMQWM.mjs +2 -0
  184. package/dist/chunk-EY7EF64M.mjs +2 -0
  185. package/dist/chunk-EYQWU2FE.mjs +2 -0
  186. package/dist/chunk-EZIH3MTQ.mjs +2 -0
  187. package/dist/chunk-F4ANXQ2H.mjs +2 -0
  188. package/dist/chunk-F6HJK2JJ.mjs +2 -0
  189. package/dist/chunk-F6VRLNFA.mjs +2 -0
  190. package/dist/chunk-FA4DY6UP.mjs +2 -0
  191. package/dist/chunk-FCHZ5NFO.mjs +2 -0
  192. package/dist/chunk-FCJQKJH4.mjs +2 -0
  193. package/dist/chunk-FEGXY7FI.mjs +2 -0
  194. package/dist/chunk-FEPIBNZL.mjs +6 -0
  195. package/dist/chunk-FIPHUD2L.mjs +2 -0
  196. package/dist/chunk-FJGJGU3H.mjs +2 -0
  197. package/dist/chunk-FKZGQEMI.mjs +2 -0
  198. package/dist/chunk-FMBBGZOU.mjs +2 -0
  199. package/dist/chunk-FOTGADCX.mjs +2 -0
  200. package/dist/chunk-FPX7DY6P.mjs +2 -0
  201. package/dist/chunk-FQ3HHKT6.mjs +2 -0
  202. package/dist/chunk-FRAN6DQK.mjs +2 -0
  203. package/dist/chunk-FSZIOE3J.mjs +2 -0
  204. package/dist/chunk-FUNPV7TG.mjs +2 -0
  205. package/dist/chunk-FWOD5FLT.mjs +2 -0
  206. package/dist/chunk-FXFCCJYU.mjs +6 -0
  207. package/dist/chunk-G2PHQK5M.mjs +2 -0
  208. package/dist/chunk-G2XKB6QH.mjs +2 -0
  209. package/dist/chunk-G6ZI7OGN.mjs +2 -0
  210. package/dist/chunk-G7JC5WVB.mjs +2 -0
  211. package/dist/chunk-GGHBVHFY.mjs +2 -0
  212. package/dist/chunk-GGZ7VSFG.mjs +2 -0
  213. package/dist/chunk-GHKRKQ47.mjs +2 -0
  214. package/dist/chunk-GK4L3NNI.mjs +2 -0
  215. package/dist/chunk-GKVTR555.mjs +2 -0
  216. package/dist/chunk-GMCMV67Y.mjs +2 -0
  217. package/dist/chunk-GQ7UE25R.mjs +6 -0
  218. package/dist/chunk-GT2L5XI5.mjs +2 -0
  219. package/dist/chunk-GUX6WUDF.mjs +2 -0
  220. package/dist/chunk-GVCRUB3A.mjs +2 -0
  221. package/dist/chunk-H6BUPWPT.mjs +2 -0
  222. package/dist/chunk-HBMP325Z.mjs +2 -0
  223. package/dist/chunk-HCQMSSHE.mjs +2 -0
  224. package/dist/chunk-HDJCLA6F.mjs +2 -0
  225. package/dist/chunk-HH6MEDKE.mjs +2 -0
  226. package/dist/chunk-HHR2MF2F.mjs +2 -0
  227. package/dist/chunk-HI7SVMVM.mjs +2 -0
  228. package/dist/chunk-HIMNDJ3X.mjs +2 -0
  229. package/dist/chunk-HIY3MY2D.mjs +2 -0
  230. package/dist/chunk-HKOJKOGX.mjs +2 -0
  231. package/dist/chunk-HMNMRBBV.mjs +2 -0
  232. package/dist/chunk-HNDK26EJ.mjs +2 -0
  233. package/dist/chunk-HNNDMBLV.mjs +2 -0
  234. package/dist/chunk-HQJ32QC6.mjs +2 -0
  235. package/dist/chunk-HRLKDYY6.mjs +2 -0
  236. package/dist/chunk-HRTR6WBC.mjs +2 -0
  237. package/dist/chunk-HSPLRBBS.mjs +2 -0
  238. package/dist/chunk-HTTZD7C6.mjs +2 -0
  239. package/dist/chunk-HV7U7CBC.mjs +2 -0
  240. package/dist/chunk-HVAKPUFA.mjs +2 -0
  241. package/dist/chunk-HVHP7YEN.mjs +2 -0
  242. package/dist/chunk-HVIS22UV.mjs +2 -0
  243. package/dist/chunk-I57EW7DE.mjs +2 -0
  244. package/dist/chunk-I73PI5HW.mjs +2 -0
  245. package/dist/chunk-IBKVCPYE.mjs +2 -0
  246. package/dist/chunk-ICAQOAGT.mjs +2 -0
  247. package/dist/chunk-IGFK7WG7.mjs +2 -0
  248. package/dist/chunk-INHKUPUJ.mjs +2 -0
  249. package/dist/chunk-IQLN5BB7.mjs +2 -0
  250. package/dist/chunk-ITHY5XRE.mjs +2 -0
  251. package/dist/chunk-IUXMQWKW.mjs +2 -0
  252. package/dist/chunk-IWGERSOL.mjs +2 -0
  253. package/dist/chunk-IZ3DLT56.mjs +2 -0
  254. package/dist/chunk-J6LW2SOU.mjs +2 -0
  255. package/dist/chunk-JD3ID4ZN.mjs +2 -0
  256. package/dist/chunk-JEMIDKLE.mjs +2 -0
  257. package/dist/chunk-JEUBTLBK.mjs +2 -0
  258. package/dist/chunk-JG6VJJEB.mjs +2 -0
  259. package/dist/chunk-JGMCC3SJ.mjs +2 -0
  260. package/dist/chunk-JHLMU2HR.mjs +2 -0
  261. package/dist/chunk-JKQX2NUM.mjs +2 -0
  262. package/dist/chunk-JLO4GFT4.mjs +2 -0
  263. package/dist/chunk-JM5WRKJK.mjs +2 -0
  264. package/dist/chunk-JQVQD7QT.mjs +2 -0
  265. package/dist/chunk-JRBGEJVG.mjs +2 -0
  266. package/dist/chunk-JRV2YPX4.mjs +2 -0
  267. package/dist/chunk-JUFQAEUG.mjs +2 -0
  268. package/dist/chunk-JUNSCYPL.mjs +2 -0
  269. package/dist/chunk-JWG37OS3.mjs +2 -0
  270. package/dist/chunk-K2I7BNJV.mjs +2 -0
  271. package/dist/chunk-K2TWJ5PO.mjs +2 -0
  272. package/dist/chunk-K52IWIYY.mjs +2 -0
  273. package/dist/chunk-KB2RXLUE.mjs +2 -0
  274. package/dist/chunk-KB4U7Y4R.mjs +2 -0
  275. package/dist/chunk-KEANR56L.mjs +2 -0
  276. package/dist/chunk-KGIXE343.mjs +2 -0
  277. package/dist/chunk-KGNX7QTP.mjs +2 -0
  278. package/dist/chunk-KH3OICPS.mjs +2 -0
  279. package/dist/chunk-KHEADKCC.mjs +2 -0
  280. package/dist/chunk-KL5LXGBW.mjs +2 -0
  281. package/dist/chunk-KQ5HZYFF.mjs +2 -0
  282. package/dist/chunk-KQTPY5BM.mjs +2 -0
  283. package/dist/chunk-KQZCIVHY.mjs +2 -0
  284. package/dist/chunk-KT3T3QNT.mjs +2 -0
  285. package/dist/chunk-KTX6MFL6.mjs +2 -0
  286. package/dist/chunk-KWEX23QL.mjs +2 -0
  287. package/dist/chunk-KZ3XZLQR.mjs +2 -0
  288. package/dist/chunk-L2P3OUEF.mjs +2 -0
  289. package/dist/chunk-L3GP3GF6.mjs +2 -0
  290. package/dist/chunk-LBEIOVOY.mjs +2 -0
  291. package/dist/chunk-LFHW6FEI.mjs +2 -0
  292. package/dist/chunk-LIR7PTQQ.mjs +2 -0
  293. package/dist/chunk-LKS43II7.mjs +2 -0
  294. package/dist/chunk-LNSRQVA7.mjs +2 -0
  295. package/dist/chunk-LPO7YLV4.mjs +2 -0
  296. package/dist/chunk-LSLSDUQ2.mjs +2 -0
  297. package/dist/chunk-LTHLFFSJ.mjs +2 -0
  298. package/dist/chunk-LUWJHLLJ.mjs +2 -0
  299. package/dist/chunk-LVOG5FSX.mjs +2 -0
  300. package/dist/chunk-M2BIFZDU.mjs +2 -0
  301. package/dist/chunk-M2LZEWUL.mjs +6 -0
  302. package/dist/chunk-M3BCQN7I.mjs +6 -0
  303. package/dist/chunk-MA4PW3D5.mjs +2 -0
  304. package/dist/chunk-MBK5QEBH.mjs +2 -0
  305. package/dist/chunk-MEZOUFR5.mjs +2 -0
  306. package/dist/chunk-MNW6RLNT.mjs +2 -0
  307. package/dist/chunk-MNYB66F3.mjs +2 -0
  308. package/dist/chunk-MOW5BMX3.mjs +2 -0
  309. package/dist/chunk-MQ4XKMG5.mjs +2 -0
  310. package/dist/chunk-MQ6PCK5Z.mjs +2 -0
  311. package/dist/chunk-MSVXMQF3.mjs +2 -0
  312. package/dist/chunk-MT4YGNGK.mjs +2 -0
  313. package/dist/chunk-MTEBNG4E.mjs +2 -0
  314. package/dist/chunk-MTFL6JFN.mjs +2 -0
  315. package/dist/chunk-MV7NFHHC.mjs +6 -0
  316. package/dist/chunk-MW2Z5KZD.mjs +2 -0
  317. package/dist/chunk-MXMDY7LI.mjs +2 -0
  318. package/dist/chunk-MYVDXSOZ.mjs +2 -0
  319. package/dist/chunk-N2JSIVHQ.mjs +2 -0
  320. package/dist/chunk-N3BZF5WA.mjs +2 -0
  321. package/dist/chunk-N5LRSO5P.mjs +2 -0
  322. package/dist/chunk-NCYRLZWD.mjs +2 -0
  323. package/dist/chunk-NE2DD5WM.mjs +2 -0
  324. package/dist/chunk-NEKFIZZK.mjs +2 -0
  325. package/dist/chunk-NHSJXET7.mjs +2 -0
  326. package/dist/chunk-NHXOY5OR.mjs +2 -0
  327. package/dist/chunk-NJ5YQDDU.mjs +2 -0
  328. package/dist/chunk-NJKG7KEC.mjs +2 -0
  329. package/dist/chunk-NJPB5KGL.mjs +2 -0
  330. package/dist/chunk-NJYKROPL.mjs +2 -0
  331. package/dist/chunk-NK2IC4AA.mjs +2 -0
  332. package/dist/chunk-NQBJCDK3.mjs +2 -0
  333. package/dist/chunk-NREMNTAP.mjs +2 -0
  334. package/dist/chunk-NSIJWTOP.mjs +2 -0
  335. package/dist/chunk-NVL6DYCG.mjs +2 -0
  336. package/dist/chunk-NVSGBNO6.mjs +2 -0
  337. package/dist/chunk-O45BVEDM.mjs +2 -0
  338. package/dist/chunk-O6GPTD6E.mjs +2 -0
  339. package/dist/chunk-OBMDUP7K.mjs +2 -0
  340. package/dist/chunk-OFJ6NAXR.mjs +2 -0
  341. package/dist/chunk-OGTGAZOO.mjs +2 -0
  342. package/dist/chunk-OHB3KX7D.mjs +2 -0
  343. package/dist/chunk-OK6ZXJYA.mjs +2 -0
  344. package/dist/chunk-OLQ5BDWL.mjs +2 -0
  345. package/dist/chunk-OLXD3QEU.mjs +2 -0
  346. package/dist/chunk-OR2PCXR4.mjs +2 -0
  347. package/dist/chunk-OS3OR3PS.mjs +2 -0
  348. package/dist/chunk-OSCD5OWU.mjs +2 -0
  349. package/dist/chunk-OTZLL7HW.mjs +2 -0
  350. package/dist/chunk-OYSICFWR.mjs +2 -0
  351. package/dist/chunk-P5UAU276.mjs +2 -0
  352. package/dist/chunk-PHHVQS6Z.mjs +2 -0
  353. package/dist/chunk-PJJNWRFF.mjs +2 -0
  354. package/dist/chunk-PKNAYSWN.mjs +2 -0
  355. package/dist/chunk-PLFTPUFD.mjs +2 -0
  356. package/dist/chunk-POVP4Y5N.mjs +2 -0
  357. package/dist/chunk-PQOEXL77.mjs +2 -0
  358. package/dist/chunk-PS6NBYDQ.mjs +2 -0
  359. package/dist/chunk-PVVUJYR3.mjs +2 -0
  360. package/dist/chunk-PZCIKCCM.mjs +2 -0
  361. package/dist/chunk-Q2M4SXDI.mjs +2 -0
  362. package/dist/chunk-Q2UNN4PN.mjs +2 -0
  363. package/dist/chunk-Q2WPRTUE.mjs +6 -0
  364. package/dist/chunk-Q2XR53J4.mjs +2 -0
  365. package/dist/chunk-Q3PKPLG3.mjs +2 -0
  366. package/dist/chunk-Q5DELRIJ.mjs +2 -0
  367. package/dist/chunk-Q6BX3YXO.mjs +2 -0
  368. package/dist/chunk-Q7PNF2PR.mjs +2 -0
  369. package/dist/chunk-QA63J67Z.mjs +2 -0
  370. package/dist/chunk-QADUMR33.mjs +2 -0
  371. package/dist/chunk-QCB5KITB.mjs +2 -0
  372. package/dist/chunk-QFHGJITY.mjs +2 -0
  373. package/dist/chunk-QGHPOT4I.mjs +2 -0
  374. package/dist/chunk-QH6FN4ZJ.mjs +2 -0
  375. package/dist/chunk-QJT4D2U4.mjs +2 -0
  376. package/dist/chunk-QKREZRFX.mjs +2 -0
  377. package/dist/chunk-QMWTFZBC.mjs +2 -0
  378. package/dist/chunk-QPDSRLPD.mjs +2 -0
  379. package/dist/chunk-QRFCXCWM.mjs +2 -0
  380. package/dist/chunk-QUPLCN2U.mjs +2 -0
  381. package/dist/chunk-QUSF7JGF.mjs +2 -0
  382. package/dist/chunk-QYPFWGYV.mjs +2 -0
  383. package/dist/chunk-R2IGJ54A.mjs +2 -0
  384. package/dist/chunk-R34HZUKA.mjs +2 -0
  385. package/dist/chunk-R34N6B4T.mjs +2 -0
  386. package/dist/chunk-R6MYDQOS.mjs +2 -0
  387. package/dist/chunk-R7QMXACY.mjs +2 -0
  388. package/dist/chunk-R7WOWTGN.mjs +2 -0
  389. package/dist/chunk-RCNZ3YGX.mjs +2 -0
  390. package/dist/chunk-RD5L2QEY.mjs +2 -0
  391. package/dist/chunk-REZHSW4S.mjs +2 -0
  392. package/dist/chunk-RF7LV7JD.mjs +2 -0
  393. package/dist/chunk-RH7MZT6S.mjs +2 -0
  394. package/dist/chunk-RI7PZPLF.mjs +2 -0
  395. package/dist/chunk-RILF4JZS.mjs +2 -0
  396. package/dist/chunk-RLRLCIGT.mjs +2 -0
  397. package/dist/chunk-RQXRQ6V2.mjs +6 -0
  398. package/dist/chunk-RR36AM5L.mjs +2 -0
  399. package/dist/chunk-RTCWJHAZ.mjs +2 -0
  400. package/dist/chunk-RXZCR5HW.mjs +2 -0
  401. package/dist/chunk-RYGAHCJZ.mjs +2 -0
  402. package/dist/chunk-RZVKY5WQ.mjs +6 -0
  403. package/dist/chunk-S2G2QNTU.mjs +2 -0
  404. package/dist/chunk-SBESRPQS.mjs +2 -0
  405. package/dist/chunk-SBHYKUQD.mjs +2 -0
  406. package/dist/chunk-SFEF2BD5.mjs +2 -0
  407. package/dist/chunk-SHIWHZZB.mjs +2 -0
  408. package/dist/chunk-SHTKENVI.mjs +2 -0
  409. package/dist/chunk-SLGEE5NN.mjs +2 -0
  410. package/dist/chunk-SOWHNQN5.mjs +2 -0
  411. package/dist/chunk-SQXHD4VQ.mjs +2 -0
  412. package/dist/chunk-SRFZQFVD.mjs +2 -0
  413. package/dist/chunk-SYK3XTY7.mjs +2 -0
  414. package/dist/chunk-SZVEVGDP.mjs +2 -0
  415. package/dist/chunk-T3Y2XIS7.mjs +2 -0
  416. package/dist/chunk-TC4CTKUA.mjs +2 -0
  417. package/dist/chunk-TDXL4PFA.mjs +2 -0
  418. package/dist/chunk-TELDIJWS.mjs +2 -0
  419. package/dist/chunk-TETQHLMW.mjs +2 -0
  420. package/dist/chunk-TFQACJ6S.mjs +6 -0
  421. package/dist/chunk-TIGNYHHJ.mjs +2 -0
  422. package/dist/chunk-TU6YLTLA.mjs +2 -0
  423. package/dist/chunk-TWNUJDF6.mjs +2 -0
  424. package/dist/chunk-TYC3FAWV.mjs +2 -0
  425. package/dist/chunk-TYD7M34C.mjs +2 -0
  426. package/dist/chunk-TYSFGS7L.mjs +2 -0
  427. package/dist/chunk-TZXMPIUM.mjs +2 -0
  428. package/dist/chunk-U5XYVZXI.mjs +2 -0
  429. package/dist/chunk-U6PBHDKM.mjs +2 -0
  430. package/dist/chunk-UA7MAREN.mjs +2 -0
  431. package/dist/chunk-UCACTUMD.mjs +2 -0
  432. package/dist/chunk-UDXG2XHT.mjs +2 -0
  433. package/dist/chunk-UEFNI2OT.mjs +2 -0
  434. package/dist/chunk-UGXB4KQU.mjs +2 -0
  435. package/dist/chunk-UI57ZQAZ.mjs +2 -0
  436. package/dist/chunk-UISVFKBM.mjs +2 -0
  437. package/dist/chunk-UKO4SIZX.mjs +2 -0
  438. package/dist/chunk-UMU4JC6U.mjs +2 -0
  439. package/dist/chunk-UNNG2LQE.mjs +2 -0
  440. package/dist/chunk-URQ6VAI6.mjs +2 -0
  441. package/dist/chunk-UT27LN3G.mjs +2 -0
  442. package/dist/chunk-UVBZCZYZ.mjs +2 -0
  443. package/dist/chunk-UVY4N5QC.mjs +2 -0
  444. package/dist/chunk-UXC5MHWG.mjs +2 -0
  445. package/dist/chunk-UZO2SH3Q.mjs +2 -0
  446. package/dist/chunk-UZOJ76WA.mjs +2 -0
  447. package/dist/chunk-UZTVL3VV.mjs +2 -0
  448. package/dist/chunk-V3RMYYRV.mjs +2 -0
  449. package/dist/chunk-V3YYQWZ2.mjs +2 -0
  450. package/dist/chunk-V5UYJMRF.mjs +2 -0
  451. package/dist/chunk-VACLKDBS.mjs +2 -0
  452. package/dist/chunk-VAJV23JM.mjs +2 -0
  453. package/dist/chunk-VBS6VRPK.mjs +2 -0
  454. package/dist/chunk-VEJEF3EI.mjs +2 -0
  455. package/dist/chunk-VGIZ6R74.mjs +2 -0
  456. package/dist/chunk-VKLIPXRE.mjs +2 -0
  457. package/dist/chunk-VT3LDZIM.mjs +2 -0
  458. package/dist/chunk-VU5CRY7C.mjs +2 -0
  459. package/dist/chunk-VV42FFAZ.mjs +2 -0
  460. package/dist/chunk-VX4GHBDS.mjs +2 -0
  461. package/dist/chunk-VYXZEMIO.mjs +2 -0
  462. package/dist/chunk-W2U2OUPW.mjs +2 -0
  463. package/dist/chunk-W46UZ3MC.mjs +6 -0
  464. package/dist/chunk-W4AVHUNG.mjs +2 -0
  465. package/dist/chunk-W4CSW63V.mjs +2 -0
  466. package/dist/chunk-WA2YAR2Q.mjs +2 -0
  467. package/dist/chunk-WEHEDJI2.mjs +2 -0
  468. package/dist/chunk-WF22VPJI.mjs +2 -0
  469. package/dist/chunk-WFY4LT4I.mjs +2 -0
  470. package/dist/chunk-WHK525GM.mjs +6 -0
  471. package/dist/chunk-WJ5TM3XV.mjs +2 -0
  472. package/dist/chunk-WJL2LNCC.mjs +2 -0
  473. package/dist/chunk-WJYK4XKE.mjs +2 -0
  474. package/dist/chunk-WO6PNFGB.mjs +2 -0
  475. package/dist/chunk-WXYOZJHY.mjs +2 -0
  476. package/dist/chunk-WY2DV6PM.mjs +2 -0
  477. package/dist/chunk-X2X52H6Q.mjs +2 -0
  478. package/dist/chunk-X57ZMV5G.mjs +42 -0
  479. package/dist/chunk-X5LFXKWQ.mjs +2 -0
  480. package/dist/chunk-X635T6QB.mjs +2 -0
  481. package/dist/chunk-X7EZR37V.mjs +2 -0
  482. package/dist/chunk-XBVWQEAF.mjs +2 -0
  483. package/dist/chunk-XDG64UW4.mjs +42 -0
  484. package/dist/chunk-XKDLJI4L.mjs +2 -0
  485. package/dist/chunk-XKWXYNGS.mjs +2 -0
  486. package/dist/chunk-XMXXBDZ6.mjs +2 -0
  487. package/dist/chunk-XNKP6J3D.mjs +2 -0
  488. package/dist/chunk-XPMISWVC.mjs +2 -0
  489. package/dist/chunk-XQY5Z4CQ.mjs +2 -0
  490. package/dist/chunk-XVCIQW5T.mjs +2 -0
  491. package/dist/chunk-XYICSYXJ.mjs +2 -0
  492. package/dist/chunk-XYMDKMFR.mjs +2 -0
  493. package/dist/chunk-Y4OHYBFS.mjs +2 -0
  494. package/dist/chunk-YFDFNJ5V.mjs +2 -0
  495. package/dist/chunk-YGLAATIJ.mjs +2 -0
  496. package/dist/chunk-YHA2HDV3.mjs +2 -0
  497. package/dist/chunk-YJZEYIQZ.mjs +2 -0
  498. package/dist/chunk-YNHH3PG6.mjs +2 -0
  499. package/dist/chunk-YO64OMDM.mjs +2 -0
  500. package/dist/chunk-YQ4EX5DM.mjs +2 -0
  501. package/dist/chunk-YTPIFMGM.mjs +2 -0
  502. package/dist/chunk-YWP3HAC6.mjs +6 -0
  503. package/dist/chunk-YXIRTV5G.mjs +2 -0
  504. package/dist/chunk-YYJOVNLA.mjs +2 -0
  505. package/dist/chunk-YZ2Z23XS.mjs +2 -0
  506. package/dist/chunk-YZJCGYTA.mjs +2 -0
  507. package/dist/chunk-Z34BMFFK.mjs +2 -0
  508. package/dist/chunk-Z4THZ6WH.mjs +2 -0
  509. package/dist/chunk-ZBWF34E7.mjs +2 -0
  510. package/dist/chunk-ZBYJCAJO.mjs +6 -0
  511. package/dist/chunk-ZFGCJK4N.mjs +2 -0
  512. package/dist/chunk-ZKX4FB6T.mjs +2 -0
  513. package/dist/chunk-ZKY424WN.mjs +2 -0
  514. package/dist/chunk-ZR34FTMG.mjs +2 -0
  515. package/dist/chunk-ZSYM4Y4M.mjs +2 -0
  516. package/dist/chunk-ZTYBIDGM.mjs +2 -0
  517. package/dist/chunk-ZUUZPEID.mjs +2 -0
  518. package/dist/combobox/index.d.ts +13 -0
  519. package/dist/combobox/index.mjs +1 -1
  520. package/dist/composite-logo.mjs +1 -1
  521. package/dist/copy-button.mjs +1 -1
  522. package/dist/copy-text.mjs +1 -1
  523. package/dist/counting-numbers.mjs +1 -1
  524. package/dist/date-picker/calendar.mjs +1 -1
  525. package/dist/date-picker/date-range-picker.mjs +1 -1
  526. package/dist/date-picker/presets.mjs +1 -1
  527. package/dist/date-picker/trigger.mjs +1 -1
  528. package/dist/file-upload.d.ts +2 -1
  529. package/dist/file-upload.mjs +1 -1
  530. package/dist/filter/filter-list.mjs +1 -1
  531. package/dist/filter/filter-select.mjs +1 -1
  532. package/dist/footer.mjs +1 -1
  533. package/dist/form.mjs +1 -1
  534. package/dist/grid.mjs +1 -1
  535. package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
  536. package/dist/icons/default-domains/amazon.mjs +1 -1
  537. package/dist/icons/default-domains/chatgpt.mjs +1 -1
  538. package/dist/icons/default-domains/figma.mjs +1 -1
  539. package/dist/icons/default-domains/github-enhanced.mjs +1 -1
  540. package/dist/icons/default-domains/google-enhanced.mjs +1 -1
  541. package/dist/icons/default-domains/spotify.mjs +1 -1
  542. package/dist/icons/expanding-arrow.mjs +1 -1
  543. package/dist/icons/index.d.ts +13 -0
  544. package/dist/icons/index.mjs +1 -1
  545. package/dist/icons/linkedin.mjs +1 -1
  546. package/dist/icons/loading-circle.mjs +1 -1
  547. package/dist/icons/loading-spinner.mjs +1 -1
  548. package/dist/icons/nucleo/calendar6.d.ts +6 -0
  549. package/dist/icons/nucleo/calendar6.mjs +2 -0
  550. package/dist/icons/nucleo/color-palette2.d.ts +6 -0
  551. package/dist/icons/nucleo/color-palette2.mjs +2 -0
  552. package/dist/icons/nucleo/connected-dots4.d.ts +6 -0
  553. package/dist/icons/nucleo/connected-dots4.mjs +2 -0
  554. package/dist/icons/nucleo/connections3.d.ts +6 -0
  555. package/dist/icons/nucleo/connections3.mjs +2 -0
  556. package/dist/icons/nucleo/file-zip2.d.ts +6 -0
  557. package/dist/icons/nucleo/file-zip2.mjs +2 -0
  558. package/dist/icons/nucleo/folder.mjs +1 -1
  559. package/dist/icons/nucleo/gauge6.d.ts +6 -0
  560. package/dist/icons/nucleo/gauge6.mjs +2 -0
  561. package/dist/icons/nucleo/greek-temple.d.ts +6 -0
  562. package/dist/icons/nucleo/greek-temple.mjs +2 -0
  563. package/dist/icons/nucleo/grid.d.ts +6 -0
  564. package/dist/icons/nucleo/grid.mjs +2 -0
  565. package/dist/icons/nucleo/money-bill2.d.ts +6 -0
  566. package/dist/icons/nucleo/money-bill2.mjs +2 -0
  567. package/dist/icons/nucleo/money-bills2.d.ts +6 -0
  568. package/dist/icons/nucleo/money-bills2.mjs +2 -0
  569. package/dist/icons/nucleo/palette-2.d.ts +6 -0
  570. package/dist/icons/nucleo/palette-2.mjs +2 -0
  571. package/dist/icons/nucleo/post.d.ts +6 -0
  572. package/dist/icons/nucleo/post.mjs +2 -0
  573. package/dist/icons/sort-order.mjs +1 -1
  574. package/dist/icons/twitter.mjs +1 -1
  575. package/dist/icons/youtube.mjs +1 -1
  576. package/dist/index.css +1 -1
  577. package/dist/index.d.ts +14 -2
  578. package/dist/index.mjs +1 -1
  579. package/dist/input-select.mjs +1 -1
  580. package/dist/input.mjs +1 -1
  581. package/dist/label.mjs +1 -1
  582. package/dist/link-logo.mjs +1 -1
  583. package/dist/link-preview.mjs +1 -1
  584. package/dist/logo.mjs +1 -1
  585. package/dist/max-width-wrapper.mjs +1 -1
  586. package/dist/modal.mjs +1 -1
  587. package/dist/nav/content/product-content.mjs +1 -1
  588. package/dist/nav/content/resources-content.mjs +1 -1
  589. package/dist/nav/content/shared.mjs +1 -1
  590. package/dist/nav/content/solutions-content.mjs +1 -1
  591. package/dist/nav/nav-mobile.mjs +1 -1
  592. package/dist/nav/nav.mjs +1 -1
  593. package/dist/nav-logo.mjs +1 -1
  594. package/dist/nav-wordmark.mjs +1 -1
  595. package/dist/popover.mjs +1 -1
  596. package/dist/progress-bar.mjs +1 -1
  597. package/dist/radio-group.mjs +1 -1
  598. package/dist/sheet.d.ts +13 -19
  599. package/dist/sheet.mjs +1 -1
  600. package/dist/shimmer-dots.mjs +1 -1
  601. package/dist/status-badge.d.ts +13 -0
  602. package/dist/status-badge.mjs +1 -1
  603. package/dist/switch.mjs +1 -1
  604. package/dist/tab-select.mjs +1 -1
  605. package/dist/table/table.d.ts +2 -1
  606. package/dist/table/table.mjs +1 -1
  607. package/dist/toggle-group.mjs +1 -1
  608. package/dist/tooltip.mjs +1 -1
  609. package/dist/utm-builder.mjs +1 -1
  610. package/dist/wordmark.mjs +1 -1
  611. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as l,e as p}from"./chunk-Q7PNF2PR.mjs";import{a as s,c as n}from"./chunk-YJZEYIQZ.mjs";import{b as i,j as e}from"./chunk-73LCVKEY.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as C}from"./chunk-73LCVKEY.mjs";import{jsx as l,jsxs as f}from"react/jsx-runtime";function o({className:t}){return f("svg",{className:C("h-full w-full",t),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M110.999 0C49.6974 0 0 49.6973 0 111.001C0 172.307 49.6974 222 110.999 222C172.308 222 222 172.307 222 111.001C222 49.7012 172.308 0.00530203 110.998 0.00530203L110.999 0ZM161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.324 146.469 93.5163 142.863 54.8787 151.691C51.1554 152.539 47.4441 150.207 46.5958 146.482C45.7435 142.757 48.0671 139.046 51.7996 138.197C94.0823 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.904 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.655 135.228 163.586 132.723C133.75 114.383 88.2687 109.072 52.9779 119.785C48.4011 121.167 43.5671 118.588 42.178 114.019C40.7995 109.442 43.3802 104.617 47.9491 103.225C88.2608 90.9935 138.376 96.9185 172.639 117.974C176.708 120.479 177.994 125.808 175.489 129.872V129.871ZM176.655 98.3977C140.881 77.1485 81.8574 75.1947 47.7012 85.5615C42.2164 87.225 36.4161 84.1286 34.754 78.6437C33.0918 73.1561 36.1855 67.3596 41.6743 65.6922C80.8832 53.7891 146.063 56.0889 187.251 80.5405C192.195 83.4685 193.812 89.8403 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.655Z",fill:"#1ED760"}),l("path",{d:"M161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.325 146.469 93.5164 142.863 54.8788 151.691C51.1556 152.539 47.4442 150.207 46.5959 146.482C45.7436 142.757 48.0672 139.046 51.7997 138.197C94.0824 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.905 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.656 135.228 163.586 132.723C133.75 114.383 88.2689 109.072 52.9781 119.785C48.4012 121.167 43.5672 118.588 42.1781 114.019C40.7996 109.442 43.3803 104.617 47.9492 103.225C88.2609 90.9934 138.376 96.9184 172.639 117.974C176.709 120.479 177.994 125.808 175.489 129.872V129.871ZM176.656 98.3977C140.881 77.1485 81.8576 75.1947 47.7014 85.5615C42.2165 87.225 36.4163 84.1286 34.7541 78.6437C33.092 73.1561 36.1856 67.3596 41.6744 65.6921C80.8833 53.7891 146.064 56.0888 187.251 80.5405C192.195 83.4685 193.813 89.8402 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.656Z",fill:"white"})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as Z}from"./chunk-GGHBVHFY.mjs";import{a as B}from"./chunk-GVBIGY6N.mjs";import{a as j}from"./chunk-NWME2ANF.mjs";import{a as F}from"./chunk-IQLN5BB7.mjs";import{k as U}from"./chunk-IWGERSOL.mjs";import{a as Q}from"./chunk-WMTXO7RT.mjs";import{a as $}from"./chunk-JW75YDRU.mjs";import{a as V}from"./chunk-JOLDVN3E.mjs";import{a as K}from"./chunk-IHTRL6TU.mjs";import{a as P}from"./chunk-HRTR6WBC.mjs";import{j as i}from"./chunk-73LCVKEY.mjs";import{Command as h,CommandInput as ie,CommandItem as ce,useCommandState as me}from"cmdk";import{ChevronDown as de}from"lucide-react";import{forwardRef as pe,isValidElement as ue,useCallback as fe,useEffect as v,useRef as xe,useState as f}from"react";import{Fragment as I,jsx as e,jsxs as c}from"react/jsx-runtime";function ge(s,o){return s===!0}function De({multiple:s,selected:o,setSelected:l,options:a,icon:d,placeholder:y="Select...",searchPlaceholder:G="Search...",emptyState:x,createLabel:N,onCreate:g,buttonProps:m,shortcutHint:z,caret:J,side:X,open:Y,onOpenChange:_,onSearchChange:C,shouldFilter:R=!0,inputClassName:ee,optionRight:w,optionClassName:E,matchTriggerWidth:L,children:te}){let D=ge(s,l),n=Array.isArray(o)?o:o?[o]:[],{isMobile:se}=j(),[oe,ae]=f(!1),O=Y??oe,b=_??ae,[r,k]=f(""),[W,M]=f(!1),[S,ne]=f(void 0),[re,A]=f(!1),le=t=>{var p;if(D){let T=n.some(({value:u})=>u===t.value);l(T?n.filter(({value:u})=>u!==t.value):[...n,t])}else l(n.length&&((p=n[0])==null?void 0:p.value)===t.value?null:t),b(!1)},H=fe((t,p)=>p===""?[...n,...t.filter(T=>n.findIndex(u=>u.value===T.value)===-1)]:t,[n]);return v(()=>{W&&(ne(a&&H(a,r)),M(!1))},[W,a,H,r]),v(()=>{M(!0)},[a]),v(()=>{O||(k(""),M(!0))},[O]),v(()=>C==null?void 0:C(r),[r]),e(Z,{openPopover:O,setOpenPopover:b,align:"start",side:X,onWheel:t=>{t.stopPropagation()},popoverContentClassName:i(L&&"sm:w-[var(--radix-popover-trigger-width)]"),content:e(F,{width:!se&&!L,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},children:c(h,{loop:!0,shouldFilter:R,children:[c("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[e(ie,{placeholder:G,value:r,onValueChange:k,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",ee),onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!r)&&(t.preventDefault(),t.stopPropagation(),b(!1))}}),z&&e("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:z})]}),e(be,{children:e(h.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:S!==void 0?c(I,{children:[S.map(t=>e(ve,{option:t,multiple:D,selected:n.some(({value:p})=>p===t.value),onSelect:()=>le(t),right:w==null?void 0:w(t),className:E},`${t.label}, ${t.value}`)),r.length>0&&g&&c(ce,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",E),onSelect:async()=>{A(!0),await(g==null?void 0:g(r))&&(k(""),b(!1)),A(!1)},children:[re?e(P,{className:"size-4 shrink-0"}):e(Q,{className:"size-4 shrink-0"}),e("div",{className:"grow truncate",children:(N==null?void 0:N(r))||`Create "${r}"`})]}),R?e(he,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):S.length===0?e("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):null]}):e(h.Loading,{children:e("div",{className:"flex h-12 items-center justify-center",children:e(P,{})})})})})]})}),children:e(U,{variant:"secondary",...m,className:i(m==null?void 0:m.className,"flex gap-2"),textWrapperClassName:i(m==null?void 0:m.textWrapperClassName,"w-full flex items-center justify-start"),text:c(I,{children:[e("div",{className:"min-w-0 grow truncate text-left",children:te||n.map(t=>t.label).join(", ")||y}),J&&e(de,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:d?q(d)?d:e(d,{className:"size-4 shrink-0"}):void 0})})}var be=({children:s})=>{let o=xe(null),{scrollProgress:l,updateScrollProgress:a}=B(o);return c(I,{children:[e("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:o,onScroll:a,children:s}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(l,2)}})]})};function ve({option:s,onSelect:o,multiple:l,selected:a,right:d,className:y}){return c(h.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100",y),onSelect:o,value:s.label+(s==null?void 0:s.value),children:[l&&e("div",{className:"shrink-0 text-gray-600",children:a?e(V,{className:"size-4 text-gray-600"}):e(K,{className:"size-4 text-gray-400"})}),c("div",{className:"flex min-w-0 grow items-center gap-1",children:[s.icon&&e("span",{className:"shrink-0 text-gray-600",children:q(s.icon)?s.icon:e(s.icon,{className:"h-4 w-4"})}),e("span",{className:"grow truncate",children:s.label})]}),d,!l&&a&&e($,{className:"size-4 shrink-0 text-gray-600"})]})}var q=s=>ue(s),he=pe((s,o)=>me(a=>a.filtered.count===0)?e("div",{ref:o,"cmdk-empty":"",role:"presentation",...s}):null);export{De as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{k as m}from"./chunk-Q2UNN4PN.mjs";import{n as i}from"./chunk-6M22A3I2.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as W}from"./chunk-UI57ZQAZ.mjs";import{a as T}from"./chunk-QUPLCN2U.mjs";import{a as L,e as S}from"./chunk-27HFRPZ2.mjs";import{a as H}from"./chunk-BW5I5LYX.mjs";import{a as w}from"./chunk-NJYKROPL.mjs";import{a as V}from"./chunk-BA2WAV55.mjs";import{a as M}from"./chunk-AXZJPLZ2.mjs";import{k as _}from"./chunk-Q2UNN4PN.mjs";import{a as y,c as k,m as P,n as s}from"./chunk-6M22A3I2.mjs";import*as r from"@radix-ui/react-navigation-menu";import{cva as K}from"class-variance-authority";import Q from"js-cookie";import h from"next/link";import{useParams as X,useSelectedLayoutSegment as tt}from"next/navigation";import{createContext as et}from"react";import ot from"swr";import{useCallback as B,useEffect as E,useState as O}from"react";function C(a){let[e,m]=O(!1),i=B(()=>{m(window.scrollY>a)},[a]);return E(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),E(()=>{i()},[i]),e}import*as d from"@radix-ui/react-popover";import{BoxSelect as A,Home as Z,LayoutGrid as G,Type as j}from"lucide-react";import{useParams as z}from"next/navigation";import{useCallback as U,useContext as $,useState as F}from"react";import{toast as Y}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
4
+ </svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
6
+ </svg>`;function D({variant:a="full",isInApp:e,className:m}){let{domain:i="dub.co"}=z(),{theme:g}=$(x),[b,p]=F(!1),f=U(n=>{n.preventDefault(),p(!0)},[]),[,c]=M();function l(n){Y.promise(c(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return R(d.Root,{open:b,onOpenChange:p,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:f,className:"max-w-fit",children:a==="full"?o(H,{className:m}):o(w,{className:s("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:s("z-50 -mt-1.5",!e&&"-translate-x-8",g==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),p(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>l(q),icon:o(w,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>l(J),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(A,{strokeWidth:2,className:"h-4 w-4"})}),e||i!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(G,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:a,...e}){return o(_,{className:s("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",a),...e})}import{Fragment as it,jsx as t,jsxs as u}from"react/jsx-runtime";var x=et({theme:"light"}),rt=[{name:"Product",content:W,childItems:L},{name:"Resources",content:T,childItems:S},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],I=K(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Rt({theme:a="light"}){let{domain:e="dub.co"}=X(),m=C(80),i=C(40),g=tt(),{data:b,isLoading:p}=ot(e==="dub.co"&&"/api/auth/session",P,{dedupingInterval:6e4}),f=!!(e==="dub.co"&&Q.get("dub_id"));return t(x.Provider,{value:{theme:a},children:u("div",{className:s("sticky inset-x-0 top-0 z-30 w-full transition-all",a==="dark"&&"dark"),children:[t("div",{className:s("absolute inset-0 block transition-all lg:hidden",i&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(h,{className:"grow basis-0",href:k("/home",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Logo"}),children:t(D,{})}),u(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(r.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:s("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),rt.map(({name:c,href:l,content:n})=>{let N=l===`/${g}`||l==="/"&&g===null;return u(r.Item,{children:[t(at,{trigger:!!n,children:l!==void 0?t(h,{id:`nav-${l}`,href:k(l,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:c}),className:I({isActive:N}),children:c}):t("button",{className:I({isActive:N}),children:c})}),n&&t(r.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(n,{domain:e})})]},c)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(r.Viewport,{className:s("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:b&&Object.keys(b).length>0?t(h,{href:y,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):p?null:u(it,{children:[t(h,{href:f?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(h,{href:f?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function at({trigger:a,children:e}){return a?t(r.Trigger,{asChild:!0,children:e}):e}export{C as a,x as b,rt as c,Rt as d,D as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as C}from"./chunk-HQJ32QC6.mjs";import{jsx as e}from"react/jsx-runtime";function o({className:t}){return e("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as we,b as Ae}from"./chunk-AUBFB4SI.mjs";var le=we((it,ie)=>{var I=1e3,L=I*60,O=L*60,P=O*24,He=P*7,Ze=P*365.25;ie.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Qe(e);if(t==="number"&&isFinite(e))return r.long?rr(e):er(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qe(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*Ze;case"weeks":case"week":case"w":return t*He;case"days":case"day":case"d":return t*P;case"hours":case"hour":case"hrs":case"hr":case"h":return t*O;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function er(e){var r=Math.abs(e);return r>=P?Math.round(e/P)+"d":r>=O?Math.round(e/O)+"h":r>=L?Math.round(e/L)+"m":r>=I?Math.round(e/I)+"s":e+"ms"}function rr(e){var r=Math.abs(e);return r>=P?$(e,r,P,"day"):r>=O?$(e,r,O,"hour"):r>=L?$(e,r,L,"minute"):r>=I?$(e,r,I,"second"):e+" ms"}function $(e,r,t,o){var a=r>=t*1.5;return Math.round(e/t)+" "+o+(a?"s":"")}});var ke=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ne=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Ee=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Pe=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),_e=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",Se=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.NEXT_PUBLIC_NGROK_URL||"http://localhost:8888",Ie=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${ne}`,"api.localhost:8888"]),Le=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Oe=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),Te=new Set([`partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"partners.localhost:8888"]);var Ce=process.env.STORAGE_BASE_URL;var B=e=>{try{return new URL(e),!0}catch{return!1}},Ne=e=>{if(B(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};var Re=(e,r,t)=>{if(r==="dub.co")return e;let o=new URL(e.startsWith("/")?`https://dub.co${e}`:e);return t&&Object.entries(t).forEach(([a,s])=>{o.searchParams.set(a,s)}),o.toString()};function G(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=/\.0+$|(\.[0-9]*[1-9])0+$/;if(e<1)return e.toFixed(r.digits).replace(t,"$1");var o=[{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"}].slice().reverse().find(function(a){return e>=a.value});return o?(e/o.value).toFixed(r.digits).replace(t,"$1")+o.symbol:"0"}var Ue=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ze=new RegExp(/^[a-zA-Z0-9\-]+$/);var De=e=>{if(B(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}};var V=({name:e="Business",monthly:r=59,yearly:t=49,links:o=5e3,clicks:a=15e4,domains:s=40,tags:n=150,users:i=15,ids:c=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:r,yearly:t,ids:c},limits:{links:o,clicks:a,domains:s,tags:n,users:i,ai:1e3,api:3e3},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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"Everything in Pro, plus:",features:[{text:`${G(o,{full:!0})} new links/mo`},{text:`${G(a)} tracked clicks/mo`},{text:"3-year analytics retention"},{text:`${s} custom domains`},{text:`${i} users`},{text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{text:"Event webhooks (beta)",footnote:{title:"Get notified when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),S=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/help/article/dub-analytics"}},{text:"10 AI credits/mo"},{text:"Basic support"},{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",link:"https://dub.co/help/article/pro-plan",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,ai:1e3,api:600},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-600 hover:bg-blue-700 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{text:"Priority support"},{text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{text:"Complimentary custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},V({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),V({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),V({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),V({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-gradient-to-r from-violet-600 to-pink-600 hover:ring-violet-100"},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"}]}],Be=S.find(e=>e.name==="Free"),Ge=S.find(e=>e.name==="Pro"),Ve=S.find(e=>e.name==="Business"),$e=S.find(e=>e.name==="Enterprise");var Je=S.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var je="https://www.google.com/s2/favicons?sz=64&domain_url=";var Fe=100,We=60*60*24*14,qe=new Date("2022-09-22T00:00:00.000Z");var Ke=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"GitHub Link Shortener",slug:"github-link-shortener"},{name:"Calendar Link Shortener",slug:"cal-link-shortener"},{name:"Google Link Shortener",slug:"google-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Figma Link Shortener",slug:"figma-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"Link Inspector",slug:"inspector"},{name:"QR Code API",slug:"qr-code"},{name:"UTM Builder",slug:"utm-builder"}];var Ye=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;var Xe=(e,r)=>e.map((t,o)=>({item:t,index:o})).sort((t,o)=>r(t.item,o.item)||t.index-o.index).map(({item:t})=>t);var ce=Ae(le(),1),tr=(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,ce.default)(t)}${r?" ago":""}`};var de=(e,r)=>{if(e===r)return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null)return!1;let t=Object.keys(e),o=Object.keys(r);if(t.length!==o.length)return!1;for(let a of t)if(!o.includes(a)||!de(e[a],r[a]))return!1;return!0};async function or(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),a=new Error(o);throw a.status=t.status,a}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)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=ue(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function pe(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=ue(e))&&(o&&(o+=" "),o+=r);return o}var X="-";function ar(e){let r=nr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function a(n){let i=n.split(X);return i[0]===""&&i.length!==1&&i.shift(),ge(i,r)||sr(n)}function s(n,i){let c=t[n]||[];return i&&o[n]?[...c,...o[n]]:c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ge(e,r){var n;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join(X);return(n=r.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId}var me=/^\[(.+)\]$/;function sr(e){if(me.test(e)){let r=me.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function nr(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return lr(Object.entries(e.classGroups),t).forEach(([s,n])=>{Y(n,o,s,r)}),o}function Y(e,r,t,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:fe(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(ir(a)){Y(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,n])=>{Y(n,fe(r,s),t,o)})})}function fe(e,r){let t=e;return r.split(X).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function ir(e){return e.isThemeGetter}function lr(e,r){return r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[r+n,i])):s);return[t,a]}):e}function cr(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function a(s,n){t.set(s,n),r++,r>e&&(r=0,o=t,t=new Map)}return{get(s){let n=t.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){t.has(s)?t.set(s,n):a(s,n)}}}var he="!";function dr(e){let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length;function n(i){let c=[],f=0,p=0,g;for(let m=0;m<i.length;m++){let h=i[m];if(f===0){if(h===a&&(o||i.slice(m,m+s)===r)){c.push(i.slice(p,m)),p=m+s;continue}if(h==="/"){g=m;continue}}h==="["?f++:h==="]"&&f--}let b=c.length===0?i:i.substring(p),x=b.startsWith(he),E=x?b.substring(1):b,y=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function ur(e){if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function pr(e){return{cache:cr(e.cacheSize),parseClassName:dr(e),...ar(e)}}var mr=/\s+/;function fr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=new Set;return e.trim().split(mr).map(n=>{let{modifiers:i,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=t(n),g=Boolean(p),b=o(g?f.substring(0,p):f);if(!b){if(!g)return{isTailwindClass:!1,originalClassName:n};if(b=o(f),!b)return{isTailwindClass:!1,originalClassName:n};g=!1}let x=ur(i).join(":"),E=c?x+he:x;return{isTailwindClass:!0,modifierId:E,classGroupId:b,originalClassName:n,hasPostfixModifier:g}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:i,classGroupId:c,hasPostfixModifier:f}=n,p=i+c;return s.has(p)?!1:(s.add(p),a(c,f).forEach(g=>s.add(i+g)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function gr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=be(r))&&(o&&(o+=" "),o+=t);return o}function be(e){if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=be(e[o]))&&(t&&(t+=" "),t+=r);return t}function hr(e,...r){let t,o,a,s=n;function n(c){let f=r.reduce((p,g)=>g(p),e());return t=pr(f),o=t.cache.get,a=t.cache.set,s=i,i(c)}function i(c){let f=o(c);if(f)return f;let p=fr(c,t);return a(c,p),p}return function(){return s(gr.apply(null,arguments))}}function d(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,br=/^\d+\/\d+$/,yr=new Set(["px","full","screen"]),xr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vr=/\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))|\b(calc|min|max|clamp)\(.+\)|^0$/,wr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ar=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return _(e)||yr.has(e)||br.test(e)}function A(e){return T(e,"length",Tr)}function _(e){return Boolean(e)&&!Number.isNaN(Number(e))}function J(e){return T(e,"number",_)}function R(e){return Boolean(e)&&Number.isInteger(Number(e))}function Er(e){return e.endsWith("%")&&_(e.slice(0,-1))}function l(e){return ye.test(e)}function k(e){return xr.test(e)}var Pr=new Set(["length","size","percentage"]);function _r(e){return T(e,Pr,xe)}function Sr(e){return T(e,"position",xe)}var Ir=new Set(["image","url"]);function Lr(e){return T(e,Ir,Nr)}function Or(e){return T(e,"",Cr)}function M(){return!0}function T(e,r,t){let o=ye.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function Tr(e){return vr.test(e)&&!wr.test(e)}function xe(){return!1}function Cr(e){return Ar.test(e)}function Nr(e){return kr.test(e)}function Rr(){let e=d("colors"),r=d("spacing"),t=d("blur"),o=d("brightness"),a=d("borderColor"),s=d("borderRadius"),n=d("borderSpacing"),i=d("borderWidth"),c=d("contrast"),f=d("grayscale"),p=d("hueRotate"),g=d("invert"),b=d("gap"),x=d("gradientColorStops"),E=d("gradientColorStopPositions"),y=d("inset"),m=d("margin"),h=d("opacity"),v=d("padding"),H=d("saturate"),j=d("scale"),Z=d("sepia"),Q=d("skew"),ee=d("space"),re=d("translate"),F=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],u=()=>[l,r],te=()=>["",w,A],U=()=>["auto",_,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",l],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[_,J],D=()=>[_,l];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[w,A],blur:["none","",k,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",k,l],borderSpacing:u(),borderWidth:te(),contrast:N(),grayscale:C(),hueRotate:D(),invert:C(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Er,A],inset:q(),margin:q(),opacity:N(),padding:u(),saturate:N(),scale:N(),sepia:C(),skew:D(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),l]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",R,l]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",R,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[R,l]},l]}],"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",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","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",J]}],"font-family":[{font:[M]}],"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",l]}],"line-clamp":[{"line-clamp":["none",_,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,A]}],"underline-offset":[{"underline-offset":["auto",w,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Sr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_r]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[w,l]}],"outline-w":[{outline:[w,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[w,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,Or]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",k,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[R,l]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,A,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ve=hr(Rr);function Mr(...e){return ve(pe(e))}export{_e as a,Ne as b,Re as c,G as d,De as e,je as f,Fe as g,Ke as h,Ye as i,Xe as j,tr as k,de as l,or as m,Mr as n};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as e}from"./chunk-V3RMYYRV.mjs";import{cva as o}from"class-variance-authority";import{jsx as i}from"react/jsx-runtime";var b=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",blueGradient:"bg-gradient-to-r from-blue-100 via-blue-100/50 to-blue-100 border border-blue-200 text-blue-900",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function l({className:t,variant:r,...a}){return i("span",{className:e(b({variant:r}),t),...a})}export{b as a,l as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n}from"./chunk-6M22A3I2.mjs";import g from"next/image";import{useEffect as i,useState as r}from"react";import{jsx as u}from"react/jsx-runtime";function v(t){let[o,c]=r(!0),[l,e]=r(t.src);i(()=>e(t.src),[t.src]);let m=s=>{c(!1);let a=s.target;a.naturalWidth<=16&&a.naturalHeight<=16&&e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)};return u(g,{...t,src:l,alt:t.alt,className:n(o?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)},unoptimized:!0})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as t}from"./chunk-V3RMYYRV.mjs";import{motion as r}from"framer-motion";import{jsx as e,jsxs as c}from"react/jsx-runtime";var n="M6.75 8.25L4 11L1.25 8.25",s="M6.75 3.75L4 1L1.25 3.75";function i({order:o,className:a}){return c("svg",{className:t("w-2 text-gray-950",a),viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e(r.path,{className:t(!o&&"opacity-40"),animate:{d:o==="asc"?s:n},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e(r.path,{className:"opacity-40",animate:{d:o==="asc"?n:s},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as we,b as Ae}from"./chunk-AUBFB4SI.mjs";var le=we((at,ie)=>{var I=1e3,L=I*60,O=L*60,P=O*24,Fe=P*7,We=P*365.25;ie.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return qe(e);if(t==="number"&&isFinite(e))return r.long?Ye(e):Ke(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function qe(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*We;case"weeks":case"week":case"w":return t*Fe;case"days":case"day":case"d":return t*P;case"hours":case"hour":case"hrs":case"hr":case"h":return t*O;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Ke(e){var r=Math.abs(e);return r>=P?Math.round(e/P)+"d":r>=O?Math.round(e/O)+"h":r>=L?Math.round(e/L)+"m":r>=I?Math.round(e/I)+"s":e+"ms"}function Ye(e){var r=Math.abs(e);return r>=P?$(e,r,P,"day"):r>=O?$(e,r,O,"hour"):r>=L?$(e,r,L,"minute"):r>=I?$(e,r,I,"second"):e+" ms"}function $(e,r,t,o){var a=r>=t*1.5;return Math.round(e/t)+" "+o+(a?"s":"")}});var B=e=>{try{return new URL(e),!0}catch{return!1}},ke=e=>{if(B(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};var Ee=(e,r,t)=>{if(r==="dub.co")return e;let o=new URL(e.startsWith("/")?`https://dub.co${e}`:e);return t&&Object.entries(t).forEach(([a,s])=>{o.searchParams.set(a,s)}),o.toString()};function G(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=/\.0+$|(\.[0-9]*[1-9])0+$/;if(e<1)return e.toFixed(r.digits).replace(t,"$1");var o=[{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"}].slice().reverse().find(function(a){return e>=a.value});return o?(e/o.value).toFixed(r.digits).replace(t,"$1")+o.symbol:"0"}var Pe=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ne=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",_e=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Se=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),Ie=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",Le=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.NEXT_PUBLIC_NGROK_URL||"http://localhost:8888",Oe=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${ne}`,"api.localhost:8888"]),Te=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Ce=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),Ne=new Set([`partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"partners.localhost:8888"]);var Re=process.env.STORAGE_BASE_URL;var Ue=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ze=new RegExp(/^[a-zA-Z0-9\-]+$/);var De=e=>{if(B(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}};var V=({name:e="Business",monthly:r=59,yearly:t=49,links:o=5e3,clicks:a=15e4,domains:s=40,tags:n=150,users:i=15,ids:c=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:r,yearly:t,ids:c},limits:{links:o,clicks:a,domains:s,tags:n,users:i,ai:1e3,api:3e3},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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"Everything in Pro, plus:",features:[{text:`${G(o,{full:!0})} new links/mo`},{text:`${G(a)} tracked clicks/mo`},{text:"3-year analytics retention"},{text:`${s} custom domains`},{text:`${i} users`},{text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{text:"Event webhooks (beta)",footnote:{title:"Get notified when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),S=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/help/article/dub-analytics"}},{text:"10 AI credits/mo"},{text:"Basic support"},{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",link:"https://dub.co/help/article/pro-plan",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,ai:1e3,api:600},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-600 hover:bg-blue-700 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{text:"Priority support"},{text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{text:"Complimentary custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},V({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),V({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),V({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),V({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-gradient-to-r from-violet-600 to-pink-600 hover:ring-violet-100"},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"}]}],Be=S.find(e=>e.name==="Free"),Ge=S.find(e=>e.name==="Pro"),Ve=S.find(e=>e.name==="Business"),$e=S.find(e=>e.name==="Enterprise");var Je=S.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var je=(e,r)=>e.map((t,o)=>({item:t,index:o})).sort((t,o)=>r(t.item,o.item)||t.index-o.index).map(({item:t})=>t);var ce=Ae(le(),1),Xe=(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,ce.default)(t)}${r?" ago":""}`};var He=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;async function Ze(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),a=new Error(o);throw a.status=t.status,a}return t.json()}function de(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=de(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ue(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=de(e))&&(o&&(o+=" "),o+=r);return o}var X="-";function Qe(e){let r=rr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function a(n){let i=n.split(X);return i[0]===""&&i.length!==1&&i.shift(),fe(i,r)||er(n)}function s(n,i){let c=t[n]||[];return i&&o[n]?[...c,...o[n]]:c}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function fe(e,r){var n;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?fe(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let s=e.join(X);return(n=r.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId}var pe=/^\[(.+)\]$/;function er(e){if(pe.test(e)){let r=pe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function rr(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return or(Object.entries(e.classGroups),t).forEach(([s,n])=>{Y(n,o,s,r)}),o}function Y(e,r,t,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?r:me(r,a);s.classGroupId=t;return}if(typeof a=="function"){if(tr(a)){Y(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([s,n])=>{Y(n,me(r,s),t,o)})})}function me(e,r){let t=e;return r.split(X).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function tr(e){return e.isThemeGetter}function or(e,r){return r?e.map(([t,o])=>{let a=o.map(s=>typeof s=="string"?r+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[r+n,i])):s);return[t,a]}):e}function ar(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function a(s,n){t.set(s,n),r++,r>e&&(r=0,o=t,t=new Map)}return{get(s){let n=t.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){t.has(s)?t.set(s,n):a(s,n)}}}var ge="!";function sr(e){let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,a=r[0],s=r.length;function n(i){let c=[],f=0,p=0,g;for(let m=0;m<i.length;m++){let h=i[m];if(f===0){if(h===a&&(o||i.slice(m,m+s)===r)){c.push(i.slice(p,m)),p=m+s;continue}if(h==="/"){g=m;continue}}h==="["?f++:h==="]"&&f--}let b=c.length===0?i:i.substring(p),x=b.startsWith(ge),E=x?b.substring(1):b,y=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function nr(e){if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function ir(e){return{cache:ar(e.cacheSize),parseClassName:sr(e),...Qe(e)}}var lr=/\s+/;function cr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=new Set;return e.trim().split(lr).map(n=>{let{modifiers:i,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=t(n),g=Boolean(p),b=o(g?f.substring(0,p):f);if(!b){if(!g)return{isTailwindClass:!1,originalClassName:n};if(b=o(f),!b)return{isTailwindClass:!1,originalClassName:n};g=!1}let x=nr(i).join(":"),E=c?x+ge:x;return{isTailwindClass:!0,modifierId:E,classGroupId:b,originalClassName:n,hasPostfixModifier:g}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:i,classGroupId:c,hasPostfixModifier:f}=n,p=i+c;return s.has(p)?!1:(s.add(p),a(c,f).forEach(g=>s.add(i+g)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function dr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=he(r))&&(o&&(o+=" "),o+=t);return o}function he(e){if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=he(e[o]))&&(t&&(t+=" "),t+=r);return t}function ur(e,...r){let t,o,a,s=n;function n(c){let f=r.reduce((p,g)=>g(p),e());return t=ir(f),o=t.cache.get,a=t.cache.set,s=i,i(c)}function i(c){let f=o(c);if(f)return f;let p=cr(c,t);return a(c,p),p}return function(){return s(dr.apply(null,arguments))}}function d(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var be=/^\[(?:([a-z-]+):)?(.+)\]$/i,pr=/^\d+\/\d+$/,mr=new Set(["px","full","screen"]),fr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gr=/\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))|\b(calc|min|max|clamp)\(.+\)|^0$/,hr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,br=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return _(e)||mr.has(e)||pr.test(e)}function A(e){return T(e,"length",_r)}function _(e){return Boolean(e)&&!Number.isNaN(Number(e))}function J(e){return T(e,"number",_)}function R(e){return Boolean(e)&&Number.isInteger(Number(e))}function xr(e){return e.endsWith("%")&&_(e.slice(0,-1))}function l(e){return be.test(e)}function k(e){return fr.test(e)}var vr=new Set(["length","size","percentage"]);function wr(e){return T(e,vr,ye)}function Ar(e){return T(e,"position",ye)}var kr=new Set(["image","url"]);function Er(e){return T(e,kr,Ir)}function Pr(e){return T(e,"",Sr)}function M(){return!0}function T(e,r,t){let o=be.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function _r(e){return gr.test(e)&&!hr.test(e)}function ye(){return!1}function Sr(e){return br.test(e)}function Ir(e){return yr.test(e)}function Lr(){let e=d("colors"),r=d("spacing"),t=d("blur"),o=d("brightness"),a=d("borderColor"),s=d("borderRadius"),n=d("borderSpacing"),i=d("borderWidth"),c=d("contrast"),f=d("grayscale"),p=d("hueRotate"),g=d("invert"),b=d("gap"),x=d("gradientColorStops"),E=d("gradientColorStopPositions"),y=d("inset"),m=d("margin"),h=d("opacity"),v=d("padding"),H=d("saturate"),j=d("scale"),Z=d("sepia"),Q=d("skew"),ee=d("space"),re=d("translate"),F=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],u=()=>[l,r],te=()=>["",w,A],U=()=>["auto",_,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",l],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[_,J],D=()=>[_,l];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[w,A],blur:["none","",k,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",k,l],borderSpacing:u(),borderWidth:te(),contrast:N(),grayscale:C(),hueRotate:D(),invert:C(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[xr,A],inset:q(),margin:q(),opacity:N(),padding:u(),saturate:N(),scale:N(),sepia:C(),skew:D(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),l]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",R,l]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",R,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[R,l]},l]}],"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",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","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",J]}],"font-family":[{font:[M]}],"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",l]}],"line-clamp":[{"line-clamp":["none",_,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,A]}],"underline-offset":[{"underline-offset":["auto",w,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Er]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:z()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[w,l]}],"outline-w":[{outline:[w,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[w,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,Pr]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",k,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[R,l]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,A,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var xe=ur(Lr);function Or(...e){return xe(ue(e))}var ve=(e,r)=>{if(e===r)return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null)return!1;let t=Object.keys(e),o=Object.keys(r);if(t.length!==o.length)return!1;for(let a of t)if(!o.includes(a)||!ve(e[a],r[a]))return!1;return!0};var Tr=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"GitHub Link Shortener",slug:"github-link-shortener"},{name:"Calendar Link Shortener",slug:"cal-link-shortener"},{name:"Google Link Shortener",slug:"google-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Figma Link Shortener",slug:"figma-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"Link Inspector",slug:"inspector"},{name:"QR Code API",slug:"qr-code"},{name:"UTM Builder",slug:"utm-builder"}];var Cr="https://www.google.com/s2/favicons?sz=64&domain_url=";var Nr=100,Rr=60*60*24*14,Mr=new Date("2022-09-22T00:00:00.000Z");export{ke as a,Ee as b,G as c,Ie as d,De as e,je as f,Xe as g,He as h,Ze as i,Or as j,ve as k,Tr as l,Cr as m,Nr as n};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as m}from"./chunk-NWME2ANF.mjs";import{n as d}from"./chunk-HQJ32QC6.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function C({children:t,content:n,align:p="center",side:v="bottom",openPopover:a,setOpenPopover:l,mobileOnly:g,popoverContentClassName:c,collisionBoundary:P,sticky:b,onEscapeKeyDown:s,onWheel:f}){let{isMobile:h}=m();return g||h?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),i(r.Portal,{children:[e(r.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:p,side:v,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:b,collisionBoundary:P,onEscapeKeyDown:s,onWheel:f,children:n})})]})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as s}from"./chunk-6M22A3I2.mjs";import{AlertCircle as c,EyeIcon as u,EyeOffIcon as m}from"lucide-react";import f,{useCallback as p,useState as x}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var g=f.forwardRef(({className:n,type:a,...r},l)=>{let[t,i]=x(!1),d=p(()=>i(!t),[t,i]);return o("div",{children:[o("div",{className:"relative flex",children:[e("input",{type:t?"text":a,className:s("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",n),ref:l,...r}),o("div",{className:"group",children:[r.error&&e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:e(c,{className:s("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:s("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>d(),"aria-label":t?"Hide password":"Show Password",children:t?e(u,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):e(m,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});g.displayName="Input";export{g as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as t}from"./chunk-V3RMYYRV.mjs";import{jsx as r}from"react/jsx-runtime";function h({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-RQXRQ6V2.mjs";import{a as h}from"./chunk-IQLN5BB7.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-73LCVKEY.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as x}from"./chunk-P5UAU276.mjs";import{a as f}from"./chunk-HNNDMBLV.mjs";import{i as u,n as b}from"./chunk-6M22A3I2.mjs";import{AnimatePresence as C,motion as h}from"framer-motion";import{X as L}from"lucide-react";import{isValidElement as A}from"react";import{Fragment as O,jsx as t,jsxs as i}from"react/jsx-runtime";function K({filters:p,activeFilters:a,onRemove:v,onRemoveAll:l,className:N}){return x("Escape",l,{priority:1}),t(f,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:i("div",{className:b("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",N),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(C,{children:a==null?void 0:a.map(({key:n,value:s})=>{if(n==="loader")return t(h.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${s}`);let e=p.find(r=>r.key===n);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");return(e.multiple&&Array.isArray(s)?s:[s]).map(r=>{var c,y,g;let o=(c=e.options)==null?void 0:c.find(d=>typeof d.value=="string"&&typeof r=="string"?d.value.toLowerCase()===r.toLowerCase():d.value===r),m=(o==null?void 0:o.icon)??((y=e.getOptionIcon)==null?void 0:y.call(e,r,{key:e.key,option:o}))??e.icon,k=(o==null?void 0:o.label)??((g=e.getOptionLabel)==null?void 0:g.call(e,r,{key:e.key,option:o}))??r;return i(h.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[i("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:w(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?i(O,{children:[t("span",{className:"shrink-0 text-gray-600",children:w(m)?m:t(m,{className:"h-4 w-4"})}),u(k,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>v(n,r),children:t(L,{className:"h-3.5 w-3.5"})})]},n)})})})}),(a==null?void 0:a.length)!==0&&i("button",{type:"button",className:"group mt-px flex items-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:l,children:["Clear Filters",t("kbd",{className:"rounded-md border border-gray-200 px-1.5 py-0.5 text-xs text-gray-950 group-hover:bg-gray-50",children:"ESC"})]})]})})}var w=p=>A(p);export{K as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{b as l}from"./chunk-DWDN2PTA.mjs";import{a as v}from"./chunk-4KAIJ2PN.mjs";import{a as h}from"./chunk-U4QIRPVU.mjs";import{a as b}from"./chunk-RKUUDTHF.mjs";import{a as f}from"./chunk-GLJR2QX5.mjs";import{a as g}from"./chunk-3IVWKAUU.mjs";import{a as u}from"./chunk-GHXIGUPQ.mjs";import{j as n}from"./chunk-73LCVKEY.mjs";import{useEffect as k,useId as C,useRef as P,useState as A}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var H=[{key:"utm_source",icon:g,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:v,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:u,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:b,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:h,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:f,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function B({values:t,onChange:a,disabled:y,autoFocus:T,disabledTooltip:c,className:N}){let{isMobile:x}=p(),d=C(),[m,R]=A(!1),r=P(null);return k(()=>{r.current&&!x&&T&&setTimeout(()=>{var o;return(o=r.current)==null?void 0:o.focus()},10)},[]),e("div",{className:n("grid gap-y-3",N),children:H.map(({key:o,icon:M,label:_,placeholder:w,description:E},S)=>e("div",{className:"group relative",children:s("div",{className:"relative z-10 flex",children:[e(l,{content:s("div",{className:"p-3 text-center text-xs",children:[e("p",{className:"text-gray-600",children:E}),e("span",{className:"font-mono text-gray-400",children:o})]}),sideOffset:4,disableHoverableContent:!0,children:s("div",{className:n("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>R(i=>!i),children:[e(M,{className:"size-4 shrink-0"}),e("label",{htmlFor:`${d}-${o}`,className:"select-none text-sm",children:m?e("span",{className:"font-mono text-xs",children:o}):_})]})}),e("div",{className:"min-w-0 grow",children:e(U,{disabledTooltip:c,children:e("input",{type:"text",id:`${d}-${o}`,ref:S===0?r:void 0,placeholder:w,disabled:y||Boolean(c),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:t[o]||"",onChange:i=>a(o,i.target.value)})})})]})},o))})}function U({children:t,disabledTooltip:a}){return a?e(l,{content:a,disableHoverableContent:!0,children:t}):t}export{H as a,B as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-KQZCIVHY.mjs";import{b as O}from"./chunk-2VNRSO5I.mjs";import{j as g}from"./chunk-73LCVKEY.mjs";import{flip as G,offset as J,size as U,useDismiss as W,useFloating as Y,useInteractions as Z}from"@floating-ui/react";import{Command as i,useCommandState as ee}from"cmdk";import{Check as te,ChevronDown as ae,Search as w,X as oe}from"lucide-react";import{createContext as re,forwardRef as se,useContext as L,useEffect as C,useMemo as le,useRef as F,useState as N}from"react";import{Drawer as f}from"vaul";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=re({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function we({items:r,selectedItem:a,setSelectedItem:d,className:s,disabled:t,adjustForMobile:u,icon:b,inputAttrs:x,noItemsElement:p}){let l=F(null),[c,y]=N(!1),[n,P]=N(""),[D,M]=N(!1);C(()=>{c&&M(!1)},[c]),C(()=>M(!0),[n]),C(()=>{a&&P(a.value)},[a]);let k=le(()=>{let m=n.toLowerCase();return D?r.filter(h=>h.value.toLowerCase().includes(m)):n?r.sort((h,q)=>(q.value.toLowerCase().includes(m)?1:0)-(h.value.toLowerCase().includes(m)?1:0)):r},[D,n,r]),{refs:R,floatingStyles:z,context:j}=Y({open:c,onOpenChange:y,middleware:[J(8),U({apply({elements:{floating:m},availableHeight:h}){Object.assign(m.style,{maxHeight:`${Math.max(75,Math.min(h,290))}px`})},padding:8}),G({fallbackStrategy:"initialPlacement",padding:8})]}),B=W(j),{getReferenceProps:K,getFloatingProps:$}=Z([B]),V=F(null),{scrollProgress:Q,updateScrollProgress:X}=E(V),{isMobile:_}=A();return e(v.Provider,{value:{inputAttrs:x||{},openCommandList:c,setOpenCommandList:y,inputValue:n,setInputValue:P,disabled:Boolean(t),selectedItem:a,setSelectedItem:d},children:_&&u?o(f.Root,{open:c,onOpenChange:y,children:[e(f.Trigger,{className:"sm:hidden",asChild:!0,children:e(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:o("div",{className:g("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]})})}),e(f.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(f.Portal,{children:[e(f.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]}),c&&o(i.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),e(H,{items:k})]})]})}),e(f.Overlay,{})]})]}):o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",s),children:[e("div",{onClick:()=>y(m=>!m),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{ref:R.setReference,...K()}),e(I,{})]})]}),c&&o("div",{ref:R.setFloating,style:z,...$(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[o("div",{ref:V,onScroll:X,className:"grow overflow-y-auto p-2",children:[o(i.List,{children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),e(H,{items:k})]}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(Q,2)}})]})]})})}var S=se((r,a)=>{let d=ee(l=>l.filtered.count===0),{inputAttrs:s,openCommandList:t,setOpenCommandList:u,inputValue:b,setInputValue:x,disabled:p}=L(v);return e(i.Input,{ref:a,placeholder:(s==null?void 0:s.placeholder)||"Search...",autoFocus:t,onFocus:()=>u(!0),value:b,onValueChange:x,onKeyDown:l=>{l.key==="Escape"?(l.preventDefault(),u(!1)):l.key==="Enter"&&d?u(!1):l.key.match(/^[a-z0-9]$/i)&&!l.metaKey&&u(!0)},disabled:p,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function I(){let{setSelectedItem:r,openCommandList:a,setOpenCommandList:d,inputValue:s,setInputValue:t}=L(v);return e("button",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(T,{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full",width:16,height:16}),e("p",{className:g("whitespace-nowrap py-0.5 text-sm",t.color&&"rounded-md px-2",t.color==="red"&&"bg-red-100 text-red-600",t.color==="yellow"&&"bg-yellow-100 text-yellow-600",t.color==="green"&&"bg-green-100 text-green-600",t.color==="blue"&&"bg-blue-100 text-blue-600",t.color==="purple"&&"bg-purple-100 text-purple-600",t.color==="brown"&&"bg-brown-100 text-brown-600"),children:t.value}),t.label&&e(O,{className:"text-xs",variant:"neutral",children:t.label})]}),e(te,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},t.id))}export{we as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{a as s}from"./chunk-VX4GHBDS.mjs";import{a as y}from"./chunk-2TGXECZQ.mjs";import{a as g,e as f,i as b}from"./chunk-73LCVKEY.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.current.select()},[t]);let{isMobile:L}=p();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:o,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(s,{})}),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(y,{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(s,{})})})]})}export{H as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as l,e as p}from"./chunk-D7LKVBEO.mjs";import{a as s,c as n}from"./chunk-YJZEYIQZ.mjs";import{b as i,j as e}from"./chunk-73LCVKEY.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as v}from"./chunk-HRTR6WBC.mjs";import{b as h}from"./chunk-XQY5Z4CQ.mjs";import{c as y,g as f,j as l}from"./chunk-73LCVKEY.mjs";import*as s from"@radix-ui/react-tooltip";import k from"linkify-react";import{HelpCircle as B}from"lucide-react";import C from"next/link";import{useState as R}from"react";import{cva as w}from"class-variance-authority";import{forwardRef as P}from"react";import{jsx as p,jsxs as T}from"react/jsx-runtime";var c=w("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:l("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),b=P(({text:t,variant:e="primary",className:o,textWrapperClassName:i,loading:n,icon:m,shortcut:a,disabledTooltip:x,...u},N)=>x?p(d,{content:x,children:T("div",{className:l("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},o),children:[m,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:a})]})}):T("button",{ref:N,type:u.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",u.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":c({variant:e}),o),disabled:u.disabled||n,...u,children:[n?p(v,{}):m||null,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:a})]}));b.displayName="Button";import{jsx as r,jsxs as g}from"react/jsx-runtime";function J({children:t}){return r(s.Provider,{delayDuration:150,children:t})}function d({children:t,content:e,side:o="top",disableHoverableContent:i,...n}){let[m,a]=R(!1);return g(s.Root,{open:m,onOpenChange:a,delayDuration:0,disableHoverableContent:i,children:[r(s.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),r(s.Portal,{children:r(s.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...n,children:typeof e=="string"?r("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:e}):typeof e=="function"?e({setOpen:a}):e})})]})}function K({title:t,cta:e,href:o,target:i,onClick:n}){return g("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[r("p",{className:"text-sm text-gray-700",children:t}),e&&(o?r(C,{href:o,...i?{target:i}:{},className:l(c({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:e}):n?r(b,{onClick:n,text:e,variant:"primary",className:"h-9"}):null)]})}function Q({title:t,cta:e,href:o}){return g("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",r("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function U({children:t}){return r("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:r(k,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function X(t){return r(d,{...t,children:r(B,{className:"h-4 w-4 text-gray-500"})})}function Y({value:t,unit:e="total clicks",prefix:o,children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:r(d,{content:g("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[g("p",{className:"text-sm font-semibold text-gray-700",children:[o,y(t||0,{full:!0})," ",e]}),n&&g("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",f(n,{withAgo:!0})]})]}),children:i})}function Z({children:t,content:e,...o}){return r(d,{content:e,...o,children:r("div",{className:"flex cursor-pointer items-center",children:r(h,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}function $({children:t,tooltipProps:e,...o}){return r(d,{...e,children:r("button",{type:"button",...o,className:l("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",o.className),children:t})})}export{J as a,d as b,K as c,Q as d,U as e,X as f,Y as g,Z as h,$ as i,c as j,b as k};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as t}from"./chunk-HQJ32QC6.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as o}from"./chunk-HQJ32QC6.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as E}from"./chunk-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-MEZOUFR5.mjs";import{b as O}from"./chunk-6ORGKCTT.mjs";import{j as g}from"./chunk-V3RMYYRV.mjs";import{flip as G,offset as J,size as U,useDismiss as W,useFloating as Y,useInteractions as Z}from"@floating-ui/react";import{Command as i,useCommandState as ee}from"cmdk";import{Check as te,ChevronDown as ae,Search as w,X as oe}from"lucide-react";import{createContext as re,forwardRef as se,useContext as L,useEffect as C,useMemo as le,useRef as F,useState as N}from"react";import{Drawer as f}from"vaul";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=re({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function we({items:r,selectedItem:a,setSelectedItem:d,className:s,disabled:t,adjustForMobile:u,icon:b,inputAttrs:x,noItemsElement:p}){let l=F(null),[c,y]=N(!1),[n,P]=N(""),[D,M]=N(!1);C(()=>{c&&M(!1)},[c]),C(()=>M(!0),[n]),C(()=>{a&&P(a.value)},[a]);let k=le(()=>{let m=n.toLowerCase();return D?r.filter(h=>h.value.toLowerCase().includes(m)):n?r.sort((h,q)=>(q.value.toLowerCase().includes(m)?1:0)-(h.value.toLowerCase().includes(m)?1:0)):r},[D,n,r]),{refs:R,floatingStyles:z,context:j}=Y({open:c,onOpenChange:y,middleware:[J(8),U({apply({elements:{floating:m},availableHeight:h}){Object.assign(m.style,{maxHeight:`${Math.max(75,Math.min(h,290))}px`})},padding:8}),G({fallbackStrategy:"initialPlacement",padding:8})]}),B=W(j),{getReferenceProps:K,getFloatingProps:$}=Z([B]),V=F(null),{scrollProgress:Q,updateScrollProgress:X}=E(V),{isMobile:_}=A();return e(v.Provider,{value:{inputAttrs:x||{},openCommandList:c,setOpenCommandList:y,inputValue:n,setInputValue:P,disabled:Boolean(t),selectedItem:a,setSelectedItem:d},children:_&&u?o(f.Root,{open:c,onOpenChange:y,children:[e(f.Trigger,{className:"sm:hidden",asChild:!0,children:e(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:o("div",{className:g("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]})})}),e(f.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(f.Portal,{children:[e(f.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]}),c&&o(i.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),e(H,{items:k})]})]})}),e(f.Overlay,{})]})]}):o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",s),children:[e("div",{onClick:()=>y(m=>!m),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{ref:R.setReference,...K()}),e(I,{})]})]}),c&&o("div",{ref:R.setFloating,style:z,...$(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[o("div",{ref:V,onScroll:X,className:"grow overflow-y-auto p-2",children:[o(i.List,{children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),e(H,{items:k})]}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(Q,2)}})]})]})})}var S=se((r,a)=>{let d=ee(l=>l.filtered.count===0),{inputAttrs:s,openCommandList:t,setOpenCommandList:u,inputValue:b,setInputValue:x,disabled:p}=L(v);return e(i.Input,{ref:a,placeholder:(s==null?void 0:s.placeholder)||"Search...",autoFocus:t,onFocus:()=>u(!0),value:b,onValueChange:x,onKeyDown:l=>{l.key==="Escape"?(l.preventDefault(),u(!1)):l.key==="Enter"&&d?u(!1):l.key.match(/^[a-z0-9]$/i)&&!l.metaKey&&u(!0)},disabled:p,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function I(){let{setSelectedItem:r,openCommandList:a,setOpenCommandList:d,inputValue:s,setInputValue:t}=L(v);return e("button",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(T,{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full",width:16,height:16}),e("p",{className:g("whitespace-nowrap py-0.5 text-sm",t.color&&"rounded-md px-2",t.color==="red"&&"bg-red-100 text-red-600",t.color==="yellow"&&"bg-yellow-100 text-yellow-600",t.color==="green"&&"bg-green-100 text-green-600",t.color==="blue"&&"bg-blue-100 text-blue-600",t.color==="purple"&&"bg-purple-100 text-purple-600",t.color==="brown"&&"bg-brown-100 text-brown-600"),children:t.value}),t.label&&e(O,{className:"text-xs",variant:"neutral",children:t.label})]}),e(te,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},t.id))}export{we as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as o}from"./chunk-V3RMYYRV.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as i}from"./chunk-HQJ32QC6.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:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",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,2 @@
1
+ "use client"
2
+ import{a as C}from"./chunk-32C65ISH.mjs";import{a as P}from"./chunk-6JPO26GL.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-3KFNNXJ6.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-M2LZEWUL.mjs";import{a as h}from"./chunk-IQLN5BB7.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-73LCVKEY.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{n as i}from"./chunk-6M22A3I2.mjs";import{Drawer as t}from"vaul";import{jsx as r,jsxs as m}from"react/jsx-runtime";function a({children:o,contentProps:e,...l}){return r(t.Root,{direction:"right",...l,children:m(t.Portal,{children:[r(t.Overlay,{className:"fixed inset-0 bg-black/20"}),r(t.Content,{...e,className:i("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",e==null?void 0:e.className),style:{"--initial-transform":"calc(100% + 8px)",...e==null?void 0:e.style},children:r("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:o})})]})})}function n({className:o,...e}){return r(t.Title,{className:i("text-xl font-medium text-zinc-900",o),...e})}function s(o){return r(t.Description,{...o})}function f(o){return r(t.Close,{...o})}var w=Object.assign(a,{Title:n,Description:s,Close:f});export{w as a};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as W}from"./chunk-N2JSIVHQ.mjs";import{a as T}from"./chunk-C6C7ZMXM.mjs";import{a as L,e as S}from"./chunk-UMU4JC6U.mjs";import{a as H}from"./chunk-TZXMPIUM.mjs";import{a as w}from"./chunk-NK2IC4AA.mjs";import{a as V}from"./chunk-MQ6PCK5Z.mjs";import{a as M}from"./chunk-AXZJPLZ2.mjs";import{k as _}from"./chunk-EW4EMQWM.mjs";import{b as k,d as y,i as P,j as s}from"./chunk-73LCVKEY.mjs";import*as r from"@radix-ui/react-navigation-menu";import{cva as K}from"class-variance-authority";import Q from"js-cookie";import h from"next/link";import{useParams as X,useSelectedLayoutSegment as tt}from"next/navigation";import{createContext as et}from"react";import ot from"swr";import{useCallback as B,useEffect as E,useState as O}from"react";function C(a){let[e,m]=O(!1),i=B(()=>{m(window.scrollY>a)},[a]);return E(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),E(()=>{i()},[i]),e}import*as d from"@radix-ui/react-popover";import{BoxSelect as A,Home as Z,LayoutGrid as G,Type as j}from"lucide-react";import{useParams as z}from"next/navigation";import{useCallback as U,useContext as $,useState as F}from"react";import{toast as Y}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
4
+ </svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
6
+ </svg>`;function D({variant:a="full",isInApp:e,className:m}){let{domain:i="dub.co"}=z(),{theme:g}=$(x),[b,p]=F(!1),f=U(n=>{n.preventDefault(),p(!0)},[]),[,c]=M();function l(n){Y.promise(c(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return R(d.Root,{open:b,onOpenChange:p,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:f,className:"max-w-fit",children:a==="full"?o(H,{className:m}):o(w,{className:s("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:s("z-50 -mt-1.5",!e&&"-translate-x-8",g==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),p(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>l(q),icon:o(w,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>l(J),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(A,{strokeWidth:2,className:"h-4 w-4"})}),e||i!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(G,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:a,...e}){return o(_,{className:s("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",a),...e})}import{Fragment as it,jsx as t,jsxs as u}from"react/jsx-runtime";var x=et({theme:"light"}),rt=[{name:"Product",content:W,childItems:L},{name:"Resources",content:T,childItems:S},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],I=K(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Rt({theme:a="light"}){let{domain:e="dub.co"}=X(),m=C(80),i=C(40),g=tt(),{data:b,isLoading:p}=ot(e==="dub.co"&&"/api/auth/session",P,{dedupingInterval:6e4}),f=!!(e==="dub.co"&&Q.get("dub_id"));return t(x.Provider,{value:{theme:a},children:u("div",{className:s("sticky inset-x-0 top-0 z-30 w-full transition-all",a==="dark"&&"dark"),children:[t("div",{className:s("absolute inset-0 block transition-all lg:hidden",i&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(h,{className:"grow basis-0",href:k("/home",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Logo"}),children:t(D,{})}),u(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(r.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:s("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),rt.map(({name:c,href:l,content:n})=>{let N=l===`/${g}`||l==="/"&&g===null;return u(r.Item,{children:[t(at,{trigger:!!n,children:l!==void 0?t(h,{id:`nav-${l}`,href:k(l,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:c}),className:I({isActive:N}),children:c}):t("button",{className:I({isActive:N}),children:c})}),n&&t(r.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(n,{domain:e})})]},c)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(r.Viewport,{className:s("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:b&&Object.keys(b).length>0?t(h,{href:y,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):p?null:u(it,{children:[t(h,{href:f?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(h,{href:f?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function at({trigger:a,children:e}){return a?t(r.Trigger,{asChild:!0,children:e}):e}export{C as a,x as b,rt as c,Rt as d,D as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{jsx as r,jsxs as e}from"react/jsx-runtime";function n(o){return r("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...o,children:e("g",{fill:"currentColor",children:[r("circle",{cx:"9",cy:"4.75",fill:"currentColor",r:".75",stroke:"none"}),r("circle",{cx:"12.005",cy:"5.995",fill:"currentColor",r:".75",stroke:"none"}),r("circle",{cx:"13.25",cy:"9",fill:"currentColor",r:".75",stroke:"none"}),r("circle",{cx:"5.995",cy:"5.995",fill:"currentColor",r:".75",stroke:"none"}),r("path",{d:"M4.75,9.75c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75-.75,.336-.75,.75,.336,.75,.75,.75Z",fill:"currentColor",stroke:"none"}),r("path",{d:"M12.968,15.063c1.975-1.295,3.282-3.525,3.282-6.063,0-4.004-3.246-7.25-7.25-7.25S1.75,4.996,1.75,9c0,2.538,1.307,4.768,3.282,6.063",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),r("path",{d:"M7.5,14.75c0-.828,1.5-7,1.5-7,0,0,1.5,6.172,1.5,7s-.672,1.5-1.5,1.5-1.5-.672-1.5-1.5Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as l}from"./chunk-HDJCLA6F.mjs";import{n}from"./chunk-HQJ32QC6.mjs";import*as i from"@radix-ui/react-switch";import{useMemo as f}from"react";import{jsx as t}from"react/jsx-runtime";function x({fn:r,id:d,trackDimensions:u,thumbDimensions:h,thumbTranslate:s,checked:m=!0,loading:o=!1,disabled:a=!1,disabledTooltip:e}){let b=f(()=>e?!0:a||o,[e,a,o]),c=t(i.Root,{checked:o?!1:m,name:"switch",id:d,...r&&{onCheckedChange:r},disabled:b,className:n("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","data-[disabled]:cursor-not-allowed",u),children:t(i.Thumb,{className:n(`radix-state-checked:${s}`,"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",h,s)})});return e?t(l,{content:e,children:t("div",{children:c})}):c}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{a as s}from"./chunk-GVCRUB3A.mjs";import{a as y}from"./chunk-2TGXECZQ.mjs";import{b as g,e as f,m as b}from"./chunk-6M22A3I2.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.current.select()},[t]);let{isMobile:L}=p();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:o,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(s,{})}),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(y,{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(s,{})})})]})}export{H as a,O as b};