@dub/ui 0.1.69 → 0.2.1

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 (486) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/alert.mjs +1 -1
  3. package/dist/animated-size-container.d.ts +47 -47
  4. package/dist/animated-size-container.mjs +1 -1
  5. package/dist/avatar.mjs +1 -1
  6. package/dist/badge.d.ts +1 -1
  7. package/dist/badge.mjs +1 -1
  8. package/dist/blur-image.mjs +1 -1
  9. package/dist/button.mjs +1 -1
  10. package/dist/card-list/card-list-card.mjs +1 -1
  11. package/dist/card-list/card-list.mjs +1 -1
  12. package/dist/carousel.mjs +1 -1
  13. package/dist/checkbox.mjs +1 -1
  14. package/dist/chunk-22YA6UTX.mjs +2 -0
  15. package/dist/chunk-247VLDLW.mjs +2 -0
  16. package/dist/chunk-26OFQBVX.mjs +2 -0
  17. package/dist/chunk-2ALO76DQ.mjs +6 -0
  18. package/dist/chunk-2BGNJ55M.mjs +2 -0
  19. package/dist/chunk-2C3X33M3.mjs +2 -0
  20. package/dist/chunk-2ERJVCRX.mjs +2 -0
  21. package/dist/chunk-2ISXYSSV.mjs +2 -0
  22. package/dist/chunk-2R2HI35U.mjs +2 -0
  23. package/dist/chunk-2T3IVINA.mjs +2 -0
  24. package/dist/chunk-2UOGGGLR.mjs +2 -0
  25. package/dist/chunk-3342XKCZ.mjs +2 -0
  26. package/dist/chunk-364FJC4C.mjs +2 -0
  27. package/dist/chunk-3D4TSYY5.mjs +2 -0
  28. package/dist/chunk-3DZZZYYD.mjs +2 -0
  29. package/dist/chunk-3HAJBN2K.mjs +2 -0
  30. package/dist/chunk-3HRSXNGL.mjs +2 -0
  31. package/dist/chunk-3LGCWG5E.mjs +2 -0
  32. package/dist/chunk-3PW5FMTB.mjs +2 -0
  33. package/dist/chunk-3QOUGNTX.mjs +6 -0
  34. package/dist/chunk-3SX2AYFB.mjs +2 -0
  35. package/dist/chunk-3U4AOVHR.mjs +2 -0
  36. package/dist/chunk-3VUUSH47.mjs +2 -0
  37. package/dist/chunk-3XEENINE.mjs +2 -0
  38. package/dist/chunk-3XKU32OM.mjs +2 -0
  39. package/dist/chunk-3ZTRRVV5.mjs +2 -0
  40. package/dist/chunk-3ZUT476A.mjs +2 -0
  41. package/dist/chunk-42CNPCUI.mjs +2 -0
  42. package/dist/chunk-42GWKFBS.mjs +2 -0
  43. package/dist/chunk-43M5IPYQ.mjs +2 -0
  44. package/dist/chunk-453I5MUI.mjs +2 -0
  45. package/dist/chunk-4ENPOOKY.mjs +2 -0
  46. package/dist/chunk-4UNIVZWK.mjs +2 -0
  47. package/dist/chunk-55MW6BPC.mjs +2 -0
  48. package/dist/chunk-56IGFFSK.mjs +6 -0
  49. package/dist/chunk-5DZSZB5M.mjs +2 -0
  50. package/dist/chunk-5EIK4CZT.mjs +2 -0
  51. package/dist/chunk-5GA24DQQ.mjs +2 -0
  52. package/dist/chunk-5GRDU2JJ.mjs +2 -0
  53. package/dist/chunk-5H47SBK4.mjs +2 -0
  54. package/dist/chunk-5H5TZWRF.mjs +2 -0
  55. package/dist/chunk-5HJID3RL.mjs +2 -0
  56. package/dist/chunk-5K3VGRD2.mjs +2 -0
  57. package/dist/chunk-5OQYNH24.mjs +2 -0
  58. package/dist/chunk-5SQRHOY4.mjs +2 -0
  59. package/dist/chunk-5UDLEOOZ.mjs +2 -0
  60. package/dist/chunk-5XVEBJXY.mjs +2 -0
  61. package/dist/chunk-63WNLYNN.mjs +2 -0
  62. package/dist/chunk-66EFS2V6.mjs +2 -0
  63. package/dist/chunk-6DTNJ4P7.mjs +2 -0
  64. package/dist/chunk-6F2KGXS4.mjs +2 -0
  65. package/dist/chunk-6GOS2GMN.mjs +2 -0
  66. package/dist/chunk-6H7XIYUR.mjs +2 -0
  67. package/dist/chunk-6HYZCQKA.mjs +2 -0
  68. package/dist/chunk-6ILNPUPR.mjs +2 -0
  69. package/dist/chunk-6MLN43XM.mjs +2 -0
  70. package/dist/chunk-6RXBLLFM.mjs +2 -0
  71. package/dist/chunk-6TTX2ZDS.mjs +2 -0
  72. package/dist/chunk-6YPFXVI6.mjs +2 -0
  73. package/dist/chunk-6YZAPOXQ.mjs +2 -0
  74. package/dist/chunk-6ZSJOGGO.mjs +2 -0
  75. package/dist/chunk-7CMQJHR4.mjs +2 -0
  76. package/dist/chunk-7GZ4MGXX.mjs +2 -0
  77. package/dist/chunk-7IBOHXWV.mjs +42 -0
  78. package/dist/chunk-7JS5EYPU.mjs +2 -0
  79. package/dist/chunk-7O4GRGY4.mjs +2 -0
  80. package/dist/chunk-7QQGHSGL.mjs +2 -0
  81. package/dist/chunk-7RKJYNTJ.mjs +2 -0
  82. package/dist/chunk-7TRQ6CWN.mjs +2 -0
  83. package/dist/chunk-7URJVZM7.mjs +2 -0
  84. package/dist/chunk-7Z2U6NBE.mjs +2 -0
  85. package/dist/chunk-7Z5HPOEV.mjs +2 -0
  86. package/dist/chunk-7ZSYFIWP.mjs +2 -0
  87. package/dist/chunk-A4DNB5TT.mjs +6 -0
  88. package/dist/chunk-A55JQOUX.mjs +2 -0
  89. package/dist/chunk-ABBVN54D.mjs +2 -0
  90. package/dist/chunk-ABDYDCRS.mjs +2 -0
  91. package/dist/chunk-ACBXE77J.mjs +2 -0
  92. package/dist/chunk-AIVHYQG5.mjs +2 -0
  93. package/dist/chunk-AJROEBR6.mjs +2 -0
  94. package/dist/chunk-AMI5N7ZX.mjs +2 -0
  95. package/dist/chunk-ANKG3D2X.mjs +2 -0
  96. package/dist/chunk-ANS77IOP.mjs +2 -0
  97. package/dist/chunk-ASTQ56VM.mjs +2 -0
  98. package/dist/chunk-AU7VG236.mjs +2 -0
  99. package/dist/chunk-AWR6CXLX.mjs +2 -0
  100. package/dist/chunk-AXGKFR2L.mjs +2 -0
  101. package/dist/chunk-AXYDLQKU.mjs +2 -0
  102. package/dist/chunk-AY63N3KD.mjs +2 -0
  103. package/dist/chunk-B3ARVU7B.mjs +2 -0
  104. package/dist/chunk-B4EJWWOD.mjs +2 -0
  105. package/dist/chunk-B7DL2KYU.mjs +2 -0
  106. package/dist/chunk-BDL6SWJ2.mjs +2 -0
  107. package/dist/chunk-BF66E7XG.mjs +2 -0
  108. package/dist/chunk-BFS2SK2V.mjs +2 -0
  109. package/dist/chunk-BL4SKYKG.mjs +2 -0
  110. package/dist/chunk-BLUVVIM3.mjs +2 -0
  111. package/dist/chunk-BQQLF4DK.mjs +2 -0
  112. package/dist/chunk-BR2VFDDF.mjs +2 -0
  113. package/dist/chunk-BSMFRXXM.mjs +2 -0
  114. package/dist/chunk-BTOOVMV4.mjs +2 -0
  115. package/dist/chunk-BVE5B54J.mjs +2 -0
  116. package/dist/chunk-BWXNVFPD.mjs +2 -0
  117. package/dist/chunk-BYDF2AZH.mjs +2 -0
  118. package/dist/chunk-BZYQQGJJ.mjs +2 -0
  119. package/dist/chunk-C6EKAGGI.mjs +2 -0
  120. package/dist/chunk-C75SOTIQ.mjs +2 -0
  121. package/dist/chunk-C7GS67U3.mjs +2 -0
  122. package/dist/chunk-CC3TUQTU.mjs +2 -0
  123. package/dist/chunk-CFOQTU4A.mjs +2 -0
  124. package/dist/chunk-CGLET7BA.mjs +2 -0
  125. package/dist/chunk-COHO5QST.mjs +2 -0
  126. package/dist/chunk-COI4KIWF.mjs +2 -0
  127. package/dist/chunk-CSS6W3MQ.mjs +2 -0
  128. package/dist/chunk-CSWCRIGC.mjs +2 -0
  129. package/dist/chunk-CV2TH3IF.mjs +2 -0
  130. package/dist/chunk-CXZ46GWC.mjs +2 -0
  131. package/dist/chunk-D3ADWNNC.mjs +2 -0
  132. package/dist/chunk-D477HPBE.mjs +2 -0
  133. package/dist/chunk-D5VPAWUW.mjs +2 -0
  134. package/dist/chunk-D6U2BOCJ.mjs +2 -0
  135. package/dist/chunk-D7JIIDIV.mjs +2 -0
  136. package/dist/chunk-DAL74OZ3.mjs +2 -0
  137. package/dist/chunk-DGX3SJB2.mjs +2 -0
  138. package/dist/chunk-DHBFUPCL.mjs +2 -0
  139. package/dist/chunk-DKE6ATB4.mjs +2 -0
  140. package/dist/chunk-DOWS7PF4.mjs +2 -0
  141. package/dist/chunk-DPFJSPCA.mjs +6 -0
  142. package/dist/chunk-DWW2DMGM.mjs +2 -0
  143. package/dist/chunk-E7P4GG42.mjs +2 -0
  144. package/dist/chunk-EAWPQZL4.mjs +2 -0
  145. package/dist/chunk-EB3SQPJW.mjs +6 -0
  146. package/dist/chunk-EH4PJPIC.mjs +2 -0
  147. package/dist/chunk-EOTJIERM.mjs +2 -0
  148. package/dist/chunk-ER4DXXJA.mjs +2 -0
  149. package/dist/chunk-ESKI43TL.mjs +2 -0
  150. package/dist/chunk-ETEFCQFF.mjs +2 -0
  151. package/dist/chunk-EUQHARY3.mjs +2 -0
  152. package/dist/chunk-EVF7DE3F.mjs +2 -0
  153. package/dist/chunk-EYOEMHC3.mjs +2 -0
  154. package/dist/chunk-F6B3RUYR.mjs +2 -0
  155. package/dist/chunk-FEQK6SUB.mjs +2 -0
  156. package/dist/chunk-FK5QGBOB.mjs +2 -0
  157. package/dist/chunk-FKLCTJZ4.mjs +2 -0
  158. package/dist/chunk-FNUSVYOB.mjs +2 -0
  159. package/dist/chunk-FUIMLA7W.mjs +2 -0
  160. package/dist/chunk-G3DLVKQH.mjs +2 -0
  161. package/dist/chunk-G4AKE33L.mjs +2 -0
  162. package/dist/chunk-GDLAA4G2.mjs +2 -0
  163. package/dist/chunk-GHSFG3C4.mjs +2 -0
  164. package/dist/chunk-GLJUY3FU.mjs +6 -0
  165. package/dist/chunk-GLUYP2AE.mjs +2 -0
  166. package/dist/chunk-GOU3HDJT.mjs +2 -0
  167. package/dist/chunk-GT5ULDAB.mjs +2 -0
  168. package/dist/chunk-GXFVBU63.mjs +2 -0
  169. package/dist/chunk-GYZTEU67.mjs +2 -0
  170. package/dist/chunk-H5MWSYQZ.mjs +2 -0
  171. package/dist/chunk-H5UGJCG2.mjs +2 -0
  172. package/dist/chunk-H6X2YC5N.mjs +2 -0
  173. package/dist/chunk-HAPWHHBN.mjs +2 -0
  174. package/dist/chunk-HBGQJAIF.mjs +2 -0
  175. package/dist/chunk-HG2Y6D3G.mjs +42 -0
  176. package/dist/chunk-HHD5AOBD.mjs +2 -0
  177. package/dist/chunk-HHWZFF3H.mjs +2 -0
  178. package/dist/chunk-HLKXQ2IE.mjs +2 -0
  179. package/dist/chunk-HNNIZ4M2.mjs +2 -0
  180. package/dist/chunk-HQ7AVOGG.mjs +2 -0
  181. package/dist/chunk-HVAJT6I7.mjs +2 -0
  182. package/dist/chunk-I24GO4HL.mjs +2 -0
  183. package/dist/chunk-I2RSWUBW.mjs +2 -0
  184. package/dist/chunk-I57AERIJ.mjs +2 -0
  185. package/dist/chunk-I5AC2P3R.mjs +2 -0
  186. package/dist/chunk-I64FUP6F.mjs +2 -0
  187. package/dist/chunk-I6SSHGQ2.mjs +2 -0
  188. package/dist/chunk-IGFDGLNE.mjs +2 -0
  189. package/dist/chunk-IGYUB2JT.mjs +2 -0
  190. package/dist/chunk-IJE4HJ5C.mjs +2 -0
  191. package/dist/chunk-IJOFTRL3.mjs +2 -0
  192. package/dist/chunk-IJUAB6RK.mjs +2 -0
  193. package/dist/chunk-IL7K3KII.mjs +2 -0
  194. package/dist/chunk-INH7BHQY.mjs +2 -0
  195. package/dist/chunk-IR66KFXV.mjs +2 -0
  196. package/dist/chunk-IS5VZ4AK.mjs +2 -0
  197. package/dist/chunk-IUGOT2K4.mjs +2 -0
  198. package/dist/chunk-IYVNIXK5.mjs +2 -0
  199. package/dist/chunk-JD2LNIWD.mjs +2 -0
  200. package/dist/chunk-JDSUPUDK.mjs +2 -0
  201. package/dist/chunk-JETV5ZZZ.mjs +2 -0
  202. package/dist/chunk-JIQRFFD5.mjs +2 -0
  203. package/dist/chunk-JJX7GOEO.mjs +2 -0
  204. package/dist/chunk-JMKNLHUV.mjs +2 -0
  205. package/dist/chunk-JOEQFNPJ.mjs +2 -0
  206. package/dist/chunk-JTEXV7AL.mjs +2 -0
  207. package/dist/chunk-JZGAA6NI.mjs +2 -0
  208. package/dist/chunk-K3VDAU4N.mjs +2 -0
  209. package/dist/chunk-KC23PSHC.mjs +2 -0
  210. package/dist/chunk-KDEUVPDD.mjs +2 -0
  211. package/dist/chunk-KDW5Q6EZ.mjs +6 -0
  212. package/dist/chunk-KHMF6NJG.mjs +2 -0
  213. package/dist/chunk-KM2XI5CH.mjs +2 -0
  214. package/dist/chunk-KORZXM6V.mjs +2 -0
  215. package/dist/chunk-KQERPFET.mjs +2 -0
  216. package/dist/chunk-KTN4WKB3.mjs +2 -0
  217. package/dist/chunk-KUA2CWBM.mjs +6 -0
  218. package/dist/chunk-KVNWMC4X.mjs +2 -0
  219. package/dist/chunk-KWTZUPQN.mjs +2 -0
  220. package/dist/chunk-KYXSUHQT.mjs +2 -0
  221. package/dist/chunk-KZ2IJWDL.mjs +2 -0
  222. package/dist/chunk-L4FA5VZW.mjs +2 -0
  223. package/dist/chunk-L4XZTEBS.mjs +2 -0
  224. package/dist/chunk-LCN5EPCR.mjs +2 -0
  225. package/dist/chunk-LDA2I5SK.mjs +2 -0
  226. package/dist/chunk-LDG5AWEL.mjs +6 -0
  227. package/dist/chunk-LHFNJJUQ.mjs +2 -0
  228. package/dist/chunk-LHFT5GDI.mjs +2 -0
  229. package/dist/chunk-LHRSOLFV.mjs +2 -0
  230. package/dist/chunk-LLZKALOG.mjs +2 -0
  231. package/dist/chunk-LM3VD6TZ.mjs +2 -0
  232. package/dist/chunk-LSE5IPYR.mjs +2 -0
  233. package/dist/chunk-LUCC6FPP.mjs +2 -0
  234. package/dist/chunk-LUDMJ77J.mjs +2 -0
  235. package/dist/chunk-LWVRUH3D.mjs +2 -0
  236. package/dist/chunk-LXYTR7M6.mjs +2 -0
  237. package/dist/chunk-M2X3Q5KH.mjs +6 -0
  238. package/dist/chunk-MDWWZ2OB.mjs +2 -0
  239. package/dist/chunk-MDXINC42.mjs +2 -0
  240. package/dist/chunk-MEMHJYV7.mjs +2 -0
  241. package/dist/chunk-MENB5YDU.mjs +2 -0
  242. package/dist/chunk-MEQM22XP.mjs +2 -0
  243. package/dist/chunk-MG3JVVDV.mjs +2 -0
  244. package/dist/chunk-N4D5CP3Q.mjs +2 -0
  245. package/dist/chunk-N4JGERLH.mjs +2 -0
  246. package/dist/chunk-N52L4FEK.mjs +2 -0
  247. package/dist/chunk-N6LUEISO.mjs +2 -0
  248. package/dist/chunk-N7RG36QD.mjs +2 -0
  249. package/dist/chunk-NAHB2RQQ.mjs +2 -0
  250. package/dist/chunk-NBQVAQ2Z.mjs +2 -0
  251. package/dist/chunk-NDIVMNAM.mjs +6 -0
  252. package/dist/chunk-NEBSVHNZ.mjs +2 -0
  253. package/dist/chunk-NFY7QCOD.mjs +2 -0
  254. package/dist/chunk-NJFZ26CN.mjs +2 -0
  255. package/dist/chunk-NKWU5PQQ.mjs +2 -0
  256. package/dist/chunk-NNGHO3FU.mjs +2 -0
  257. package/dist/chunk-NPBZYAER.mjs +2 -0
  258. package/dist/chunk-NSXDIO4Y.mjs +2 -0
  259. package/dist/chunk-NUDBOJPF.mjs +2 -0
  260. package/dist/chunk-NZRIEMXB.mjs +2 -0
  261. package/dist/chunk-O54LVCRS.mjs +2 -0
  262. package/dist/chunk-O6OI73M7.mjs +2 -0
  263. package/dist/chunk-OA43BTO6.mjs +2 -0
  264. package/dist/chunk-OAEGUEPF.mjs +2 -0
  265. package/dist/chunk-OILS7HRW.mjs +6 -0
  266. package/dist/chunk-OODSNPBG.mjs +2 -0
  267. package/dist/chunk-OQ6UDSPV.mjs +2 -0
  268. package/dist/chunk-OQT6PNQ7.mjs +2 -0
  269. package/dist/chunk-ORQ643AR.mjs +2 -0
  270. package/dist/chunk-OXCNIU6K.mjs +2 -0
  271. package/dist/chunk-P3N75JRI.mjs +2 -0
  272. package/dist/chunk-P4SDMVQP.mjs +2 -0
  273. package/dist/chunk-P7QQVOC5.mjs +2 -0
  274. package/dist/chunk-PIHBKBMX.mjs +2 -0
  275. package/dist/chunk-PQRNEMB2.mjs +2 -0
  276. package/dist/chunk-PU6FLF3H.mjs +2 -0
  277. package/dist/chunk-PVGXQRQY.mjs +2 -0
  278. package/dist/chunk-PXIZND6U.mjs +2 -0
  279. package/dist/chunk-PZQ2WJI6.mjs +6 -0
  280. package/dist/chunk-Q4AVTOAT.mjs +2 -0
  281. package/dist/chunk-Q4S6TICU.mjs +2 -0
  282. package/dist/chunk-QBG6YA5L.mjs +2 -0
  283. package/dist/chunk-QJNYTOLD.mjs +2 -0
  284. package/dist/chunk-QKXCLBPL.mjs +6 -0
  285. package/dist/chunk-QQ7XG7OJ.mjs +2 -0
  286. package/dist/chunk-QXSAM6DM.mjs +2 -0
  287. package/dist/chunk-QYOSTW3V.mjs +2 -0
  288. package/dist/chunk-QZFIXSZQ.mjs +2 -0
  289. package/dist/chunk-R37FIISH.mjs +2 -0
  290. package/dist/chunk-R3XSB75Y.mjs +2 -0
  291. package/dist/chunk-RD5ZCE2K.mjs +2 -0
  292. package/dist/chunk-RECBVBIQ.mjs +2 -0
  293. package/dist/chunk-RNJIGTJE.mjs +2 -0
  294. package/dist/chunk-RRG6OJ67.mjs +2 -0
  295. package/dist/chunk-RSJ6GSD7.mjs +2 -0
  296. package/dist/chunk-RTTMG5OL.mjs +2 -0
  297. package/dist/chunk-RZ4SFDHX.mjs +2 -0
  298. package/dist/chunk-RZTH773L.mjs +2 -0
  299. package/dist/chunk-SEAMJLIO.mjs +2 -0
  300. package/dist/chunk-SJYWPWXF.mjs +2 -0
  301. package/dist/chunk-SLLBC6SC.mjs +2 -0
  302. package/dist/chunk-SMHQYHDD.mjs +2 -0
  303. package/dist/chunk-SNXR2YAS.mjs +2 -0
  304. package/dist/chunk-SYVECOCA.mjs +2 -0
  305. package/dist/chunk-SZEN57X5.mjs +2 -0
  306. package/dist/chunk-SZRHA2GT.mjs +2 -0
  307. package/dist/chunk-T2HK3T52.mjs +2 -0
  308. package/dist/chunk-T32IVLSS.mjs +2 -0
  309. package/dist/chunk-T74GLTSL.mjs +2 -0
  310. package/dist/chunk-TA5HYQRQ.mjs +2 -0
  311. package/dist/chunk-TCVVRSYX.mjs +2 -0
  312. package/dist/chunk-TEY5O3RA.mjs +2 -0
  313. package/dist/chunk-TIC2LGTP.mjs +2 -0
  314. package/dist/chunk-TXSZQH5G.mjs +2 -0
  315. package/dist/chunk-TXXKECQO.mjs +6 -0
  316. package/dist/chunk-U6AD4ALY.mjs +2 -0
  317. package/dist/chunk-U7KEKQYA.mjs +2 -0
  318. package/dist/chunk-UAQZTW4U.mjs +2 -0
  319. package/dist/chunk-UCXYHRDP.mjs +2 -0
  320. package/dist/chunk-UD2UJUXG.mjs +2 -0
  321. package/dist/chunk-UD4VN3DH.mjs +2 -0
  322. package/dist/chunk-ULWDKSZK.mjs +2 -0
  323. package/dist/chunk-UQ53WNBL.mjs +2 -0
  324. package/dist/chunk-UQS2ZGYW.mjs +2 -0
  325. package/dist/chunk-UVFRTTO6.mjs +2 -0
  326. package/dist/chunk-UYBFZJ5C.mjs +2 -0
  327. package/dist/chunk-UZ4JJ42T.mjs +2 -0
  328. package/dist/chunk-UZL3VDPW.mjs +2 -0
  329. package/dist/chunk-UZO4XKDU.mjs +2 -0
  330. package/dist/chunk-V6CYMTUE.mjs +2 -0
  331. package/dist/chunk-VBWZTCSD.mjs +2 -0
  332. package/dist/chunk-VCSDWQP3.mjs +2 -0
  333. package/dist/chunk-VENNPUNH.mjs +2 -0
  334. package/dist/chunk-VGAF532P.mjs +2 -0
  335. package/dist/chunk-VLMHALMP.mjs +2 -0
  336. package/dist/chunk-VR4HARM3.mjs +2 -0
  337. package/dist/chunk-VRVMOTQV.mjs +2 -0
  338. package/dist/chunk-VSCITBCY.mjs +2 -0
  339. package/dist/chunk-W2ZJQOHS.mjs +2 -0
  340. package/dist/chunk-W3QIOL4G.mjs +2 -0
  341. package/dist/chunk-W5TBLBM6.mjs +2 -0
  342. package/dist/chunk-W7M34XRR.mjs +2 -0
  343. package/dist/chunk-WBF5HZQ6.mjs +2 -0
  344. package/dist/chunk-WC2KKGTK.mjs +2 -0
  345. package/dist/chunk-WCLNMUC2.mjs +2 -0
  346. package/dist/chunk-WFYWMZDG.mjs +6 -0
  347. package/dist/chunk-WHNZZMK2.mjs +2 -0
  348. package/dist/chunk-WI42IPI7.mjs +2 -0
  349. package/dist/chunk-WJZIVMXO.mjs +2 -0
  350. package/dist/chunk-WSBIRQ6W.mjs +2 -0
  351. package/dist/chunk-WVMZSRDG.mjs +2 -0
  352. package/dist/chunk-X437KEIG.mjs +2 -0
  353. package/dist/chunk-X6EPDS57.mjs +2 -0
  354. package/dist/chunk-X6LWSYKB.mjs +2 -0
  355. package/dist/chunk-XALOGNV6.mjs +2 -0
  356. package/dist/chunk-XBMLYZPP.mjs +2 -0
  357. package/dist/chunk-XBTTJSVQ.mjs +2 -0
  358. package/dist/chunk-XFLUK427.mjs +2 -0
  359. package/dist/chunk-XIKQPBME.mjs +2 -0
  360. package/dist/chunk-XIZW7FK4.mjs +2 -0
  361. package/dist/chunk-XOGTH3EB.mjs +6 -0
  362. package/dist/chunk-XRIZIRH2.mjs +2 -0
  363. package/dist/chunk-XTK2BTRW.mjs +2 -0
  364. package/dist/chunk-XTNQEIPG.mjs +6 -0
  365. package/dist/chunk-XU2GKM2O.mjs +6 -0
  366. package/dist/chunk-XXLUS5XT.mjs +2 -0
  367. package/dist/chunk-Y3QQVIXW.mjs +2 -0
  368. package/dist/chunk-Y6GXAJYP.mjs +2 -0
  369. package/dist/chunk-Y7VESY2F.mjs +6 -0
  370. package/dist/chunk-YBIZWTBK.mjs +2 -0
  371. package/dist/chunk-YHC4THUP.mjs +2 -0
  372. package/dist/chunk-YHPHBFF4.mjs +2 -0
  373. package/dist/chunk-YIXJW3OQ.mjs +2 -0
  374. package/dist/chunk-YJQJKJRB.mjs +2 -0
  375. package/dist/chunk-YKNEZ7JD.mjs +2 -0
  376. package/dist/chunk-YOK6UIBC.mjs +2 -0
  377. package/dist/chunk-YPYCGDOO.mjs +2 -0
  378. package/dist/chunk-YQFFD4BR.mjs +2 -0
  379. package/dist/chunk-YRILC5NG.mjs +2 -0
  380. package/dist/chunk-YSBJGFD5.mjs +42 -0
  381. package/dist/chunk-YSZCWUZW.mjs +2 -0
  382. package/dist/chunk-YVZXVQMV.mjs +2 -0
  383. package/dist/chunk-YY2VAS2K.mjs +2 -0
  384. package/dist/chunk-Z3N2QQM5.mjs +2 -0
  385. package/dist/chunk-Z45ZXUKJ.mjs +6 -0
  386. package/dist/chunk-ZICA3VYR.mjs +2 -0
  387. package/dist/chunk-ZIJSUOTQ.mjs +2 -0
  388. package/dist/chunk-ZKNTMKRU.mjs +6 -0
  389. package/dist/chunk-ZN3PNOIE.mjs +2 -0
  390. package/dist/chunk-ZNYEU7EO.mjs +2 -0
  391. package/dist/chunk-ZOKWUTJH.mjs +2 -0
  392. package/dist/chunk-ZRLYC43B.mjs +2 -0
  393. package/dist/chunk-ZT7NQ7HE.mjs +2 -0
  394. package/dist/chunk-ZWCN2SRH.mjs +2 -0
  395. package/dist/chunk-ZXP6AIIM.mjs +2 -0
  396. package/dist/combobox/index.d.ts +7 -0
  397. package/dist/combobox/index.mjs +1 -1
  398. package/dist/composite-logo.mjs +1 -1
  399. package/dist/copy-button.mjs +1 -1
  400. package/dist/copy-text.mjs +1 -1
  401. package/dist/counting-numbers.mjs +1 -1
  402. package/dist/date-picker/calendar.mjs +1 -1
  403. package/dist/date-picker/date-range-picker.mjs +1 -1
  404. package/dist/date-picker/presets.mjs +1 -1
  405. package/dist/date-picker/trigger.mjs +1 -1
  406. package/dist/file-upload.d.ts +5 -1
  407. package/dist/file-upload.mjs +1 -1
  408. package/dist/filter/filter-list.mjs +1 -1
  409. package/dist/filter/filter-select.mjs +1 -1
  410. package/dist/footer.mjs +1 -1
  411. package/dist/form.mjs +1 -1
  412. package/dist/grid.mjs +1 -1
  413. package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
  414. package/dist/icons/continents/index.mjs +1 -1
  415. package/dist/icons/default-domains/amazon.mjs +1 -1
  416. package/dist/icons/default-domains/chatgpt.mjs +1 -1
  417. package/dist/icons/default-domains/figma.mjs +1 -1
  418. package/dist/icons/default-domains/github-enhanced.mjs +1 -1
  419. package/dist/icons/default-domains/google-enhanced.mjs +1 -1
  420. package/dist/icons/default-domains/spotify.mjs +1 -1
  421. package/dist/icons/elxo.d.ts +6 -0
  422. package/dist/icons/elxo.mjs +2 -0
  423. package/dist/icons/expanding-arrow.mjs +1 -1
  424. package/dist/icons/index.d.ts +7 -0
  425. package/dist/icons/index.mjs +1 -1
  426. package/dist/icons/linkedin.mjs +1 -1
  427. package/dist/icons/loading-circle.mjs +1 -1
  428. package/dist/icons/loading-spinner.mjs +1 -1
  429. package/dist/icons/nucleo/book2-fill.d.ts +6 -0
  430. package/dist/icons/nucleo/book2-fill.mjs +2 -0
  431. package/dist/icons/nucleo/bullet-list-fill.d.ts +6 -0
  432. package/dist/icons/nucleo/bullet-list-fill.mjs +2 -0
  433. package/dist/icons/nucleo/cube-settings-fill.d.ts +6 -0
  434. package/dist/icons/nucleo/cube-settings-fill.mjs +2 -0
  435. package/dist/icons/nucleo/feather-fill.d.ts +6 -0
  436. package/dist/icons/nucleo/feather-fill.mjs +2 -0
  437. package/dist/icons/nucleo/headset-fill.d.ts +6 -0
  438. package/dist/icons/nucleo/headset-fill.mjs +2 -0
  439. package/dist/icons/nucleo/toggle2-fill.d.ts +6 -0
  440. package/dist/icons/nucleo/toggle2-fill.mjs +2 -0
  441. package/dist/icons/payout-platforms/paypal.mjs +1 -1
  442. package/dist/icons/product-hunt.mjs +1 -1
  443. package/dist/icons/sort-order.mjs +1 -1
  444. package/dist/icons/twitter.mjs +1 -1
  445. package/dist/icons/youtube.mjs +1 -1
  446. package/dist/index.css +1 -1
  447. package/dist/index.d.ts +15 -5
  448. package/dist/index.mjs +1 -1
  449. package/dist/input-select.mjs +1 -1
  450. package/dist/input.mjs +1 -1
  451. package/dist/label.mjs +1 -1
  452. package/dist/link-logo.mjs +1 -1
  453. package/dist/link-preview.mjs +1 -1
  454. package/dist/logo.mjs +1 -1
  455. package/dist/max-width-wrapper.mjs +1 -1
  456. package/dist/modal.mjs +1 -1
  457. package/dist/nav/content/graphics/analytics-graphic.d.ts +6 -0
  458. package/dist/nav/content/graphics/analytics-graphic.mjs +2 -0
  459. package/dist/nav/content/graphics/links-graphic.d.ts +6 -0
  460. package/dist/nav/content/graphics/links-graphic.mjs +2 -0
  461. package/dist/nav/content/product-content.mjs +1 -1
  462. package/dist/nav/content/resources-content.mjs +1 -1
  463. package/dist/nav/content/shared.d.ts +200 -4
  464. package/dist/nav/content/shared.mjs +1 -1
  465. package/dist/nav/content/solutions-content.mjs +1 -1
  466. package/dist/nav/nav-mobile.d.ts +2 -2
  467. package/dist/nav/nav-mobile.mjs +1 -1
  468. package/dist/nav/nav.d.ts +9 -5
  469. package/dist/nav/nav.mjs +1 -1
  470. package/dist/nav-wordmark.mjs +1 -1
  471. package/dist/pagination-controls.mjs +1 -1
  472. package/dist/popover.mjs +1 -1
  473. package/dist/progress-bar.mjs +1 -1
  474. package/dist/radio-group.mjs +1 -1
  475. package/dist/sheet.mjs +1 -1
  476. package/dist/shimmer-dots.mjs +1 -1
  477. package/dist/status-badge.d.ts +7 -0
  478. package/dist/status-badge.mjs +1 -1
  479. package/dist/switch.mjs +1 -1
  480. package/dist/tab-select.mjs +1 -1
  481. package/dist/table/table.mjs +1 -1
  482. package/dist/toggle-group.mjs +1 -1
  483. package/dist/tooltip.mjs +1 -1
  484. package/dist/utm-builder.mjs +1 -1
  485. package/dist/wordmark.mjs +1 -1
  486. package/package.json +8 -2
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as C}from"./chunk-32C65ISH.mjs";import{a as P}from"./chunk-6JPO26GL.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-HRTLCZFX.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as W}from"./chunk-GHSFG3C4.mjs";import{a as $}from"./chunk-XRIZIRH2.mjs";import{a as j}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-NUDBOJPF.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-D7JIIDIV.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{c as K,l as k}from"./chunk-LHRSOLFV.mjs";import{Command as y,useCommandState as G}from"cmdk";import{ChevronDown as J,ListFilter as X}from"lucide-react";import{Fragment as Y,forwardRef as _,isValidElement as V,useCallback as N,useEffect as w,useImperativeHandle as ee,useRef as S,useState as D}from"react";import{Fragment as se,jsx as n,jsxs as m}from"react/jsx-runtime";function be({filters:t,onSelect:o,onRemove:a,onOpenFilter:s,onSearchChange:l,onSelectedFilterChange:g,activeFilters:i,askAI:h,children:v,emptyState:c,className:Q}){var L,A;let{isMobile:U}=P(),f=S(null),C=S(),[x,b]=D(!1);W("f",()=>b(!0),{enabled:!x});let[d,R]=D(""),[u,F]=D(null),E=N(()=>{R(""),F(null)},[]);w(()=>{x||E()},[x]);let r=u?t.find(({key:e})=>e===u):null,Z=N(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=N(e=>{if(!r||!i)return!1;let p=i.find(({key:q})=>q===u);return(p==null?void 0:p.value)===e||p&&r.multiple&&Array.isArray(p.value)&&p.value.includes(e)},[r]),O=N(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||b(!1))},[i,r,h]);return w(()=>{l==null||l(d)},[d]),w(()=>{g==null||g(u)},[u]),w(()=>{(r==null?void 0:r.options)&&f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight})},[r==null?void 0:r.options]),n($,{openPopover:x,setOpenPopover:b,onEscapeKeyDown:e=>{u&&(e.preventDefault(),E())},content:n(T,{width:!U,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(y,{loop:!0,shouldFilter:!r||r.shouldFilter!==!1,children:[m("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(re,{placeholder:`${(r==null?void 0:r.label)||"Filter"}...`,value:d,onValueChange:R,onKeyDown:e=>{(e.key==="Escape"||e.key==="Backspace"&&!d)&&(e.preventDefault(),e.stopPropagation(),u?E():b(!1))},emptySubmit:e=>{e.preventDefault(),e.stopPropagation(),h?(o("ai",r?`${r.label} ${d}`:d),b(!1)):O(d)}}),!r&&n("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),n(ne,{ref:f,children:m(y.List,{className:(void 0)("flex w-full flex-col gap-1 p-1",r?"min-w-[100px]":"min-w-[180px]"),children:[r?((A=(L=r.options)==null?void 0:L.filter(e=>!d||!e.hideDuringSearch))==null?void 0:A.map(e=>{let p=I(e.value);return n(B,{filter:r,option:e,right:p?n(H,{className:"h-4 w-4"}):e.right,onSelect:()=>O(e.value)},e.value)}))??n(y.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:C.current,children:n(z,{})})}):t.map(e=>m(Y,{children:[n(B,{filter:e,onSelect:()=>Z(e.key)}),e.separatorAfter&&n(y.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},e.key)),(!r||r.options)&&n(oe,{search:d,askAI:h,children:c?te(c)?(c==null?void 0:c[u??"default"])??"No matches":c:"No matches"})]})},u)]})}),children:m("button",{type:"button",className:(void 0)("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",Q),children:[n(X,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:v??"Filter"}),i!=null&&i.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:i.length}):n(J,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function te(t){return typeof t=="object"&&t!==null&&!V(t)}var re=t=>{let o=G(a=>a.filtered.count===0);return n(y.Input,{...t,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:a=>{var s,l;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((l=t.emptySubmit)==null||l.call(t,a))},autoCapitalize:"none"})},ne=_(({children:t},o)=>{let a=S(null);ee(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:l}=j(a);return m(se,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:l,children:t}),n("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(s,2)}})]})});function B({filter:t,option:o,right:a,onSelect:s}){var h,v;let{isMobile:l}=P(),g=o?o.icon??((h=t.getOptionIcon)==null?void 0:h.call(t,o.value,{key:t.key,option:o}))??t.icon:t.icon,i=o?o.label??((v=t.getOptionLabel)==null?void 0:v.call(t,o.value,{key:t.key,option:o})):t.label;return m(y.Item,{className:(void 0)("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:c=>{c.preventDefault()},onPointerUp:c=>{c.preventDefault(),l?setTimeout(s,100):s()},onSelect:s,value:i+(o==null?void 0:o.value),children:[n("span",{className:"shrink-0 text-gray-600",children:ae(g)?g:n(g,{className:"h-4 w-4"})}),(void 0)(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var oe=({search:t,askAI:o,children:a})=>o&&t?m(y.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(M,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',t,'"']})]})]}):n(y.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),ae=t=>V(t);export{be as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as I}from"./chunk-ZWCN2SRH.mjs";import{a as U}from"./chunk-PVGXQRQY.mjs";import{a as q}from"./chunk-ABBVN54D.mjs";import{c as C}from"./chunk-I64FUP6F.mjs";import{a as H}from"./chunk-O54LVCRS.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-HVAJT6I7.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as H}from"./chunk-ZNYEU7EO.mjs";import{a as I}from"./chunk-HBGQJAIF.mjs";import{a as _,e as T}from"./chunk-NBQVAQ2Z.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
4
+ </svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
6
+ </svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as m}from"./chunk-WMTXO7RT.mjs";import{l as r}from"./chunk-LHRSOLFV.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as f}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as A}from"react/jsx-runtime";var y=e.Root,p=c.forwardRef(({className:t,...i},o)=>n(e.Item,{ref:o,className:(void 0)("border-b border-b-slate-200 py-3 last:border-none",t),...i}));p.displayName="AccordionItem";var l=c.forwardRef(({className:t,children:i,variant:o="chevron",...a},d)=>{let s=o==="chevron"?f:m;return n(e.Header,{className:"flex",children:A(e.Trigger,{ref:d,className:(void 0)("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":o==="chevron","[&[data-state=open]>svg]:rotate-45":o==="plus"},t),...a,children:[i,n(s,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});l.displayName=e.Trigger.displayName;var v=c.forwardRef(({className:t,children:i,...o},a)=>n(e.Content,{ref:a,className:(void 0)("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",t),...o,children:i}));v.displayName=e.Content.displayName;export{y as a,p as b,l as c,v as d};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-F2HJFOHF.mjs";import{a as x}from"./chunk-H4UN7NPI.mjs";import{AnimatePresence as k,motion as f}from"framer-motion";import{X as C}from"lucide-react";import{isValidElement as L}from"react";import{Fragment as A,jsx as t,jsxs as i}from"react/jsx-runtime";function $({filters:l,activeFilters:a,onRemove:N,onRemoveAll:c,className:v}){return b("Escape",c,{priority:1}),t(x,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:i("div",{className:(void 0)("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",v),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(k,{children:a==null?void 0:a.map(({key:n,value:s})=>{if(n==="loader")return t(f.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${s}`);let e=l.find(r=>r.key===n);return e?(e.multiple&&Array.isArray(s)?s:[s]).map(r=>{var y,g,u;let o=(y=e.options)==null?void 0:y.find(d=>typeof d.value=="string"&&typeof r=="string"?d.value.toLowerCase()===r.toLowerCase():d.value===r),m=(o==null?void 0:o.icon)??((g=e.getOptionIcon)==null?void 0:g.call(e,r,{key:e.key,option:o}))??e.icon,w=(o==null?void 0:o.label)??((u=e.getOptionLabel)==null?void 0:u.call(e,r,{key:e.key,option:o}))??r;return i(f.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[i("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:h(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?i(A,{children:[t("span",{className:"shrink-0 text-gray-600",children:h(m)?m:t(m,{className:"h-4 w-4"})}),(void 0)(w,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>N(n,r),children:t(C,{className:"h-3.5 w-3.5"})})]},`${n}-${r}`)}):(console.error("Filter.List received an activeFilter without a corresponding filter"),null)})})}),(a==null?void 0:a.length)!==0&&i("button",{type:"button",className:"group mt-px flex items-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:c,children:["Clear Filters",t("kbd",{className:"rounded-md border border-gray-200 px-1.5 py-0.5 text-xs text-gray-950 group-hover:bg-gray-50",children:"ESC"})]})]})})}var h=l=>L(l);export{$ as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ var t=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",r=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",e=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,_=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),p=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",m=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_NGROK_URL||"http://localhost:8888",i=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${r}`,"api.localhost:8888"]),E=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",A=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),N=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://partners.localhost:8888",I=new Set([`partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"partners.localhost:8888"]);var P=process.env.STORAGE_BASE_URL;export{p as a,n as b,c,T as d,O as e,L as f,D as g,S as h,s as i,a as j,R as k,l,C as m,o as n};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as N}from"./chunk-A4DNB5TT.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as v}from"./chunk-NWME2ANF.mjs";import{b as n}from"./chunk-FK5QGBOB.mjs";import{a as h}from"./chunk-4KAIJ2PN.mjs";import{a as b}from"./chunk-U4QIRPVU.mjs";import{a as g}from"./chunk-RKUUDTHF.mjs";import{a as u}from"./chunk-GLJR2QX5.mjs";import{a as f}from"./chunk-3IVWKAUU.mjs";import{a as p}from"./chunk-GHXIGUPQ.mjs";import{useEffect as k,useId as C,useRef as P,useState as A}from"react";import{jsx as e,jsxs as l}from"react/jsx-runtime";var H=[{key:"utm_source",icon:f,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:h,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:p,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:g,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:b,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:u,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function W({values:t,onChange:a,disabled:y,autoFocus:T,disabledTooltip:c,className:N}){let{isMobile:x}=v(),d=C(),[m,R]=A(!1),r=P(null);return k(()=>{r.current&&!x&&T&&setTimeout(()=>{var o;return(o=r.current)==null?void 0:o.focus()},10)},[]),e("div",{className:(void 0)("grid gap-y-3",N),children:H.map(({key:o,icon:M,label:_,placeholder:w,description:E},S)=>e("div",{className:"group relative",children:l("div",{className:"relative z-10 flex",children:[e(n,{content:l("div",{className:"p-3 text-center text-xs",children:[e("p",{className:"text-gray-600",children:E}),e("span",{className:"font-mono text-gray-400",children:o})]}),sideOffset:4,disableHoverableContent:!0,children:l("div",{className:(void 0)("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>R(i=>!i),children:[e(M,{className:"size-4 shrink-0"}),e("label",{htmlFor:`${d}-${o}`,className:"select-none text-sm",children:m?e("span",{className:"font-mono text-xs",children:o}):_})]})}),e("div",{className:"min-w-0 grow",children:e(U,{disabledTooltip:c,children:e("input",{type:"text",id:`${d}-${o}`,ref:S===0?r:void 0,placeholder:w,disabled:y||Boolean(c),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:t[o]||"",onChange:i=>a(o,i.target.value)})})})]})},o))})}function U({children:t,disabledTooltip:a}){return a?e(n,{content:a,disableHoverableContent:!0,children:t}):t}export{H as a,W as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as w}from"./chunk-M2X3Q5KH.mjs";import{a as x,f as k,g as L}from"./chunk-YQKCCSJY.mjs";import{a as C}from"./chunk-TP3T42OT.mjs";import{a as v}from"./chunk-KGHQKY4T.mjs";import{a as b}from"./chunk-64JANH7J.mjs";import{a as _}from"./chunk-NEJ2U2ZO.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-VCTQS6IH.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as i,o as c}from"./chunk-HVAJT6I7.mjs";import{useId as l}from"react";import{jsx as r,jsxs as e}from"react/jsx-runtime";function h(o){let t=l();return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...o,className:i("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",o.className),children:[e("g",{clipPath:`url(#${t}-a)`,children:[r("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M0 0h48v48H0zM48 0h48v48H48zM96 0h48v48H96zM144 0h48v48h-48zM192 0h48v48h-48zM240 0h48v48h-48zM288 0h48v48h-48zM0 48h48v48H0zM48 48h48v48H48zM96 48h48v48H96zM144 48h48v48h-48zM192 48h48v48h-48zM240 48h48v48h-48zM288 48h48v48h-48zM0 96h48v48H0zM48 96h48v48H48zM96 96h48v48H96zM144 96h48v48h-48zM192 96h48v48h-48zM240 96h48v48h-48zM288 96h48v48h-48zM0 144h48v48H0zM48 144h48v48H48zM96 144h48v48H96zM144 144h48v48h-48zM192 144h48v48h-48zM240 144h48v48h-48zM288 144h48v48h-48zM0 192h48v48H0zM48 192h48v48H48zM96 192h48v48H96zM144 192h48v48h-48zM192 192h48v48h-48zM240 192h48v48h-48zM288 192h48v48h-48zM0 240h48v48H0zM48 240h48v48H48zM96 240h48v48H96zM144 240h48v48h-48zM192 240h48v48h-48zM240 240h48v48h-48zM288 240h48v48h-48zM0 288h48v48H0zM48 288h48v48H48zM96 288h48v48H96zM144 288h48v48h-48zM192 288h48v48h-48zM240 288h48v48h-48zM288 288h48v48h-48z"}),r("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),r("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),r("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),r("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),r("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),r("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),r("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),r("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),r("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),r("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),r("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),r("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),r("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),r("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),e("g",{children:[r("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M235.276 100.891a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.389 96.333a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M235.276 91.776a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.367 102.288a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 98.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 93.868a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.368 90.38a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M238.889 243.778h-3.556a1.777 1.777 0 0 1-1.777-1.778v-4c0-.982.795-1.778 1.777-1.778h9.334c.982 0 1.777.796 1.777 1.778v.222"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M236.889 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778M240 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778"}),r("path",{fill:"currentColor",fillOpacity:"0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M246 242.889h-3.556a.89.89 0 0 0-.888.889v1.777c0 .491.398.889.888.889H246a.89.89 0 0 0 .889-.889v-1.777a.89.89 0 0 0-.889-.889"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M188.667 90h-2a.666.666 0 0 0-.667.667v2c0 .368.298.666.667.666h2a.666.666 0 0 0 .666-.666v-2a.666.666 0 0 0-.666-.667M197.333 90h-2a.666.666 0 0 0-.666.667v2c0 .368.298.666.666.666h2a.667.667 0 0 0 .667-.666v-2a.667.667 0 0 0-.667-.667M188.667 98.667h-2a.666.666 0 0 0-.667.666v2c0 .368.298.667.667.667h2a.667.667 0 0 0 .666-.667v-2a.666.666 0 0 0-.666-.666M198 98.667h-2a1.333 1.333 0 0 0-1.333 1.333v2M198 102v.01M192 92.667v2A1.334 1.334 0 0 1 190.667 96h-2M186 96h.01M192 90h.01M192 98.667v.01M194.667 96h.666M198 96v.01M192 102v-.667"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M192 246.445a6.445 6.445 0 1 0-.002-12.89 6.445 6.445 0 0 0 .002 12.89M192 238.222v-2M193.778 240h2M192 241.778v2M190.222 240h-2"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M148.667 90h-9.334c-.736 0-1.333.597-1.333 1.333v9.334c0 .736.597 1.333 1.333 1.333h9.334c.736 0 1.333-.597 1.333-1.333v-9.334c0-.736-.597-1.333-1.333-1.333"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M142 95.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666M150 98l-2.057-2.057a1.334 1.334 0 0 0-1.886 0L140 102"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M138.889 234h4.375c.471 0 .924.188 1.257.521l5.111 5.111c.694.694.694 1.82 0 2.514l-3.486 3.486a1.78 1.78 0 0 1-2.514 0l-5.111-5.111a1.78 1.78 0 0 1-.521-1.257v-4.375c0-.491.398-.889.889-.889"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M141.556 238.667a1.112 1.112 0 1 0-.002-2.224 1.112 1.112 0 0 0 .002 2.224"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m97.258 101.854 4.596-4.597a1.777 1.777 0 0 0 0-2.514l-4.596-4.597a1.78 1.78 0 0 0-2.514 0l-4.597 4.597a1.78 1.78 0 0 0 0 2.514l4.597 4.597c.694.694 1.82.694 2.514 0"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M92.667 246.444a2.222 2.222 0 1 0 .001-4.443 2.222 2.222 0 0 0-.001 4.443M99.333 246.444a2.222 2.222 0 1 0 .002-4.443 2.222 2.222 0 0 0-.002 4.443M98.563 233.556h-5.126a.89.89 0 0 0-.88.763l-.335 2.348-2.666 2.666h12.888l-2.666-2.666-.335-2.348a.89.89 0 0 0-.88-.763M92.222 236.667h7.556"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),r("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:r("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),r("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:r("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),r("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),e("g",{children:[r("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),r("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),r("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),r("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:r("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),r("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),r("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),r("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:r("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),r("path",{className:"text-[var(--fg)]",fill:"currentColor",fillOpacity:"0.04",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),r("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),r("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:r("path",{d:"m240.395 167.185 4.876 1.673c.148.051.15.259.004.313l-2.186.822a.17.17 0 0 0-.097.098l-.822 2.186a.166.166 0 0 1-.313-.005l-1.674-4.876a.167.167 0 0 1 .212-.212zM243.019 170.021l2.808 2.808M240.165 163.167v1.333M242.995 164.338l-.943.943M237.338 169.995l.943-.943M236.166 167.166h1.333M237.338 164.338l.943.943"})}),r("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:r("tspan",{x:"251",y:"171.636",children:"51K"})})]}),e("defs",{children:[e("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EAB308",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#EAB308"})]}),e("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EAB308",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#EAB308"})]}),e("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#030712",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),e("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[r("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),e("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[r("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),r("clipPath",{id:`${t}-a`,children:r("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),r("clipPath",{id:`${t}-y`,children:r("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),r("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:r("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),r("image",{href:`${c}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as l,b as v,f as g}from"./chunk-H5ELGZJ5.mjs";import{a as c,c as u,d as N}from"./chunk-5HJID3RL.mjs";import{a as d}from"./chunk-IYVNIXK5.mjs";import{i as o,m as i}from"./chunk-HVAJT6I7.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as h}from"./chunk-3342XKCZ.mjs";import{l as p}from"./chunk-LHRSOLFV.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:(void 0)("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:(void 0)("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:(void 0)("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:(void 0)("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:(void 0)("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:(void 0)(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:(void 0)("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as c}from"./chunk-GYE7FFDN.mjs";import{a as e}from"./chunk-UUJYTAK4.mjs";import{a as s}from"./chunk-GV2NLM3E.mjs";import{a as i}from"./chunk-CGL6YSX7.mjs";import{a as l}from"./chunk-IGIB6XZB.mjs";import{m as o}from"./chunk-HVAJT6I7.mjs";import{cva as d}from"class-variance-authority";import{jsx as x,jsxs as b}from"react/jsx-runtime";var f=d("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),m={neutral:c,new:i,success:s,pending:l,warning:e,error:e};function v({className:g,variant:t,icon:r,onClick:n,children:u,...p}){let a=r!==null?r??m[t??"neutral"]:null;return b("span",{className:o(f({variant:t}),n&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",g),onClick:n,...p,children:[a&&x(a,{className:"h-3 w-3 shrink-0"}),u]})}export{f as a,v as b};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as H}from"./chunk-QRAS5QAW.mjs";import{a as R}from"./chunk-7PAQ53VS.mjs";import{a as I,e as T}from"./chunk-YQKCCSJY.mjs";import{a as D}from"./chunk-MOB4273G.mjs";import{a as P}from"./chunk-WGUPJEOG.mjs";import{a as E}from"./chunk-TP3T42OT.mjs";import{a as S}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as _}from"./chunk-25MRWMFJ.mjs";import{i as N,j as W,l as V,m as i}from"./chunk-VCTQS6IH.mjs";import*as a from"@radix-ui/react-navigation-menu";import{LayoutGroup as rt,motion as it}from"framer-motion";import at from"js-cookie";import v from"next/link";import{useParams as nt,usePathname as st}from"next/navigation";import{createContext as lt,useId as dt}from"react";import mt from"swr";import{useCallback as j,useEffect as B,useState as F}from"react";function G(n){let[r,c]=F(!1),o=j(()=>{c(window.scrollY>n)},[n]);return B(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),B(()=>{o()},[o]),r}import*as d from"@radix-ui/react-popover";import{BoxSelect as U,Home as $,LayoutGrid as Y,Type as q}from"lucide-react";import{useParams as J}from"next/navigation";import{useCallback as K,useContext as Q,useState as X}from"react";import{toast as tt}from"sonner";import{jsx as e,jsxs as O}from"react/jsx-runtime";var et=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
4
+ </svg>`,ot=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
6
+ </svg>`;function Z({variant:n="full",isInApp:r,className:c}){let{domain:o="dub.co"}=J(),{theme:b}=Q(y),[f,l]=X(!1),h=K(s=>{s.preventDefault(),l(!0)},[]),[,C]=S();function u(s){tt.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return O(d.Root,{open:f,onOpenChange:l,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(D,{className:c}):e(P,{className:i("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:i("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),l(!1)},children:O("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>u(et),icon:e(P,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>u(ot),icon:e(q,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:n,...r}){return e(_,{className:i("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as pt,jsx as t,jsxs as m}from"react/jsx-runtime";var y=lt({theme:"light"}),ct=[{name:"Product",content:H,childItems:I,segments:["/","/home","/features"]},{name:"Resources",content:R,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],A=i("relative block rounded-md px-4 py-2 text-sm font-medium text-neutral-700 hover:text-neutral-900","dark:text-white/90 dark:hover:text-white","transition-colors");function jt({theme:n="light",staticDomain:r,maxWidthWrapperClassName:c}){let{domain:o="dub.co"}=nt();r&&(o=r);let b=dt(),f=G(40),l=st(),{data:h,isLoading:C}=mt(o.endsWith("dub.co")&&"/api/auth/session",V,{dedupingInterval:6e4}),u=!!(o==="dub.co"&&at.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(rt,{id:b,children:m("div",{className:i("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:i("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:i("relative",c),children:m("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(Z,{})}),m(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(a.List,{className:"relative z-0 flex",children:ct.map(({name:s,href:k,segments:M,content:w})=>{console.log(l,M);let L=M.some(x=>x==="/"?l===x:l==null?void 0:l.startsWith(x));return m(a.Item,{children:[t(ut,{trigger:!!w,children:k!==void 0?m(v,{id:`nav-${k}`,href:N(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:A,children:[s,L&&t(z,{})]}):m("button",{className:A,children:[s,L&&t(z,{})]})}),w&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:i("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(v,{href:W,className:i(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):C?null:m(pt,{children:[t(v,{href:u?"https://app.dub.co/login":"https://d.to/login",className:i(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(v,{href:u?"https://app.dub.co/register":"https://d.to/register",className:i(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function ut({trigger:n,children:r}){return n?t(a.Trigger,{asChild:!0,children:r}):r}function z(){return t(it.div,{layoutId:"indicator",transition:{duration:.1},className:"pointer-events-none absolute inset-0 -z-[1] rounded-lg bg-neutral-900/5 dark:bg-white/10"})}export{G as a,y as b,ct as c,jt as d,Z as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{k as S}from"./chunk-FK5QGBOB.mjs";import{a as T}from"./chunk-IVJ4WATI.mjs";import{a as N}from"./chunk-6X5G5GUJ.mjs";import{flexRender as V,getCoreRowModel as A,useReactTable as B}from"@tanstack/react-table";import{AnimatePresence as j,motion as E}from"framer-motion";import{useEffect as D,useState as _}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var R=(t,i)=>(void 0)(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1",i&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function se(t){let{data:i,rowCount:u,columns:g,defaultColumn:v,columnPinning:b,pagination:f,onPaginationChange:p}=t,[s,y]=_(t.columnVisibility??{});D(()=>{t.columnVisibility&&!(void 0)(t.columnVisibility,s)&&y(t.columnVisibility??{})},[t.columnVisibility]),D(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,s)},[s]);let P=B({data:i,rowCount:u,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...v},getCoreRowModel:A(),onPaginationChange:p,onColumnVisibilityChange:d=>y(d),state:{pagination:f,columnVisibility:s,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:s,table:P}}function ae({columns:t,data:i,loading:u,error:g,emptyState:v,cellRight:b,sortBy:f,sortOrder:p,onSortChange:s,sortableColumns:y=[],className:P,containerClassName:d,scrollWrapperClassName:I,thClassName:w,tdClassName:h,table:l,pagination:r,resourceName:c,onRowClick:x,rowCount:M,children:W}){return a("div",{className:(void 0)("relative border border-gray-200 bg-white sm:rounded-xl",d),children:[!g&&!!(i!=null&&i.length)||u?a("div",{className:(void 0)("relative min-h-[400px] overflow-x-auto rounded-[inherit]",I),children:[a("table",{className:(void 0)(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent"],P),children:[n("thead",{children:l.getHeaderGroups().map(m=>n("tr",{children:m.headers.map(e=>{let C=y.includes(e.column.id),O=C?"button":"div";return n("th",{className:(void 0)(R(e.id),"select-none font-medium",z(e.column,!l.getRowModel().rows.length),typeof w=="function"?w(e.column.id):w),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...k(e.column)},children:n("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(O,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>s==null?void 0:s({sortBy:e.column.id,sortOrder:f!==e.column.id||p==="asc"?"desc":"asc"})},children:[n("span",{children:e.isPlaceholder?null:V(e.column.columnDef.header,e.getContext())}),C&&n(T,{order:f===e.column.id?p||"desc":null})]})})},e.id)})},m.id))}),n("tbody",{children:l.getRowModel().rows.map(m=>n("tr",{className:(void 0)("group/row",x&&"cursor-pointer select-none",l.getRowModel().rows.length>8&&m.index===l.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:x?e=>{(void 0)(e)||x(m,e)}:void 0,children:m.getVisibleCells().map(e=>n("td",{className:(void 0)(R(e.column.id,!!x),"group text-gray-600",z(e.column,m.index===l.getRowModel().rows.length-1),typeof h=="function"?h(e.column.id):h),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...k(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[n("div",{className:"min-w-0 shrink grow truncate",children:V(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},m.id))})]}),W]}):n("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||v||`No ${(c==null?void 0:c(!0))||"items"} found.`}),r&&!g&&!!(i!=null&&i.length)&&!!M&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[n("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(r.pageIndex-1)*r.pageSize+1,"-",Math.min((r.pageIndex-1)*r.pageSize+r.pageSize,l.getRowCount())]})," ","of"," ",n("span",{className:"font-medium",children:l.getRowCount().toLocaleString()})," ",(c==null?void 0:c(l.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[n(S,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>l.previousPage(),disabled:r.pageIndex===1}),n(S,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>l.nextPage(),disabled:r.pageIndex===l.getPageCount()})]})]}),n(j,{children:u&&n(E.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:n(N,{})})})]})}var z=(t,i)=>{let u=t.getIsPinned();return(void 0)(u&&!i&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},k=t=>{let i=t.getIsPinned();return{left:i==="left"?`${t.getStart("left")}px`:void 0,right:i==="right"?`${t.getAfter("right")}px`:void 0,position:i?"sticky":"relative"}};export{se as a,ae as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as i}from"./chunk-QDPPE47H.mjs";import{cva as C}from"class-variance-authority";import{createContext as h,useContext as p,useEffect as m,useRef as b,useState as x}from"react";import{jsx as d}from"react/jsx-runtime";var g=C("w-full group/card border-gray-200 bg-white",{variants:{variant:{compact:"first-of-type:rounded-t-xl last-of-type:rounded-b-xl first-of-type:border-t border-b border-x data-[hover-state-enabled=true]:hover:bg-gray-50 transition-colors",loose:"border rounded-xl transition-[filter] data-[hover-state-enabled=true]:hover:drop-shadow-card-hover"}}}),y="w-full py-2.5 px-4",L=h({hovered:!1});function N({outerClassName:l,innerClassName:c,children:f,onClick:s,hoverStateEnabled:v=!0}){let{variant:u}=p(i),r=b(null),[t,o]=x(!1);return m(()=>{if(!t||!r.current)return;let a=setInterval(()=>{var n;((n=r.current)==null?void 0:n.matches(":hover"))===!1&&o(!1)},1e3);return()=>clearInterval(a)},[t]),d("li",{ref:r,className:(void 0)(g({variant:u}),l),onPointerEnter:()=>o(!0),onPointerLeave:()=>o(!1),"data-hover-state-enabled":v,children:d("div",{className:(void 0)(y,c),onClick:s?a=>{document.getElementById("modal-backdrop")||(void 0)(a)||s()}:void 0,children:d(L.Provider,{value:{hovered:t},children:f})})})}export{L as a,N as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as N}from"./chunk-LDG5AWEL.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as D}from"./chunk-2AVTXLJA.mjs";import{a as x}from"./chunk-NAHB2RQQ.mjs";import{a as N,m as t}from"./chunk-HVAJT6I7.mjs";import{cva as H}from"class-variance-authority";import{useState as P}from"react";import{toast as U}from"sonner";import{Fragment as O,jsx as r,jsxs as y}from"react/jsx-runtime";var m={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"},csv:{types:["text/csv"],errorMessage:"File type not supported (.csv only)"}},I=H("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function Q({readFile:z,onChange:o,variant:R,className:j,iconClassName:A,previewClassName:E,accept:c="any",imageSrc:d,loading:T=!1,clickToUpload:g=!0,showHoverOverlay:L=!0,content:v,maxFileSizeMB:u=0,targetResolution:F,accessibilityLabel:M="File upload",disabled:s=!1}){let[b,l]=P(!1),[V,k]=P(null),h=async e=>{let a="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!a)return;if(k(a.name),u>0&&a.size/1024/1024>u){U.error(`File size too big (max ${u} MB)`);return}let w=m[c].types;if(w.length&&!w.includes(a.type)){U.error(m[c].errorMessage??"File type not supported");return}let n=a;if(F&&a.type.startsWith("image/"))try{let i=await N(a,F),f=await fetch(i).then(p=>p.blob());n=new File([f],a.name,{type:a.type})}catch(i){console.error("Error resizing image:",i)}if(z){let i=new FileReader;i.onload=f=>{var p;return o==null?void 0:o({src:(p=f.target)==null?void 0:p.result,file:n})},i.readAsDataURL(n);return}o==null||o({file:n})};return y("label",{className:t(I({variant:R}),s?"cursor-not-allowed":t(g&&"cursor-pointer"),j),children:[T&&r("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:r(x,{})}),r("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),l(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),l(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),l(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),h(e),l(!1)}}),y("div",{className:t("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] transition-all",s&&"bg-gray-50",b&&!s&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",d?t("opacity-0",L&&!s&&"group-hover:opacity-100"):t(!s&&"group-hover:bg-gray-50")),children:[r(D,{className:t("size-7 transition-all duration-75",s?"text-gray-400":t("text-gray-500 group-hover:scale-110 group-active:scale-95",b?"scale-110":"scale-100"),A)}),v!==null&&r("div",{className:t("mt-2 text-center text-sm text-gray-500",s&&"text-gray-400"),children:v??r(O,{children:y("p",{children:["Drag and drop ",g&&"or click"," to upload."]})})}),r("span",{className:"sr-only",children:M})]}),d&&r("img",{src:d,alt:"Preview",className:t("h-full w-full rounded-[inherit] object-cover",E)}),g&&r("div",{className:"sr-only mt-1 flex shadow-sm",children:r("input",{type:"file",accept:m[c].types.join(","),onChange:h,disabled:s},V)})]})}export{Q as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as H}from"./chunk-F2HJFOHF.mjs";import{a as T}from"./chunk-PPVXAUVZ.mjs";import{a as W}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as j}from"./chunk-H4UN7NPI.mjs";import{a as z}from"./chunk-LPV7TLRR.mjs";import{a as M}from"./chunk-6X5G5GUJ.mjs";import{a as K}from"./chunk-YURUGH4S.mjs";import{Command as y,useCommandState as q}from"cmdk";import{ChevronDown as G,ListFilter as J}from"lucide-react";import{Fragment as X,forwardRef as Y,isValidElement as B,useCallback as N,useEffect as w,useImperativeHandle as _,useRef as S,useState as D}from"react";import{Fragment as ae,jsx as n,jsxs as m}from"react/jsx-runtime";function fe({filters:t,onSelect:o,onRemove:a,onOpenFilter:s,onSearchChange:l,onSelectedFilterChange:g,activeFilters:i,askAI:h,children:x,emptyState:c,className:V}){var L,A;let{isMobile:Q}=P(),f=S(null),C=S(),[k,v]=D(!1);H("f",()=>v(!0),{enabled:!k});let[d,R]=D(""),[u,F]=D(null),E=N(()=>{R(""),F(null)},[]);w(()=>{k||E()},[k]);let r=u?t.find(({key:e})=>e===u):null,U=N(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=N(e=>{if(!r||!i)return!1;let p=i.find(({key:Z})=>Z===u);return(p==null?void 0:p.value)===e||p&&r.multiple&&Array.isArray(p.value)&&p.value.includes(e)},[r]),O=N(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||v(!1))},[i,r,h]);return w(()=>{l==null||l(d)},[d]),w(()=>{g==null||g(u)},[u]),w(()=>{(r==null?void 0:r.options)&&f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight})},[r==null?void 0:r.options]),n(T,{openPopover:k,setOpenPopover:v,onEscapeKeyDown:e=>{u&&(e.preventDefault(),E())},content:n(j,{width:!Q,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(y,{loop:!0,shouldFilter:!r||r.shouldFilter!==!1,children:[m("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(te,{placeholder:`${(r==null?void 0:r.label)||"Filter"}...`,value:d,onValueChange:R,onKeyDown:e=>{(e.key==="Escape"||e.key==="Backspace"&&!d)&&(e.preventDefault(),e.stopPropagation(),u?E():v(!1))},emptySubmit:e=>{e.preventDefault(),e.stopPropagation(),h?(o("ai",r?`${r.label} ${d}`:d),v(!1)):O(d)}}),!r&&n("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),n(re,{ref:f,children:m(y.List,{className:(void 0)("flex w-full flex-col gap-1 p-1",r?"min-w-[100px]":"min-w-[180px]"),children:[r?((A=(L=r.options)==null?void 0:L.filter(e=>!d||!e.hideDuringSearch))==null?void 0:A.map(e=>{let p=I(e.value);return n($,{filter:r,option:e,right:p?n(z,{className:"h-4 w-4"}):e.right,onSelect:()=>O(e.value)},e.value)}))??n(y.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:C.current,children:n(M,{})})}):t.map(e=>m(X,{children:[n($,{filter:e,onSelect:()=>U(e.key)}),e.separatorAfter&&n(y.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},e.key)),(!r||r.options)&&n(ne,{search:d,askAI:h,children:c?ee(c)?(c==null?void 0:c[u??"default"])??"No matches":c:"No matches"})]})},u)]})}),children:m("button",{type:"button",className:(void 0)("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",V),children:[n(J,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:x??"Filter"}),i!=null&&i.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:i.length}):n(G,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function ee(t){return typeof t=="object"&&t!==null&&!B(t)}var te=t=>{let o=q(a=>a.filtered.count===0);return n(y.Input,{...t,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:a=>{var s,l;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((l=t.emptySubmit)==null||l.call(t,a))},autoCapitalize:"none"})},re=Y(({children:t},o)=>{let a=S(null);_(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:l}=W(a);return m(ae,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:l,children:t}),n("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(s,2)}})]})});function $({filter:t,option:o,right:a,onSelect:s}){var h,x;let{isMobile:l}=P(),g=o?o.icon??((h=t.getOptionIcon)==null?void 0:h.call(t,o.value,{key:t.key,option:o}))??t.icon:t.icon,i=o?o.label??((x=t.getOptionLabel)==null?void 0:x.call(t,o.value,{key:t.key,option:o})):t.label;return m(y.Item,{className:(void 0)("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:c=>{c.preventDefault()},onPointerUp:c=>{c.preventDefault(),l?setTimeout(s,100):s()},onSelect:s,value:i+(o==null?void 0:o.value),children:[n("span",{className:"shrink-0 text-gray-600",children:oe(g)?g:n(g,{className:"h-4 w-4"})}),(void 0)(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var ne=({search:t,askAI:o,children:a})=>o&&t?m(y.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(K,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',t,'"']})]})]}):n(y.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),oe=t=>B(t);export{fe as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as l,e as p}from"./chunk-TCVVRSYX.mjs";import{a as s,c as n}from"./chunk-DMPLU2GO.mjs";import{i,m as e}from"./chunk-7LNA6Q2P.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{l as i}from"./chunk-LHRSOLFV.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:(void 0)("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as W}from"./chunk-NZRIEMXB.mjs";import{a as $}from"./chunk-AJROEBR6.mjs";import{a as j}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-JJX7GOEO.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-UYBFZJ5C.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{b as K,m as k}from"./chunk-ORQ643AR.mjs";import{Command as y,useCommandState as G}from"cmdk";import{ChevronDown as J,ListFilter as X}from"lucide-react";import{Fragment as Y,forwardRef as _,isValidElement as V,useCallback as N,useEffect as w,useImperativeHandle as ee,useRef as S,useState as D}from"react";import{Fragment as se,jsx as n,jsxs as m}from"react/jsx-runtime";function be({filters:t,onSelect:o,onRemove:a,onOpenFilter:s,onSearchChange:l,onSelectedFilterChange:g,activeFilters:i,askAI:h,children:v,emptyState:c,className:Q}){var L,A;let{isMobile:U}=P(),f=S(null),C=S(),[x,b]=D(!1);W("f",()=>b(!0),{enabled:!x});let[d,R]=D(""),[u,F]=D(null),E=N(()=>{R(""),F(null)},[]);w(()=>{x||E()},[x]);let r=u?t.find(({key:e})=>e===u):null,Z=N(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=N(e=>{if(!r||!i)return!1;let p=i.find(({key:q})=>q===u);return(p==null?void 0:p.value)===e||p&&r.multiple&&Array.isArray(p.value)&&p.value.includes(e)},[r]),O=N(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||b(!1))},[i,r,h]);return w(()=>{l==null||l(d)},[d]),w(()=>{g==null||g(u)},[u]),w(()=>{(r==null?void 0:r.options)&&f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight})},[r==null?void 0:r.options]),n($,{openPopover:x,setOpenPopover:b,onEscapeKeyDown:e=>{u&&(e.preventDefault(),E())},content:n(T,{width:!U,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(y,{loop:!0,shouldFilter:!r||r.shouldFilter!==!1,children:[m("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(re,{placeholder:`${(r==null?void 0:r.label)||"Filter"}...`,value:d,onValueChange:R,onKeyDown:e=>{(e.key==="Escape"||e.key==="Backspace"&&!d)&&(e.preventDefault(),e.stopPropagation(),u?E():b(!1))},emptySubmit:e=>{e.preventDefault(),e.stopPropagation(),h?(o("ai",r?`${r.label} ${d}`:d),b(!1)):O(d)}}),!r&&n("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),n(ne,{ref:f,children:m(y.List,{className:k("flex w-full flex-col gap-1 p-1",r?"min-w-[100px]":"min-w-[180px]"),children:[r?((A=(L=r.options)==null?void 0:L.filter(e=>!d||!e.hideDuringSearch))==null?void 0:A.map(e=>{let p=I(e.value);return n(B,{filter:r,option:e,right:p?n(H,{className:"h-4 w-4"}):e.right,onSelect:()=>O(e.value)},e.value)}))??n(y.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:C.current,children:n(z,{})})}):t.map(e=>m(Y,{children:[n(B,{filter:e,onSelect:()=>Z(e.key)}),e.separatorAfter&&n(y.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},e.key)),(!r||r.options)&&n(oe,{search:d,askAI:h,children:c?te(c)?(c==null?void 0:c[u??"default"])??"No matches":c:"No matches"})]})},u)]})}),children:m("button",{type:"button",className:k("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",Q),children:[n(X,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:v??"Filter"}),i!=null&&i.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:i.length}):n(J,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function te(t){return typeof t=="object"&&t!==null&&!V(t)}var re=t=>{let o=G(a=>a.filtered.count===0);return n(y.Input,{...t,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:a=>{var s,l;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((l=t.emptySubmit)==null||l.call(t,a))},autoCapitalize:"none"})},ne=_(({children:t},o)=>{let a=S(null);ee(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:l}=j(a);return m(se,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:l,children:t}),n("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(s,2)}})]})});function B({filter:t,option:o,right:a,onSelect:s}){var h,v;let{isMobile:l}=P(),g=o?o.icon??((h=t.getOptionIcon)==null?void 0:h.call(t,o.value,{key:t.key,option:o}))??t.icon:t.icon,i=o?o.label??((v=t.getOptionLabel)==null?void 0:v.call(t,o.value,{key:t.key,option:o})):t.label;return m(y.Item,{className:k("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:c=>{c.preventDefault()},onPointerUp:c=>{c.preventDefault(),l?setTimeout(s,100):s()},onSelect:s,value:i+(o==null?void 0:o.value),children:[n("span",{className:"shrink-0 text-gray-600",children:ae(g)?g:n(g,{className:"h-4 w-4"})}),K(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var oe=({search:t,askAI:o,children:a})=>o&&t?m(y.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(M,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',t,'"']})]})]}):n(y.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),ae=t=>V(t);export{be as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{jsx as t}from"react/jsx-runtime";function h(r){return t("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:t("g",{fill:"currentColor",children:t("path",{d:"M15.923,13.069c.006-.013,.015-.023,.02-.036,.034-.083,.049-.169,.052-.258,0-.009,.005-.016,.005-.025V1.75c0-.414-.336-.75-.75-.75H4.75c-1.517,0-2.75,1.233-2.75,2.75V14.5c0,1.378,1.121,2.5,2.5,2.5H15.25c.286,0,.547-.163,.673-.419s.096-.562-.079-.789c-.522-.679-.434-2.013,.004-2.589,.032-.042,.053-.088,.075-.135ZM8.75,4.5h3.5c.414,0,.75,.336,.75,.75s-.336,.75-.75,.75h-3.5c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75Zm0,3h3.5c.414,0,.75,.336,.75,.75s-.336,.75-.75,.75h-3.5c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75ZM3.5,3.75c0-.689,.561-1.25,1.25-1.25h.25V12h-.5c-.356,0-.693,.077-1,.212V3.75ZM14.092,15.5H4.5c-.552,0-1-.449-1-1s.448-1,1-1H14.105c-.155,.629-.174,1.339-.014,2Z",fill:"currentColor"})})})}import{jsx as o,jsxs as f}from"react/jsx-runtime";function n(r){return o("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:f("g",{fill:"currentColor",children:[o("path",{d:"M15.75,10.5h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,14h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,3.5h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,7h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("circle",{cx:"3.75",cy:"4.25",fill:"currentColor",r:"2.25"}),o("circle",{cx:"3.75",cy:"11.25",fill:"currentColor",r:"2.25"})]})})}import{jsx as l,jsxs as s}from"react/jsx-runtime";function g(r){return l("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:s("g",{fill:"currentColor",children:[l("path",{d:"M17,13h-.878c-.044-.138-.098-.271-.164-.397l.62-.621c.293-.293,.293-.768,0-1.061-.294-.293-.769-.292-1.061,0l-.62,.621c-.127-.066-.259-.121-.397-.164v-.878c0-.414-.336-.75-.75-.75s-.75,.336-.75,.75v.878c-.138,.044-.271,.098-.397,.164l-.62-.621c-.292-.292-.767-.293-1.061,0-.293,.292-.293,.768,0,1.061l.62,.621c-.066,.127-.12,.259-.164,.397h-.878c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h.878c.044,.138,.098,.271,.164,.397l-.62,.621c-.293,.293-.293,.768,0,1.061,.146,.146,.339,.22,.53,.22,.192,0,.384-.073,.53-.22l.62-.621c.127,.066,.259,.121,.397,.164v.878c0,.414,.336,.75,.75,.75s.75-.336,.75-.75v-.878c.138-.044,.271-.098,.397-.164l.62,.621c.146,.146,.338,.22,.53,.22,.191,0,.384-.073,.53-.22,.293-.292,.293-.768,0-1.061l-.62-.621c.066-.127,.12-.259,.164-.397h.878c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Zm-2.25,.75c0,.551-.448,1-1,1s-1-.449-1-1,.448-1,1-1,1,.449,1,1Z",fill:"currentColor"}),l("path",{d:"M8.75,14.983v-5.551l4.75-2.755v1.383c0,.414,.336,.75,.75,.75s.75-.336,.75-.75v-1.533c0-.977-.524-1.888-1.37-2.379L9.38,1.683c-.852-.493-1.908-.493-2.76,0L2.369,4.148c-.845,.491-1.369,1.402-1.369,2.379v4.945c0,.977,.524,1.888,1.37,2.379l4.25,2.465c.425,.246,.896,.37,1.368,.37,.449,0,.9-.112,1.315-.335,.365-.197,.501-.651,.305-1.016-.169-.314-.529-.444-.858-.352Zm-5.627-2.428c-.385-.223-.623-.638-.623-1.082V6.677l4.75,2.755v5.516l-4.127-2.394Z",fill:"currentColor"})]})})}import{jsx as e}from"react/jsx-runtime";function w(r){return e("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:e("g",{fill:"currentColor",children:e("path",{d:"M12.259,10.858c-.36,0-.755-.023-1.192-.069-.412-.043-.71-.413-.667-.825,.043-.412,.409-.711,.825-.667,1.405,.149,2.158,.017,2.695-.311,.502-.418,.899-.998,1.116-1.831,.139-.612,.228-1.204,.313-1.776,.135-.901,.262-1.751,.551-2.256,.139-.242,.132-.542-.019-.777-.15-.235-.417-.373-.697-.343C3.521,3.023,2.019,15.044,2.005,15.165c-.047,.411,.248,.782,.659,.83,.029,.003,.058,.005,.087,.005,.375,0,.7-.282,.744-.664,.017-.143,.174-1.323,.711-2.88,.81,.363,1.612,.523,1.659,.531,.854,.156,1.643,.234,2.367,.234,1.507,0,2.73-.338,3.65-1.01,.506-.37,.898-.847,1.198-1.406-.254,.031-.522,.052-.822,.052Z",fill:"currentColor"})})})}import{jsx as c,jsxs as m}from"react/jsx-runtime";function V(r){return c("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:m("g",{fill:"currentColor",children:[c("path",{d:"M10.709,17h-1.959c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75h1.959c.586,0,1.087-.399,1.219-.971l.343-1.451c.095-.403,.498-.65,.902-.558,.402,.095,.652,.5,.557,.902l-.342,1.447c-.287,1.253-1.39,2.131-2.679,2.131Z",fill:"currentColor"}),c("path",{d:"M14.137,14h-1.137c-.227,0-.441-.103-.584-.279-.143-.176-.197-.408-.149-.629l1.084-5c.104-.422,.149-.762,.149-1.091,0-2.481-2.019-4.5-4.5-4.5s-4.5,2.019-4.5,4.5c0,.329,.046,.669,.145,1.071l1.089,5.02c.048,.222-.007,.453-.149,.629-.143,.177-.357,.279-.584,.279h-1.137c-1.285,0-2.416-.912-2.688-2.167l-.335-1.545c-.265-1.224,.332-2.473,1.449-3.037l.712-.359c.059-3.258,2.727-5.891,5.999-5.891s5.94,2.633,5.999,5.891l.712,.359c1.117,.564,1.714,1.813,1.449,3.037l-.335,1.545c-.272,1.256-1.403,2.167-2.688,2.167Z",fill:"currentColor"})]})})}import{jsx as p}from"react/jsx-runtime";function d(r){return p("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:p("g",{fill:"currentColor",children:p("path",{d:"m11.5,3h-5C3.1914,3,.5,5.6914.5,9s2.6914,6,6,6h5c3.3086,0,6-2.6914,6-6s-2.6914-6-6-6Zm-5,9c-1.6543,0-3-1.3457-3-3s1.3457-3,3-3,3,1.3457,3,3-1.3457,3-3,3Z",fill:"currentColor",strokeWidth:"0"})})})}export{h as a,n as b,g as c,w as d,V as e,d as f};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as C}from"./chunk-ORQ643AR.mjs";import{jsx as l,jsxs as i}from"react/jsx-runtime";function t({className:r}){return i("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as i}from"./chunk-ORQ643AR.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as C}from"./chunk-HVAJT6I7.mjs";import{jsx as l,jsxs as i}from"react/jsx-runtime";function t({className:r}){return i("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as b}from"./chunk-V6CYMTUE.mjs";import{a as C}from"./chunk-6JPO26GL.mjs";import{a as y}from"./chunk-32C65ISH.mjs";import{a as m}from"./chunk-LFGWL3ID.mjs";import{a as g}from"./chunk-CZSSD6PV.mjs";import{a as f}from"./chunk-D7SRRREC.mjs";import{a as d}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as u}from"./chunk-55MW6BPC.mjs";import{a as p}from"./chunk-DWACNU5E.mjs";import{a as c}from"./chunk-HRTLCZFX.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a}from"./chunk-Q4S6TICU.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as s}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var k=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:c,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:d,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:m,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:f,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:y,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:C,href:"/docs/api-reference/introduction"}],S=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Complex link infrastructure",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:b,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],R=[{icon:p,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:g,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:s,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],A=[{icon:u,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:a,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],E=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],F=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{k as a,S as b,R as c,v as d,A as e,E as f,F as g};
@@ -0,0 +1,6 @@
1
+ "use client"
2
+ import{a as T}from"./chunk-CSS6W3MQ.mjs";import{a as H}from"./chunk-MG3JVVDV.mjs";import{a as S,e as W}from"./chunk-TCVVRSYX.mjs";import{a as E}from"./chunk-NL5BFUDW.mjs";import{a as C}from"./chunk-5ZLK4D4J.mjs";import{a as V}from"./chunk-5ORITTGP.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-AQIV6QKZ.mjs";import{i as w,j as P,l as M,m as l}from"./chunk-7LNA6Q2P.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
4
+ </svg>`,K=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
6
+ </svg>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:W},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=Q(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r.endsWith("dub.co")&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{l as r}from"./chunk-LHRSOLFV.mjs";import{cva as n}from"class-variance-authority";import{createContext as e}from"react";import{jsx as t}from"react/jsx-runtime";var p=n("group/card-list w-full flex flex-col transition-[gap,opacity] min-w-0",{variants:{variant:{compact:"gap-0",loose:"gap-4"},loading:{true:"opacity-50"}}}),l=e({variant:"loose"});function m({variant:a="loose",loading:o=!1,className:i,children:s}){return t("ul",{className:(void 0)(p({variant:a,loading:o}),i),"data-variant":a,children:t(l.Provider,{value:{variant:a},children:s})})}export{l as a,m as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as N}from"./chunk-M2X3Q5KH.mjs";import{a as b}from"./chunk-BS6EW2NX.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-VCTQS6IH.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as w}from"./chunk-XU2GKM2O.mjs";import{a as x,f as k,g as L}from"./chunk-VSCITBCY.mjs";import{a as C}from"./chunk-5ORITTGP.mjs";import{a as v}from"./chunk-3SUGMN7W.mjs";import{a as b}from"./chunk-HXFSL4GV.mjs";import{a as _}from"./chunk-FVTULQVK.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-7LNA6Q2P.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as w}from"./chunk-PWUPAYJU.mjs";import{a as x,f as k,g as L}from"./chunk-YQKCCSJY.mjs";import{a as C}from"./chunk-TP3T42OT.mjs";import{a as v}from"./chunk-KGHQKY4T.mjs";import{a as b}from"./chunk-64JANH7J.mjs";import{a as _}from"./chunk-NEJ2U2ZO.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-VCTQS6IH.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{l as u}from"./chunk-LHRSOLFV.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as G}from"react";import{DayPicker as I,useDayPicker as j,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:N,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:(void 0)("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:w,...y,children:e(N,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function X({mode:w="single",weekStartsOn:N=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:M,className:L,classNames:D,...R}){return e(I,{mode:w,weekStartsOn:N,numberOfMonths:m,locale:M,showOutsideDays:m===1,className:L,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:(void 0)("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...D},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:n,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:o}=j(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);n&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!o||a.getTime()<=o.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!n||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!n,"aria-label":"Go to previous month",onClick:()=>n&&r(n),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:M})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||o&&P(s,1).getTime()>o.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=G(null),{activeModifiers:n,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:o,today:b,disabled:f,range_middle:h}=n;if(l)return e(z,{});if(!g)return e("div",{...d,className:(void 0)("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:(void 0)("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!o,"!bg-white":o,"!bg-blue-400":o&&h,"text-gray-400":f})})]})}},...R})}export{X as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as N}from"./chunk-PZQ2WJI6.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{m as r}from"./chunk-HVAJT6I7.mjs";import{Drawer as o}from"vaul";import{jsx as i,jsxs as w}from"react/jsx-runtime";function m({children:t,contentProps:e,nested:n=!1,...s}){let f=n?o.NestedRoot:o.Root;return i(f,{direction:"right",handleOnly:!0,...s,children:w(o.Portal,{children:[i(o.Overlay,{className:"fixed inset-0 bg-black/20"}),i(o.Content,{...e,onPointerDownOutside:l=>{var a;l.target instanceof Element&&l.target.closest("[data-sonner-toast]")&&l.preventDefault(),(a=e==null?void 0:e.onPointerDownOutside)==null||a.call(e,l)},className:r("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",e==null?void 0:e.className),style:{"--initial-transform":"calc(100% + 8px)","user-select":"auto",...e==null?void 0:e.style},children:i("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:t})})]})})}function u({className:t,...e}){return i(o.Title,{className:r("text-xl font-medium text-zinc-900",t),...e})}function d(t){return i(o.Description,{...t})}function C(t){return i(o.Close,{...t})}var x=Object.assign(m,{Title:u,Description:d,Close:C});export{x as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as r}from"./chunk-7TBGFJM2.mjs";import{l as t}from"./chunk-LHRSOLFV.mjs";import{motion as c}from"framer-motion";import{forwardRef as u,useRef as C}from"react";import{jsx as d}from"react/jsx-runtime";var R=u(({width:i=!1,height:e=!1,className:p,transition:f,children:s,...h},l)=>{var a,m;let n=C(null),o=r(n);return d(c.div,{ref:l,className:(void 0)("overflow-hidden",p),animate:{width:i?((a=o==null?void 0:o.contentRect)==null?void 0:a.width)??"auto":"auto",height:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.height)??"auto":"auto"},transition:f??{type:"spring",duration:.3},...h,children:d("div",{ref:n,className:(void 0)(e&&"h-max",i&&"w-max"),children:s})})});R.displayName="AnimatedSizeContainer";export{R as a};