@dub/ui 0.1.35 → 0.1.37

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 (348) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/alert.mjs +1 -1
  3. package/dist/animated-size-container.d.ts +10 -10
  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/checkbox.mjs +1 -1
  11. package/dist/chunk-23IKIXDD.mjs +2 -0
  12. package/dist/chunk-2CDHU53O.mjs +2 -0
  13. package/dist/chunk-2E5F6QDF.mjs +2 -0
  14. package/dist/chunk-2EG2PQHW.mjs +2 -0
  15. package/dist/chunk-2O3MMYEZ.mjs +2 -0
  16. package/dist/chunk-2O5FJSOS.mjs +2 -0
  17. package/dist/chunk-2PY7BZTT.mjs +2 -0
  18. package/dist/chunk-2VRL2JRK.mjs +2 -0
  19. package/dist/chunk-2YT2LZU6.mjs +2 -0
  20. package/dist/chunk-32NVNIDR.mjs +2 -0
  21. package/dist/chunk-32RAUHJJ.mjs +6 -0
  22. package/dist/chunk-33DLSRZP.mjs +2 -0
  23. package/dist/chunk-36JZ7Z53.mjs +2 -0
  24. package/dist/chunk-3ESI4ELS.mjs +2 -0
  25. package/dist/chunk-3ESOJGPZ.mjs +2 -0
  26. package/dist/chunk-3JC6LHYE.mjs +2 -0
  27. package/dist/chunk-3QMNVLSQ.mjs +2 -0
  28. package/dist/chunk-3X3WKYXG.mjs +2 -0
  29. package/dist/chunk-3XJUNVLX.mjs +2 -0
  30. package/dist/chunk-46IYP52T.mjs +2 -0
  31. package/dist/chunk-4GRN722Q.mjs +2 -0
  32. package/dist/chunk-4NEB2ETF.mjs +2 -0
  33. package/dist/chunk-4PHJ2GXK.mjs +2 -0
  34. package/dist/chunk-4QVCSP7C.mjs +2 -0
  35. package/dist/chunk-4QX3NQWC.mjs +2 -0
  36. package/dist/chunk-4T5JP7ZW.mjs +2 -0
  37. package/dist/chunk-4TBGE2WK.mjs +2 -0
  38. package/dist/chunk-4ZDYF44N.mjs +2 -0
  39. package/dist/chunk-52QCMUU3.mjs +2 -0
  40. package/dist/chunk-54HEWULA.mjs +2 -0
  41. package/dist/chunk-5EQBTA34.mjs +2 -0
  42. package/dist/chunk-5LAPPRY2.mjs +2 -0
  43. package/dist/chunk-5NIC4JH2.mjs +6 -0
  44. package/dist/chunk-5QP4Y5IS.mjs +2 -0
  45. package/dist/chunk-5ZA4YF7J.mjs +2 -0
  46. package/dist/chunk-5ZGAPML3.mjs +2 -0
  47. package/dist/chunk-625XDFB6.mjs +2 -0
  48. package/dist/chunk-6267SMQ2.mjs +2 -0
  49. package/dist/chunk-6435SFGT.mjs +2 -0
  50. package/dist/chunk-644DH5BJ.mjs +2 -0
  51. package/dist/chunk-6CSTLDAI.mjs +2 -0
  52. package/dist/chunk-6EYFCBYQ.mjs +2 -0
  53. package/dist/chunk-6Q5D674P.mjs +2 -0
  54. package/dist/chunk-6R3RMQMW.mjs +2 -0
  55. package/dist/chunk-6TNE4RIY.mjs +2 -0
  56. package/dist/chunk-6TPFBVWR.mjs +2 -0
  57. package/dist/chunk-72OPUBKD.mjs +2 -0
  58. package/dist/chunk-75L55OIQ.mjs +2 -0
  59. package/dist/chunk-766WTKOO.mjs +2 -0
  60. package/dist/chunk-7DSEH7KX.mjs +2 -0
  61. package/dist/chunk-7ITNZIB7.mjs +2 -0
  62. package/dist/chunk-7KOX77KL.mjs +2 -0
  63. package/dist/chunk-7KWZHVVP.mjs +2 -0
  64. package/dist/chunk-7OV7SF6H.mjs +2 -0
  65. package/dist/chunk-7POX6TBR.mjs +2 -0
  66. package/dist/chunk-7RHEJ5HV.mjs +2 -0
  67. package/dist/chunk-7TXNQQ2D.mjs +2 -0
  68. package/dist/chunk-AATT52H3.mjs +2 -0
  69. package/dist/chunk-AEMIXMUO.mjs +2 -0
  70. package/dist/chunk-AHXU5NZR.mjs +2 -0
  71. package/dist/chunk-AOT366ZX.mjs +2 -0
  72. package/dist/chunk-ARQ64RH5.mjs +2 -0
  73. package/dist/chunk-AU7FWOCZ.mjs +2 -0
  74. package/dist/chunk-AX3I4JDX.mjs +2 -0
  75. package/dist/chunk-AZQOIJYS.mjs +2 -0
  76. package/dist/chunk-B2RWZ4AD.mjs +2 -0
  77. package/dist/chunk-B6T354AP.mjs +2 -0
  78. package/dist/chunk-B7MWDA3S.mjs +2 -0
  79. package/dist/chunk-BBFXHFDU.mjs +2 -0
  80. package/dist/chunk-BBV6PJZU.mjs +2 -0
  81. package/dist/chunk-BRNMJYQQ.mjs +2 -0
  82. package/dist/chunk-BRYSNNIO.mjs +2 -0
  83. package/dist/chunk-BYTFCFJM.mjs +2 -0
  84. package/dist/chunk-BZPVKVCR.mjs +2 -0
  85. package/dist/chunk-C7ATIZ2A.mjs +2 -0
  86. package/dist/chunk-CBZKHJLI.mjs +2 -0
  87. package/dist/chunk-CFHJPNC7.mjs +2 -0
  88. package/dist/chunk-CJRJNAMU.mjs +2 -0
  89. package/dist/chunk-COO45BPH.mjs +2 -0
  90. package/dist/chunk-CP7YIA2K.mjs +2 -0
  91. package/dist/chunk-CPA7P4N5.mjs +6 -0
  92. package/dist/chunk-D4SLUXRV.mjs +2 -0
  93. package/dist/chunk-D7KHUTKT.mjs +2 -0
  94. package/dist/chunk-DAUPVL6L.mjs +2 -0
  95. package/dist/chunk-DER5FUVG.mjs +2 -0
  96. package/dist/chunk-DLA75TGP.mjs +2 -0
  97. package/dist/chunk-DPVCPWHZ.mjs +2 -0
  98. package/dist/chunk-DSKNV2CS.mjs +2 -0
  99. package/dist/chunk-DTL4NGWH.mjs +2 -0
  100. package/dist/chunk-DXMCOPPB.mjs +2 -0
  101. package/dist/chunk-EBTNKKYW.mjs +2 -0
  102. package/dist/chunk-ENYUADOL.mjs +2 -0
  103. package/dist/chunk-EPJ5QUBO.mjs +2 -0
  104. package/dist/chunk-ESBP24SZ.mjs +2 -0
  105. package/dist/chunk-EVUWTID5.mjs +2 -0
  106. package/dist/chunk-EXNWDL4X.mjs +2 -0
  107. package/dist/chunk-F2FO7ZLO.mjs +2 -0
  108. package/dist/chunk-F62KIKTJ.mjs +2 -0
  109. package/dist/chunk-F6CH4ST7.mjs +2 -0
  110. package/dist/chunk-F7MDEMNG.mjs +2 -0
  111. package/dist/chunk-FBMSFBQH.mjs +2 -0
  112. package/dist/chunk-FBN7ZDDV.mjs +2 -0
  113. package/dist/chunk-FM46ITEO.mjs +2 -0
  114. package/dist/chunk-FPEJ7S5S.mjs +2 -0
  115. package/dist/chunk-FPZL3OT2.mjs +2 -0
  116. package/dist/chunk-FTYX76FH.mjs +2 -0
  117. package/dist/chunk-FV4HYZHQ.mjs +2 -0
  118. package/dist/chunk-G2G5HN5C.mjs +2 -0
  119. package/dist/chunk-G36JOHV4.mjs +2 -0
  120. package/dist/chunk-GD76BTPI.mjs +2 -0
  121. package/dist/chunk-GGKWDGQW.mjs +2 -0
  122. package/dist/chunk-GRLQDLZ4.mjs +2 -0
  123. package/dist/chunk-GRPCILNA.mjs +2 -0
  124. package/dist/chunk-GYTU24GS.mjs +2 -0
  125. package/dist/chunk-H4CYCWDY.mjs +2 -0
  126. package/dist/chunk-H5C2MOAT.mjs +2 -0
  127. package/dist/chunk-HA3M5CO5.mjs +2 -0
  128. package/dist/chunk-HDKX2MR6.mjs +6 -0
  129. package/dist/chunk-HESOXKO3.mjs +2 -0
  130. package/dist/chunk-HQMVWCVK.mjs +2 -0
  131. package/dist/chunk-HW7UEVIR.mjs +2 -0
  132. package/dist/chunk-HYMNQJ7V.mjs +2 -0
  133. package/dist/chunk-HYUMXDK7.mjs +2 -0
  134. package/dist/chunk-I3O4ZHZT.mjs +2 -0
  135. package/dist/chunk-I46QHBJK.mjs +2 -0
  136. package/dist/chunk-I65AJRUW.mjs +2 -0
  137. package/dist/chunk-I7RRVN72.mjs +2 -0
  138. package/dist/chunk-IDN55JH3.mjs +2 -0
  139. package/dist/chunk-IFAFLLMR.mjs +2 -0
  140. package/dist/chunk-IH6C35DU.mjs +2 -0
  141. package/dist/chunk-IHX5L3X7.mjs +2 -0
  142. package/dist/chunk-IL6UCWB3.mjs +2 -0
  143. package/dist/chunk-INGSYSTK.mjs +2 -0
  144. package/dist/chunk-IVAYXCSK.mjs +2 -0
  145. package/dist/chunk-J5C5KHNL.mjs +2 -0
  146. package/dist/chunk-J6RXJ3XB.mjs +2 -0
  147. package/dist/chunk-J7SGZN3Z.mjs +2 -0
  148. package/dist/chunk-JIGNF72F.mjs +2 -0
  149. package/dist/chunk-JIQ6BPLH.mjs +2 -0
  150. package/dist/chunk-JLLDUDJH.mjs +2 -0
  151. package/dist/chunk-JREOBPWI.mjs +2 -0
  152. package/dist/chunk-JV7DOP7K.mjs +2 -0
  153. package/dist/chunk-JXIPOFNM.mjs +2 -0
  154. package/dist/chunk-K4OAQHKU.mjs +2 -0
  155. package/dist/chunk-KCDWTRQD.mjs +2 -0
  156. package/dist/chunk-KCDZX5VG.mjs +2 -0
  157. package/dist/chunk-KECRY76Q.mjs +2 -0
  158. package/dist/chunk-KGKZNLYP.mjs +2 -0
  159. package/dist/chunk-KKF6RVFE.mjs +2 -0
  160. package/dist/chunk-KLFXWVZO.mjs +2 -0
  161. package/dist/chunk-KM53ESNV.mjs +6 -0
  162. package/dist/chunk-KNF4SZNT.mjs +2 -0
  163. package/dist/chunk-KRTRB34S.mjs +6 -0
  164. package/dist/chunk-KV66DANT.mjs +2 -0
  165. package/dist/chunk-KVVZQW46.mjs +2 -0
  166. package/dist/chunk-KX6PV7AK.mjs +2 -0
  167. package/dist/chunk-KYW5E5EY.mjs +2 -0
  168. package/dist/chunk-L4JQF5CX.mjs +2 -0
  169. package/dist/chunk-L4VKNGDO.mjs +2 -0
  170. package/dist/chunk-L5C7BV4J.mjs +2 -0
  171. package/dist/chunk-L6DAOVBI.mjs +2 -0
  172. package/dist/chunk-LDQHURAS.mjs +2 -0
  173. package/dist/chunk-LFIECDVL.mjs +2 -0
  174. package/dist/chunk-LIHUY3FS.mjs +2 -0
  175. package/dist/chunk-LINOF67L.mjs +2 -0
  176. package/dist/chunk-LKOZH5TA.mjs +2 -0
  177. package/dist/chunk-LNIQI2NV.mjs +2 -0
  178. package/dist/chunk-LXUVJDAS.mjs +2 -0
  179. package/dist/chunk-M7O6SGFD.mjs +2 -0
  180. package/dist/chunk-MANMSBT2.mjs +2 -0
  181. package/dist/chunk-MDKH5OQF.mjs +2 -0
  182. package/dist/chunk-ME6TOGWR.mjs +2 -0
  183. package/dist/chunk-MWBMSNOY.mjs +2 -0
  184. package/dist/chunk-MY2AVOJ3.mjs +6 -0
  185. package/dist/chunk-N33G2Y5E.mjs +2 -0
  186. package/dist/chunk-N4QBWTH4.mjs +2 -0
  187. package/dist/chunk-N52XIYBN.mjs +2 -0
  188. package/dist/chunk-ND5ZI2R2.mjs +2 -0
  189. package/dist/chunk-NITVENYV.mjs +2 -0
  190. package/dist/chunk-NNE7NMG7.mjs +2 -0
  191. package/dist/chunk-NO46FYUP.mjs +2 -0
  192. package/dist/chunk-NT3XJ6M4.mjs +1 -0
  193. package/dist/chunk-NZSORJPY.mjs +2 -0
  194. package/dist/chunk-OARNGRAC.mjs +2 -0
  195. package/dist/chunk-OGJ52KRV.mjs +2 -0
  196. package/dist/chunk-OH3DXT6O.mjs +2 -0
  197. package/dist/chunk-OIBFYTJO.mjs +2 -0
  198. package/dist/chunk-OIYM3DYA.mjs +2 -0
  199. package/dist/chunk-OKDNHYP5.mjs +2 -0
  200. package/dist/chunk-ONBKGOY6.mjs +2 -0
  201. package/dist/chunk-OSKCYJ56.mjs +2 -0
  202. package/dist/chunk-OW6IQG2G.mjs +2 -0
  203. package/dist/chunk-P4NPJTNS.mjs +2 -0
  204. package/dist/chunk-PFMW6W2H.mjs +2 -0
  205. package/dist/chunk-PGLQGXZM.mjs +2 -0
  206. package/dist/chunk-PHFQEUIO.mjs +2 -0
  207. package/dist/chunk-PIAIVTOX.mjs +2 -0
  208. package/dist/chunk-PJ7LGDPP.mjs +2 -0
  209. package/dist/chunk-PNRXW7NI.mjs +6 -0
  210. package/dist/chunk-PR3VIWQF.mjs +2 -0
  211. package/dist/chunk-PUHNFXY4.mjs +2 -0
  212. package/dist/chunk-PZANDFX6.mjs +2 -0
  213. package/dist/chunk-PZXC6324.mjs +2 -0
  214. package/dist/chunk-Q2QMFG4G.mjs +2 -0
  215. package/dist/chunk-QEUFFON4.mjs +2 -0
  216. package/dist/chunk-QKWYRJVY.mjs +2 -0
  217. package/dist/chunk-QP2CEN5Q.mjs +2 -0
  218. package/dist/chunk-QPDBUVUK.mjs +2 -0
  219. package/dist/chunk-RBRVB2GK.mjs +2 -0
  220. package/dist/chunk-RFF26MPW.mjs +2 -0
  221. package/dist/chunk-RNXJJRVU.mjs +6 -0
  222. package/dist/chunk-RQJQ4TJF.mjs +2 -0
  223. package/dist/chunk-RXJ62BWZ.mjs +2 -0
  224. package/dist/chunk-RYDI7XYP.mjs +2 -0
  225. package/dist/chunk-RYZTWZTB.mjs +2 -0
  226. package/dist/chunk-RZYLVNDE.mjs +2 -0
  227. package/dist/chunk-S66PF35M.mjs +2 -0
  228. package/dist/chunk-SAWDXMQB.mjs +2 -0
  229. package/dist/chunk-SCN5JRRD.mjs +2 -0
  230. package/dist/chunk-SO4D3INK.mjs +2 -0
  231. package/dist/chunk-SWV5UYVM.mjs +2 -0
  232. package/dist/chunk-T363IZD7.mjs +2 -0
  233. package/dist/chunk-T62P3TZF.mjs +2 -0
  234. package/dist/chunk-TCJASBNC.mjs +2 -0
  235. package/dist/chunk-TG75WV4N.mjs +2 -0
  236. package/dist/chunk-TMC7C5NN.mjs +2 -0
  237. package/dist/chunk-TPEVBKZG.mjs +2 -0
  238. package/dist/chunk-TPQ24JIF.mjs +2 -0
  239. package/dist/chunk-TRRTY7FB.mjs +2 -0
  240. package/dist/chunk-TVWH6J5W.mjs +2 -0
  241. package/dist/chunk-TXYYXDTU.mjs +2 -0
  242. package/dist/chunk-TZOB6YAS.mjs +2 -0
  243. package/dist/chunk-U2IJUGFZ.mjs +2 -0
  244. package/dist/chunk-UEQIUZEW.mjs +6 -0
  245. package/dist/chunk-UOHKMJQB.mjs +2 -0
  246. package/dist/chunk-UPDRJIL6.mjs +2 -0
  247. package/dist/chunk-UUBOOJN5.mjs +2 -0
  248. package/dist/chunk-UY5M442G.mjs +2 -0
  249. package/dist/chunk-UY74MUP7.mjs +2 -0
  250. package/dist/chunk-VK5KPUZQ.mjs +2 -0
  251. package/dist/chunk-VOTCW5CV.mjs +2 -0
  252. package/dist/chunk-VQHGYDBI.mjs +2 -0
  253. package/dist/chunk-VQHTBIBZ.mjs +2 -0
  254. package/dist/chunk-VSLXNJSX.mjs +2 -0
  255. package/dist/chunk-VTACAWW3.mjs +2 -0
  256. package/dist/chunk-W5VOVB72.mjs +2 -0
  257. package/dist/chunk-W5XG3DUX.mjs +2 -0
  258. package/dist/chunk-W7K5JJXS.mjs +2 -0
  259. package/dist/chunk-WDQDAQI2.mjs +2 -0
  260. package/dist/chunk-WFJFO33S.mjs +2 -0
  261. package/dist/chunk-WGGHB4PF.mjs +2 -0
  262. package/dist/chunk-WK4B4LK3.mjs +2 -0
  263. package/dist/chunk-WOLEY3FV.mjs +2 -0
  264. package/dist/chunk-WXBCM6NK.mjs +2 -0
  265. package/dist/chunk-X4FXMKV5.mjs +2 -0
  266. package/dist/chunk-X6DWHOAJ.mjs +2 -0
  267. package/dist/chunk-XNDE6QVQ.mjs +2 -0
  268. package/dist/chunk-XOVT6BBD.mjs +2 -0
  269. package/dist/chunk-XQ4ANDSG.mjs +2 -0
  270. package/dist/chunk-XXQ5ROL7.mjs +6 -0
  271. package/dist/chunk-Y2JVO4ON.mjs +2 -0
  272. package/dist/chunk-Y2TR3GM3.mjs +2 -0
  273. package/dist/chunk-Y3JGKF65.mjs +2 -0
  274. package/dist/chunk-Y45Y75UO.mjs +2 -0
  275. package/dist/chunk-Y6EGP5CA.mjs +2 -0
  276. package/dist/chunk-YLSP6CAP.mjs +2 -0
  277. package/dist/chunk-YV26ZPZY.mjs +2 -0
  278. package/dist/chunk-YWEIPZWE.mjs +6 -0
  279. package/dist/chunk-YWYWPCWH.mjs +2 -0
  280. package/dist/chunk-Z2MOOB42.mjs +2 -0
  281. package/dist/chunk-ZEAFTATU.mjs +2 -0
  282. package/dist/chunk-ZFWJGVVQ.mjs +2 -0
  283. package/dist/chunk-ZGHUPRXW.mjs +2 -0
  284. package/dist/chunk-ZHVTN5YZ.mjs +2 -0
  285. package/dist/chunk-ZHZ2U3ND.mjs +2 -0
  286. package/dist/chunk-ZJ7GP7D2.mjs +2 -0
  287. package/dist/chunk-ZJYXDTQY.mjs +2 -0
  288. package/dist/chunk-ZM6VFFYH.mjs +2 -0
  289. package/dist/chunk-ZTTD4KAF.mjs +2 -0
  290. package/dist/chunk-ZZ2LJ3YX.mjs +2 -0
  291. package/dist/composite-logo.mjs +1 -1
  292. package/dist/copy-button.mjs +1 -1
  293. package/dist/counting-numbers.mjs +1 -1
  294. package/dist/date-picker/calendar.mjs +1 -1
  295. package/dist/date-picker/date-range-picker.mjs +1 -1
  296. package/dist/date-picker/presets.mjs +1 -1
  297. package/dist/date-picker/trigger.mjs +1 -1
  298. package/dist/file-upload.mjs +1 -1
  299. package/dist/filter/filter-list.mjs +1 -1
  300. package/dist/filter/filter-select.mjs +1 -1
  301. package/dist/footer.mjs +1 -1
  302. package/dist/form.mjs +1 -1
  303. package/dist/icons/default-domains/amazon.mjs +1 -1
  304. package/dist/icons/default-domains/chatgpt.mjs +1 -1
  305. package/dist/icons/default-domains/figma.d.ts +7 -0
  306. package/dist/icons/default-domains/figma.mjs +2 -0
  307. package/dist/icons/default-domains/github-enhanced.d.ts +7 -0
  308. package/dist/icons/default-domains/github-enhanced.mjs +2 -0
  309. package/dist/icons/default-domains/github.mjs +1 -1
  310. package/dist/icons/default-domains/google-enhanced.d.ts +7 -0
  311. package/dist/icons/default-domains/google-enhanced.mjs +2 -0
  312. package/dist/icons/default-domains/spotify.mjs +1 -1
  313. package/dist/icons/expanding-arrow.mjs +1 -1
  314. package/dist/icons/index.d.ts +3 -2
  315. package/dist/icons/index.mjs +1 -1
  316. package/dist/icons/linkedin.mjs +1 -1
  317. package/dist/icons/loading-circle.mjs +1 -1
  318. package/dist/icons/loading-spinner.mjs +1 -1
  319. package/dist/icons/sort-order.mjs +1 -1
  320. package/dist/icons/twitter.mjs +1 -1
  321. package/dist/icons/youtube.mjs +1 -1
  322. package/dist/index.d.ts +3 -2
  323. package/dist/index.mjs +1 -1
  324. package/dist/input-select.mjs +1 -1
  325. package/dist/label.mjs +1 -1
  326. package/dist/link-logo.mjs +1 -1
  327. package/dist/link-preview.mjs +1 -1
  328. package/dist/logo.mjs +1 -1
  329. package/dist/max-width-wrapper.mjs +1 -1
  330. package/dist/modal.mjs +1 -1
  331. package/dist/nav/content/product-content.mjs +1 -1
  332. package/dist/nav/content/resources-content.mjs +1 -1
  333. package/dist/nav/content/shared.mjs +1 -1
  334. package/dist/nav/content/solutions-content.mjs +1 -1
  335. package/dist/nav/nav-mobile.mjs +1 -1
  336. package/dist/nav/nav.mjs +1 -1
  337. package/dist/nav-logo.mjs +1 -1
  338. package/dist/popover.mjs +1 -1
  339. package/dist/progress-bar.mjs +1 -1
  340. package/dist/radio-group.mjs +1 -1
  341. package/dist/status-badge.d.ts +3 -2
  342. package/dist/status-badge.mjs +1 -1
  343. package/dist/switch.mjs +1 -1
  344. package/dist/tab-select.mjs +1 -1
  345. package/dist/toggle-group.mjs +1 -1
  346. package/dist/tooltip.mjs +1 -1
  347. package/dist/wordmark.mjs +1 -1
  348. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as ve,b as we}from"./chunk-AUBFB4SI.mjs";var le=ve((et,ie)=>{var I=1e3,L=I*60,C=L*60,P=C*24,Ge=P*7,Je=P*365.25;ie.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return $e(e);if(t==="number"&&isFinite(e))return r.long?je(e):Fe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $e(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*Je;case"weeks":case"week":case"w":return t*Ge;case"days":case"day":case"d":return t*P;case"hours":case"hour":case"hrs":case"hr":case"h":return t*C;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 Fe(e){var r=Math.abs(e);return r>=P?Math.round(e/P)+"d":r>=C?Math.round(e/C)+"h":r>=L?Math.round(e/L)+"m":r>=I?Math.round(e/I)+"s":e+"ms"}function je(e){var r=Math.abs(e);return r>=P?J(e,r,P,"day"):r>=C?J(e,r,C,"hour"):r>=L?J(e,r,L,"minute"):r>=I?J(e,r,I,"second"):e+" ms"}function J(e,r,t,o){var a=r>=t*1.5;return Math.round(e/t)+" "+o+(a?"s":"")}});var V=e=>{try{return new URL(e),!0}catch{return!1}},Ae=e=>{if(V(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};function R(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var a=t.slice().reverse().find(function(s){return e>=s.value});return a?(e/a.value).toFixed(r.digits).replace(o,"$1")+a.symbol:"0"}var Ee=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ne=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",ke=`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"]),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}`:"http://localhost:8888",_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}`: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",Ce=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var Te=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Ne=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-\p{Emoji}]*$/u),Re=new RegExp(/^[a-zA-Z0-9\-]+$/);var Me=e=>{if(V(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 G=({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:6e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${R(o,{full:!0})} new links/mo`},{text:`${R(a)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${s} custom domains`},{text:`${i} users`},{text:`${R(n,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Priority support"}]}),_=[{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:600},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:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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:3e3},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 hover:bg-blue-600 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:"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:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{text:"Elevated support"}]},G({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"]}),G({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),G({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),G({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,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-violet-600 hover:bg-violet-700 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"}]}],ze=_.find(e=>e.name==="Free"),Ue=_.find(e=>e.name==="Pro"),De=_.find(e=>e.name==="Business"),Be=_.find(e=>e.name==="Enterprise");var Ve=_.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var ce=we(le(),1),We=(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 qe=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;async function Ke(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()}var Ye="https://www.google.com/s2/favicons?sz=64&domain_url=";var Xe=60*60*24*14,Ze=new Date("2022-09-22T00:00:00.000Z");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 de(){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 He(e){let r=er(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)||Qe(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 Qe(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 er(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return tr(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(rr(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 rr(e){return e.isThemeGetter}function tr(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 or(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),k=x?b.substring(1):b,y=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function ar(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 nr(e){return{cache:or(e.cacheSize),parseClassName:sr(e),...He(e)}}var ir=/\s+/;function lr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=new Set;return e.trim().split(ir).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=ar(i).join(":"),k=c?x+ge:x;return{isTailwindClass:!0,modifierId:k,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 cr(){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=nr(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=lr(c,t);return a(c,p),p}return function(){return s(cr.apply(null,arguments))}}function u(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var be=/^\[(?:([a-z-]+):)?(.+)\]$/i,dr=/^\d+\/\d+$/,pr=new Set(["px","full","screen"]),mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\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$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,br=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return S(e)||pr.has(e)||dr.test(e)}function A(e){return O(e,"length",Pr)}function S(e){return Boolean(e)&&!Number.isNaN(Number(e))}function $(e){return O(e,"number",S)}function M(e){return Boolean(e)&&Number.isInteger(Number(e))}function yr(e){return e.endsWith("%")&&S(e.slice(0,-1))}function l(e){return be.test(e)}function E(e){return mr.test(e)}var xr=new Set(["length","size","percentage"]);function vr(e){return O(e,xr,ye)}function wr(e){return O(e,"position",ye)}var Ar=new Set(["image","url"]);function Er(e){return O(e,Ar,_r)}function kr(e){return O(e,"",Sr)}function z(){return!0}function O(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 Pr(e){return fr.test(e)&&!gr.test(e)}function ye(){return!1}function Sr(e){return hr.test(e)}function _r(e){return br.test(e)}function Ir(){let e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),a=u("borderColor"),s=u("borderRadius"),n=u("borderSpacing"),i=u("borderWidth"),c=u("contrast"),f=u("grayscale"),p=u("hueRotate"),g=u("invert"),b=u("gap"),x=u("gradientColorStops"),k=u("gradientColorStopPositions"),y=u("inset"),m=u("margin"),h=u("opacity"),v=u("padding"),Z=u("saturate"),F=u("scale"),H=u("sepia"),Q=u("skew"),ee=u("space"),re=u("translate"),j=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],d=()=>[l,r],te=()=>["",w,A],U=()=>["auto",S,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],se=()=>["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"],T=()=>["","0",l],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[S,$],B=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[z],spacing:[w,A],blur:["none","",E,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",E,l],borderSpacing:d(),borderWidth:te(),contrast:N(),grayscale:T(),hueRotate:B(),invert:T(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[yr,A],inset:q(),margin:q(),opacity:N(),padding:d(),saturate:N(),scale:N(),sepia:T(),skew:B(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],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",M,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:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",M,l]}],"grid-cols":[{"grid-cols":[z]}],"col-start-end":[{col:["auto",{span:["full",M,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[z]}],"row-start-end":[{row:["auto",{span:[M,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:[E]},E]}],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",E,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[z]}],"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",S,$]}],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:[...D(),"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:d()}],"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(),wr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Er]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"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:[...D(),"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:D()}],"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:["",...D()]}],"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",E,kr]}],"shadow-color":[{shadow:[z]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[Z]}],sepia:[{sepia:[H]}],"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":[Z]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"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:B()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[M,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":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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,$]}],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(Ir);function Lr(...e){return xe(de(e))}var Cr=["stats","changelog","terms","privacy","abuse"],Or=[{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:"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"}],Tr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];export{Ae as a,R as b,Se as c,Me as d,We as e,qe as f,Ke as g,Ye as h,Lr as i,Cr as j,Or as k,Tr as l};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-NNE7NMG7.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as d,d as p,f as s}from"./chunk-ZZ2LJ3YX.mjs";import{a as n,c as l,d as f}from"./chunk-T363IZD7.mjs";import{i as r}from"./chunk-625XDFB6.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function h({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a,showArrow:!0},o))})]})]})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-QTCYB542.mjs";import{a as y}from"./chunk-2TGXECZQ.mjs";import{a as s}from"./chunk-VQHGYDBI.mjs";import{a as g,d as f,g as b}from"./chunk-NNE7NMG7.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{i as e}from"./chunk-NNE7NMG7.mjs";import{jsx as t}from"react/jsx-runtime";function o({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((n,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as H}from"./chunk-JIQ6BPLH.mjs";import{a as T}from"./chunk-QP2CEN5Q.mjs";import{a as F}from"./chunk-VK5KPUZQ.mjs";import{a as C}from"./chunk-OSKCYJ56.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-625XDFB6.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-BBFXHFDU.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as s}from"./chunk-IGIB6XZB.mjs";import{a as o}from"./chunk-GYE7FFDN.mjs";import{a as c}from"./chunk-WDAMFRJJ.mjs";import{a as n}from"./chunk-GV2NLM3E.mjs";import{i as r}from"./chunk-GVPDKYLU.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-BBFXHFDU.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-NNE7NMG7.mjs";import{jsx as t,jsxs as o}from"react/jsx-runtime";function i({className:r}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"256",height:"256",viewBox:"0 0 256 256",className:e("text-[#ff0000]",r),children:[t("defs",{}),t("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"#ff0000",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:t("path",{d:"M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z M 36 58.5 v -27 L 59.382 45 L 36 58.5 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"currentColor",fillRule:"nonzero",opacity:1},transform:" matrix(1 0 0 1 0 0) ",strokeLinecap:"round"})})]})}export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as l}from"./chunk-625XDFB6.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-F2FO7ZLO.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-625XDFB6.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{i as r}from"./chunk-625XDFB6.mjs";import{jsx as a}from"react/jsx-runtime";function d({user:e={},className:n}){return e?a("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:e.image||`https://api.dicebear.com/7.x/micah/svg?seed=${e.id||e.email}`,className:r("h-10 w-10 rounded-full border border-gray-300",n),draggable:!1}):a("div",{className:r("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",n)})}function l({id:e}){return a("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${e}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{d as a,l as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f}from"./chunk-QTCYB542.mjs";import{i}from"./chunk-F2FO7ZLO.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-F2FO7ZLO.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as C}from"./chunk-BBFXHFDU.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function V({className:l}){return o("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",l),children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"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:"currentColor"})]})}export{V as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as H}from"./chunk-4NEB2ETF.mjs";import{a as T}from"./chunk-ZM6VFFYH.mjs";import{a as F}from"./chunk-CFHJPNC7.mjs";import{a as C}from"./chunk-WOLEY3FV.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-BBFXHFDU.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as d,d as p,f as s}from"./chunk-ARQ64RH5.mjs";import{a as n,c as l,d as f}from"./chunk-5ZA4YF7J.mjs";import{i as r}from"./chunk-BBFXHFDU.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function h({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a,showArrow:!0},o))})]})]})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-UEQIUZEW.mjs";import{a as x}from"./chunk-ARQ64RH5.mjs";import{a as v}from"./chunk-TBSTPIRJ.mjs";import{a as b}from"./chunk-TITLBNSF.mjs";import{a as y}from"./chunk-VTKCGAAU.mjs";import{a as h}from"./chunk-4SWYHSLV.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-GVPDKYLU.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(A,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as o}from"./chunk-NNE7NMG7.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 f}from"./chunk-QTCYB542.mjs";import{i}from"./chunk-NNE7NMG7.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-F2FO7ZLO.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:e("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as n}from"./chunk-GV2NLM3E.mjs";import{a as s}from"./chunk-IGIB6XZB.mjs";import{a as o}from"./chunk-GYE7FFDN.mjs";import{a as c}from"./chunk-WDAMFRJJ.mjs";import{i as r}from"./chunk-625XDFB6.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-QTCYB542.mjs";import{i as d}from"./chunk-F2FO7ZLO.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 u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[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:m,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:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as k}from"./chunk-32C65ISH.mjs";import{a as x}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-JFSNPBO7.mjs";import{a as y}from"./chunk-CZSSD6PV.mjs";import{a as m}from"./chunk-D7SRRREC.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as u}from"./chunk-JBURS7BX.mjs";import{a as f}from"./chunk-BOCPUR5Z.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as c}from"./chunk-KDNSFAET.mjs";import{a as l}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as d}from"./chunk-3KFNNXJ6.mjs";import{a as s}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as o}from"./chunk-NPWONPKN.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as r}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as t}from"./chunk-ZJICX3BL.mjs";var P=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:d,href:"/features/analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:g,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:m,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:k,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:x,href:"/docs/api-reference/introduction"}],v=[{icon:r,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:s,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:o,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],T=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:y,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],B=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:t,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"}],E=[{icon:u,title:"Help Center",href:"/help"},{icon:l,title:"Docs",href:"/docs"},{icon:c,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:C,title:"Customers",href:"/customers"},{icon:f,title:"Brand",href:"/brand"}];var L=(e,S)=>S==="dub.co"?e:`https://dub.co${e}`;export{P as a,v as b,T as c,B as d,E as e,L as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as u}from"./chunk-NNE7NMG7.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as G}from"react";import{DayPicker as I,useDayPicker as j,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:N,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:u("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:w,...y,children:e(N,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function X({mode:w="single",weekStartsOn:N=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:M,className:L,classNames:D,...R}){return e(I,{mode:w,weekStartsOn:N,numberOfMonths:m,locale:M,showOutsideDays:m===1,className:L,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:u("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...D},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:n,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:o}=j(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);n&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!o||a.getTime()<=o.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!n||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!n,"aria-label":"Go to previous month",onClick:()=>n&&r(n),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:M})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||o&&P(s,1).getTime()>o.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=G(null),{activeModifiers:n,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:o,today:b,disabled:f,range_middle:h}=n;if(l)return e(z,{});if(!g)return e("div",{...d,className:u("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:u("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!o,"!bg-white":o,"!bg-blue-400":o&&h,"text-gray-400":f})})]})}},...R})}export{X as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as f,b as g,f as m}from"./chunk-ZZ2LJ3YX.mjs";import{a as n,c as p,d as x}from"./chunk-2VRL2JRK.mjs";import{a as v}from"./chunk-TPEVBKZG.mjs";import{i as s,l}from"./chunk-NNE7NMG7.mjs";import k from"@vercel/analytics";import{ChevronRight as N}from"lucide-react";import h from"next/link";import{jsx as e,jsxs as o}from"react/jsx-runtime";function P({domain:r}){return o("div",{className:"grid w-[40rem] grid-cols-2",children:[o("div",{className:"p-5",children:[e("p",{className:s(n,"mb-2"),children:"Features"}),e("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:f.map(({icon:i,title:t,description:c,href:a})=>e(p,{href:m(a,r),...r!=="dub.co"&&{onClick:()=>{k.track("Referred from custom domain",{domain:r,medium:`navbar item (${a})`})}},icon:e(x,{icon:i}),title:t,description:c},a))})]}),o("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[o(h,{href:m("/customers",r),className:s(n,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",e(N,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),e("div",{className:"grid grid-cols-1",children:g.map(({icon:i,iconClassName:t,title:c,description:a,href:d})=>e(p,{href:m(d,r),className:"-mx-2",icon:e(i,{className:s("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:c,description:a,descriptionLines:2},d))}),e("p",{className:s(n,"my-4"),children:"Compare"}),e("div",{className:"flex flex-col gap-1.5",children:l.map(({name:i,slug:t})=>o(h,{href:m(`/compare/${t}`,r),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[o("p",{className:"text-sm font-medium",children:["Dub vs. ",i]})," ",e(v,{className:"h-3 w-3"})]},t))})]})]})}export{P as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-625XDFB6.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function r({className:L}){return a("svg",{className:t("h-full w-full",L),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"black"}),C("path",{d:"M173.607 97.7454C176.886 87.8002 175.751 76.9142 170.492 67.8719C162.584 54.0098 146.691 46.8792 131.17 50.2298C122.423 40.4311 109.151 36.0738 96.3504 38.7981C83.5497 41.5224 73.1632 50.9148 69.1005 63.4398C58.9049 65.5455 50.1051 71.9745 44.9529 81.0819C36.9593 94.9215 38.7736 112.379 49.4395 124.252C46.1479 134.192 47.2727 145.08 52.5258 154.125C60.4432 167.992 76.3466 175.122 91.8764 171.767C98.784 179.601 108.708 184.058 119.11 183.999C135.02 184.014 149.114 173.67 153.974 158.414C164.168 156.304 172.967 149.876 178.122 140.771C186.019 126.956 184.197 109.593 173.607 97.7454ZM119.11 174.444C112.76 174.454 106.609 172.213 101.735 168.112L102.593 167.623L131.456 150.844C132.917 149.981 133.818 148.406 133.827 146.7V105.717L146.03 112.826C146.152 112.889 146.237 113.006 146.258 113.143V147.103C146.227 162.19 134.091 174.412 119.11 174.444ZM60.756 149.348C57.5714 143.81 56.428 137.318 57.5268 131.015L58.3841 131.533L87.2755 148.312C88.7311 149.172 90.535 149.172 91.9907 148.312L127.283 127.82V142.009C127.277 142.158 127.203 142.296 127.083 142.383L97.849 159.363C84.8581 166.9 68.2607 162.419 60.756 149.348ZM53.1545 86.032C56.3612 80.4583 61.4227 76.207 67.443 74.0308V108.567C67.4209 110.266 68.3188 111.843 69.7863 112.682L104.907 133.087L92.7051 140.196C92.5711 140.267 92.4105 140.267 92.2764 140.196L63.0993 123.244C50.134 115.676 45.6875 98.9734 53.1545 85.8881V86.032ZM153.403 109.488L118.167 88.8812L130.341 81.8013C130.475 81.7297 130.636 81.7297 130.77 81.8013L159.947 98.7815C169.053 104.074 174.307 114.185 173.432 124.737C172.557 135.289 165.712 144.383 155.86 148.082V113.546C155.809 111.851 154.875 110.309 153.403 109.488ZM165.548 91.0973L164.691 90.5792L135.856 73.6566C134.392 72.7912 132.577 72.7912 131.113 73.6566L95.8486 94.1479V79.9594C95.8333 79.8125 95.8991 79.6689 96.02 79.5853L125.197 62.6339C134.326 57.3376 145.672 57.8319 154.312 63.9022C162.953 69.9726 167.331 80.5253 165.548 90.9821V91.0973ZM89.1901 116.251L76.9877 109.171C76.8644 109.096 76.7807 108.969 76.7591 108.826V74.9517C76.773 64.3439 82.8721 54.6994 92.4112 50.201C101.95 45.7026 113.211 47.1605 121.311 53.9424L120.453 54.4316L91.5906 71.2103C90.1293 72.0736 89.2279 73.6485 89.2187 75.3546L89.1901 116.251ZM95.82 101.861L111.537 92.7377L127.283 101.861V120.107L111.595 129.231L95.8486 120.107L95.82 101.861Z",fill:"url(#paint0_radial_39_26)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_26",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40 38) rotate(45.5947) scale(204.365 204.365)",children:[C("stop",{stopColor:"white",stopOpacity:"0.85"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{r as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-GVPDKYLU.mjs";import{jsx as t,jsxs as r}from"react/jsx-runtime";function n({className:e}){return r("svg",{className:a("h-full w-full",e),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("path",{d:"M182.248 111.875C182.248 105.853 181.76 101.458 180.702 96.9003H111.931V124.083H152.298C151.484 130.838 147.089 141.011 137.323 147.848L137.186 148.758L158.93 165.603L160.437 165.753C174.272 152.975 182.248 134.175 182.248 111.875Z",fill:"url(#paint1_linear_8328_50)"}),t("path",{d:"M111.931 183.495C131.707 183.495 148.31 176.984 160.437 165.753L137.323 147.848C131.138 152.161 122.836 155.172 111.931 155.172C92.561 155.172 76.1211 142.395 70.2607 124.734L69.4017 124.807L46.7918 142.305L46.4961 143.127C58.5411 167.055 83.2826 183.495 111.931 183.495Z",fill:"url(#paint2_linear_8328_50)"}),t("path",{d:"M70.2607 124.734C68.7144 120.177 67.8195 115.293 67.8195 110.248C67.8195 105.201 68.7144 100.318 70.1794 95.7607L70.1384 94.7901L47.2451 77.0109L46.4961 77.3672C41.5318 87.2964 38.6832 98.4466 38.6832 110.248C38.6832 122.048 41.5318 133.198 46.4961 143.127L70.2607 124.734Z",fill:"url(#paint3_linear_8328_50)"}),t("path",{d:"M111.931 65.3222C125.685 65.3222 134.963 71.2633 140.253 76.2282L160.925 56.0444C148.229 44.2434 131.707 37 111.931 37C83.2826 37 58.5411 53.4399 46.4961 77.3672L70.1794 95.7607C76.1211 78.1 92.561 65.3222 111.931 65.3222Z",fill:"url(#paint4_linear_8328_50)"}),r("defs",{children:[r("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(-26 -7.31473e-06) rotate(38.1183) scale(289.169)",children:[t("stop",{"stop-color":"white"}),t("stop",{offset:"0.5","stop-color":"white"}),t("stop",{offset:"1","stop-color":"#ECECEC"})]}),r("linearGradient",{id:"paint1_linear_8328_50",x1:"176.5",y1:"148.5",x2:"112",y2:"97",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#4285F4"}),t("stop",{offset:"1","stop-color":"#76A7F9"})]}),r("linearGradient",{id:"paint2_linear_8328_50",x1:"38.5",y1:"164.5",x2:"110.5",y2:"154",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#8DFBAA"}),t("stop",{offset:"1","stop-color":"#34A853"})]}),r("linearGradient",{id:"paint3_linear_8328_50",x1:"66.5",y1:"119",x2:"36",y2:"110",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FBBC05"}),t("stop",{offset:"1","stop-color":"#FFE28F"})]}),r("linearGradient",{id:"paint4_linear_8328_50",x1:"92.5",y1:"66",x2:"78",y2:"45.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#EB4335"}),t("stop",{offset:"1","stop-color":"#FF968D"})]})]})]})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-PNRXW7NI.mjs";import{f as h}from"./chunk-ZZ2LJ3YX.mjs";import{b as u}from"./chunk-XOVT6BBD.mjs";import{c,g,i as t}from"./chunk-625XDFB6.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-32RAUHJJ.mjs";import{f as h}from"./chunk-ARQ64RH5.mjs";import{b as u}from"./chunk-BI575PSN.mjs";import{c,g,i as t}from"./chunk-GVPDKYLU.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as ve,b as we}from"./chunk-AUBFB4SI.mjs";var le=ve((et,ie)=>{var I=1e3,L=I*60,C=L*60,P=C*24,Ge=P*7,Je=P*365.25;ie.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return $e(e);if(t==="number"&&isFinite(e))return r.long?je(e):Fe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $e(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*Je;case"weeks":case"week":case"w":return t*Ge;case"days":case"day":case"d":return t*P;case"hours":case"hour":case"hrs":case"hr":case"h":return t*C;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 Fe(e){var r=Math.abs(e);return r>=P?Math.round(e/P)+"d":r>=C?Math.round(e/C)+"h":r>=L?Math.round(e/L)+"m":r>=I?Math.round(e/I)+"s":e+"ms"}function je(e){var r=Math.abs(e);return r>=P?J(e,r,P,"day"):r>=C?J(e,r,C,"hour"):r>=L?J(e,r,L,"minute"):r>=I?J(e,r,I,"second"):e+" ms"}function J(e,r,t,o){var a=r>=t*1.5;return Math.round(e/t)+" "+o+(a?"s":"")}});var V=e=>{try{return new URL(e),!0}catch{return!1}},Ae=e=>{if(V(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};function R(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var a=t.slice().reverse().find(function(s){return e>=s.value});return a?(e/a.value).toFixed(r.digits).replace(o,"$1")+a.symbol:"0"}var Ee=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ne=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",ke=`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"]),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}`:"http://localhost:8888",_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}`: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",Ce=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var Te=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Ne=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-\p{Emoji}]*$/u),Re=new RegExp(/^[a-zA-Z0-9\-]+$/);var Me=e=>{if(V(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 G=({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:6e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${R(o,{full:!0})} new links/mo`},{text:`${R(a)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${s} custom domains`},{text:`${i} users`},{text:`${R(n,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Priority support"}]}),_=[{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:600},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:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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:3e3},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 hover:bg-blue-600 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:"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:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{text:"Elevated support"}]},G({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"]}),G({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),G({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),G({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,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-violet-600 hover:bg-violet-700 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"}]}],ze=_.find(e=>e.name==="Free"),Ue=_.find(e=>e.name==="Pro"),De=_.find(e=>e.name==="Business"),Be=_.find(e=>e.name==="Enterprise");var Ve=_.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var ce=we(le(),1),We=(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 qe=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;async function Ke(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()}var Ye="https://www.google.com/s2/favicons?sz=64&domain_url=";var Xe=60*60*24*14,Ze=new Date("2022-09-22T00:00:00.000Z");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 de(){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 He(e){let r=er(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)||Qe(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 Qe(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 er(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return tr(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(rr(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 rr(e){return e.isThemeGetter}function tr(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 or(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),k=x?b.substring(1):b,y=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function ar(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 nr(e){return{cache:or(e.cacheSize),parseClassName:sr(e),...He(e)}}var ir=/\s+/;function lr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,s=new Set;return e.trim().split(ir).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=ar(i).join(":"),k=c?x+ge:x;return{isTailwindClass:!0,modifierId:k,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 cr(){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=nr(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=lr(c,t);return a(c,p),p}return function(){return s(cr.apply(null,arguments))}}function u(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var be=/^\[(?:([a-z-]+):)?(.+)\]$/i,dr=/^\d+\/\d+$/,pr=new Set(["px","full","screen"]),mr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\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$/,gr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,br=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return S(e)||pr.has(e)||dr.test(e)}function A(e){return O(e,"length",Pr)}function S(e){return Boolean(e)&&!Number.isNaN(Number(e))}function $(e){return O(e,"number",S)}function M(e){return Boolean(e)&&Number.isInteger(Number(e))}function yr(e){return e.endsWith("%")&&S(e.slice(0,-1))}function l(e){return be.test(e)}function E(e){return mr.test(e)}var xr=new Set(["length","size","percentage"]);function vr(e){return O(e,xr,ye)}function wr(e){return O(e,"position",ye)}var Ar=new Set(["image","url"]);function Er(e){return O(e,Ar,_r)}function kr(e){return O(e,"",Sr)}function z(){return!0}function O(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 Pr(e){return fr.test(e)&&!gr.test(e)}function ye(){return!1}function Sr(e){return hr.test(e)}function _r(e){return br.test(e)}function Ir(){let e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),a=u("borderColor"),s=u("borderRadius"),n=u("borderSpacing"),i=u("borderWidth"),c=u("contrast"),f=u("grayscale"),p=u("hueRotate"),g=u("invert"),b=u("gap"),x=u("gradientColorStops"),k=u("gradientColorStopPositions"),y=u("inset"),m=u("margin"),h=u("opacity"),v=u("padding"),Z=u("saturate"),F=u("scale"),H=u("sepia"),Q=u("skew"),ee=u("space"),re=u("translate"),j=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],d=()=>[l,r],te=()=>["",w,A],U=()=>["auto",S,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],se=()=>["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"],T=()=>["","0",l],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[S,$],B=()=>[S,l];return{cacheSize:500,separator:":",theme:{colors:[z],spacing:[w,A],blur:["none","",E,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",E,l],borderSpacing:d(),borderWidth:te(),contrast:N(),grayscale:T(),hueRotate:B(),invert:T(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[yr,A],inset:q(),margin:q(),opacity:N(),padding:d(),saturate:N(),scale:N(),sepia:T(),skew:B(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],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",M,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:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",M,l]}],"grid-cols":[{"grid-cols":[z]}],"col-start-end":[{col:["auto",{span:["full",M,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[z]}],"row-start-end":[{row:["auto",{span:[M,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:[E]},E]}],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",E,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[z]}],"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",S,$]}],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:[...D(),"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:d()}],"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(),wr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Er]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"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:[...D(),"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:D()}],"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:["",...D()]}],"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",E,kr]}],"shadow-color":[{shadow:[z]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[Z]}],sepia:[{sepia:[H]}],"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":[Z]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"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:B()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[M,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":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"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,$]}],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(Ir);function Lr(...e){return xe(de(e))}var Cr=["stats","changelog","terms","privacy","abuse"],Or=[{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:"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"}],Tr=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];export{Ae as a,R as b,Se as c,Me as d,We as e,qe as f,Ke as g,Ye as h,Lr as i,Cr as j,Or as k,Tr as l};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-C7ATIZ2A.mjs";import{f as y,i as g}from"./chunk-NNE7NMG7.mjs";import{AnimatePresence as v,motion as b}from"framer-motion";import{X as k}from"lucide-react";import{isValidElement as L}from"react";import{Fragment as C,jsx as t,jsxs as s}from"react/jsx-runtime";function E({filters:l,activeFilters:n,onRemove:x,onRemoveAll:h,className:w}){return t(u,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:s("div",{className:g("flex w-full flex-wrap items-start gap-4",w),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(v,{children:n==null?void 0:n.map(({key:a,value:o})=>{var d,p,c;if(a==="loader")return t(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${o}`);let e=l.find(r=>r.key===a);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");let i=(d=e.options)==null?void 0:d.find(r=>typeof r.value=="string"&&typeof o=="string"?r.value.toLowerCase()===o.toLowerCase():r.value===o),m=(i==null?void 0:i.icon)??((p=e.getOptionIcon)==null?void 0:p.call(e,o,{key:e.key,option:i}))??e.icon,N=(i==null?void 0:i.label)??((c=e.getOptionLabel)==null?void 0:c.call(e,o,{key:e.key,option:i}))??o;return s(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[s("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:f(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?s(C,{children:[t("span",{className:"shrink-0 text-gray-600",children:f(m)?m:t(m,{className:"h-4 w-4"})}),y(N,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>x(a),children:t(k,{className:"h-3.5 w-3.5"})})]},a)})})}),(n==null?void 0:n.length)!==0&&t("button",{type:"button",className:"whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:h,children:"Clear Filters"})]})})}var f=l=>L(l);export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-NNE7NMG7.mjs";import{jsx as a}from"react/jsx-runtime";function d({user:e={},className:n}){return e?a("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:e.image||`https://api.dicebear.com/7.x/micah/svg?seed=${e.id||e.email}`,className:r("h-10 w-10 rounded-full border border-gray-300",n),draggable:!1}):a("div",{className:r("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",n)})}function l({id:e}){return a("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${e}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{d as a,l as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as d,d as p,f as s}from"./chunk-ARQ64RH5.mjs";import{a as n,c as l,d as f}from"./chunk-GGISBMOI.mjs";import{i as r}from"./chunk-GVPDKYLU.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function h({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a,showArrow:!0},o))})]})]})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-KECRY76Q.mjs";import{f as y,i as g}from"./chunk-F2FO7ZLO.mjs";import{AnimatePresence as v,motion as b}from"framer-motion";import{X as k}from"lucide-react";import{isValidElement as L}from"react";import{Fragment as C,jsx as t,jsxs as s}from"react/jsx-runtime";function E({filters:l,activeFilters:n,onRemove:x,onRemoveAll:h,className:w}){return t(u,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:s("div",{className:g("flex w-full flex-wrap items-start gap-4",w),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(v,{children:n==null?void 0:n.map(({key:a,value:o})=>{var d,p,c;if(a==="loader")return t(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${o}`);let e=l.find(r=>r.key===a);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");let i=(d=e.options)==null?void 0:d.find(r=>typeof r.value=="string"&&typeof o=="string"?r.value.toLowerCase()===o.toLowerCase():r.value===o),m=(i==null?void 0:i.icon)??((p=e.getOptionIcon)==null?void 0:p.call(e,o,{key:e.key,option:i}))??e.icon,N=(i==null?void 0:i.label)??((c=e.getOptionLabel)==null?void 0:c.call(e,o,{key:e.key,option:i}))??o;return s(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[s("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:f(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?s(C,{children:[t("span",{className:"shrink-0 text-gray-600",children:f(m)?m:t(m,{className:"h-4 w-4"})}),y(N,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>x(a),children:t(k,{className:"h-3.5 w-3.5"})})]},a)})})}),(n==null?void 0:n.length)!==0&&t("button",{type:"button",className:"whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:h,children:"Clear Filters"})]})})}var f=l=>L(l);export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as n}from"./chunk-F2FO7ZLO.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{i as a}from"./chunk-NNE7NMG7.mjs";import{motion as l}from"framer-motion";import{forwardRef as R,useRef as b}from"react";import{useEffect as h,useState as v}from"react";function p(e){let[n,r]=v(),s=([t])=>{r(t)};return h(()=>{let t=e==null?void 0:e.current;if(!t)return;let i=new ResizeObserver(s);return i.observe(t),()=>i.disconnect()},[e]),n}import{jsx as u}from"react/jsx-runtime";var C=R(({width:e=!1,height:n=!1,className:r,transition:s,children:t,...i},f)=>{var m,c;let d=b(null),o=p(d);return u(l.div,{ref:f,className:a("overflow-hidden",r),animate:{width:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.width)??"auto":"auto",height:n?((c=o==null?void 0:o.contentRect)==null?void 0:c.height)??"auto":"auto"},transition:s??{type:"spring",duration:.3},...i,children:u("div",{ref:d,className:a(n&&"h-max",e&&"w-max"),children:t})})});C.displayName="AnimatedSizeContainer";export{p as a,C as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as H}from"./chunk-IFAFLLMR.mjs";import{a as T}from"./chunk-OIYM3DYA.mjs";import{a as F}from"./chunk-5ZGAPML3.mjs";import{a as C}from"./chunk-AOT366ZX.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-F2FO7ZLO.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as f}from"./chunk-G36JOHV4.mjs";import{i as c}from"./chunk-BBFXHFDU.mjs";import{Command as a}from"cmdk";import{Lock as x}from"lucide-react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var w=({presets:g,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,D=e=>"date"in e,o=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&o(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&o(m,d)&&(u=!0),i&&u},T=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(D(e)){let t=r;return t&&o(t,e.date)}return!1};return s(a,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:s(a.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:g.map((e,t)=>R(a.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",T(e)&&"font-semibold text-gray-800"),children:[s("span",{children:e.label}),e.requiresUpgrade&&s(x,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&s(f,{side:"bottom",content:e.tooltipContent,children:s("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-625XDFB6.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize 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",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as C}from"./chunk-BBFXHFDU.mjs";import{jsx as l,jsxs as i}from"react/jsx-runtime";function t({className:r}){return i("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{t as a};