@dub/ui 0.1.42 → 0.1.43

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 (465) hide show
  1. package/dist/accordion.mjs +1 -1
  2. package/dist/alert.mjs +1 -1
  3. package/dist/animated-size-container.d.ts +10 -10
  4. package/dist/animated-size-container.mjs +1 -1
  5. package/dist/avatar.mjs +1 -1
  6. package/dist/badge.d.ts +1 -1
  7. package/dist/badge.mjs +1 -1
  8. package/dist/blur-image.mjs +1 -1
  9. package/dist/button.d.ts +2 -1
  10. package/dist/button.mjs +1 -1
  11. package/dist/card-list/card-list-card.mjs +1 -1
  12. package/dist/card-list/card-list-pagination.mjs +1 -1
  13. package/dist/card-list/card-list.mjs +1 -1
  14. package/dist/carousel.mjs +1 -1
  15. package/dist/checkbox.mjs +1 -1
  16. package/dist/chunk-22VQCXTS.mjs +2 -0
  17. package/dist/chunk-26UTZ36T.mjs +2 -0
  18. package/dist/chunk-2AOKBLAO.mjs +2 -0
  19. package/dist/chunk-2B4ZUEWM.mjs +2 -0
  20. package/dist/chunk-2DDO5LZJ.mjs +2 -0
  21. package/dist/chunk-2EX5FTIX.mjs +2 -0
  22. package/dist/chunk-2EXAOHUE.mjs +2 -0
  23. package/dist/chunk-2H5NWO74.mjs +2 -0
  24. package/dist/chunk-2IBR6G4X.mjs +2 -0
  25. package/dist/chunk-2N2OSZGO.mjs +2 -0
  26. package/dist/chunk-2NQWSFJN.mjs +2 -0
  27. package/dist/chunk-2PGKKBI3.mjs +2 -0
  28. package/dist/chunk-2Q32RL6S.mjs +2 -0
  29. package/dist/chunk-2QZ75VBU.mjs +2 -0
  30. package/dist/chunk-2RERHOTA.mjs +2 -0
  31. package/dist/chunk-2SSV4SNM.mjs +2 -0
  32. package/dist/chunk-2VGBG2Y3.mjs +2 -0
  33. package/dist/chunk-3522UCTB.mjs +2 -0
  34. package/dist/chunk-35NFT3WW.mjs +6 -0
  35. package/dist/chunk-37AIPO3A.mjs +2 -0
  36. package/dist/chunk-3AAV6LWB.mjs +2 -0
  37. package/dist/chunk-3DAEAC76.mjs +2 -0
  38. package/dist/chunk-3EFTXDLN.mjs +6 -0
  39. package/dist/chunk-3GNN3TAS.mjs +2 -0
  40. package/dist/chunk-3LRCYFHO.mjs +2 -0
  41. package/dist/chunk-3QCQ2QIR.mjs +2 -0
  42. package/dist/chunk-3QRFF4QU.mjs +2 -0
  43. package/dist/chunk-3QY3W3M7.mjs +2 -0
  44. package/dist/chunk-3U6JJNOR.mjs +2 -0
  45. package/dist/chunk-3UQ5CRFA.mjs +2 -0
  46. package/dist/chunk-3UQSTAS7.mjs +2 -0
  47. package/dist/chunk-3WHMW5GD.mjs +2 -0
  48. package/dist/chunk-3ZS6NX3B.mjs +2 -0
  49. package/dist/chunk-47DPLAJJ.mjs +2 -0
  50. package/dist/chunk-47VYBD5N.mjs +2 -0
  51. package/dist/chunk-4BAKNAAO.mjs +2 -0
  52. package/dist/chunk-4BJFIGMU.mjs +2 -0
  53. package/dist/chunk-4E2CCKCW.mjs +2 -0
  54. package/dist/chunk-4GKL2J4S.mjs +2 -0
  55. package/dist/chunk-4JIDEN3F.mjs +2 -0
  56. package/dist/chunk-4MEKW67Y.mjs +2 -0
  57. package/dist/chunk-4NOI657T.mjs +2 -0
  58. package/dist/chunk-4NXF6PD7.mjs +2 -0
  59. package/dist/chunk-4TIOMP7W.mjs +2 -0
  60. package/dist/chunk-4U5SMGPH.mjs +2 -0
  61. package/dist/chunk-4Z4D32TS.mjs +2 -0
  62. package/dist/chunk-526PIVDQ.mjs +2 -0
  63. package/dist/chunk-54DQRXYB.mjs +2 -0
  64. package/dist/chunk-55R5P5O4.mjs +2 -0
  65. package/dist/chunk-57JW7ERJ.mjs +2 -0
  66. package/dist/chunk-5AEOBPRN.mjs +2 -0
  67. package/dist/chunk-5ATHOZZU.mjs +2 -0
  68. package/dist/chunk-5FRWP5RL.mjs +2 -0
  69. package/dist/chunk-5IPH3W22.mjs +2 -0
  70. package/dist/chunk-5NADOKXK.mjs +2 -0
  71. package/dist/chunk-5RDHO23D.mjs +2 -0
  72. package/dist/chunk-5UBDEJEP.mjs +2 -0
  73. package/dist/chunk-5ZA7YN3I.mjs +2 -0
  74. package/dist/chunk-67WQAZMJ.mjs +2 -0
  75. package/dist/chunk-6CUTW667.mjs +2 -0
  76. package/dist/chunk-6EGGHEJW.mjs +2 -0
  77. package/dist/chunk-6FCAUAFL.mjs +2 -0
  78. package/dist/chunk-6JDZJ7TV.mjs +2 -0
  79. package/dist/chunk-6JNTHLKR.mjs +2 -0
  80. package/dist/chunk-6JO6DIFQ.mjs +2 -0
  81. package/dist/chunk-6N7VVCEW.mjs +6 -0
  82. package/dist/chunk-6OKFVIKA.mjs +2 -0
  83. package/dist/chunk-6OPHP3SO.mjs +2 -0
  84. package/dist/chunk-6PQHHUM3.mjs +2 -0
  85. package/dist/chunk-6QEHC5HE.mjs +2 -0
  86. package/dist/chunk-6T634WQ7.mjs +2 -0
  87. package/dist/chunk-6WWGKXOZ.mjs +2 -0
  88. package/dist/chunk-736DQQNI.mjs +2 -0
  89. package/dist/chunk-75F4AZKD.mjs +2 -0
  90. package/dist/chunk-762XYVJA.mjs +2 -0
  91. package/dist/chunk-765P4464.mjs +2 -0
  92. package/dist/chunk-77GNDRJE.mjs +2 -0
  93. package/dist/chunk-7CSHSNAF.mjs +2 -0
  94. package/dist/chunk-7D3OVY7U.mjs +2 -0
  95. package/dist/chunk-7DPTCLVR.mjs +2 -0
  96. package/dist/chunk-7HCULZEO.mjs +2 -0
  97. package/dist/chunk-7QK3NTMP.mjs +2 -0
  98. package/dist/chunk-7TJAMB4H.mjs +2 -0
  99. package/dist/chunk-A3CFMSMP.mjs +2 -0
  100. package/dist/chunk-A4SAPFEG.mjs +2 -0
  101. package/dist/chunk-AB77OU3N.mjs +2 -0
  102. package/dist/chunk-ADDTGVHP.mjs +2 -0
  103. package/dist/chunk-ADG5QSYW.mjs +2 -0
  104. package/dist/chunk-AH7BP3GW.mjs +2 -0
  105. package/dist/chunk-AIMMOL25.mjs +2 -0
  106. package/dist/chunk-AIXWJY6H.mjs +2 -0
  107. package/dist/chunk-AJVGGOXE.mjs +2 -0
  108. package/dist/chunk-AMCG252V.mjs +2 -0
  109. package/dist/chunk-APZXG6H5.mjs +2 -0
  110. package/dist/chunk-AQB5EGRA.mjs +2 -0
  111. package/dist/chunk-AW3FK5HD.mjs +2 -0
  112. package/dist/chunk-AWUOUW3G.mjs +2 -0
  113. package/dist/chunk-AWYTUX33.mjs +2 -0
  114. package/dist/chunk-B2Q6EKPP.mjs +2 -0
  115. package/dist/chunk-B2QUCGN3.mjs +2 -0
  116. package/dist/chunk-B3PCCHZ5.mjs +2 -0
  117. package/dist/chunk-B3TCVH4R.mjs +2 -0
  118. package/dist/chunk-BA7PDLUS.mjs +2 -0
  119. package/dist/chunk-BDH523DV.mjs +2 -0
  120. package/dist/chunk-BF5PBBMZ.mjs +2 -0
  121. package/dist/chunk-BFCHLS7R.mjs +2 -0
  122. package/dist/chunk-BFK25NV2.mjs +2 -0
  123. package/dist/chunk-BGBQP4FA.mjs +2 -0
  124. package/dist/chunk-BJ6N4565.mjs +2 -0
  125. package/dist/chunk-BMA23JFE.mjs +2 -0
  126. package/dist/chunk-BSB5FSZJ.mjs +2 -0
  127. package/dist/chunk-BW6LPRF4.mjs +2 -0
  128. package/dist/chunk-BYDDKUS3.mjs +2 -0
  129. package/dist/chunk-C4QIHV4E.mjs +2 -0
  130. package/dist/chunk-CAALHQAA.mjs +2 -0
  131. package/dist/chunk-CAJ4VPYL.mjs +2 -0
  132. package/dist/chunk-CF5QPZAZ.mjs +2 -0
  133. package/dist/chunk-CJ7CR6AX.mjs +2 -0
  134. package/dist/chunk-CNPQGTEH.mjs +2 -0
  135. package/dist/chunk-CZBS56VC.mjs +2 -0
  136. package/dist/chunk-D373C5O5.mjs +2 -0
  137. package/dist/chunk-D5ZK7UCM.mjs +2 -0
  138. package/dist/chunk-DGDXBKHW.mjs +2 -0
  139. package/dist/chunk-DJV2SUL2.mjs +2 -0
  140. package/dist/chunk-DLGXSWUZ.mjs +2 -0
  141. package/dist/chunk-DONQLQ5Z.mjs +2 -0
  142. package/dist/chunk-DQ4K6XOY.mjs +2 -0
  143. package/dist/chunk-DQKW6CXB.mjs +2 -0
  144. package/dist/chunk-DTJX6CJZ.mjs +2 -0
  145. package/dist/chunk-DTKDAEI5.mjs +2 -0
  146. package/dist/chunk-DZAGEBYT.mjs +2 -0
  147. package/dist/chunk-E74B3LWC.mjs +2 -0
  148. package/dist/chunk-E7BCR7RT.mjs +2 -0
  149. package/dist/chunk-ED4UUUV3.mjs +2 -0
  150. package/dist/chunk-EDK4AR77.mjs +2 -0
  151. package/dist/chunk-EMZK675T.mjs +2 -0
  152. package/dist/chunk-ETYHTR4R.mjs +2 -0
  153. package/dist/chunk-EU3GT3UR.mjs +2 -0
  154. package/dist/chunk-EYZXLP7S.mjs +2 -0
  155. package/dist/chunk-F5JLRBQ5.mjs +2 -0
  156. package/dist/chunk-F6CZHTT4.mjs +2 -0
  157. package/dist/chunk-FAZN4FUF.mjs +2 -0
  158. package/dist/chunk-FD2MVB5I.mjs +2 -0
  159. package/dist/chunk-FFH6IEVI.mjs +2 -0
  160. package/dist/chunk-FGPAFCKI.mjs +2 -0
  161. package/dist/chunk-FII2WPBU.mjs +2 -0
  162. package/dist/chunk-FKUNUEFV.mjs +2 -0
  163. package/dist/chunk-FLDES2VR.mjs +2 -0
  164. package/dist/chunk-FLS3N5OD.mjs +2 -0
  165. package/dist/chunk-FMHWMIS7.mjs +2 -0
  166. package/dist/chunk-FNA235EX.mjs +2 -0
  167. package/dist/chunk-FNFAFBSH.mjs +2 -0
  168. package/dist/chunk-FNFBNFCQ.mjs +2 -0
  169. package/dist/chunk-FP5767J3.mjs +2 -0
  170. package/dist/chunk-FP6EDWNF.mjs +2 -0
  171. package/dist/chunk-FPAFWJLD.mjs +6 -0
  172. package/dist/chunk-FVFX2NEV.mjs +2 -0
  173. package/dist/chunk-FWHNTEDY.mjs +2 -0
  174. package/dist/chunk-FY7RAXWI.mjs +2 -0
  175. package/dist/chunk-FYKKACAO.mjs +2 -0
  176. package/dist/chunk-GBCYNTKL.mjs +2 -0
  177. package/dist/chunk-GC3HGCWP.mjs +2 -0
  178. package/dist/chunk-GFAOKHKB.mjs +2 -0
  179. package/dist/chunk-GFOJYSVE.mjs +2 -0
  180. package/dist/chunk-GKT5MQAV.mjs +2 -0
  181. package/dist/chunk-GLXFEQD7.mjs +2 -0
  182. package/dist/chunk-GSFPBJSH.mjs +2 -0
  183. package/dist/chunk-GVLHFKBA.mjs +2 -0
  184. package/dist/chunk-H2YB6HEF.mjs +2 -0
  185. package/dist/chunk-HCJW5H7Y.mjs +2 -0
  186. package/dist/chunk-HDTPDDFC.mjs +2 -0
  187. package/dist/chunk-HGIBZZNW.mjs +2 -0
  188. package/dist/chunk-HHVKTGZH.mjs +2 -0
  189. package/dist/chunk-HKIWL7OB.mjs +2 -0
  190. package/dist/chunk-HKZNQ245.mjs +2 -0
  191. package/dist/chunk-HMQO3TWF.mjs +2 -0
  192. package/dist/chunk-HNZVJ7AH.mjs +2 -0
  193. package/dist/chunk-HO6EWDWC.mjs +2 -0
  194. package/dist/chunk-HPXCEBBQ.mjs +2 -0
  195. package/dist/chunk-HQPOMDNV.mjs +2 -0
  196. package/dist/chunk-HTNORLOJ.mjs +2 -0
  197. package/dist/chunk-HWILOJKM.mjs +2 -0
  198. package/dist/chunk-HZRK72BB.mjs +2 -0
  199. package/dist/chunk-I7RKLBS3.mjs +2 -0
  200. package/dist/chunk-ICNX7MR2.mjs +2 -0
  201. package/dist/chunk-IKXIQ6SP.mjs +2 -0
  202. package/dist/chunk-ILFLOD7D.mjs +2 -0
  203. package/dist/chunk-ILKDX3JO.mjs +2 -0
  204. package/dist/chunk-IN37UVJY.mjs +2 -0
  205. package/dist/chunk-IQRIPCGQ.mjs +2 -0
  206. package/dist/chunk-IRG2GZB3.mjs +2 -0
  207. package/dist/chunk-IT2RXTRT.mjs +2 -0
  208. package/dist/chunk-IUSCFHMW.mjs +6 -0
  209. package/dist/chunk-IYAIQC4O.mjs +2 -0
  210. package/dist/chunk-IYLAG6AC.mjs +2 -0
  211. package/dist/chunk-J2LGZUAK.mjs +2 -0
  212. package/dist/chunk-J5CUY4DB.mjs +2 -0
  213. package/dist/chunk-J6GBIVYL.mjs +2 -0
  214. package/dist/chunk-J74IKRYE.mjs +2 -0
  215. package/dist/chunk-JGXGESJD.mjs +2 -0
  216. package/dist/chunk-JJIFS5EW.mjs +2 -0
  217. package/dist/chunk-JJVJLAGU.mjs +2 -0
  218. package/dist/chunk-JL4PJPFE.mjs +2 -0
  219. package/dist/chunk-JLQA7YP7.mjs +2 -0
  220. package/dist/chunk-JMONP47A.mjs +2 -0
  221. package/dist/chunk-JO7LAFJB.mjs +2 -0
  222. package/dist/chunk-JQMGPZ5D.mjs +2 -0
  223. package/dist/chunk-JRVYQBS5.mjs +2 -0
  224. package/dist/chunk-JVBXWLLT.mjs +2 -0
  225. package/dist/chunk-K4WOYZHT.mjs +2 -0
  226. package/dist/chunk-K4YGY4VA.mjs +2 -0
  227. package/dist/chunk-KCJ6FBVC.mjs +2 -0
  228. package/dist/chunk-KELLNH2S.mjs +2 -0
  229. package/dist/chunk-KHINVDF2.mjs +2 -0
  230. package/dist/chunk-KM7HFRFI.mjs +2 -0
  231. package/dist/chunk-KREUVMXB.mjs +2 -0
  232. package/dist/chunk-KTB74533.mjs +2 -0
  233. package/dist/chunk-KWEH757D.mjs +6 -0
  234. package/dist/chunk-L3MFQIJD.mjs +2 -0
  235. package/dist/chunk-L5KCKSED.mjs +2 -0
  236. package/dist/chunk-L6XDIPBV.mjs +2 -0
  237. package/dist/chunk-LMLXNJXO.mjs +2 -0
  238. package/dist/chunk-LOZJMHIK.mjs +2 -0
  239. package/dist/chunk-LTI5RGDT.mjs +2 -0
  240. package/dist/chunk-M42FIGRQ.mjs +2 -0
  241. package/dist/chunk-MA4JVXD5.mjs +2 -0
  242. package/dist/chunk-MCKIL2UE.mjs +2 -0
  243. package/dist/chunk-MFQMY2DV.mjs +2 -0
  244. package/dist/chunk-MOGLS2NJ.mjs +2 -0
  245. package/dist/chunk-MQDBJI4S.mjs +2 -0
  246. package/dist/chunk-MR7UDMWY.mjs +2 -0
  247. package/dist/chunk-MSG5IPXZ.mjs +2 -0
  248. package/dist/chunk-MYDKZMG5.mjs +2 -0
  249. package/dist/chunk-MZOCVC6D.mjs +2 -0
  250. package/dist/chunk-NJLUJ5FM.mjs +2 -0
  251. package/dist/chunk-NNXOCO7Z.mjs +2 -0
  252. package/dist/chunk-NPYJQPBK.mjs +2 -0
  253. package/dist/chunk-NQAOQ7GA.mjs +2 -0
  254. package/dist/chunk-NSBO2SPK.mjs +2 -0
  255. package/dist/chunk-NTM2YSR6.mjs +2 -0
  256. package/dist/chunk-NWAVR2XY.mjs +2 -0
  257. package/dist/chunk-NWME2ANF.mjs +2 -0
  258. package/dist/chunk-NXVJUHWM.mjs +2 -0
  259. package/dist/chunk-O3VGC6IM.mjs +2 -0
  260. package/dist/chunk-O5S6Y2G2.mjs +6 -0
  261. package/dist/chunk-O6A3T7LO.mjs +2 -0
  262. package/dist/chunk-O7DVGPGT.mjs +2 -0
  263. package/dist/chunk-OC2NFXLN.mjs +2 -0
  264. package/dist/chunk-OD2BF5RD.mjs +2 -0
  265. package/dist/chunk-ODQ6AYCE.mjs +2 -0
  266. package/dist/chunk-OEMP2FW5.mjs +2 -0
  267. package/dist/chunk-OHE43DAN.mjs +2 -0
  268. package/dist/chunk-OI5ZFAJJ.mjs +2 -0
  269. package/dist/chunk-OJ2KLUY7.mjs +2 -0
  270. package/dist/chunk-OMHZKOLE.mjs +2 -0
  271. package/dist/chunk-OODZPBWL.mjs +2 -0
  272. package/dist/chunk-OP562WRF.mjs +2 -0
  273. package/dist/chunk-OWTXICDP.mjs +2 -0
  274. package/dist/chunk-OYLNAFAA.mjs +2 -0
  275. package/dist/chunk-OYP3W54L.mjs +2 -0
  276. package/dist/chunk-OZA34ELD.mjs +2 -0
  277. package/dist/chunk-P4GLDNAI.mjs +2 -0
  278. package/dist/chunk-PCQUU5AC.mjs +2 -0
  279. package/dist/chunk-PMN72HSN.mjs +2 -0
  280. package/dist/chunk-PRGA72PV.mjs +2 -0
  281. package/dist/chunk-PS2M7HLW.mjs +2 -0
  282. package/dist/chunk-PUBVZVSP.mjs +2 -0
  283. package/dist/chunk-Q25KTZNC.mjs +2 -0
  284. package/dist/chunk-Q6VPWVF3.mjs +2 -0
  285. package/dist/chunk-QC4EK4SD.mjs +2 -0
  286. package/dist/chunk-QCBZMRIG.mjs +2 -0
  287. package/dist/chunk-QGFQJBUV.mjs +2 -0
  288. package/dist/chunk-QMDEODYC.mjs +2 -0
  289. package/dist/chunk-QPXFUVCJ.mjs +2 -0
  290. package/dist/chunk-QQS5M4G4.mjs +2 -0
  291. package/dist/chunk-QVKG6U5H.mjs +2 -0
  292. package/dist/chunk-QZ6LSKFX.mjs +2 -0
  293. package/dist/chunk-QZXOBUJL.mjs +2 -0
  294. package/dist/chunk-R3XT7KVY.mjs +2 -0
  295. package/dist/chunk-R6AVHMVZ.mjs +2 -0
  296. package/dist/chunk-R7SDJISV.mjs +2 -0
  297. package/dist/chunk-RACAQ3EU.mjs +2 -0
  298. package/dist/chunk-RBU6NXO7.mjs +2 -0
  299. package/dist/chunk-RDTDBK2K.mjs +2 -0
  300. package/dist/chunk-RESSZTHZ.mjs +2 -0
  301. package/dist/chunk-RFKBTO6X.mjs +2 -0
  302. package/dist/chunk-RJSRCX6A.mjs +2 -0
  303. package/dist/chunk-RLPLHQ7H.mjs +2 -0
  304. package/dist/chunk-RM4ON2Q2.mjs +2 -0
  305. package/dist/chunk-RPVXDGUB.mjs +2 -0
  306. package/dist/chunk-RTOELANM.mjs +2 -0
  307. package/dist/chunk-RTRX3R2A.mjs +2 -0
  308. package/dist/chunk-RUUBXFWP.mjs +6 -0
  309. package/dist/chunk-RXIUX3N3.mjs +2 -0
  310. package/dist/chunk-S2XJQ3TD.mjs +2 -0
  311. package/dist/chunk-S33TJ42N.mjs +2 -0
  312. package/dist/chunk-S55DHSLA.mjs +2 -0
  313. package/dist/chunk-S63FQWHD.mjs +2 -0
  314. package/dist/chunk-S6UXLFVF.mjs +2 -0
  315. package/dist/chunk-S75I5JRK.mjs +2 -0
  316. package/dist/chunk-SAW4PI4Q.mjs +2 -0
  317. package/dist/chunk-SBJZ3S4Y.mjs +2 -0
  318. package/dist/chunk-SCQKC6FA.mjs +2 -0
  319. package/dist/chunk-SGPH7Q3E.mjs +2 -0
  320. package/dist/chunk-SKRVSN3O.mjs +2 -0
  321. package/dist/chunk-SNUC2CWI.mjs +2 -0
  322. package/dist/chunk-T4LJAWKD.mjs +2 -0
  323. package/dist/chunk-T5QH2JB4.mjs +2 -0
  324. package/dist/chunk-T76PPZR5.mjs +2 -0
  325. package/dist/chunk-TCB2ACKR.mjs +2 -0
  326. package/dist/chunk-TPINN7A2.mjs +2 -0
  327. package/dist/chunk-TTXLDECL.mjs +2 -0
  328. package/dist/chunk-TVNW6C42.mjs +2 -0
  329. package/dist/chunk-TVWJKZ3K.mjs +2 -0
  330. package/dist/chunk-U2QEE6OP.mjs +2 -0
  331. package/dist/chunk-UASSJWIP.mjs +2 -0
  332. package/dist/chunk-UI4BOUPN.mjs +2 -0
  333. package/dist/chunk-UMHUM7NH.mjs +2 -0
  334. package/dist/chunk-UOTSA3KI.mjs +2 -0
  335. package/dist/chunk-UQJXI4XZ.mjs +2 -0
  336. package/dist/chunk-USJY5XEY.mjs +2 -0
  337. package/dist/chunk-UTRZIJPI.mjs +2 -0
  338. package/dist/chunk-UUGZVXNM.mjs +2 -0
  339. package/dist/chunk-UVTR5K3N.mjs +2 -0
  340. package/dist/chunk-UZRU4L52.mjs +2 -0
  341. package/dist/chunk-V2MQB5JD.mjs +2 -0
  342. package/dist/chunk-V3YM4JPY.mjs +2 -0
  343. package/dist/chunk-V4TM7NZN.mjs +2 -0
  344. package/dist/chunk-V6QPYAQ3.mjs +6 -0
  345. package/dist/chunk-V6XCRMO5.mjs +2 -0
  346. package/dist/chunk-VD4L2BYQ.mjs +2 -0
  347. package/dist/chunk-VEP4FY3Z.mjs +6 -0
  348. package/dist/chunk-VFGW7MQO.mjs +2 -0
  349. package/dist/chunk-VGVABUHL.mjs +2 -0
  350. package/dist/chunk-VIR6HKIZ.mjs +2 -0
  351. package/dist/chunk-VJEEBWOD.mjs +2 -0
  352. package/dist/chunk-VQFORFGG.mjs +2 -0
  353. package/dist/chunk-VRNDQH4E.mjs +2 -0
  354. package/dist/chunk-W3JO3HIU.mjs +2 -0
  355. package/dist/chunk-W4GZO3I3.mjs +2 -0
  356. package/dist/chunk-W4JJYMMJ.mjs +2 -0
  357. package/dist/chunk-W5F74SN3.mjs +2 -0
  358. package/dist/chunk-WHJZ5S6U.mjs +2 -0
  359. package/dist/chunk-WJIYF5YJ.mjs +2 -0
  360. package/dist/chunk-WKUW6LRO.mjs +2 -0
  361. package/dist/chunk-WLNXSVIY.mjs +2 -0
  362. package/dist/chunk-WUOZBCY3.mjs +2 -0
  363. package/dist/chunk-WWAEYN7A.mjs +2 -0
  364. package/dist/chunk-WWWMAXC6.mjs +6 -0
  365. package/dist/chunk-X2R6FQTU.mjs +2 -0
  366. package/dist/chunk-X5LADDC5.mjs +2 -0
  367. package/dist/chunk-XBDDEHZV.mjs +2 -0
  368. package/dist/chunk-XCQFKOUW.mjs +2 -0
  369. package/dist/chunk-XDZ5GOJM.mjs +2 -0
  370. package/dist/chunk-XFRXYT37.mjs +2 -0
  371. package/dist/chunk-XIDLDMFJ.mjs +2 -0
  372. package/dist/chunk-XIKEHRSG.mjs +2 -0
  373. package/dist/chunk-XIZBEX5H.mjs +6 -0
  374. package/dist/chunk-XKCQY76C.mjs +2 -0
  375. package/dist/chunk-XLHG56LG.mjs +2 -0
  376. package/dist/chunk-XLJVXBER.mjs +6 -0
  377. package/dist/chunk-XLT3BVTL.mjs +2 -0
  378. package/dist/chunk-XS4LZ7KN.mjs +2 -0
  379. package/dist/chunk-XSMUOSJZ.mjs +2 -0
  380. package/dist/chunk-Y6BD6KP7.mjs +2 -0
  381. package/dist/chunk-Y6SETBKJ.mjs +2 -0
  382. package/dist/chunk-Y7YBQADB.mjs +2 -0
  383. package/dist/chunk-YDBM27OT.mjs +2 -0
  384. package/dist/chunk-YDEWWJVS.mjs +2 -0
  385. package/dist/chunk-YIANSNHQ.mjs +2 -0
  386. package/dist/chunk-YJ3KSGLP.mjs +2 -0
  387. package/dist/chunk-YJ62PUGZ.mjs +2 -0
  388. package/dist/chunk-YOXM4DDQ.mjs +2 -0
  389. package/dist/chunk-YVLBXTXS.mjs +2 -0
  390. package/dist/chunk-YWHBE66D.mjs +6 -0
  391. package/dist/chunk-YYMQBKKP.mjs +2 -0
  392. package/dist/chunk-Z5DWLFNI.mjs +2 -0
  393. package/dist/chunk-Z5HKED4B.mjs +2 -0
  394. package/dist/chunk-ZAPNIRBA.mjs +2 -0
  395. package/dist/chunk-ZAWPNOMW.mjs +2 -0
  396. package/dist/chunk-ZC4HZ3JB.mjs +2 -0
  397. package/dist/chunk-ZES3KZDG.mjs +2 -0
  398. package/dist/chunk-ZMHQ4Z7Z.mjs +2 -0
  399. package/dist/chunk-ZNBT6SIF.mjs +2 -0
  400. package/dist/chunk-ZYRIHQVL.mjs +2 -0
  401. package/dist/chunk-ZZTMYUBR.mjs +2 -0
  402. package/dist/composite-logo.mjs +1 -1
  403. package/dist/copy-button.mjs +1 -1
  404. package/dist/counting-numbers.mjs +1 -1
  405. package/dist/date-picker/calendar.mjs +1 -1
  406. package/dist/date-picker/date-range-picker.d.ts +1 -1
  407. package/dist/date-picker/date-range-picker.mjs +1 -1
  408. package/dist/date-picker/presets.d.ts +1 -1
  409. package/dist/date-picker/presets.mjs +1 -1
  410. package/dist/date-picker/trigger.mjs +1 -1
  411. package/dist/file-upload.d.ts +2 -1
  412. package/dist/file-upload.mjs +1 -1
  413. package/dist/filter/filter-list.mjs +1 -1
  414. package/dist/filter/filter-select.mjs +1 -1
  415. package/dist/footer.mjs +1 -1
  416. package/dist/form.mjs +1 -1
  417. package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
  418. package/dist/icons/default-domains/amazon.mjs +1 -1
  419. package/dist/icons/default-domains/chatgpt.mjs +1 -1
  420. package/dist/icons/default-domains/figma.mjs +1 -1
  421. package/dist/icons/default-domains/github-enhanced.mjs +1 -1
  422. package/dist/icons/default-domains/google-enhanced.mjs +1 -1
  423. package/dist/icons/default-domains/spotify.mjs +1 -1
  424. package/dist/icons/expanding-arrow.mjs +1 -1
  425. package/dist/icons/index.d.ts +2 -0
  426. package/dist/icons/index.mjs +1 -1
  427. package/dist/icons/linkedin.mjs +1 -1
  428. package/dist/icons/loading-circle.mjs +1 -1
  429. package/dist/icons/loading-spinner.mjs +1 -1
  430. package/dist/icons/sort-order.mjs +1 -1
  431. package/dist/icons/twitter.mjs +1 -1
  432. package/dist/icons/youtube.mjs +1 -1
  433. package/dist/index.css +1 -1
  434. package/dist/index.d.ts +3 -1
  435. package/dist/index.mjs +1 -1
  436. package/dist/input-select.mjs +1 -1
  437. package/dist/input.mjs +1 -1
  438. package/dist/label.mjs +1 -1
  439. package/dist/link-logo.mjs +1 -1
  440. package/dist/link-preview.mjs +1 -1
  441. package/dist/logo.mjs +1 -1
  442. package/dist/max-width-wrapper.mjs +1 -1
  443. package/dist/modal.mjs +1 -1
  444. package/dist/nav/content/product-content.mjs +1 -1
  445. package/dist/nav/content/resources-content.mjs +1 -1
  446. package/dist/nav/content/shared.mjs +1 -1
  447. package/dist/nav/content/solutions-content.mjs +1 -1
  448. package/dist/nav/nav-mobile.mjs +1 -1
  449. package/dist/nav/nav.mjs +1 -1
  450. package/dist/nav-logo.mjs +1 -1
  451. package/dist/popover.mjs +1 -1
  452. package/dist/progress-bar.mjs +1 -1
  453. package/dist/radio-group.mjs +1 -1
  454. package/dist/status-badge.d.ts +2 -0
  455. package/dist/status-badge.mjs +1 -1
  456. package/dist/switch.mjs +1 -1
  457. package/dist/tab-select.mjs +1 -1
  458. package/dist/table/table.mjs +1 -1
  459. package/dist/toggle-group.mjs +1 -1
  460. package/dist/tooltip.d.ts +1 -1
  461. package/dist/tooltip.mjs +1 -1
  462. package/dist/types-2682e9e8.d.ts +49 -0
  463. package/dist/types-a866e01c.d.ts +49 -0
  464. package/dist/wordmark.mjs +1 -1
  465. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as T}from"./chunk-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as O}from"./chunk-FLS3N5OD.mjs";import{b as E}from"./chunk-ED4UUUV3.mjs";import{c as g}from"./chunk-QMDEODYC.mjs";import{flip as G,offset as J,size as U,useDismiss as W,useFloating as Y,useInteractions as Z}from"@floating-ui/react";import{Command as i,useCommandState as ee}from"cmdk";import{Check as te,ChevronDown as ae,Search as w,X as oe}from"lucide-react";import{createContext as re,forwardRef as se,useContext as L,useEffect as N,useMemo as le,useRef as F,useState as C}from"react";import{Drawer as f}from"vaul";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=re({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function we({items:r,selectedItem:a,setSelectedItem:d,className:s,disabled:t,adjustForMobile:u,icon:b,inputAttrs:x,noItemsElement:p}){let l=F(null),[c,y]=C(!1),[n,P]=C(""),[D,M]=C(!1);N(()=>{c&&M(!1)},[c]),N(()=>M(!0),[n]),N(()=>{a&&P(a.value)},[a]);let k=le(()=>{let m=n.toLowerCase();return D?r.filter(h=>h.value.toLowerCase().includes(m)):n?r.sort((h,q)=>(q.value.toLowerCase().includes(m)?1:0)-(h.value.toLowerCase().includes(m)?1:0)):r},[D,n,r]),{refs:R,floatingStyles:j,context:z}=Y({open:c,onOpenChange:y,middleware:[J(8),U({apply({elements:{floating:m},availableHeight:h}){Object.assign(m.style,{maxHeight:`${Math.max(75,Math.min(h,290))}px`})},padding:8}),G({fallbackStrategy:"initialPlacement",padding:8})]}),B=W(z),{getReferenceProps:K,getFloatingProps:$}=Z([B]),V=F(null),{scrollProgress:Q,updateScrollProgress:X}=T(V),{isMobile:_}=A();return e(v.Provider,{value:{inputAttrs:x||{},openCommandList:c,setOpenCommandList:y,inputValue:n,setInputValue:P,disabled:Boolean(t),selectedItem:a,setSelectedItem:d},children:_&&u?o(f.Root,{open:c,onOpenChange:y,children:[e(f.Trigger,{className:"sm:hidden",asChild:!0,children:e(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:o("div",{className:g("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]})})}),e(f.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(f.Portal,{children:[e(f.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]}),c&&o(i.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),e(H,{items:k})]})]})}),e(f.Overlay,{})]})]}):o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",s),children:[e("div",{onClick:()=>y(m=>!m),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{ref:R.setReference,...K()}),e(I,{})]})]}),c&&o("div",{ref:R.setFloating,style:j,...$(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[o("div",{ref:V,onScroll:X,className:"grow overflow-y-auto p-2",children:[o(i.List,{children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),e(H,{items:k})]}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(Q,2)}})]})]})})}var S=se((r,a)=>{let d=ee(l=>l.filtered.count===0),{inputAttrs:s,openCommandList:t,setOpenCommandList:u,inputValue:b,setInputValue:x,disabled:p}=L(v);return e(i.Input,{ref:a,placeholder:(s==null?void 0:s.placeholder)||"Search...",autoFocus:t,onFocus:()=>u(!0),value:b,onValueChange:x,onKeyDown:l=>{l.key==="Escape"?(l.preventDefault(),u(!1)):l.key==="Enter"&&d?u(!1):l.key.match(/^[a-z0-9]$/i)&&!l.metaKey&&u(!0)},disabled:p,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm"})});function I(){let{setSelectedItem:r,openCommandList:a,setOpenCommandList:d,inputValue:s,setInputValue:t}=L(v);return e("button",{onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(O,{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full",width:16,height:16}),e("p",{className:g("whitespace-nowrap py-0.5 text-sm",t.color&&"rounded-md px-2",t.color==="red"&&"bg-red-100 text-red-600",t.color==="yellow"&&"bg-yellow-100 text-yellow-600",t.color==="green"&&"bg-green-100 text-green-600",t.color==="blue"&&"bg-blue-100 text-blue-600",t.color==="purple"&&"bg-purple-100 text-purple-600",t.color==="brown"&&"bg-brown-100 text-brown-600"),children:t.value}),t.label&&e(E,{className:"text-xs",variant:"neutral",children:t.label})]}),e(te,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},t.id))}export{we as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-PRGA72PV.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as T}from"./chunk-U3QA7OPP.mjs";import{a as F}from"./chunk-HMQO3TWF.mjs";import{a as H}from"./chunk-PBLS5K4K.mjs";import{a as C}from"./chunk-S7344DEQ.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-QSMIB34W.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as h}from"./chunk-EU3GT3UR.mjs";import{i as f}from"./chunk-PRGA72PV.mjs";import{cva as A}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 z}from"lucide-react";import*as e from"react";import{jsx as o,jsxs as C}from"react/jsx-runtime";var w=2e3,E=e.createContext(null);function g(){let a=e.useContext(E);if(!a)throw new Error("useCarousel must be used within a <Carousel />");return a}var I=e.forwardRef(({orientation:a="horizontal",opts:l,setApi:s,autoplay:n,plugins:m,className:d,children:r,...c},v)=>{let[P,t]=T({...l,axis:a==="horizontal"?"x":"y"},[...n?[k(typeof n=="object"?n:{delay:w})]:[],...m||[]]),[b,y]=e.useState(!1),[N,R]=e.useState(!1),i=e.useCallback(p=>{!p||(y(p.canScrollPrev()),R(p.canScrollNext()))},[]),u=e.useCallback(()=>{t==null||t.scrollPrev()},[t]),x=e.useCallback(()=>{t==null||t.scrollNext()},[t]),S=e.useCallback(p=>{p.key==="ArrowLeft"?(p.preventDefault(),u()):p.key==="ArrowRight"&&(p.preventDefault(),x())},[u,x]);return e.useEffect(()=>{!t||!s||s(t)},[t,s]),e.useEffect(()=>{if(!!t)return i(t),t.on("reInit",i),t.on("select",i),()=>{t==null||t.off("select",i)}},[t,i]),o(E.Provider,{value:{carouselRef:P,api:t,opts:l,orientation:a||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:u,scrollNext:x,canScrollPrev:b,canScrollNext:N},children:o("div",{ref:v,onKeyDownCapture:S,className:f("relative",d),role:"region","aria-roledescription":"carousel",...c,children:r})})});I.displayName="Carousel";var U=e.forwardRef(({className:a,...l},s)=>{let{carouselRef:n,orientation:m}=g();return o("div",{ref:n,className:"overflow-hidden",children:o("div",{ref:s,className:f("flex",m==="horizontal"?"-ml-4":"-mt-4 flex-col",a),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:a,...l},s)=>{let{orientation:n}=g();return o("div",{ref:s,role:"group","aria-roledescription":"slide",className:f("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",a),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:a,...l},s)=>{let{orientation:n,scrollPrev:m,canScrollPrev:d}=g();return C("button",{ref:s,className:f("absolute",n==="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"}),a),disabled:!d,onClick:m,...l,children:[o(D,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:a,...l},s)=>{let{orientation:n,scrollNext:m,canScrollNext:d}=g();return C("button",{ref:s,className:f("absolute",n==="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"}),a),disabled:!d,onClick:m,...l,children:[o(H,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=A("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 "}}}),W=({variant:a="simple",className:l})=>{var R;let{scrollNext:s,scrollPrev:n,canScrollNext:m,canScrollPrev:d,api:r}=g(),c=(R=r==null?void 0:r.plugins())==null?void 0:R.autoplay,[v,P]=e.useState(0),[t,b]=e.useState(!1),y=e.useCallback(i=>{P(i.selectedScrollSnap())},[]),N=e.useCallback(i=>()=>{c&&c.isPlaying()&&c.stop(),i()},[c]);return e.useEffect(()=>{!r||(y(r),b((c==null?void 0:c.isPlaying())??!1),r.on("reInit",y),r.on("select",y),r.on("autoplay:play",()=>b(!0)),r.on("autoplay:stop",()=>b(!1)))},[r,c,y]),C("div",{className:f(K({variant:a}),l),children:[a!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:N(n),children:[o(M,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Previous slide"})]}),r!=null&&o("div",{className:"flex items-center gap-1",children:r.slideNodes().map((i,u)=>C("button",{onClick:N(()=>r.scrollTo(u)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[o("div",{className:f("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",u===v?"bg-black":"bg-black/20",t&&u===v&&"w-6 bg-black/20"),children:t&&u===v&&o(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((c==null?void 0:c.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",u+1]})]},u))}),a!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!m,onClick:N(s),children:[o(z,{className:"h-4 w-4"}),o("span",{className:"sr-only",children:"Next slide"})]})]})};export{g as a,I as b,U as c,B as d,O as e,V as f,W as g};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as p}from"./chunk-IGMFMKPE.mjs";import{b as P}from"./chunk-KGQWA5H2.mjs";import{i as g}from"./chunk-QSMIB34W.mjs";import{Command as n}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as R}from"react/jsx-runtime";var w=({presets:s,onSelect:l,currentValue:i})=>{let y=e=>"dateRange"in e,h=e=>"date"in e,r=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),b=(e,t)=>{let a=e.from,m=t.from,u=!1;a&&m&&r(a,m)&&(u=!0);let c=e.to,d=t.to,f=!1;return c&&d&&r(c,d)&&(f=!0),u&&f},x=e=>{if(y(e)){let t=i;return t&&b(t,e.dateRange)}else if(h(e)){let t=i;return t&&r(t,e.date)}return!1};return console.log(s),s.some(e=>e.shortcut)&&(console.log(s.filter(e=>e.shortcut).map(e=>e.shortcut)),p(s.filter(e=>e.shortcut).map(e=>e.shortcut),e=>{console.log("shortcut",e.key);let t=s.find(a=>a.shortcut===e.key);t&&l(t)},{enabled:!0})),o(n,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(n.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:s.map((e,t)=>R(n.Item,{disabled:e.requiresUpgrade,onSelect:()=>l(e),title:e.label,value:e.id,className:g("relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade&&o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&o(P,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})}),e.shortcut&&o("kbd",{className:"rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400",children:e.shortcut})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{o as t}from"./chunk-NXVJUHWM.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as e}from"./chunk-QMDEODYC.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as g}from"./chunk-FNFBNFCQ.mjs";import{c}from"./chunk-QMDEODYC.mjs";import{Command as s}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var h=({presets:f,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,a=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&a(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&a(m,d)&&(u=!0),i&&u},x=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(b(e)){let t=r;return t&&a(t,e.date)}return!1};return o(s,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(s.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:f.map((e,t)=>w(s.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:e.shortcut.toUpperCase()}):null,e.requiresUpgrade&&e.tooltipContent&&o(g,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};h.displayName="DatePicker.Presets";export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as F}from"./chunk-AMCG252V.mjs";import{i as r}from"./chunk-PRGA72PV.mjs";import{cva as L}from"class-variance-authority";import{UploadCloud as M}from"lucide-react";import{useState as h}from"react";import{toast as N}from"sonner";import{Fragment as k,jsx as t,jsxs as u}from"react/jsx-runtime";var d={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)"}},V=L("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 K({readFile:x,onChange:s,variant:w,className:D,iconClassName:P,accept:l="any",imageSrc:n,loading:R=!1,clickToUpload:p=!0,showHoverOverlay:U=!0,content:g,maxFileSizeMB:c=0,accessibilityLabel:j="File upload",disabled:a=!1}){let[f,i]=h(!1),[T,z]=h(null),y=async e=>{let o="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!o)return;if(z(o.name),c>0&&o.size/1024/1024>c){N.error(`File size too big (max ${c} MB)`);return}let m=d[l].types;if(m.length&&!m.includes(o.type)){N.error(d[l].errorMessage??"File type not supported");return}if(x){let v=new FileReader;v.onload=E=>{var b;return s==null?void 0:s({src:(b=E.target)==null?void 0:b.result,file:o})},v.readAsDataURL(o);return}s==null||s({file:o})};return u("label",{className:r(V({variant:w}),a?"cursor-not-allowed":r(p&&"cursor-pointer"),D),children:[R&&t("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:t(F,{})}),t("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),i(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),i(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),i(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),y(e),i(!1)}}),u("div",{className:r("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",a&&"bg-gray-50",f&&!a&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",n?r("opacity-0",U&&!a&&"group-hover:opacity-100"):r(!a&&"group-hover:bg-gray-50")),children:[t(M,{className:r("size-7 transition-all duration-75",a?"text-gray-400":r("text-gray-500 group-hover:scale-110 group-active:scale-95",f?"scale-110":"scale-100"),P)}),g!==null&&t("div",{className:r("mt-2 text-center text-sm text-gray-500",a&&"text-gray-400"),children:g??t(k,{children:u("p",{children:["Drag and drop ",p&&"or click"," to upload."]})})}),t("span",{className:"sr-only",children:j})]}),n&&t("img",{src:n,alt:"Preview",className:"h-full w-full rounded-[inherit] object-cover"}),p&&t("div",{className:"sr-only mt-1 flex shadow-sm",children:t("input",{type:"file",accept:d[l].types.join(","),onChange:y,disabled:a},T)})]})}export{K as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{o as t}from"./chunk-NXVJUHWM.mjs";import{jsx as r}from"react/jsx-runtime";function h({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-KGQWA5H2.mjs";import{a as l}from"./chunk-N3FEOS5Y.mjs";import{i as r}from"./chunk-QSMIB34W.mjs";import{cva as x}from"class-variance-authority";import{forwardRef as h}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";var m=x("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),c=h(({text:n,variant:e="primary",className:d,textWrapperClassName:b,loading:g,icon:i,shortcut:t,disabledTooltip:s,...a},y)=>s?o(u,{content:s,children:p("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},d),children:[i,n&&o("div",{className:r("min-w-0 truncate",t&&"flex-1 text-left",b),children:n}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):p("button",{ref:y,type:a.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",a.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":m({variant:e}),d),disabled:a.disabled||g,...a,children:[g?o(l,{}):i||null,n&&o("div",{className:r("min-w-0 truncate",t&&"flex-1 text-left",b),children:n}),t&&o("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:t})]}));c.displayName="Button";export{m as a,c as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-DGDXBKHW.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{o as t}from"./chunk-NXVJUHWM.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as r}from"./chunk-EU3GT3UR.mjs";import{k as l}from"./chunk-PRGA72PV.mjs";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function c({page:s,onPageChange:d,pageSize:t=l,totalCount:a,resourceName:m=n=>`item${n?"s":""}`,children:o}){return i(p,{children:[e("div",{className:"h-[90px]"}),e("div",{className:"fixed bottom-4 left-1/2 w-full max-w-[768px] -translate-x-1/2 px-2.5 max-[920px]:bottom-5 max-[920px]:pr-20",children:i("nav",{className:"flex w-full items-center justify-between rounded-xl border border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600 [filter:drop-shadow(0_5px_8px_#222A351d)]",children:[i("div",{className:"flex items-center gap-2",children:[i("div",{children:[e("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",i("span",{className:"font-medium",children:[s*t+(a?1:0),"-",Math.min(s*t+t,a)]})," ","of"," ",e("span",{className:"font-medium",children:a.toLocaleString()})," ",(m==null?void 0:m(a!==1))||"items"]}),o]}),i("div",{className:"flex items-center gap-2",children:[e(r,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>d(n=>n-1),disabled:s<1}),e(r,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>d(n=>n+1),disabled:(s+1)*t>=a})]})]})})]})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as n}from"./chunk-GV2NLM3E.mjs";import{a as s}from"./chunk-IGIB6XZB.mjs";import{a as o}from"./chunk-GYE7FFDN.mjs";import{a as c}from"./chunk-WDAMFRJJ.mjs";import{o as r}from"./chunk-NXVJUHWM.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{o as e}from"./chunk-NXVJUHWM.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as b}from"./chunk-J74IKRYE.mjs";import{h as g,i as u}from"./chunk-PRGA72PV.mjs";import{AnimatePresence as k,motion as x}from"framer-motion";import{X as L}from"lucide-react";import{isValidElement as A}from"react";import{Fragment as C,jsx as t,jsxs as s}from"react/jsx-runtime";function I({filters:l,activeFilters:i,onRemove:h,onRemoveAll:w,className:v}){return t(b,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:s("div",{className:u("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap sm:items-center",v),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(k,{children:i==null?void 0:i.map(({key:o,value:a})=>{if(o==="loader")return t(x.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-${a}`);let e=l.find(r=>r.key===o);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");return(e.multiple&&Array.isArray(a)?a:[a]).map(r=>{var d,c,y;let n=(d=e.options)==null?void 0:d.find(p=>typeof p.value=="string"&&typeof r=="string"?p.value.toLowerCase()===r.toLowerCase():p.value===r),m=(n==null?void 0:n.icon)??((c=e.getOptionIcon)==null?void 0:c.call(e,r,{key:e.key,option:n}))??e.icon,N=(n==null?void 0:n.label)??((y=e.getOptionLabel)==null?void 0:y.call(e,r,{key:e.key,option:n}))??r;return s(x.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[s("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:f(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?s(C,{children:[t("span",{className:"shrink-0 text-gray-600",children:f(m)?m:t(m,{className:"h-4 w-4"})}),g(N,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>h(o,r),children:t(L,{className:"h-3.5 w-3.5"})})]},o)})})})}),(i==null?void 0:i.length)!==0&&t("button",{type:"button",className:"whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:w,children:"Clear Filters"})]})})}var f=l=>A(l);export{I as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as t}from"./chunk-PRGA72PV.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function r({className:L}){return a("svg",{className:t("h-full w-full",L),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"black"}),C("path",{d:"M173.607 97.7454C176.886 87.8002 175.751 76.9142 170.492 67.8719C162.584 54.0098 146.691 46.8792 131.17 50.2298C122.423 40.4311 109.151 36.0738 96.3504 38.7981C83.5497 41.5224 73.1632 50.9148 69.1005 63.4398C58.9049 65.5455 50.1051 71.9745 44.9529 81.0819C36.9593 94.9215 38.7736 112.379 49.4395 124.252C46.1479 134.192 47.2727 145.08 52.5258 154.125C60.4432 167.992 76.3466 175.122 91.8764 171.767C98.784 179.601 108.708 184.058 119.11 183.999C135.02 184.014 149.114 173.67 153.974 158.414C164.168 156.304 172.967 149.876 178.122 140.771C186.019 126.956 184.197 109.593 173.607 97.7454ZM119.11 174.444C112.76 174.454 106.609 172.213 101.735 168.112L102.593 167.623L131.456 150.844C132.917 149.981 133.818 148.406 133.827 146.7V105.717L146.03 112.826C146.152 112.889 146.237 113.006 146.258 113.143V147.103C146.227 162.19 134.091 174.412 119.11 174.444ZM60.756 149.348C57.5714 143.81 56.428 137.318 57.5268 131.015L58.3841 131.533L87.2755 148.312C88.7311 149.172 90.535 149.172 91.9907 148.312L127.283 127.82V142.009C127.277 142.158 127.203 142.296 127.083 142.383L97.849 159.363C84.8581 166.9 68.2607 162.419 60.756 149.348ZM53.1545 86.032C56.3612 80.4583 61.4227 76.207 67.443 74.0308V108.567C67.4209 110.266 68.3188 111.843 69.7863 112.682L104.907 133.087L92.7051 140.196C92.5711 140.267 92.4105 140.267 92.2764 140.196L63.0993 123.244C50.134 115.676 45.6875 98.9734 53.1545 85.8881V86.032ZM153.403 109.488L118.167 88.8812L130.341 81.8013C130.475 81.7297 130.636 81.7297 130.77 81.8013L159.947 98.7815C169.053 104.074 174.307 114.185 173.432 124.737C172.557 135.289 165.712 144.383 155.86 148.082V113.546C155.809 111.851 154.875 110.309 153.403 109.488ZM165.548 91.0973L164.691 90.5792L135.856 73.6566C134.392 72.7912 132.577 72.7912 131.113 73.6566L95.8486 94.1479V79.9594C95.8333 79.8125 95.8991 79.6689 96.02 79.5853L125.197 62.6339C134.326 57.3376 145.672 57.8319 154.312 63.9022C162.953 69.9726 167.331 80.5253 165.548 90.9821V91.0973ZM89.1901 116.251L76.9877 109.171C76.8644 109.096 76.7807 108.969 76.7591 108.826V74.9517C76.773 64.3439 82.8721 54.6994 92.4112 50.201C101.95 45.7026 113.211 47.1605 121.311 53.9424L120.453 54.4316L91.5906 71.2103C90.1293 72.0736 89.2279 73.6485 89.2187 75.3546L89.1901 116.251ZM95.82 101.861L111.537 92.7377L127.283 101.861V120.107L111.595 129.231L95.8486 120.107L95.82 101.861Z",fill:"url(#paint0_radial_39_26)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_26",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40 38) rotate(45.5947) scale(204.365 204.365)",children:[C("stop",{stopColor:"white",stopOpacity:"0.85"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{r as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as b}from"./chunk-KWEH757D.mjs";import{a as h}from"./chunk-4HCVFEQK.mjs";import{b as p,d as f,i,k as g}from"./chunk-QSMIB34W.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as C}from"./chunk-PRGA72PV.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 T}from"./chunk-U3QA7OPP.mjs";import{a as F}from"./chunk-BFCHLS7R.mjs";import{a as H}from"./chunk-PBLS5K4K.mjs";import{a as C}from"./chunk-S7344DEQ.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-QSMIB34W.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-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(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as p}from"./chunk-BW6LPRF4.mjs";import{b as y}from"./chunk-KGQWA5H2.mjs";import{i as g}from"./chunk-QSMIB34W.mjs";import{Command as n}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as R}from"react/jsx-runtime";var w=({presets:a,onSelect:l,currentValue:i})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,r=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),h=(e,t)=>{let s=e.from,m=t.from,u=!1;s&&m&&r(s,m)&&(u=!0);let d=e.to,c=t.to,f=!1;return d&&c&&r(d,c)&&(f=!0),u&&f},x=e=>{if(P(e)){let t=i;return t&&h(t,e.dateRange)}else if(b(e)){let t=i;return t&&r(t,e.date)}return!1};return p(a.filter(e=>e.shortcut).map(e=>e.shortcut),e=>{console.log("shortcut",e.key);let t=a.find(s=>s.shortcut===e.key);t&&l(t)},{enabled:!0}),o(n,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(n.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:a.map((e,t)=>R(n.Item,{disabled:e.requiresUpgrade,onSelect:()=>l(e),title:e.label,value:e.id,className:g("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade&&o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&o(y,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})}),e.shortcut&&o("kbd",{className:"rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 group-data-[selected=true]:bg-gray-200",children:e.shortcut})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as l}from"./chunk-KGQWA5H2.mjs";import{a as s}from"./chunk-N3FEOS5Y.mjs";import{i as r}from"./chunk-QSMIB34W.mjs";import{cva as y}from"class-variance-authority";import{forwardRef as x}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var h=y("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),m=x(({text:n,variant:e="primary",className:d,loading:g,icon:i,shortcut:t,disabledTooltip:b,...a},p)=>b?o(l,{content:b,children:u("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},d),children:[i,n&&o("div",{className:r("min-w-0 grow truncate text-left",t&&"flex-1"),children:n}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):u("button",{ref:p,type:a.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",a.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":h({variant:e}),d),disabled:a.disabled||g,...a,children:[g?o(s,{}):i||null,n&&o("div",{className:r("min-w-0 grow truncate text-left",t&&"flex-1"),children:n}),t&&o("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:t})]}));m.displayName="Button";export{h as a,m as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as p}from"./chunk-IGMFMKPE.mjs";import{b as y}from"./chunk-KGQWA5H2.mjs";import{i as g}from"./chunk-QSMIB34W.mjs";import{Command as n}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as R}from"react/jsx-runtime";var w=({presets:a,onSelect:l,currentValue:i})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,r=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),h=(e,t)=>{let s=e.from,m=t.from,u=!1;s&&m&&r(s,m)&&(u=!0);let d=e.to,c=t.to,f=!1;return d&&c&&r(d,c)&&(f=!0),u&&f},x=e=>{if(P(e)){let t=i;return t&&h(t,e.dateRange)}else if(b(e)){let t=i;return t&&r(t,e.date)}return!1};return p(a.filter(e=>e.shortcut).map(e=>e.shortcut),e=>{console.log("shortcut",e.key);let t=a.find(s=>s.shortcut===e.key);t&&l(t)},{enabled:!0}),o(n,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(n.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:a.map((e,t)=>R(n.Item,{disabled:e.requiresUpgrade,onSelect:()=>l(e),title:e.label,value:e.id,className:g("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200",children:e.shortcut}):null,e.requiresUpgrade&&e.tooltipContent&&o(y,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as N}from"./chunk-O5S6Y2G2.mjs";import{a as x}from"./chunk-IYAIQC4O.mjs";import{a as v}from"./chunk-5ADBHMDN.mjs";import{a as y}from"./chunk-F3UQLBXP.mjs";import{a as b}from"./chunk-42YTXGLO.mjs";import{a as h}from"./chunk-ALEYOCBW.mjs";import{a as f}from"./chunk-GCXRUJG7.mjs";import{b as o,i as n,k as d,m as g,n as p}from"./chunk-QSMIB34W.mjs";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as F,useState as _}from"react";import D from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:x.map(({title:t,href:a})=>({name:t,href:a})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:t,slug:a})=>({name:t,href:`/compare/${a}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:t,slug:a})=>({name:t,href:`/tools/${a}`}))};function R(){let{domain:t="dub.co"}=T();return e("footer",{children:r(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(s,{href:o("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(P,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.features.map(a=>e("li",{children:e(s,{href:o(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.product.map(a=>e("li",{children:e(s,{href:o(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.compare.map(a=>e("li",{children:e(s,{href:o(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.legal.map(a=>e("li",{children:e(s,{href:o(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.tools.map(a=>e("li",{children:e(s,{href:o(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function P(){let{data:t}=D("https://status.dub.co/api/v1/summary",d),[a,l]=_("bg-gray-200"),[i,c]=_("Loading status...");return F(()=>{if(!t)return;let{ongoing_incidents:u}=t;if(u.length>0){let{current_worst_impact:w,name:k}=u[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(k),l(L)}else c("All systems operational"),l("bg-green-500")},[t]),r(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:n("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",a,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",a)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{R as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as p}from"./chunk-IGMFMKPE.mjs";import{b as y}from"./chunk-KGQWA5H2.mjs";import{i as g}from"./chunk-QSMIB34W.mjs";import{Command as n}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as R}from"react/jsx-runtime";var w=({presets:a,onSelect:l,currentValue:i})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,r=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),h=(e,t)=>{let s=e.from,m=t.from,u=!1;s&&m&&r(s,m)&&(u=!0);let d=e.to,c=t.to,f=!1;return d&&c&&r(d,c)&&(f=!0),u&&f},x=e=>{if(P(e)){let t=i;return t&&h(t,e.dateRange)}else if(b(e)){let t=i;return t&&r(t,e.date)}return!1};return p(a.filter(e=>e.shortcut).map(e=>e.shortcut),e=>{console.log("shortcut",e.key);let t=a.find(s=>s.shortcut===e.key);t&&l(t)},{enabled:!0}),o(n,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(n.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:a.map((e,t)=>R(n.Item,{disabled:e.requiresUpgrade,onSelect:()=>l(e),title:e.label,value:e.id,className:g("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade&&o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&o(y,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})}),e.shortcut&&o("kbd",{className:"rounded bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 group-data-[selected=true]:bg-gray-200",children:e.shortcut})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as m}from"./chunk-QMDEODYC.mjs";import{Slot as w}from"@radix-ui/react-slot";import R,{useEffect as y,useState as F}from"react";import{jsxs as E}from"react/jsx-runtime";var V=R.forwardRef(({asChild:u,className:i,children:e,prefix:c,duration:t=250,as:l="span",...n},f)=>{let[r,p]=F(Number(e));return y(()=>{if(isNaN(Number(e))){console.warn("CountingNumbers expects a numeric value as children.");return}let N=Number(e),o=r,d=N,b=performance.now(),a=()=>{let C=performance.now(),s=Math.min((C-b)/t,1),g=o+(d-o)*s;p(Math.round(g)),s<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},[e,t]),E(u?w:l,{ref:f,className:i,...n,children:[c,m(r,n.fullNumber?{full:!0}:void 0)]})});V.displayName="CountingNumbers";export{V as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{c as d}from"./chunk-QMDEODYC.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:m,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{a as s}from"./chunk-AMCG252V.mjs";import{a as y}from"./chunk-2TGXECZQ.mjs";import{a as g,e as f,m as b}from"./chunk-PRGA72PV.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,void 0,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.current.select()},[t]);let{isMobile:L}=p();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:o,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(s,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(y,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(s,{})})})]})}export{H as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{f as y}from"./chunk-PRGA72PV.mjs";import{createContext as S,useCallback as h,useContext as K,useEffect as d,useId as L,useRef as f,useState as k}from"react";import{jsx as m}from"react/jsx-runtime";var u=S({listeners:[],setListeners:()=>{}});function x({children:c}){let[t,i]=k([]),r=h(e=>{let s=e.target,a=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||s.tagName==="INPUT"||s.tagName==="TEXTAREA"||a)return;let o=t.filter(n=>n.enabled!==!1&&(Array.isArray(n.key)?n.key.includes(e.key):n.key===e.key));if(!o.length)return;let l=y(o,(n,b)=>(b.priority??0)-(n.priority??0)).slice(-1)[0];e.preventDefault(),l.callback(e)},[t]);return d(()=>(document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)),[r]),m(u.Provider,{value:{listeners:t,setListeners:i},children:c})}function C(c,t,i={}){let r=L(),{setListeners:e}=K(u),s=f(t);d(()=>{s.current=t},[t]),d(()=>(e(a=>[...a.filter(o=>o.id!==r),{id:r,key:c,callback:s.current,...i}]),()=>e(a=>a.filter(o=>o.id!==r))),[JSON.stringify(c),i.enabled,i.priority])}export{u as a,x as b,C as c};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as p}from"./chunk-IGMFMKPE.mjs";import{b as P}from"./chunk-KGQWA5H2.mjs";import{i as g}from"./chunk-QSMIB34W.mjs";import{Command as n}from"cmdk";import{Lock as x}from"lucide-react";import{jsx as o,jsxs as R}from"react/jsx-runtime";var w=({presets:a,onSelect:l,currentValue:i})=>{let y=e=>"dateRange"in e,D=e=>"date"in e,r=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),b=(e,t)=>{let s=e.from,m=t.from,d=!1;s&&m&&r(s,m)&&(d=!0);let u=e.to,c=t.to,f=!1;return u&&c&&r(u,c)&&(f=!0),d&&f},T=e=>{if(y(e)){let t=i;return t&&b(t,e.dateRange)}else if(D(e)){let t=i;return t&&r(t,e.date)}return!1};return p(a.map(e=>e.shortcut),e=>{console.log("shortcut",e.key);let t=a.find(s=>s.shortcut===e.key);t&&l(t)}),o(n,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(n.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:a.map((e,t)=>R(n.Item,{disabled:e.requiresUpgrade,onSelect:()=>l(e),title:e.label,value:e.id,className:g("relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",T(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade&&o(x,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&o(P,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as v,b as g}from"./chunk-IYAIQC4O.mjs";import{a as c,c as u,d as N}from"./chunk-ELLZHQKS.mjs";import{a as l}from"./chunk-XICGVU2Q.mjs";import{b as o,i,n as d}from"./chunk-QSMIB34W.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:v.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:g.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:d.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(l,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as g}from"./chunk-KGQWA5H2.mjs";import{i as c}from"./chunk-QSMIB34W.mjs";import{Command as s}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var h=({presets:f,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,a=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&a(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&a(m,d)&&(u=!0),i&&u},x=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(b(e)){let t=r;return t&&a(t,e.date)}return!1};return o(s,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(s.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:f.map((e,t)=>w(s.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:e.shortcut.toUpperCase()}):null,e.requiresUpgrade&&e.tooltipContent&&o(g,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};h.displayName="DatePicker.Presets";export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-PRGA72PV.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:e("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as g}from"./chunk-RLPLHQ7H.mjs";import{o as c}from"./chunk-NXVJUHWM.mjs";import{Command as s}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var h=({presets:f,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,a=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&a(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&a(m,d)&&(u=!0),i&&u},x=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(b(e)){let t=r;return t&&a(t,e.date)}return!1};return o(s,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(s.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:f.map((e,t)=>w(s.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:e.shortcut.toUpperCase()}):null,e.requiresUpgrade&&e.tooltipContent&&o(g,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};h.displayName="DatePicker.Presets";export{h as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as a}from"./chunk-PRGA72PV.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as m}from"./chunk-NXVJUHWM.mjs";import{Slot as w}from"@radix-ui/react-slot";import R,{useEffect as y,useState as F}from"react";import{jsxs as E}from"react/jsx-runtime";var V=R.forwardRef(({asChild:u,className:i,children:e,prefix:c,duration:t=250,as:l="span",...n},f)=>{let[r,p]=F(Number(e));return y(()=>{if(isNaN(Number(e))){console.warn("CountingNumbers expects a numeric value as children.");return}let N=Number(e),o=r,d=N,b=performance.now(),a=()=>{let C=performance.now(),s=Math.min((C-b)/t,1),g=o+(d-o)*s;p(Math.round(g)),s<1&&requestAnimationFrame(a)};requestAnimationFrame(a)},[e,t]),E(u?w:l,{ref:f,className:i,...n,children:[c,m(r,n.fullNumber?{full:!0}:void 0)]})});V.displayName="CountingNumbers";export{V as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{i as d}from"./chunk-QSMIB34W.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:m,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{f as y}from"./chunk-QSMIB34W.mjs";import{createContext as S,useCallback as h,useContext as k,useEffect as d,useId as K,useRef as L,useState as f}from"react";import{jsx as m}from"react/jsx-runtime";var u=S({listeners:[],setListeners:()=>{}});function x({children:c}){let[t,i]=f([]),r=h(e=>{let s=e.target,a=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||s.tagName==="INPUT"||s.tagName==="TEXTAREA"||a)return;console.log("key",e.key);let o=t.filter(n=>n.enabled!==!1&&(Array.isArray(n.key)?n.key.includes(e.key):n.key===e.key));if(!o.length)return;let l=y(o,(n,b)=>(b.priority??0)-(n.priority??0)).slice(-1)[0];e.preventDefault(),l.callback(e)},[t]);return d(()=>(document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)),[r]),m(u.Provider,{value:{listeners:t,setListeners:i},children:c})}function C(c,t,i={}){let r=K(),{setListeners:e}=k(u),s=L(t);d(()=>{s.current=t},[t]),d(()=>(e(a=>[...a.filter(o=>o.id!==r),{id:r,key:c,callback:s.current,...i}]),()=>e(a=>a.filter(o=>o.id!==r))),[JSON.stringify(c),i.enabled,i.priority])}export{u as a,x as b,C as c};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as l}from"./chunk-QMDEODYC.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as l}from"./chunk-DGDXBKHW.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as A}from"./chunk-37AIPO3A.mjs";import{a as j}from"./chunk-S7344DEQ.mjs";import{a as T}from"./chunk-GVBIGY6N.mjs";import{a as S}from"./chunk-QTCYB542.mjs";import{a as K}from"./chunk-4HCVFEQK.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-N3FEOS5Y.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{h as O,i as k}from"./chunk-QSMIB34W.mjs";import{Command as d,useCommandState as U}from"cmdk";import{ChevronDown as Z,ListFilter as q}from"lucide-react";import{forwardRef as G,isValidElement as $,useCallback as N,useEffect as J,useImperativeHandle as X,useRef as E,useState as R}from"react";import{Fragment as B,jsx as n,jsxs as i}from"react/jsx-runtime";function ye({filters:e,onSelect:r,onRemove:a,onOpenFilter:l,activeFilters:s,askAI:u,children:h,emptyState:c,className:b}){var L;let{isMobile:g}=S(),v=E(null),P=E(),[x,f]=R(!1);A("f",()=>f(!0),{enabled:!x});let[y,w]=R(""),[p,F]=R(null),C=N(()=>{w(""),F(null)},[]);J(()=>{x||C()},[x]);let o=p?e.find(({key:t})=>t===p):null,V=N(t=>{v.current&&(P.current={width:v.current.scrollWidth,height:v.current.scrollHeight}),w(""),F(t),l==null||l(t)},[]),D=N(t=>{if(!o||!s)return!1;let m=s.find(({key:Q})=>Q===p);return(m==null?void 0:m.value)===t||m&&o.multiple&&Array.isArray(m.value)&&m.value.includes(t)},[o]),I=N(t=>{o&&(D(t)?a(o.key,t):r(o.key,t),o.multiple||f(!1))},[s,o,u]);return n(j,{openPopover:x,setOpenPopover:f,onEscapeKeyDown:t=>{p&&(t.preventDefault(),C())},content:n(K,{width:!g,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:i(d,{loop:!0,children:[i("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(_,{placeholder:`${(o==null?void 0:o.label)||"Filter"}...`,value:y,onValueChange:w,onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!y)&&(t.preventDefault(),t.stopPropagation(),p?C():f(!1))},emptySubmit:t=>{t.preventDefault(),t.stopPropagation(),u?(r("ai",o?`${o.label} ${y}`:y),f(!1)):I(y)}}),n("kbd",{className:"mr-2 hidden shrink-0 rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),n(ee,{ref:v,children:i(d.List,{className:k("flex w-full flex-col gap-1 p-1",o?"min-w-[100px]":"min-w-[180px]"),children:[o?((L=o.options)==null?void 0:L.map(t=>{let m=D(t.value);return n(W,{filter:o,option:t,right:m?n(H,{className:"h-4 w-4"}):t.right,onSelect:()=>I(t.value)},t.value)}))??n(d.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:P.current,children:n(z,{})})}):e.map(t=>i(B,{children:[n(W,{filter:t,onSelect:()=>V(t.key)},t.key),t.separatorAfter&&n(d.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]})),(!o||o.options)&&n(te,{search:y,askAI:u,children:c?Y(c)?(c==null?void 0:c[p??"default"])??"No matches":c:"No matches"})]})},p)]})}),children:i("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",b),children:[n(q,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:h??"Filter"}),s!=null&&s.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:s.length}):n(Z,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function Y(e){return typeof e=="object"&&e!==null&&!$(e)}var _=e=>{let r=U(a=>a.filtered.count===0);return n(d.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 text-sm outline-none placeholder:text-gray-400 focus:ring-0",onKeyDown:a=>{var l,s;(l=e.onKeyDown)==null||l.call(e,a),a.key==="Enter"&&r&&((s=e.emptySubmit)==null||s.call(e,a))}})},ee=G(({children:e},r)=>{let a=E(null);X(r,()=>a.current);let{scrollProgress:l,updateScrollProgress:s}=T(a);return i(B,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:s,children:e}),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(l,2)}})]})});function W({filter:e,option:r,right:a,onSelect:l}){var c,b;let{isMobile:s}=S(),u=r?r.icon??((c=e.getOptionIcon)==null?void 0:c.call(e,r.value,{key:e.key,option:r}))??e.icon:e.icon,h=r?r.label??((b=e.getOptionLabel)==null?void 0:b.call(e,r.value,{key:e.key,option:r})):e.label;return i(d.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:g=>{g.preventDefault()},onPointerUp:g=>{g.preventDefault(),s?setTimeout(l,100):l()},onSelect:l,value:h+(r==null?void 0:r.value),children:[n("span",{className:"shrink-0 text-gray-600",children:ne(u)?u:n(u,{className:"h-4 w-4"})}),O(h,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var te=({search:e,askAI:r,children:a})=>r&&e?i(d.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"}),i("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",i("span",{className:"text-black",children:['"',e,'"']})]})]}):n(d.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),ne=e=>$(e);export{ye as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as P}from"./chunk-HKIWL7OB.mjs";import{a as S}from"./chunk-L3CSRV4D.mjs";import{a as h}from"./chunk-N3FEOS5Y.mjs";import{i as c,j as w}from"./chunk-QSMIB34W.mjs";import{flexRender as T,getCoreRowModel as A,useReactTable as B}from"@tanstack/react-table";import{AnimatePresence as I,motion as O}from"framer-motion";import{useEffect as N,useState as j}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var V=t=>c(["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"]);function ne(t){let{data:n,rowCount:s,columns:g,defaultColumn:x,columnPinning:b,pagination:y,onPaginationChange:f}=t,[l,p]=j(t.columnVisibility??{});N(()=>{t.columnVisibility&&!w(t.columnVisibility,l)&&p(t.columnVisibility??{})},[t.columnVisibility]),N(()=>{var m;(m=t.onColumnVisibilityChange)==null||m.call(t,l)},[l]);let v=B({data:n,rowCount:s,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...x},getCoreRowModel:A(),onPaginationChange:f,onColumnVisibilityChange:m=>p(m),state:{pagination:y,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:v}}function oe({columns:t,data:n,loading:s,error:g,emptyState:x,cellRight:b,sortBy:y,sortOrder:f,onSortChange:l,sortableColumns:p=[],className:v,thClassName:m,tdClassName:k,table:o,pagination:r,resourceName:u,rowCount:R,children:M}){return a("div",{className:"relative border border-gray-200 bg-white sm:rounded-xl",children:[!g&&!!(n!=null&&n.length)||s?a("div",{className:"relative min-h-[400px] overflow-x-auto rounded-[inherit]",children:[a("table",{className:c(["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"],v),children:[i("thead",{children:o.getHeaderGroups().map(d=>i("tr",{children:d.headers.map(e=>{let C=p.includes(e.column.id),W=C?"button":"div";return i("th",{className:c(V(e.id),"select-none font-medium",D(e.column,!o.getRowModel().rows.length),m),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:i("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(W,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:y!==e.column.id||f==="asc"?"desc":"asc"})},children:[i("span",{children:e.isPlaceholder?null:T(e.column.columnDef.header,e.getContext())}),C&&i(S,{order:y===e.column.id?f||"desc":null})]})})},e.id)})},d.id))}),i("tbody",{children:o.getRowModel().rows.map(d=>i("tr",{children:d.getVisibleCells().map(e=>i("td",{className:c(V(e.column.id),"group text-gray-600",D(e.column,d.index===o.getRowModel().rows.length-1),k),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[i("div",{className:"min-w-0 shrink grow",children:T(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},d.id))})]}),M]}):i("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||x||`No ${(u==null?void 0:u(!0))||"items"} found.`}),r&&!g&&!!(n!=null&&n.length)&&!!R&&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:[i("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[r.pageIndex*r.pageSize+1,"-",Math.min(r.pageIndex*r.pageSize+r.pageSize,o.getRowCount())]})," ","of"," ",i("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(u==null?void 0:u(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[i(P,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:!o.getCanPreviousPage()}),i(P,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:!o.getCanNextPage()})]})]}),i(I,{children:s&&i(O.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex items-center justify-center rounded-xl bg-white/50",children:i(h,{})})})]})}var D=(t,n)=>{let s=t.getIsPinned();return c(s&&!n&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},z=t=>{let n=t.getIsPinned();return{left:n==="left"?`${t.getStart("left")}px`:void 0,right:n==="right"?`${t.getAfter("right")}px`:void 0,position:n?"sticky":"relative"}};export{ne as a,oe as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as e}from"./chunk-DGDXBKHW.mjs";import{jsx as t,jsxs as C}from"react/jsx-runtime";function o({className:a}){return C("svg",{className:e("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_linear_39_35)"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.627 151.288C165.868 148.976 155.967 150.187 151.538 150.74C150.176 150.91 149.967 149.698 151.198 148.825C159.073 143.144 172.023 144.772 173.515 146.687C175.032 148.602 173.137 161.895 165.718 168.236C164.584 169.22 163.503 168.692 164.012 167.402C165.66 163.141 169.406 153.595 167.627 151.288ZM161.889 158.017C148.087 168.43 128.096 174 110.873 174C86.7384 174 65.0031 164.852 48.5549 149.615C47.2658 148.423 48.424 146.794 49.9749 147.72C67.7121 158.308 89.6704 164.668 112.331 164.668C127.607 164.668 144.438 161.43 159.888 154.686C162.233 153.683 164.186 156.257 161.894 158.002M120.018 102.131C120.018 108.758 120.187 114.27 116.989 120.141C114.415 124.911 110.325 127.849 105.765 127.849C99.5374 127.849 95.9221 122.889 95.9221 115.559C95.9221 101.093 108.304 98.4611 120.022 98.4611L120.022 102.136M136.379 143.493C135.317 144.496 133.766 144.574 132.555 143.91C127.18 139.231 126.211 137.055 123.24 132.585C114.343 142.092 108.057 144.932 96.5085 144.932C82.8614 144.932 72.2288 136.129 72.2288 118.497C72.2288 104.729 79.3673 95.3391 89.5105 90.753C98.2967 86.7002 110.601 85.9828 120.008 84.863L120.008 82.6669C120.008 78.6335 120.313 73.8632 118.06 70.3776C116.073 67.2508 112.288 65.9661 108.954 65.9661C102.765 65.9661 97.2548 69.2819 95.9124 76.1562C95.6265 77.6881 94.57 79.1861 93.0919 79.2637L77.361 77.5039C76.0379 77.1839 74.5792 76.0641 74.9379 73.9456C78.5725 54.0258 95.8009 48 111.207 48C119.102 48 129.419 50.1961 135.632 56.4449C143.527 64.153 142.771 74.4352 142.771 85.6289L142.771 112.064C142.771 120.019 145.911 123.5 148.887 127.8C149.929 129.318 150.156 131.169 148.848 132.309C145.533 135.227 139.65 140.564 136.412 143.575L136.354 143.517",fill:"url(#paint1_radial_39_35)"}),C("defs",{children:[C("linearGradient",{id:"paint0_linear_39_35",x1:"0",y1:"0",x2:"222",y2:"222",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#FF9900"}),t("stop",{offset:"0.5",stopColor:"#FF9900"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),C("radialGradient",{id:"paint1_radial_39_35",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(48 48) rotate(45) scale(178.191 178.229)",children:[t("stop",{stopColor:"white"}),t("stop",{offset:"1",stopColor:"white",stopOpacity:"0.5"})]})]})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{b as u}from"./chunk-RLPLHQ7H.mjs";import{a as l}from"./chunk-MYDKZMG5.mjs";import{o as r}from"./chunk-NXVJUHWM.mjs";import{cva as x}from"class-variance-authority";import{forwardRef as h}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";var m=x("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),c=h(({text:n,variant:e="primary",className:d,textWrapperClassName:b,loading:g,icon:i,shortcut:t,disabledTooltip:s,...a},y)=>s?o(u,{content:s,children:p("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},d),children:[i,n&&o("div",{className:r("min-w-0 truncate",t&&"flex-1 text-left",b),children:n}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):p("button",{ref:y,type:a.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",a.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":m({variant:e}),d),disabled:a.disabled||g,...a,children:[g?o(l,{}):i||null,n&&o("div",{className:r("min-w-0 truncate",t&&"flex-1 text-left",b),children:n}),t&&o("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:t})]}));c.displayName="Button";export{m as a,c as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as T}from"./chunk-U3QA7OPP.mjs";import{a as F}from"./chunk-K4WOYZHT.mjs";import{a as H}from"./chunk-PBLS5K4K.mjs";import{a as C}from"./chunk-S7344DEQ.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-QSMIB34W.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as p}from"./chunk-NWME2ANF.mjs";import{i as d}from"./chunk-PRGA72PV.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:m,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as T}from"./chunk-U3QA7OPP.mjs";import{a as F}from"./chunk-VD4L2BYQ.mjs";import{a as H}from"./chunk-PBLS5K4K.mjs";import{a as C}from"./chunk-S7344DEQ.mjs";import{a as p}from"./chunk-QTCYB542.mjs";import{i as O}from"./chunk-QSMIB34W.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.to),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.to):S(t==null?void 0:t.to)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-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(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{c as u}from"./chunk-QMDEODYC.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as G}from"react";import{DayPicker as I,useDayPicker as j,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:N,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:u("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:w,...y,children:e(N,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function X({mode:w="single",weekStartsOn:N=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:M,className:L,classNames:D,...R}){return e(I,{mode:w,weekStartsOn:N,numberOfMonths:m,locale:M,showOutsideDays:m===1,className:L,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:u("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...D},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:n,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:o}=j(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);n&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!o||a.getTime()<=o.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!n||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!n,"aria-label":"Go to previous month",onClick:()=>n&&r(n),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:M})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||o&&P(s,1).getTime()>o.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=G(null),{activeModifiers:n,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:o,today:b,disabled:f,range_middle:h}=n;if(l)return e(z,{});if(!g)return e("div",{...d,className:u("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:u("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!o,"!bg-white":o,"!bg-blue-400":o&&h,"text-gray-400":f})})]})}},...R})}export{X as a};