@dub/ui 0.0.48 → 0.0.49

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 (359) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/avatar.mjs +1 -1
  3. package/dist/badge.mjs +1 -1
  4. package/dist/blur-image.mjs +1 -1
  5. package/dist/button.d.ts +2 -2
  6. package/dist/button.mjs +1 -1
  7. package/dist/checkbox.mjs +1 -1
  8. package/dist/chunk-224SHC3J.mjs +2 -0
  9. package/dist/chunk-22YLPLRH.mjs +2 -0
  10. package/dist/chunk-233KTWN5.mjs +2 -0
  11. package/dist/chunk-25UNJGST.mjs +2 -0
  12. package/dist/chunk-2C3EI2AE.mjs +2 -0
  13. package/dist/chunk-2CVU6NWY.mjs +2 -0
  14. package/dist/chunk-2KULYQGK.mjs +2 -0
  15. package/dist/chunk-2MMY7UEP.mjs +2 -0
  16. package/dist/chunk-2MZXRK27.mjs +2 -0
  17. package/dist/chunk-2SQUU2JC.mjs +2 -0
  18. package/dist/chunk-2TIMZ56O.mjs +2 -0
  19. package/dist/chunk-2U67LZ3G.mjs +2 -0
  20. package/dist/chunk-2XJ4RNKD.mjs +2 -0
  21. package/dist/chunk-34M6EPZS.mjs +2 -0
  22. package/dist/chunk-34VCRD7R.mjs +2 -0
  23. package/dist/chunk-35BWJ5C4.mjs +2 -0
  24. package/dist/chunk-36WAMUSA.mjs +2 -0
  25. package/dist/chunk-3BMAJDIQ.mjs +2 -0
  26. package/dist/chunk-3D6LN5S3.mjs +2 -0
  27. package/dist/chunk-3EIASELW.mjs +2 -0
  28. package/dist/chunk-3GTQGQKT.mjs +2 -0
  29. package/dist/chunk-3INB3FW4.mjs +2 -0
  30. package/dist/chunk-3MNVZNRB.mjs +2 -0
  31. package/dist/chunk-3MYEELGW.mjs +2 -0
  32. package/dist/chunk-3N3MHQJO.mjs +2 -0
  33. package/dist/chunk-3P7PCUGH.mjs +2 -0
  34. package/dist/chunk-3RYKLR2H.mjs +2 -0
  35. package/dist/chunk-3S63RUZR.mjs +2 -0
  36. package/dist/chunk-3SANPOMJ.mjs +2 -0
  37. package/dist/chunk-3WZ26A4R.mjs +2 -0
  38. package/dist/chunk-3XCWTJXT.mjs +2 -0
  39. package/dist/chunk-44DIFY3Z.mjs +2 -0
  40. package/dist/chunk-4S7O6FRQ.mjs +2 -0
  41. package/dist/chunk-4VCI2F4C.mjs +2 -0
  42. package/dist/chunk-4VM6PWQB.mjs +2 -0
  43. package/dist/chunk-54HR33Y7.mjs +2 -0
  44. package/dist/chunk-57U5I7DS.mjs +2 -0
  45. package/dist/chunk-5EFAN45A.mjs +2 -0
  46. package/dist/chunk-5MBM36TS.mjs +2 -0
  47. package/dist/chunk-5MJ2VTGU.mjs +2 -0
  48. package/dist/chunk-5NNIELBC.mjs +2 -0
  49. package/dist/chunk-5RLHKDBX.mjs +2 -0
  50. package/dist/chunk-5S5YRWQA.mjs +2 -0
  51. package/dist/chunk-5UKS5L4E.mjs +2 -0
  52. package/dist/chunk-5Y4F2ZDI.mjs +2 -0
  53. package/dist/chunk-62CQF3ZT.mjs +2 -0
  54. package/dist/chunk-6BJSCJVB.mjs +2 -0
  55. package/dist/chunk-6LBA6FC5.mjs +2 -0
  56. package/dist/chunk-6MWXNM2W.mjs +2 -0
  57. package/dist/chunk-6PHDPUJR.mjs +2 -0
  58. package/dist/chunk-6PVSMLW2.mjs +2 -0
  59. package/dist/chunk-6QMC4G56.mjs +2 -0
  60. package/dist/chunk-72E6GER5.mjs +2 -0
  61. package/dist/chunk-75VRO7QR.mjs +2 -0
  62. package/dist/chunk-775G67W7.mjs +2 -0
  63. package/dist/chunk-7BA4PILG.mjs +2 -0
  64. package/dist/chunk-7F7CTHZR.mjs +2 -0
  65. package/dist/chunk-7IA42JDR.mjs +2 -0
  66. package/dist/chunk-7IRDKLR4.mjs +2 -0
  67. package/dist/chunk-7OCNL7MU.mjs +2 -0
  68. package/dist/chunk-7PZZTFDI.mjs +2 -0
  69. package/dist/chunk-7RHACSYZ.mjs +2 -0
  70. package/dist/chunk-7UJHQ55S.mjs +2 -0
  71. package/dist/chunk-7XHIFNHP.mjs +2 -0
  72. package/dist/chunk-A25RBGOJ.mjs +2 -0
  73. package/dist/chunk-A2YQG7C3.mjs +2 -0
  74. package/dist/chunk-A4M62ZMS.mjs +2 -0
  75. package/dist/chunk-A7MUVXDY.mjs +2 -0
  76. package/dist/chunk-AFOZBRIE.mjs +2 -0
  77. package/dist/chunk-AGUQHF5C.mjs +2 -0
  78. package/dist/chunk-AIDNDZYW.mjs +2 -0
  79. package/dist/chunk-AJKJGBKI.mjs +2 -0
  80. package/dist/chunk-AKL3TYDT.mjs +2 -0
  81. package/dist/chunk-ALEG5DBQ.mjs +2 -0
  82. package/dist/chunk-AMCITGNJ.mjs +2 -0
  83. package/dist/chunk-AMNZQAZX.mjs +2 -0
  84. package/dist/chunk-AMROGKCT.mjs +2 -0
  85. package/dist/chunk-AQPZ6WUL.mjs +2 -0
  86. package/dist/chunk-ARRLZU6R.mjs +2 -0
  87. package/dist/chunk-ATH45VDQ.mjs +2 -0
  88. package/dist/chunk-B2JHRFTS.mjs +2 -0
  89. package/dist/chunk-B4USKWBW.mjs +2 -0
  90. package/dist/chunk-B732HAPF.mjs +2 -0
  91. package/dist/chunk-BA7IJY2G.mjs +2 -0
  92. package/dist/chunk-BG3OKCJ7.mjs +2 -0
  93. package/dist/chunk-BIQQK644.mjs +2 -0
  94. package/dist/chunk-BJH622GN.mjs +2 -0
  95. package/dist/chunk-BNMAOMNP.mjs +2 -0
  96. package/dist/chunk-BW4HBEGO.mjs +2 -0
  97. package/dist/chunk-C5KAFTZ3.mjs +2 -0
  98. package/dist/chunk-CASW56TW.mjs +2 -0
  99. package/dist/chunk-CD7KMIGU.mjs +2 -0
  100. package/dist/chunk-CJSF5JKB.mjs +2 -0
  101. package/dist/chunk-CMGC4ZLV.mjs +2 -0
  102. package/dist/chunk-CN2LBNLO.mjs +2 -0
  103. package/dist/chunk-CQASPV6D.mjs +2 -0
  104. package/dist/chunk-CQO4PUDE.mjs +2 -0
  105. package/dist/chunk-CSUQCPF2.mjs +2 -0
  106. package/dist/chunk-CVDSPNQS.mjs +2 -0
  107. package/dist/chunk-CWGTYGDX.mjs +2 -0
  108. package/dist/chunk-D2KVSXPQ.mjs +2 -0
  109. package/dist/chunk-D5JEIHHZ.mjs +2 -0
  110. package/dist/chunk-D5SYZGBZ.mjs +2 -0
  111. package/dist/chunk-DBWJABJM.mjs +2 -0
  112. package/dist/chunk-DCUKGXD3.mjs +2 -0
  113. package/dist/chunk-DE6QALY5.mjs +2 -0
  114. package/dist/chunk-DECBVMLY.mjs +2 -0
  115. package/dist/chunk-DFGP6SNR.mjs +2 -0
  116. package/dist/chunk-DH5MZTCP.mjs +2 -0
  117. package/dist/chunk-DNW3EED7.mjs +2 -0
  118. package/dist/chunk-DOL5OGDP.mjs +2 -0
  119. package/dist/chunk-DOVYO5J7.mjs +2 -0
  120. package/dist/chunk-DXN64R3I.mjs +2 -0
  121. package/dist/chunk-DYDHBPIJ.mjs +2 -0
  122. package/dist/chunk-EG66X7WY.mjs +2 -0
  123. package/dist/chunk-ENBAJKTB.mjs +2 -0
  124. package/dist/chunk-EOQUFY6S.mjs +2 -0
  125. package/dist/chunk-EPG5O752.mjs +2 -0
  126. package/dist/chunk-EPN3RSS5.mjs +2 -0
  127. package/dist/chunk-EQQEXT2L.mjs +2 -0
  128. package/dist/chunk-EQWFZXMI.mjs +2 -0
  129. package/dist/chunk-ERFUN7GL.mjs +2 -0
  130. package/dist/chunk-EYLLNGWB.mjs +2 -0
  131. package/dist/chunk-F2A3GVKY.mjs +2 -0
  132. package/dist/chunk-FIE3HRMW.mjs +2 -0
  133. package/dist/chunk-FMBU2VLG.mjs +2 -0
  134. package/dist/chunk-FZNNPIKD.mjs +2 -0
  135. package/dist/chunk-G2CECZIR.mjs +2 -0
  136. package/dist/chunk-G2HRCBNX.mjs +2 -0
  137. package/dist/chunk-G5RVZUAJ.mjs +2 -0
  138. package/dist/chunk-G6YR6FU7.mjs +2 -0
  139. package/dist/chunk-GCCNHU3Z.mjs +2 -0
  140. package/dist/chunk-GDT7ZODA.mjs +2 -0
  141. package/dist/chunk-GEQPIAGW.mjs +2 -0
  142. package/dist/chunk-GFVQVHJX.mjs +2 -0
  143. package/dist/chunk-GIEF7U5E.mjs +2 -0
  144. package/dist/chunk-GM3UACTG.mjs +2 -0
  145. package/dist/chunk-GMJO6PLC.mjs +2 -0
  146. package/dist/chunk-GPB7K4RS.mjs +2 -0
  147. package/dist/chunk-GQWTWJNH.mjs +2 -0
  148. package/dist/chunk-GTMXLZMW.mjs +2 -0
  149. package/dist/chunk-GVN4TGXD.mjs +2 -0
  150. package/dist/chunk-GXMZSBQV.mjs +2 -0
  151. package/dist/chunk-H5MM5WLQ.mjs +2 -0
  152. package/dist/chunk-HA47VK7T.mjs +2 -0
  153. package/dist/chunk-HAP7G4FA.mjs +2 -0
  154. package/dist/chunk-HE3JFFYP.mjs +2 -0
  155. package/dist/chunk-HFMR6JRU.mjs +2 -0
  156. package/dist/chunk-HJZQ5DDP.mjs +2 -0
  157. package/dist/chunk-HLVPKHVZ.mjs +2 -0
  158. package/dist/chunk-HTMY7TR4.mjs +2 -0
  159. package/dist/chunk-I255GCBU.mjs +2 -0
  160. package/dist/chunk-I4E437WM.mjs +2 -0
  161. package/dist/chunk-I6YPM7IO.mjs +2 -0
  162. package/dist/chunk-I7RRMDG2.mjs +2 -0
  163. package/dist/chunk-IA7AQQGJ.mjs +2 -0
  164. package/dist/chunk-IL32B3RZ.mjs +2 -0
  165. package/dist/chunk-IMTRC5ZF.mjs +2 -0
  166. package/dist/chunk-IP2X5PFJ.mjs +2 -0
  167. package/dist/chunk-IU7HY7MN.mjs +2 -0
  168. package/dist/chunk-IXWR5GAH.mjs +2 -0
  169. package/dist/chunk-IYS4S73L.mjs +2 -0
  170. package/dist/chunk-J2SBXZHQ.mjs +2 -0
  171. package/dist/chunk-J2TG2JDS.mjs +2 -0
  172. package/dist/chunk-J3MYRI2M.mjs +2 -0
  173. package/dist/chunk-J7IIKGHP.mjs +2 -0
  174. package/dist/chunk-J7LN5H5P.mjs +2 -0
  175. package/dist/chunk-J7T2QKO4.mjs +2 -0
  176. package/dist/chunk-JC2TXBKK.mjs +2 -0
  177. package/dist/chunk-JCLOELUH.mjs +2 -0
  178. package/dist/chunk-JLKFTYDD.mjs +2 -0
  179. package/dist/chunk-JWWJERTS.mjs +2 -0
  180. package/dist/chunk-JXBUA62Q.mjs +2 -0
  181. package/dist/chunk-K3EM6OJH.mjs +2 -0
  182. package/dist/chunk-KHEOXSFF.mjs +2 -0
  183. package/dist/chunk-KJTVSAUQ.mjs +2 -0
  184. package/dist/chunk-KRH3QQAE.mjs +2 -0
  185. package/dist/chunk-KTTXNMKM.mjs +2 -0
  186. package/dist/chunk-KU4OQJM4.mjs +2 -0
  187. package/dist/chunk-KUTKWXV3.mjs +2 -0
  188. package/dist/chunk-KWLD4ZNV.mjs +2 -0
  189. package/dist/chunk-L26PITXF.mjs +2 -0
  190. package/dist/chunk-L2U3TR7V.mjs +2 -0
  191. package/dist/chunk-LBMZOP3M.mjs +2 -0
  192. package/dist/chunk-LCFJ3DYH.mjs +2 -0
  193. package/dist/chunk-LCXXPL3V.mjs +2 -0
  194. package/dist/chunk-LDSROKCO.mjs +2 -0
  195. package/dist/chunk-LEB5YIXB.mjs +2 -0
  196. package/dist/chunk-LL36TYBL.mjs +2 -0
  197. package/dist/chunk-LNXUR52J.mjs +2 -0
  198. package/dist/chunk-LO7VOXZ4.mjs +2 -0
  199. package/dist/chunk-LRMU47PH.mjs +2 -0
  200. package/dist/chunk-LV5IDCA3.mjs +2 -0
  201. package/dist/chunk-LVKRKVKV.mjs +2 -0
  202. package/dist/chunk-LXZZ2JA4.mjs +2 -0
  203. package/dist/chunk-M3NOZMIF.mjs +2 -0
  204. package/dist/chunk-MGLRU5CB.mjs +2 -0
  205. package/dist/chunk-MJ3XKHS7.mjs +2 -0
  206. package/dist/chunk-MJEXCPK2.mjs +2 -0
  207. package/dist/chunk-MJN7LUJB.mjs +2 -0
  208. package/dist/chunk-MLBU67KY.mjs +2 -0
  209. package/dist/chunk-MM4F3YID.mjs +2 -0
  210. package/dist/chunk-MMEUMF5C.mjs +2 -0
  211. package/dist/chunk-MZO2IB2M.mjs +2 -0
  212. package/dist/chunk-N6MNPNRK.mjs +2 -0
  213. package/dist/chunk-NBR3GORO.mjs +2 -0
  214. package/dist/chunk-NND2G4FX.mjs +2 -0
  215. package/dist/chunk-NYFNH4UE.mjs +2 -0
  216. package/dist/chunk-NZLIVJKJ.mjs +2 -0
  217. package/dist/chunk-O23EHKWQ.mjs +2 -0
  218. package/dist/chunk-OA4RYNES.mjs +2 -0
  219. package/dist/chunk-ODDMIV5P.mjs +2 -0
  220. package/dist/chunk-OIMQXISC.mjs +2 -0
  221. package/dist/chunk-OPZEOYD3.mjs +2 -0
  222. package/dist/chunk-OUSBZ5TZ.mjs +2 -0
  223. package/dist/chunk-OWIGLX27.mjs +2 -0
  224. package/dist/chunk-OZCRMEIJ.mjs +2 -0
  225. package/dist/chunk-P3D4SL7F.mjs +2 -0
  226. package/dist/chunk-P7DTAVDI.mjs +2 -0
  227. package/dist/chunk-P7FKTSMI.mjs +2 -0
  228. package/dist/chunk-PCZGNPJ6.mjs +2 -0
  229. package/dist/chunk-PHIIXCXK.mjs +2 -0
  230. package/dist/chunk-PIFUJ555.mjs +2 -0
  231. package/dist/chunk-Q5UJYPDZ.mjs +2 -0
  232. package/dist/chunk-Q7B2OIJ4.mjs +2 -0
  233. package/dist/chunk-QEYTOWOU.mjs +2 -0
  234. package/dist/chunk-QHOQ6I6F.mjs +2 -0
  235. package/dist/chunk-QIMCD7FN.mjs +2 -0
  236. package/dist/chunk-QOXGWKS5.mjs +2 -0
  237. package/dist/chunk-QQ65LXCR.mjs +2 -0
  238. package/dist/chunk-QS6NTDA7.mjs +2 -0
  239. package/dist/chunk-QTUV7653.mjs +2 -0
  240. package/dist/chunk-QVEXKY6D.mjs +2 -0
  241. package/dist/chunk-QXELNHSQ.mjs +2 -0
  242. package/dist/chunk-QZ4P4LK6.mjs +2 -0
  243. package/dist/chunk-R4RWNOZZ.mjs +2 -0
  244. package/dist/chunk-R54ZOFCL.mjs +2 -0
  245. package/dist/chunk-R5EWFXZO.mjs +2 -0
  246. package/dist/chunk-R6B47RBR.mjs +2 -0
  247. package/dist/chunk-RB5P26XP.mjs +2 -0
  248. package/dist/chunk-RDD7MTCK.mjs +2 -0
  249. package/dist/chunk-RETGZ2QO.mjs +2 -0
  250. package/dist/chunk-RLMZGMBL.mjs +2 -0
  251. package/dist/chunk-S2PRHCD7.mjs +2 -0
  252. package/dist/chunk-S2VUV5MF.mjs +2 -0
  253. package/dist/chunk-S3IQAJUR.mjs +2 -0
  254. package/dist/chunk-S4TCVIUE.mjs +2 -0
  255. package/dist/chunk-S55GTXL6.mjs +2 -0
  256. package/dist/chunk-SK7XJ5YO.mjs +2 -0
  257. package/dist/chunk-SKC5JSK6.mjs +2 -0
  258. package/dist/chunk-SOI5IZGA.mjs +2 -0
  259. package/dist/chunk-SWHMD642.mjs +2 -0
  260. package/dist/chunk-SXG6HDDT.mjs +2 -0
  261. package/dist/chunk-T2MBQNUO.mjs +2 -0
  262. package/dist/chunk-T3XKVMHK.mjs +2 -0
  263. package/dist/chunk-T4DP7LRI.mjs +2 -0
  264. package/dist/chunk-TCISB4N7.mjs +2 -0
  265. package/dist/chunk-TITYJ7WN.mjs +2 -0
  266. package/dist/chunk-TKDY32WG.mjs +2 -0
  267. package/dist/chunk-TLUIMB3T.mjs +2 -0
  268. package/dist/chunk-TM2PZOZZ.mjs +2 -0
  269. package/dist/chunk-TR5D3NED.mjs +2 -0
  270. package/dist/chunk-TUZHI2ST.mjs +2 -0
  271. package/dist/chunk-TWOAKFYU.mjs +2 -0
  272. package/dist/chunk-U2JYVGSL.mjs +2 -0
  273. package/dist/chunk-U2VKN3NW.mjs +2 -0
  274. package/dist/chunk-UDFXNGVB.mjs +2 -0
  275. package/dist/chunk-UE6H2EFB.mjs +2 -0
  276. package/dist/chunk-UGH3VJA7.mjs +2 -0
  277. package/dist/chunk-UH5A6WI2.mjs +2 -0
  278. package/dist/chunk-UMSPBX47.mjs +2 -0
  279. package/dist/chunk-UQUPKK7H.mjs +2 -0
  280. package/dist/chunk-UUG44EJ6.mjs +2 -0
  281. package/dist/chunk-UUIZQAYB.mjs +2 -0
  282. package/dist/chunk-UXTIF4SE.mjs +2 -0
  283. package/dist/chunk-V3DDMG4T.mjs +2 -0
  284. package/dist/chunk-V5IMNCOW.mjs +2 -0
  285. package/dist/chunk-VAZ436R5.mjs +2 -0
  286. package/dist/chunk-VBQEM7UE.mjs +2 -0
  287. package/dist/chunk-VBQWRNCG.mjs +2 -0
  288. package/dist/chunk-VC4DTOYN.mjs +2 -0
  289. package/dist/chunk-VFGWEEF6.mjs +2 -0
  290. package/dist/chunk-VL7TB2BS.mjs +2 -0
  291. package/dist/chunk-VMKCACIX.mjs +2 -0
  292. package/dist/chunk-VOSXOVFJ.mjs +2 -0
  293. package/dist/chunk-VOYI3FUP.mjs +2 -0
  294. package/dist/chunk-VXX5PSJL.mjs +2 -0
  295. package/dist/chunk-W2BV2MJK.mjs +2 -0
  296. package/dist/chunk-W5NKN47F.mjs +2 -0
  297. package/dist/chunk-WAGQ66N7.mjs +2 -0
  298. package/dist/chunk-WCIYTZ4W.mjs +2 -0
  299. package/dist/chunk-WICZSZX3.mjs +2 -0
  300. package/dist/chunk-WIOVAFMS.mjs +2 -0
  301. package/dist/chunk-WK42L2U3.mjs +2 -0
  302. package/dist/chunk-WOFU7COZ.mjs +2 -0
  303. package/dist/chunk-WP4MKG7B.mjs +2 -0
  304. package/dist/chunk-WSAODKH7.mjs +2 -0
  305. package/dist/chunk-WSDRZRAF.mjs +2 -0
  306. package/dist/chunk-WUONXWR3.mjs +2 -0
  307. package/dist/chunk-X4TIH3XR.mjs +2 -0
  308. package/dist/chunk-XQTV34US.mjs +2 -0
  309. package/dist/chunk-XRDP6V4G.mjs +2 -0
  310. package/dist/chunk-XTEKXVOW.mjs +2 -0
  311. package/dist/chunk-Y22T3LN4.mjs +2 -0
  312. package/dist/chunk-Y455LP2X.mjs +2 -0
  313. package/dist/chunk-YBXO3SQM.mjs +2 -0
  314. package/dist/chunk-YEY6M2RR.mjs +2 -0
  315. package/dist/chunk-YGDT3IYH.mjs +2 -0
  316. package/dist/chunk-YJGCLKYZ.mjs +2 -0
  317. package/dist/chunk-YMALJ2Z5.mjs +2 -0
  318. package/dist/chunk-YN2ZGKC2.mjs +2 -0
  319. package/dist/chunk-YTBJB5BL.mjs +2 -0
  320. package/dist/chunk-YXPK3OOV.mjs +2 -0
  321. package/dist/chunk-YY2OR33B.mjs +2 -0
  322. package/dist/chunk-YY6JPJQ7.mjs +2 -0
  323. package/dist/chunk-ZDV2WLZP.mjs +2 -0
  324. package/dist/chunk-ZEQXSOR4.mjs +2 -0
  325. package/dist/chunk-ZJDIWK7J.mjs +2 -0
  326. package/dist/chunk-ZKFWQ5MW.mjs +2 -0
  327. package/dist/chunk-ZOCWWNZ2.mjs +2 -0
  328. package/dist/chunk-ZOPEDC5C.mjs +2 -0
  329. package/dist/chunk-ZUUNBO7D.mjs +2 -0
  330. package/dist/chunk-ZZDDTVTP.mjs +2 -0
  331. package/dist/copy-button.mjs +1 -1
  332. package/dist/footer.mjs +1 -1
  333. package/dist/form.d.ts +3 -3
  334. package/dist/form.mjs +1 -1
  335. package/dist/icons/expanding-arrow.mjs +1 -1
  336. package/dist/icons/index.mjs +1 -1
  337. package/dist/icons/loading-circle.mjs +1 -1
  338. package/dist/icons/loading-spinner.mjs +1 -1
  339. package/dist/icons/logo.mjs +1 -1
  340. package/dist/icons/logotype.mjs +1 -1
  341. package/dist/index.css +1 -1
  342. package/dist/index.d.ts +12 -1
  343. package/dist/index.mjs +1 -1
  344. package/dist/input-select.d.ts +17 -0
  345. package/dist/input-select.mjs +2 -0
  346. package/dist/label.mjs +1 -1
  347. package/dist/link-preview.mjs +1 -1
  348. package/dist/max-width-wrapper.mjs +1 -1
  349. package/dist/modal.mjs +1 -1
  350. package/dist/nav-mobile.mjs +1 -1
  351. package/dist/nav.mjs +1 -1
  352. package/dist/popover.mjs +1 -1
  353. package/dist/radio-group.mjs +1 -1
  354. package/dist/switch.d.ts +3 -2
  355. package/dist/switch.mjs +1 -1
  356. package/dist/tab-select.mjs +1 -1
  357. package/dist/tooltip.d.ts +1 -1
  358. package/dist/tooltip.mjs +1 -1
  359. package/package.json +3 -1
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as we,b as xe}from"./chunk-AUBFB4SI.mjs";var ie=we((It,ne)=>{var I=1e3,T=I*60,_=T*60,S=_*24,ze=S*7,Re=S*365.25;ne.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Ne(e);if(r==="number"&&isFinite(e))return t.long?De(e):Ue(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ne(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\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(!!t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Re;case"weeks":case"week":case"w":return r*ze;case"days":case"day":case"d":return r*S;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_;case"minutes":case"minute":case"mins":case"min":case"m":return r*T;case"seconds":case"second":case"secs":case"sec":case"s":return r*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ue(e){var t=Math.abs(e);return t>=S?Math.round(e/S)+"d":t>=_?Math.round(e/_)+"h":t>=T?Math.round(e/T)+"m":t>=I?Math.round(e/I)+"s":e+"ms"}function De(e){var t=Math.abs(e);return t>=S?B(e,t,S,"day"):t>=_?B(e,t,_,"hour"):t>=T?B(e,t,T,"minute"):t>=I?B(e,t,I,"second"):e+" ms"}function B(e,t,r,o){var a=t>=r*1.5;return Math.round(e/r)+" "+o+(a?"s":"")}});var H=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",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},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:49,yearly:39,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]},limits:{links:5e3,clicks:25e4,domains:20,tags:150,users:15},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:"5,000 links/mo"},{text:"250K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}},{text:"Event callbacks (Beta)",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",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:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],ve=H.find(e=>e.name==="Free"),Ae=H.filter(e=>e.name==="Pro"||e.name==="Business");var K=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",ke=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Ee=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",Pe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",Ie=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${K}`,"api.localhost:8888"]),Te=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",_e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var O="cl7pj5kq4006835rbjlt2ofka";var Le=["stats","changelog","terms","privacy","abuse"],Ce=[{id:"clce1z7ch00j0rbstbjufva4j",slug:K,verified:!0,primary:!0,archived:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:O},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:O},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:O},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:O}]:[]],Me=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code API",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}];function Oe(e,t={digits:1}){if(!e)return"0";if(t.full)return Intl.NumberFormat("en-US").format(e);let r=[{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=r.slice().reverse().find(function(s){return e>=s.value});return a?(e/a.value).toFixed(t.digits).replace(o,"$1")+a.symbol:"0"}var le=xe(ie(),1),Be=(e,{withAgo:t}={})=>{if(!e)return"Never";let r=Date.now()-new Date(e).getTime();return r<1e3?"Just now":r>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,le.default)(r)}${t?" ago":""}`};var G=e=>{try{return new URL(e),!0}catch{return!1}},Ge=e=>{if(G(e))return new URL(e).toString();try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{return null}};var Ve=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Fe=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),$e=new RegExp(/^[a-zA-Z0-9\-]+$/);var Ye=e=>{if(G(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};async function Je(e,t){let r=await fetch(e,t);if(!r.ok){let o=await r.text(),a=new Error(o);throw a.status=r.status,a}return r.json()}function ce(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ce(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function de(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ce(e))&&(o&&(o+=" "),o+=t);return o}var Z="-";function He(e){let t=qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function a(n){let l=n.split(Z);return l[0]===""&&l.length!==1&&l.shift(),me(l,t)||Ke(n)}function s(n,l){let u=r[n]||[];return l&&o[n]?[...u,...o[n]]:u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function me(e,t){var n;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?me(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Z);return(n=t.validators.find(({validator:l})=>l(s)))==null?void 0:n.classGroupId}var ue=/^\[(.+)\]$/;function Ke(e){if(ue.test(e)){let t=ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function qe(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return We(Object.entries(e.classGroups),r).forEach(([s,n])=>{q(n,o,s,t)}),o}function q(e,t,r,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:pe(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Ze(a)){q(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,n])=>{q(n,pe(t,s),r,o)})})}function pe(e,t){let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function Ze(e){return e.isThemeGetter}function We(e,t){return t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,l])=>[t+n,l])):s);return[r,a]}):e}function Xe(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function a(s,n){r.set(s,n),t++,t>e&&(t=0,o=r,r=new Map)}return{get(s){let n=r.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){r.has(s)?r.set(s,n):a(s,n)}}}var fe="!";function Qe(e){let t=e.separator,r=t.length===1,o=t[0],a=t.length;return function(n){let l=[],u=0,m=0,p;for(let f=0;f<n.length;f++){let g=n[f];if(u===0){if(g===o&&(r||n.slice(f,f+a)===t)){l.push(n.slice(m,f)),m=f+a;continue}if(g==="/"){p=f;continue}}g==="["?u++:g==="]"&&u--}let h=l.length===0?n:n.substring(m),b=h.startsWith(fe),x=b?h.substring(1):h,E=p&&p>m?p-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:E}}}function et(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t}function tt(e){return{cache:Xe(e.cacheSize),splitModifiers:Qe(e),...He(e)}}var rt=/\s+/;function ot(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=new Set;return e.trim().split(rt).map(n=>{let{modifiers:l,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=r(n),h=o(p?m.substring(0,p):m),b=Boolean(p);if(!h){if(!p)return{isTailwindClass:!1,originalClassName:n};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:n};b=!1}let x=et(l).join(":"),E=u?x+fe:x;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:n,hasPostfixModifier:b}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:l,classGroupId:u,hasPostfixModifier:m}=n,p=l+u;return s.has(p)?!1:(s.add(p),a(u,m).forEach(h=>s.add(l+h)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function st(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=he(t))&&(o&&(o+=" "),o+=r);return o}function he(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=he(e[o]))&&(r&&(r+=" "),r+=t);return r}function at(e,...t){let r,o,a,s=n;function n(u){let m=t.reduce((p,h)=>h(p),e());return r=tt(m),o=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){let m=o(u);if(m)return m;let p=ot(u,r);return a(u,p),p}return function(){return s(st.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,nt=/^\d+\/\d+$/,it=new Set(["px","full","screen"]),lt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ct=/\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$/,dt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ut=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return P(e)||it.has(e)||nt.test(e)}function A(e){return L(e,"length",xt)}function P(e){return Boolean(e)&&!Number.isNaN(Number(e))}function j(e){return L(e,"number",P)}function z(e){return Boolean(e)&&Number.isInteger(Number(e))}function mt(e){return e.endsWith("%")&&P(e.slice(0,-1))}function i(e){return ge.test(e)}function k(e){return lt.test(e)}var ft=new Set(["length","size","percentage"]);function ht(e){return L(e,ft,be)}function gt(e){return L(e,"position",be)}var bt=new Set(["image","url"]);function yt(e){return L(e,bt,At)}function wt(e){return L(e,"",vt)}function R(){return!0}function L(e,t,r){let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1}function xt(e){return ct.test(e)&&!dt.test(e)}function be(){return!1}function vt(e){return ut.test(e)}function At(e){return pt.test(e)}function kt(){let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),n=c("borderSpacing"),l=c("borderWidth"),u=c("contrast"),m=c("grayscale"),p=c("hueRotate"),h=c("invert"),b=c("gap"),x=c("gradientColorStops"),E=c("gradientColorStopPositions"),f=c("inset"),g=c("margin"),v=c("opacity"),y=c("padding"),W=c("saturate"),V=c("scale"),X=c("sepia"),Q=c("skew"),ee=c("space"),te=c("translate"),F=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",i,t],d=()=>[i,t],re=()=>["",w,A],N=()=>["auto",P,i],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["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","plus-lighter"],J=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",i],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,j],D=()=>[P,i];return{cacheSize:500,separator:":",theme:{colors:[R],spacing:[w,A],blur:["none","",k,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",k,i],borderSpacing:d(),borderWidth:re(),contrast:M(),grayscale:C(),hueRotate:D(),invert:C(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[mt,A],inset:Y(),margin:Y(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:C(),skew:D(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[k]}],"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(),i]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",z,i]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",z,i]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",z,i]},i]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[z,i]},i]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"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",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[R]}],"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",i]}],"line-clamp":[{"line-clamp":["none",P,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,A]}],"underline-offset":[{"underline-offset":["auto",w,i]}],"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",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),gt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:U()}],"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:["",...U()]}],"outline-offset":[{"outline-offset":[w,i]}],"outline-w":[{outline:[w,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[w,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,wt]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[W]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"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",i]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[z,i]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"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",i]}],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",i]}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,A,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ye=at(kt);function Et(...e){return ye(de(e))}export{Se as a,Le as b,Me as c,Oe as d,Be as e,Ge as f,Ye as g,Je as h,Et as i};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-YBXO3SQM.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{Command as s,useCommandState as g}from"cmdk";import{useEffect as h,useRef as y,useState as c}from"react";import{Check as v,ChevronDown as x,Search as w,X as b}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function N({items:m,handleSelect:d,placeholder:p,icon:f}){let r=y(null),[l,n]=c(!1),[i,u]=c("");return h(()=>{let e=t=>{r.current&&!r.current.contains(t.target)&&n(!1)};if(l)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[r,l]),o(s,{ref:r,className:"relative w-full",loop:!0,children:[o("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:f||a(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-9 px-8",children:[a(()=>{let e=g(t=>t.filtered.count===0);return a(s.Input,{placeholder:p||"Search...",autoFocus:l,onFocus:()=>n(!0),value:i,onValueChange:u,onKeyDown:t=>{t.key==="Escape"?(t.preventDefault(),n(!1)):t.key==="Enter"&&e?n(!1):t.key.match(/^[a-z0-9]$/i)&&!t.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),i?a("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 my-auto",children:a(b,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(x,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&o(s.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[o(s.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),m.map(e=>o(s.Item,{value:e.value,onSelect:()=>{d(e),u(e.value),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[e.value,a(v,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{N as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-J7T2QKO4.mjs";import g from"next/image";import{useEffect as i,useState as n}from"react";import{jsx as u}from"react/jsx-runtime";function E(t){let[c,l]=n(!0),[s,a]=n(t.src);i(()=>a(t.src),[t.src]);let m=o=>{l(!1);let e=o.target;e.naturalWidth<20&&e.naturalHeight<20&&a(`https://avatar.vercel.sh/${t.alt}`)};return u(g,{...t,src:s,alt:t.alt,className:r(c?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{a(`https://avatar.vercel.sh/${t.alt}`)},unoptimized:!0})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-A7MUVXDY.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-TM2PZOZZ.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as l}from"./chunk-J7T2QKO4.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{e as s}from"./chunk-3XCWTJXT.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",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:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as b}from"./chunk-IMTRC5ZF.mjs";import h from"js-cookie";import{useEffect as P,useState as L}from"react";function w(e,o,t){let[r,u]=L(()=>{let a=h.get(e);return a?JSON.parse(a):o});return P(()=>{let a=()=>{let n=h.get(e);n&&u(JSON.parse(n))};return window.addEventListener("storage",a),()=>{window.removeEventListener("storage",a)}},[e]),[r,a=>{u(a),h.set(e,JSON.stringify(a),t)}]}import{useEffect as R,useState as A}from"react";function S(){let[e,o]=A(null);return R(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let r=t.offsetTop-1,u=new IntersectionObserver(n=>{var f,d,m;let c=n[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+r;for(let g=1;g<n.length;g++){let p=n[g];if(!p)break;(p.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<r)&&(c=p)}let s=c.target;for(;s&&s.getBoundingClientRect().bottom<r;)s=(d=i.get(s))==null?void 0:d.next;for(;s&&s.getBoundingClientRect().top>l;)s=(m=i.get(s))==null?void 0:m.prev;s&&o(s.getAttribute("href"))},{threshold:1,rootMargin:`-${r}px 0px 0px 0px`}),i=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(n=>u.observe(n)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as V,useState as k}from"react";function v(e,{threshold:o=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:u=!1}){let[i,a]=k(),n=(i==null?void 0:i.isIntersecting)&&u,c=([l])=>{a(l)};return V(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||n||!l)return;let f={threshold:o,root:t,rootMargin:r},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(o),t,r,n]),i}import{useEffect as M,useState as N}from"react";function x(e,o){let[t,r]=N(o);return M(()=>{let i=window.localStorage.getItem(e);i&&r(JSON.parse(i))},[e]),[t,i=>{r(i),window.localStorage.setItem(e,JSON.stringify(i))}]}import{useEffect as j,useState as E}from"react";function O(){let[e,o]=E(null),[t,r]=E(null);return j(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?o("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?o("tablet"):o("desktop"),r({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import q from"swr";import{toast as J}from"sonner";function T(e){let{data:o,isLoading:t,mutate:r}=q(e,b);return{data:o,isLoading:t,update:async(u,i)=>J.promise(r(u(o),{optimisticData:i,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:"Updating...",success:"Successfully updated",error:"Failed to update"})}}import{usePathname as U,useRouter as $,useSearchParams as z}from"next/navigation";function y(){let e=U(),o=$(),t=z(),r=Object.fromEntries(t);return{pathname:e,router:o,searchParams:t,searchParamsObj:r,queryParams:({set:a,del:n,replace:c,getNewPath:l})=>{let s=new URLSearchParams(t);a&&Object.entries(a).forEach(([m,g])=>s.set(m,g)),n&&(Array.isArray(n)?n.forEach(m=>s.delete(m)):s.delete(n));let f=s.toString(),d=`${e}${f.length>0?`?${f}`:""}`;if(l)return d;c?o.replace(d):o.push(d)},getQueryString:(a,n)=>{let c=new URLSearchParams(t);a&&Object.entries(a).forEach(([s,f])=>c.set(s,f)),n!=null&&n.ignore&&n.ignore.forEach(s=>c.delete(s));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as B,useEffect as C,useState as D}from"react";function I(e){let[o,t]=D(!1),r=B(()=>{t(window.scrollY>e)},[e]);return C(()=>(window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)),[r]),C(()=>{r()},[r]),o}export{w as a,S as b,v as c,x as d,O as e,T as f,y as g,I as h};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-J2TG2JDS.mjs";import{h as x}from"./chunk-ATH45VDQ.mjs";import{a as v}from"./chunk-4VCI2F4C.mjs";import{a as l,b as g,h as p,i as c}from"./chunk-34VCRD7R.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as i}from"./chunk-ERFUN7GL.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{Command as o,useCommandState as h}from"cmdk";import{useEffect as g,useRef as v,useState as i}from"react";import{Check as x,ChevronDown as b,Search as w,X as N}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function C({items:d,placeholder:p,icon:f}){let r=v(null),[l,n]=i(!1),[c,u]=i(""),[y,m]=i(null);return g(()=>{let t=a=>{r.current&&!r.current.contains(a.target)&&n(!1)};if(l)return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r,l]),s(o,{ref:r,className:"relative",loop:!0,children:[s("div",{className:"group mt-1 rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:f||e(w,{className:"h-5 w-5 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[e(()=>{let t=h(a=>a.filtered.count===0);return e(o.Input,{placeholder:p||"Search...",autoFocus:l,onFocus:()=>n(!0),value:c,onValueChange:u,onKeyDown:a=>{a.key==="Escape"||a.key==="Enter"&&t?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),y?e("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:e(N,{className:"h-7 w-7 pr-3 text-gray-400"})}):e(b,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(o.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(o.Empty,{className:"text-sm text-gray-600",children:['No results found for "',c,'"']}),d.map(t=>e(o.Item,{value:t.value,onSelect:()=>{m(t),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:e(x,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},t.id))]})]})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as r}from"./chunk-34VCRD7R.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-EG66X7WY.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-U2VKN3NW.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{c as i}from"./chunk-ERFUN7GL.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as l}from"./chunk-VFGWEEF6.mjs";import{motion as n}from"framer-motion";import{jsx as e,jsxs as o}from"react/jsx-runtime";function m({options:i,selected:r,selectAction:a}){return e("div",{className:"relative inline-flex items-center space-x-1",children:i.map(t=>o("button",{className:l("relative z-10 px-3 py-1 text-sm font-medium capitalize",{"transition-all hover:text-gray-500":t!==r}),onClick:()=>a(t),children:[e("p",{children:t}),t===r&&e(n.div,{layoutId:i.join("-"),className:"absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50",style:{zIndex:-1},transition:{duration:.25}})]},t))})}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{Command as s,useCommandState as f}from"cmdk";import{useEffect as g,useRef as y,useState as u}from"react";import{Check as v,ChevronDown as x,Search as b,X as w}from"lucide-react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function N({items:m,handleSelect:C,name:d,placeholder:p,icon:h}){let r=y(null),[l,n]=u(!1),[i,c]=u("");return g(()=>{let e=t=>{r.current&&!r.current.contains(t.target)&&n(!1)};if(l)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[r,l]),o(s,{ref:r,className:"relative w-full",loop:!0,children:[o("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:h||a(b,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-9 px-8",children:[a(()=>{let e=f(t=>t.filtered.count===0);return a(s.Input,{name:d||"input-select",placeholder:p||"Search...",autoFocus:l,onFocus:()=>n(!0),value:i,onValueChange:c,onKeyDown:t=>{t.key==="Escape"?(t.preventDefault(),n(!1)):t.key==="Enter"&&e?n(!1):t.key.match(/^[a-z0-9]$/i)&&!t.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),i?a("button",{onClick:()=>c(""),className:"absolute inset-y-0 right-0 my-auto",children:a(w,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(x,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&o(s.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[o(s.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),m.map(e=>o(s.Item,{value:e.value,onSelect:()=>{c(e.value),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[e.value,a(v,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{N as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as c}from"./chunk-WIOVAFMS.mjs";import{i}from"./chunk-IMTRC5ZF.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:d,thumbTranslate:r,checked:h=!0,loading:n=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:h,name:"switch",...o&&{onCheckedChange:o},disabled:a,className:i(n?"bg-gray-200":a?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!n&&e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,r)})})}export{g as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-GTMXLZMW.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as s}from"./chunk-ATH45VDQ.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",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:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as s,e as p}from"./chunk-5RLHKDBX.mjs";import*as i from"@radix-ui/react-tooltip";import c from"linkify-react";import{HelpCircle as x}from"lucide-react";import d from"next/link";import{useState as f}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function N({children:t}){return e(i.Provider,{delayDuration:100,children:t})}function m({children:t,content:o,side:n="top"}){let[r,l]=f(!1);return a(i.Root,{open:r,onOpenChange:l,children:[e(i.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(i.Portal,{children:e(i.Content,{sideOffset:8,side:n,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function T({title:t,cta:o,href:n,target:r,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(n?e(d,{href:n,...r?{target:r}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function k({title:t,cta:o,href:n}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function w({children:t}){return e("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:e(c,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function P({content:t}){return e(m,{content:t,children:e(x,{className:"h-4 w-4 text-gray-500"})})}function C({value:t,unit:o="total clicks",children:n,lastClicked:r}){return(!t||t<1e3)&&!r?n:e(m,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(t||0,{full:!0})," ",o]}),r&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",p(r,{withAgo:!0})]})]}),children:n})}export{N as a,m as b,T as c,k as d,w as e,P as f,C as g};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-WIOVAFMS.mjs";import{a as l}from"./chunk-233KTWN5.mjs";import{i as r}from"./chunk-IMTRC5ZF.mjs";import{jsx as t,jsxs as u}from"react/jsx-runtime";function x({text:g,variant:e="primary",className:i,loading:d,icon:b,shortcut:o,disabledTooltip:a,...n}){return a?t(s,{content:a,children:u("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e.endsWith("outline")},i),children:[t("p",{children:g}),o&&t("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e.endsWith("outline")}),children:o})]})}):u("button",{type:n.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",n.disabled||d?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 duration-75 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger","border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":e==="danger-outline"},i),disabled:n.disabled||d,...n,children:[d?t(l,{}):b||null,g&&t("p",{children:g}),o&&t("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:o})]})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{g as e}from"./chunk-VFGWEEF6.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:s,className:i,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-UH5A6WI2.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as l}from"./chunk-34VCRD7R.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{e as y}from"./chunk-3XCWTJXT.mjs";import{a as o}from"./chunk-TWOAKFYU.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{f as g,g as f,h as b}from"./chunk-IMTRC5ZF.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-VXX5PSJL.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,h as d,i as n}from"./chunk-IMTRC5ZF.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-WIOVAFMS.mjs";import{a as s}from"./chunk-233KTWN5.mjs";import{i as g}from"./chunk-IMTRC5ZF.mjs";import{jsx as r,jsxs as h}from"react/jsx-runtime";function m({text:b,variant:e="primary",className:l,loading:o,icon:d,shortcut:i,disabledTooltip:n,...t}){let a=h(n?"div":"button",{type:t.onClick?"button":"submit",className:g("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",t.disabled||o?`cursor-not-allowed text-gray-400 ${e.endsWith("outline")?"border-transparent bg-transparent":"border-gray-200 bg-gray-100"}`:{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 duration-75 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger","border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":e==="danger-outline"},l),disabled:t.disabled||o,...t,children:[o?r(s,{}):d||null,b&&r("p",{children:b}),i&&r("kbd",{className:g("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:i})]});return n?r(u,{content:n,children:a}):a}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-YGDT3IYH.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,g as d,h as n}from"./chunk-ERFUN7GL.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-7PZZTFDI.mjs";import{a as g}from"./chunk-OPZEOYD3.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function p({text:n,variant:e="primary",loading:i,icon:a,shortcut:r,disabledTooltip:b,...o}){return b?t(s,{content:b,children:l("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):l("button",{type:o.onClick?"button":"submit",className:d("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||i?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger"},"h-8"),disabled:o.disabled||i,...o,children:[i?t(g,{}):a||null,n&&t("p",{children:n}),r&&t("kbd",{className:d("hidden rounded px-2 py-0.5 text-xs font-light md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary"}),children:r})]})}export{p as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as C}from"./chunk-VFGWEEF6.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("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{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-6PVSMLW2.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,h as d,i as n}from"./chunk-34VCRD7R.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{Command as n,useCommandState as h}from"cmdk";import{useEffect as g,useRef as x,useState as i}from"react";import{Check as b,ChevronDown as v,Search as w,X as N}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function C({items:d,placeholder:f,icon:p}){let r=x(null),[l,o]=i(!1),[u,c]=i(""),[y,m]=i(null);return g(()=>{let t=a=>{r.current&&!r.current.contains(a.target)&&o(!1)};if(l)return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r,l]),s(n,{ref:r,className:"absolute w-full",loop:!0,children:[s("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:p||e(w,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[e(()=>{let t=h(a=>a.filtered.count===0);return e(n.Input,{placeholder:f||"Search...",autoFocus:l,onFocus:()=>o(!0),value:u,onValueChange:c,onKeyDown:a=>{a.key==="Escape"||a.key==="Enter"&&t?o(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&o(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),y?e("button",{onClick:()=>{m(null),c("")},className:"absolute inset-y-0 right-0 my-auto",children:e(N,{className:"h-7 w-7 pr-3 text-gray-400"})}):e(v,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(n.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(n.Empty,{className:"text-sm text-gray-600",children:['No results found for "',u,'"']}),d.map(t=>e(n.Item,{value:t.value,onSelect:()=>{m(t),o(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:e(b,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},t.id))]})]})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-44DIFY3Z.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as g}from"./chunk-3XCWTJXT.mjs";import{i}from"./chunk-IMTRC5ZF.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 w({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:u,preventDefaultClose:f}){let p=D(),m=({dragged:e}={})=>{f&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=g();return b&&!u?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 border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as f}from"./chunk-HYYV36TO.mjs";import{i}from"./chunk-J7T2QKO4.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-VOYI3FUP.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{c as d,d as t,g as n}from"./chunk-VFGWEEF6.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as l}from"./chunk-5RLHKDBX.mjs";import{motion as n}from"framer-motion";import{jsx as e,jsxs as o}from"react/jsx-runtime";function m({options:i,selected:r,selectAction:a}){return e("div",{className:"relative inline-flex items-center space-x-1",children:i.map(t=>o("button",{className:l("relative z-10 px-3 py-1 text-sm font-medium capitalize",{"transition-all hover:text-gray-500":t!==r}),onClick:()=>a(t),children:[e("p",{children:t}),t===r&&e(n.div,{layoutId:i.join("-"),className:"absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50",style:{zIndex:-1},transition:{duration:.25}})]},t))})}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-QEYTOWOU.mjs";import{a as l}from"./chunk-VOSXOVFJ.mjs";import{i as t}from"./chunk-34VCRD7R.mjs";import{jsx as o,jsxs as u}from"react/jsx-runtime";function h({text:i,variant:e="primary",className:a,loading:g,icon:d,shortcut:r,disabledTooltip:b,...n}){return b?o(s,{content:b,children:u("div",{className:t("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e.endsWith("outline")},a),children:[d,o("p",{className:t(r&&"flex-1 text-left"),children:i}),r&&o("kbd",{className:t("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e.endsWith("outline")}),children:r})]})}):u("button",{type:n.onClick?"button":"submit",className:t("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",n.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 duration-75 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger","border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":e==="danger-outline"},a),disabled:n.disabled||g,...n,children:[g?o(l,{}):d||null,o("p",{className:t(r&&"flex-1 text-left"),children:i}),r&&o("kbd",{className:t("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:r})]})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{h as b}from"./chunk-34VCRD7R.mjs";import p from"js-cookie";import{useEffect as R,useState as A}from"react";function w(e,r,t){let[n,u]=A(()=>{let i=p.get(e);return i?JSON.parse(i):r});return R(()=>{let i=()=>{let o=p.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e]),[n,i=>{u(i),p.set(e,JSON.stringify(i),t)}]}import{useEffect as V,useState as k}from"react";function S(){let[e,r]=k(null);return V(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let n=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,g;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+n;for(let m=1;m<o.length;m++){let h=o[m];if(!h)break;(h.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<n)&&(c=h)}let s=c.target;for(;s&&s.getBoundingClientRect().bottom<n;)s=(d=a.get(s))==null?void 0:d.next;for(;s&&s.getBoundingClientRect().top>l;)s=(g=a.get(s))==null?void 0:g.prev;s&&r(s.getAttribute("href"))},{threshold:1,rootMargin:`-${n}px 0px 0px 0px`}),a=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as M,useState as N}from"react";function v(e,{threshold:r=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:u=!1}){let[a,i]=N(),o=(a==null?void 0:a.isIntersecting)&&u,c=([l])=>{i(l)};return M(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:r,root:t,rootMargin:n},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(r),t,n,o]),a}import{useEffect as j,useState as q}from"react";function x(e,r){let[t,n]=q(r);return j(()=>{let a=window.localStorage.getItem(e);a&&n(JSON.parse(a))},[e]),[t,a=>{n(a),window.localStorage.setItem(e,JSON.stringify(a))}]}import{useEffect as J,useState as E}from"react";function O(){let[e,r]=E(null),[t,n]=E(null);return J(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?r("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?r("tablet"):r("desktop"),n({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import U from"swr";import{toast as $}from"sonner";function T(e,r){let{data:t,isLoading:n,mutate:u}=U(e,b);return{data:t,isLoading:n,update:async(a,i)=>$.promise(u(a(t),{optimisticData:i,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(r==null?void 0:r.loading)||"Updating...",success:(r==null?void 0:r.success)||"Successfully updated",error:(r==null?void 0:r.error)||"Failed to update"})}}import{usePathname as y,useRouter as z,useSearchParams as B}from"next/navigation";function I(){let e=y(),r=z(),t=B(),n=Object.fromEntries(t);return{pathname:e,router:r,searchParams:t,searchParamsObj:n,queryParams:({set:i,del:o,replace:c,getNewPath:l})=>{let s=new URLSearchParams(t);i&&Object.entries(i).forEach(([g,m])=>s.set(g,m)),o&&(Array.isArray(o)?o.forEach(g=>s.delete(g)):s.delete(o));let f=s.toString(),d=`${e}${f.length>0?`?${f}`:""}`;if(l)return d;c?r.replace(d):r.push(d)},getQueryString:(i,o)=>{let c=new URLSearchParams(t);i&&Object.entries(i).forEach(([s,f])=>c.set(s,f)),o!=null&&o.ignore&&o.ignore.forEach(s=>c.delete(s));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as D,useEffect as P,useState as Q}from"react";function L(e){let[r,t]=Q(!1),n=D(()=>{t(window.scrollY>e)},[e]);return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),P(()=>{n()},[n]),r}export{w as a,S as b,v as c,x as d,O as e,T as f,I as g,L as h};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{h as e}from"./chunk-ERFUN7GL.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:s,className:i,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-7PZZTFDI.mjs";import{a as b}from"./chunk-OPZEOYD3.mjs";import{i}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function x({text:n,variant:e="primary",className:u,loading:g,icon:d,shortcut:r,disabledTooltip:a,...o}){return a?t(s,{content:a,children:l("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):l("button",{type:o.onClick?"button":"submit",className:i("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger"},u),disabled:o.disabled||g,...o,children:[g?t(b,{}):d||null,n&&t("p",{children:n}),r&&t("kbd",{className:i("hidden rounded px-2 py-0.5 text-xs font-light md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline"}),children:r})]})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as c}from"./chunk-WIOVAFMS.mjs";import{i}from"./chunk-IMTRC5ZF.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:d,thumbTranslate:r,checked:h=!0,loading:n=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:h,name:"switch",...o&&{onCheckedChange:o},disabled:a,className:i(n?"bg-gray-100":a?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!n&&e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,r)})})}export{g as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as n}from"./chunk-34VCRD7R.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<20&&a.naturalHeight<20&&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{a as i}from"./chunk-MJEXCPK2.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as s}from"./chunk-HTMY7TR4.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",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:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-7RHACSYZ.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-T4DP7LRI.mjs";import{h as x}from"./chunk-R54ZOFCL.mjs";import{a as v}from"./chunk-3P7PCUGH.mjs";import{a as l,b as g,h as p,i as c}from"./chunk-GTMXLZMW.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-5RLHKDBX.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 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-TLUIMB3T.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b}from"./chunk-7PZZTFDI.mjs";import{a as g}from"./chunk-OPZEOYD3.mjs";import{i}from"./chunk-5RLHKDBX.mjs";import{jsx as r,jsxs as l}from"react/jsx-runtime";function m({text:n,variant:e="primary",loading:a,icon:d,shortcut:o,disabledTooltip:s,...t}){return s?r(b,{content:s,children:l("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[r("p",{children:n}),o&&r("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):(console.log({className:t.className}),l("button",{type:t.onClick?"button":"submit",className:i("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",t.disabled||a?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger"},t.className),disabled:t.disabled||a,...t,children:[a?r(g,{}):d||null,n&&r("p",{children:n}),o&&r("kbd",{className:i("hidden rounded px-2 py-0.5 text-xs font-light md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary"}),children:o})]}))}export{m as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i}from"./chunk-34VCRD7R.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 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-7PZZTFDI.mjs";import{a as g}from"./chunk-OPZEOYD3.mjs";import{i as a}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function x({text:n,variant:e="primary",loading:i,icon:d,shortcut:o,disabledTooltip:b,...r}){return b?t(s,{content:b,children:l("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[t("p",{children:n}),o&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):l("button",{type:r.onClick?"button":"submit",className:a(`group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all ${r.className}`,r.disabled||i?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger"}),disabled:r.disabled||i,...r,children:[i?t(g,{}):d||null,n&&t("p",{children:n}),o&&t("kbd",{className:a("hidden rounded px-2 py-0.5 text-xs font-light md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary"}),children:o})]})}export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as s}from"./chunk-WIOVAFMS.mjs";import{i}from"./chunk-IMTRC5ZF.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:r,trackDimensions:c,thumbDimensions:l,thumbTranslate:o,checked:d=!0,disabled:n=!1,disabledTooltip:a}){return a?e(s,{content:a,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",...r&&{onCheckedChange:r},disabled:n,className:i(n?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:i(`radix-state-checked:${o}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,o)})})}export{g as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as u}from"./chunk-J2SBXZHQ.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,h as d,i as n}from"./chunk-J7T2QKO4.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};