@dub/ui 0.1.43 → 0.1.44
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.
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +7 -7
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.mjs +1 -1
- package/dist/card-list/card-list-card.d.ts +2 -1
- package/dist/card-list/card-list-card.mjs +1 -1
- package/dist/card-list/card-list-pagination.mjs +1 -1
- package/dist/card-list/card-list.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-24C5IMX4.mjs +2 -0
- package/dist/chunk-25FCKCPQ.mjs +2 -0
- package/dist/chunk-25UIIY3B.mjs +2 -0
- package/dist/chunk-25WNNNLF.mjs +2 -0
- package/dist/chunk-26PYJ6YQ.mjs +2 -0
- package/dist/chunk-274MHQ3R.mjs +2 -0
- package/dist/chunk-2BC3NTJU.mjs +2 -0
- package/dist/chunk-2CG6YID6.mjs +2 -0
- package/dist/chunk-2E62NMWQ.mjs +2 -0
- package/dist/chunk-2E66LLH6.mjs +2 -0
- package/dist/chunk-2GQJDNXC.mjs +2 -0
- package/dist/chunk-2KS5S2Z6.mjs +2 -0
- package/dist/chunk-2MUH3WX7.mjs +2 -0
- package/dist/chunk-2NVJGXZ2.mjs +2 -0
- package/dist/chunk-2PYRHN5V.mjs +2 -0
- package/dist/chunk-2WVFQSEN.mjs +2 -0
- package/dist/chunk-2XNAIIT2.mjs +2 -0
- package/dist/chunk-2Y7MFG7W.mjs +2 -0
- package/dist/chunk-2YX3JZIR.mjs +2 -0
- package/dist/chunk-33XXK6WM.mjs +2 -0
- package/dist/chunk-37ATYAJW.mjs +2 -0
- package/dist/chunk-3JQJJNZM.mjs +2 -0
- package/dist/chunk-3LYWWRV7.mjs +2 -0
- package/dist/chunk-3SWB5F43.mjs +2 -0
- package/dist/chunk-3UVEPB5U.mjs +2 -0
- package/dist/chunk-3X642YQK.mjs +2 -0
- package/dist/chunk-3Y3ILH22.mjs +2 -0
- package/dist/chunk-467TP26I.mjs +2 -0
- package/dist/chunk-4B4AZKYE.mjs +2 -0
- package/dist/chunk-4BFSC5GH.mjs +2 -0
- package/dist/chunk-4CQA3KKN.mjs +2 -0
- package/dist/chunk-4GBR7VOD.mjs +2 -0
- package/dist/chunk-4GEPLL3Q.mjs +2 -0
- package/dist/chunk-4GFTWQO6.mjs +2 -0
- package/dist/chunk-4JCX5NH6.mjs +2 -0
- package/dist/chunk-4JEFEPYL.mjs +2 -0
- package/dist/chunk-4KWWIQAO.mjs +2 -0
- package/dist/chunk-4PYRWQPQ.mjs +2 -0
- package/dist/chunk-4SIBFSBB.mjs +2 -0
- package/dist/chunk-4URZUIHF.mjs +2 -0
- package/dist/chunk-4VWHDN74.mjs +2 -0
- package/dist/chunk-52ECMIFT.mjs +2 -0
- package/dist/chunk-546AGUS6.mjs +2 -0
- package/dist/chunk-54ZHCBSB.mjs +2 -0
- package/dist/chunk-57AQGQE4.mjs +2 -0
- package/dist/chunk-5EO5M754.mjs +2 -0
- package/dist/chunk-5HEC6UWH.mjs +2 -0
- package/dist/chunk-5NAFLEQW.mjs +2 -0
- package/dist/chunk-5QLJGTHR.mjs +2 -0
- package/dist/chunk-5S4WRO5Y.mjs +2 -0
- package/dist/chunk-5TCMSF4K.mjs +2 -0
- package/dist/chunk-5UMBPLXX.mjs +2 -0
- package/dist/chunk-5V5NP4CW.mjs +2 -0
- package/dist/chunk-5W3LM5VX.mjs +2 -0
- package/dist/chunk-5YFGBYFK.mjs +2 -0
- package/dist/chunk-5YYM6YO2.mjs +2 -0
- package/dist/chunk-5ZMAM5PO.mjs +2 -0
- package/dist/chunk-5ZPRSTF7.mjs +2 -0
- package/dist/chunk-63KBSQIW.mjs +2 -0
- package/dist/chunk-66PMU4XG.mjs +2 -0
- package/dist/chunk-6DS73TNR.mjs +2 -0
- package/dist/chunk-6JLLOMPW.mjs +2 -0
- package/dist/chunk-6JM2H4AC.mjs +6 -0
- package/dist/chunk-6LAYTYTN.mjs +2 -0
- package/dist/chunk-6WVPFBS2.mjs +2 -0
- package/dist/chunk-6XLVZUPF.mjs +2 -0
- package/dist/chunk-6Y5CH2PI.mjs +2 -0
- package/dist/chunk-6YKC3MSX.mjs +2 -0
- package/dist/chunk-72LQXH4H.mjs +2 -0
- package/dist/chunk-72RBFJRS.mjs +2 -0
- package/dist/chunk-74LZDWRW.mjs +2 -0
- package/dist/chunk-7H2CEQYI.mjs +2 -0
- package/dist/chunk-7JQQCWKG.mjs +2 -0
- package/dist/chunk-7MALN74N.mjs +2 -0
- package/dist/chunk-7PMN7PTJ.mjs +2 -0
- package/dist/chunk-7PPH2ATP.mjs +2 -0
- package/dist/chunk-7QVUTYFR.mjs +2 -0
- package/dist/chunk-7SMHXCK6.mjs +2 -0
- package/dist/chunk-7XH6TB5I.mjs +2 -0
- package/dist/chunk-7Y73TBEB.mjs +2 -0
- package/dist/chunk-A5A2JHNY.mjs +2 -0
- package/dist/chunk-AEWJZ6KN.mjs +2 -0
- package/dist/chunk-AFMDIQ2J.mjs +2 -0
- package/dist/chunk-AGQYHZQM.mjs +2 -0
- package/dist/chunk-AHLOT5A4.mjs +6 -0
- package/dist/chunk-AKN4FCUB.mjs +6 -0
- package/dist/chunk-AON4MNOJ.mjs +2 -0
- package/dist/chunk-APCYPH3V.mjs +2 -0
- package/dist/chunk-ASR7IKYU.mjs +2 -0
- package/dist/chunk-AUFKETPZ.mjs +2 -0
- package/dist/chunk-AYSEH6QT.mjs +2 -0
- package/dist/chunk-B3BKEAU2.mjs +2 -0
- package/dist/chunk-B3NFSCRP.mjs +2 -0
- package/dist/chunk-B5DYLI6W.mjs +2 -0
- package/dist/chunk-BBLV24WP.mjs +2 -0
- package/dist/chunk-BCXGHMJK.mjs +2 -0
- package/dist/chunk-BGKJ6FB6.mjs +2 -0
- package/dist/chunk-BHWCGFQN.mjs +2 -0
- package/dist/chunk-BMODEQZR.mjs +2 -0
- package/dist/chunk-BRV7WL6U.mjs +2 -0
- package/dist/chunk-BW5R7RS3.mjs +2 -0
- package/dist/chunk-BXVCNK4M.mjs +2 -0
- package/dist/chunk-C42UNILO.mjs +2 -0
- package/dist/chunk-C5G7ARKL.mjs +2 -0
- package/dist/chunk-CEBYUZ76.mjs +2 -0
- package/dist/chunk-CF66ZBCE.mjs +2 -0
- package/dist/chunk-CGFIM7CF.mjs +2 -0
- package/dist/chunk-CK5KZFOD.mjs +2 -0
- package/dist/chunk-CM6FNIIU.mjs +2 -0
- package/dist/chunk-CPF6SFM4.mjs +2 -0
- package/dist/chunk-CQQFWLCZ.mjs +2 -0
- package/dist/chunk-CRQ7VJHV.mjs +2 -0
- package/dist/chunk-CUG24Q2H.mjs +2 -0
- package/dist/chunk-CVXPZD35.mjs +2 -0
- package/dist/chunk-CZTVZCWZ.mjs +2 -0
- package/dist/chunk-DBVGI74E.mjs +2 -0
- package/dist/chunk-DEQWASOB.mjs +2 -0
- package/dist/chunk-DFP7NJMH.mjs +2 -0
- package/dist/chunk-DMZFYKXM.mjs +2 -0
- package/dist/chunk-DNS3W2J7.mjs +2 -0
- package/dist/chunk-DOD6B3NZ.mjs +2 -0
- package/dist/chunk-DQFBFI4C.mjs +2 -0
- package/dist/chunk-DRNWW6QC.mjs +2 -0
- package/dist/chunk-DRUI7C4S.mjs +2 -0
- package/dist/chunk-DSTZ2WUU.mjs +2 -0
- package/dist/chunk-DYLGAMJU.mjs +2 -0
- package/dist/chunk-E3J6OYNH.mjs +2 -0
- package/dist/chunk-E3L4XH55.mjs +2 -0
- package/dist/chunk-EAEI3KDY.mjs +2 -0
- package/dist/chunk-EB4JKENB.mjs +2 -0
- package/dist/chunk-EBNB474Q.mjs +2 -0
- package/dist/chunk-ECA63QAF.mjs +2 -0
- package/dist/chunk-ED6SAZMD.mjs +2 -0
- package/dist/chunk-EEXIJGJP.mjs +2 -0
- package/dist/chunk-EKGNXJYV.mjs +2 -0
- package/dist/chunk-EPH7UTEO.mjs +2 -0
- package/dist/chunk-ERBIJJEM.mjs +6 -0
- package/dist/chunk-ERQFJWQW.mjs +2 -0
- package/dist/chunk-ESWOHRQA.mjs +2 -0
- package/dist/chunk-EZB3E4CO.mjs +2 -0
- package/dist/chunk-EZWEMB6C.mjs +2 -0
- package/dist/chunk-F6IUTATG.mjs +2 -0
- package/dist/chunk-FAJQQI44.mjs +2 -0
- package/dist/chunk-FAJWDTW7.mjs +2 -0
- package/dist/chunk-FAWSEDZX.mjs +2 -0
- package/dist/chunk-FC3EHG4J.mjs +2 -0
- package/dist/chunk-FD4ZCCVK.mjs +2 -0
- package/dist/chunk-FKWX5M7L.mjs +2 -0
- package/dist/chunk-FN6Z5LVE.mjs +2 -0
- package/dist/chunk-FOWMWUSC.mjs +2 -0
- package/dist/chunk-FQ3ZMTYA.mjs +2 -0
- package/dist/chunk-FU4INGUO.mjs +2 -0
- package/dist/chunk-FUENCFFB.mjs +2 -0
- package/dist/chunk-FW7AOV66.mjs +2 -0
- package/dist/chunk-G2GATVFY.mjs +2 -0
- package/dist/chunk-G2VZDSZS.mjs +2 -0
- package/dist/chunk-GAAYJSPL.mjs +2 -0
- package/dist/chunk-GCBANEXB.mjs +2 -0
- package/dist/chunk-GCDSW4XA.mjs +2 -0
- package/dist/chunk-GDUI2LJQ.mjs +2 -0
- package/dist/chunk-GEYHVKBC.mjs +2 -0
- package/dist/chunk-GGBQPD2L.mjs +2 -0
- package/dist/chunk-GIU3E2IT.mjs +2 -0
- package/dist/chunk-GLNYFLE3.mjs +2 -0
- package/dist/chunk-GO4GXJ3F.mjs +2 -0
- package/dist/chunk-GQCCXSTS.mjs +2 -0
- package/dist/chunk-GRWN6DLF.mjs +2 -0
- package/dist/chunk-GSH3SLP3.mjs +2 -0
- package/dist/chunk-GWBWT64E.mjs +2 -0
- package/dist/chunk-H5QORK4W.mjs +2 -0
- package/dist/chunk-HFXHAVJK.mjs +2 -0
- package/dist/chunk-HGVHREJJ.mjs +2 -0
- package/dist/chunk-HHWUXRFR.mjs +2 -0
- package/dist/chunk-HMFPTJ3U.mjs +2 -0
- package/dist/chunk-HMIRK2MV.mjs +2 -0
- package/dist/chunk-HRQJBJBP.mjs +2 -0
- package/dist/chunk-HTX7IG4W.mjs +2 -0
- package/dist/chunk-HW4XQA3K.mjs +2 -0
- package/dist/chunk-HZ3NKKHG.mjs +2 -0
- package/dist/chunk-HZDU6DBR.mjs +2 -0
- package/dist/chunk-I2ERRQPB.mjs +2 -0
- package/dist/chunk-I5GRBXJK.mjs +2 -0
- package/dist/chunk-ICEDGOAS.mjs +2 -0
- package/dist/chunk-IHESTLHQ.mjs +2 -0
- package/dist/chunk-IKKGPANL.mjs +2 -0
- package/dist/chunk-IKLOJB3Q.mjs +2 -0
- package/dist/chunk-ILKFK6T5.mjs +2 -0
- package/dist/chunk-IMVK2NKX.mjs +2 -0
- package/dist/chunk-IP7SGGXD.mjs +2 -0
- package/dist/chunk-IQS3JO4U.mjs +2 -0
- package/dist/chunk-IQXEXB2N.mjs +2 -0
- package/dist/chunk-ITGIDJED.mjs +2 -0
- package/dist/chunk-IV3XPVBH.mjs +2 -0
- package/dist/chunk-IVMR5TOD.mjs +2 -0
- package/dist/chunk-IVWU3N6K.mjs +2 -0
- package/dist/chunk-IWV6DYFL.mjs +2 -0
- package/dist/chunk-IZNK5FNF.mjs +2 -0
- package/dist/chunk-JBHCCHAX.mjs +2 -0
- package/dist/chunk-JE6Q7G23.mjs +2 -0
- package/dist/chunk-JEMVTA7H.mjs +2 -0
- package/dist/chunk-JLNMJPMS.mjs +2 -0
- package/dist/chunk-JOTOOOB7.mjs +2 -0
- package/dist/chunk-JQIRC5OQ.mjs +2 -0
- package/dist/chunk-JQRVFGWQ.mjs +2 -0
- package/dist/chunk-JR7JTRCM.mjs +2 -0
- package/dist/chunk-JSROSAJL.mjs +2 -0
- package/dist/chunk-JX3XYD4F.mjs +2 -0
- package/dist/chunk-JYTTOC7S.mjs +2 -0
- package/dist/chunk-KBHM6ZPJ.mjs +2 -0
- package/dist/chunk-KCJJW5TO.mjs +2 -0
- package/dist/chunk-KD32GO3D.mjs +2 -0
- package/dist/chunk-KFA3XF3C.mjs +2 -0
- package/dist/chunk-KH6JTJE6.mjs +2 -0
- package/dist/chunk-KIUI2G67.mjs +2 -0
- package/dist/chunk-KJOYEOVN.mjs +2 -0
- package/dist/chunk-KJTKCH3Y.mjs +2 -0
- package/dist/chunk-KKYMLNVA.mjs +2 -0
- package/dist/chunk-KO2WENR7.mjs +2 -0
- package/dist/chunk-KP36KR7A.mjs +2 -0
- package/dist/chunk-KQREOIWQ.mjs +2 -0
- package/dist/chunk-KREQC7Q7.mjs +2 -0
- package/dist/chunk-KTP2FSAA.mjs +2 -0
- package/dist/chunk-KTZV44AX.mjs +2 -0
- package/dist/chunk-KYSN2N2T.mjs +2 -0
- package/dist/chunk-L25XR7YA.mjs +6 -0
- package/dist/chunk-L3NMG3KB.mjs +2 -0
- package/dist/chunk-L43MAE22.mjs +2 -0
- package/dist/chunk-L5KLCESN.mjs +2 -0
- package/dist/chunk-L6PKIVDH.mjs +2 -0
- package/dist/chunk-L7IC4AZI.mjs +2 -0
- package/dist/chunk-LC7R6LFH.mjs +2 -0
- package/dist/chunk-LEOGTCLI.mjs +2 -0
- package/dist/chunk-LGP56LNR.mjs +2 -0
- package/dist/chunk-LGTAUEDK.mjs +2 -0
- package/dist/chunk-LM4DXBEG.mjs +2 -0
- package/dist/chunk-LPZJ7QJD.mjs +2 -0
- package/dist/chunk-LT4EWYNN.mjs +6 -0
- package/dist/chunk-LVK3QYXR.mjs +2 -0
- package/dist/chunk-LWOXKBUY.mjs +2 -0
- package/dist/chunk-LYIB723H.mjs +2 -0
- package/dist/chunk-LZJ2MMY7.mjs +2 -0
- package/dist/chunk-M6U5KOLC.mjs +2 -0
- package/dist/chunk-MAPBTWAM.mjs +2 -0
- package/dist/chunk-MCAQPPDD.mjs +2 -0
- package/dist/chunk-MF3UQU7R.mjs +2 -0
- package/dist/chunk-MIAABYP4.mjs +2 -0
- package/dist/chunk-MLZE6QOM.mjs +2 -0
- package/dist/chunk-MOPMLCNQ.mjs +2 -0
- package/dist/chunk-MSXQIRDA.mjs +2 -0
- package/dist/chunk-MZNQD55U.mjs +6 -0
- package/dist/chunk-N6KSX4DZ.mjs +2 -0
- package/dist/chunk-NC6XG2KA.mjs +2 -0
- package/dist/chunk-NJE6EGEB.mjs +2 -0
- package/dist/chunk-NK3PZXCM.mjs +2 -0
- package/dist/chunk-NL3CBTVS.mjs +2 -0
- package/dist/chunk-NMOVX3XO.mjs +2 -0
- package/dist/chunk-NMYJPVNA.mjs +2 -0
- package/dist/chunk-NO24YP67.mjs +2 -0
- package/dist/chunk-NQ7JCR26.mjs +2 -0
- package/dist/chunk-NSP7S7H4.mjs +2 -0
- package/dist/chunk-NTYX2MSW.mjs +2 -0
- package/dist/chunk-NUOSADJM.mjs +2 -0
- package/dist/chunk-NYO2G2EN.mjs +2 -0
- package/dist/chunk-NZEDF3OT.mjs +2 -0
- package/dist/chunk-O3DLC62J.mjs +2 -0
- package/dist/chunk-OBEF4OGM.mjs +2 -0
- package/dist/chunk-OBT72LIG.mjs +2 -0
- package/dist/chunk-OBWFLU3L.mjs +2 -0
- package/dist/chunk-OEX5ID2Q.mjs +2 -0
- package/dist/chunk-OFBBNGYH.mjs +2 -0
- package/dist/chunk-OLHSCUCC.mjs +2 -0
- package/dist/chunk-OZPO3QH4.mjs +2 -0
- package/dist/chunk-OZTMAK2F.mjs +2 -0
- package/dist/chunk-P3CZUOQ6.mjs +2 -0
- package/dist/chunk-P4EUQLI2.mjs +2 -0
- package/dist/chunk-P5SR7Z3V.mjs +2 -0
- package/dist/chunk-P7ET2243.mjs +2 -0
- package/dist/chunk-P7IHH426.mjs +2 -0
- package/dist/chunk-P7MZ4LNY.mjs +2 -0
- package/dist/chunk-PAOYKPYJ.mjs +2 -0
- package/dist/chunk-PCVTTMHK.mjs +2 -0
- package/dist/chunk-PDT75JWP.mjs +2 -0
- package/dist/chunk-PE3MN6UU.mjs +2 -0
- package/dist/chunk-PH5G7CGE.mjs +2 -0
- package/dist/chunk-PHFCK5TN.mjs +2 -0
- package/dist/chunk-PICMYP5V.mjs +2 -0
- package/dist/chunk-PK36ITLH.mjs +6 -0
- package/dist/chunk-PKCA2BJS.mjs +2 -0
- package/dist/chunk-PLFEVCEC.mjs +2 -0
- package/dist/chunk-PLIK2T5C.mjs +2 -0
- package/dist/chunk-PSEQTAOU.mjs +2 -0
- package/dist/chunk-PTD6SP2F.mjs +2 -0
- package/dist/chunk-PTL4V24K.mjs +2 -0
- package/dist/chunk-PVBKRWXL.mjs +2 -0
- package/dist/chunk-PVC7L4VN.mjs +2 -0
- package/dist/chunk-PXY3CUWQ.mjs +2 -0
- package/dist/chunk-PYQ6OGKU.mjs +2 -0
- package/dist/chunk-Q2SGHOF5.mjs +2 -0
- package/dist/chunk-QCJ2OM6S.mjs +6 -0
- package/dist/chunk-QEJ2X4UJ.mjs +2 -0
- package/dist/chunk-QIUNH2W5.mjs +2 -0
- package/dist/chunk-QJZDXCNM.mjs +2 -0
- package/dist/chunk-QK3D3DGG.mjs +2 -0
- package/dist/chunk-QKRH4WS4.mjs +2 -0
- package/dist/chunk-QPA3XY32.mjs +2 -0
- package/dist/chunk-QPRDXOSE.mjs +6 -0
- package/dist/chunk-QPUMPC5T.mjs +2 -0
- package/dist/chunk-QTIZYMVW.mjs +2 -0
- package/dist/chunk-QUE7CMTK.mjs +2 -0
- package/dist/chunk-QYPPIZSB.mjs +2 -0
- package/dist/chunk-QZM7CX4F.mjs +2 -0
- package/dist/chunk-R45DOTSL.mjs +2 -0
- package/dist/chunk-R6LNE5MK.mjs +2 -0
- package/dist/chunk-RA3DFGKU.mjs +2 -0
- package/dist/chunk-RBTODBIK.mjs +2 -0
- package/dist/chunk-RCKJTYRR.mjs +2 -0
- package/dist/chunk-REGZYSCC.mjs +6 -0
- package/dist/chunk-RF2Q4N26.mjs +2 -0
- package/dist/chunk-RGW6LVXT.mjs +2 -0
- package/dist/chunk-RHIXQH2O.mjs +2 -0
- package/dist/chunk-RJA4KRSH.mjs +2 -0
- package/dist/chunk-RK3RBM5K.mjs +2 -0
- package/dist/chunk-RO7ANKQT.mjs +2 -0
- package/dist/chunk-RP6SFVO7.mjs +2 -0
- package/dist/chunk-RRCNA57R.mjs +2 -0
- package/dist/chunk-RSI5BPPX.mjs +2 -0
- package/dist/chunk-RSPX6TLU.mjs +2 -0
- package/dist/chunk-RWGPTP4V.mjs +2 -0
- package/dist/chunk-RYF2K4AY.mjs +2 -0
- package/dist/chunk-RYSR2EGQ.mjs +2 -0
- package/dist/chunk-RYXVS2KZ.mjs +2 -0
- package/dist/chunk-S2NEVEKR.mjs +2 -0
- package/dist/chunk-S6CZQBRV.mjs +2 -0
- package/dist/chunk-SAHOYO3W.mjs +2 -0
- package/dist/chunk-SAMKHYGU.mjs +2 -0
- package/dist/chunk-SBCJYSVL.mjs +2 -0
- package/dist/chunk-SFYTGDTD.mjs +2 -0
- package/dist/chunk-SKRJG2SM.mjs +2 -0
- package/dist/chunk-STSQSF7T.mjs +2 -0
- package/dist/chunk-SVMUIP6P.mjs +2 -0
- package/dist/chunk-SY6BFRAX.mjs +2 -0
- package/dist/chunk-SYBSPZIR.mjs +2 -0
- package/dist/chunk-T2TRBQG2.mjs +2 -0
- package/dist/chunk-T4P5WTY5.mjs +2 -0
- package/dist/chunk-T7V4JXMG.mjs +2 -0
- package/dist/chunk-TLMC3GAF.mjs +2 -0
- package/dist/chunk-TMP7JERC.mjs +2 -0
- package/dist/chunk-TNX6NR2B.mjs +2 -0
- package/dist/chunk-TO4FOJ5A.mjs +2 -0
- package/dist/chunk-TPFZQ6KH.mjs +2 -0
- package/dist/chunk-TQCLVIGB.mjs +2 -0
- package/dist/chunk-TTNCHW37.mjs +2 -0
- package/dist/chunk-TUFONT3H.mjs +2 -0
- package/dist/chunk-TUVGGUNL.mjs +2 -0
- package/dist/chunk-TZOEJBTY.mjs +2 -0
- package/dist/chunk-U35TNL5E.mjs +2 -0
- package/dist/chunk-UDXIWBYZ.mjs +2 -0
- package/dist/chunk-UN5DDLLP.mjs +2 -0
- package/dist/chunk-UNMMF4CV.mjs +2 -0
- package/dist/chunk-UQE4WYGI.mjs +2 -0
- package/dist/chunk-UQOZX6GN.mjs +2 -0
- package/dist/chunk-USWPT2N2.mjs +2 -0
- package/dist/chunk-UYYTIJAU.mjs +2 -0
- package/dist/chunk-V2A53NIH.mjs +2 -0
- package/dist/chunk-V2TBDAUN.mjs +2 -0
- package/dist/chunk-V3KMO2PG.mjs +2 -0
- package/dist/chunk-VDVSQWNT.mjs +2 -0
- package/dist/chunk-VLR3D5DB.mjs +6 -0
- package/dist/chunk-VLW66CSB.mjs +2 -0
- package/dist/chunk-VMKDK7N2.mjs +2 -0
- package/dist/chunk-VRSSHUPE.mjs +6 -0
- package/dist/chunk-VVRGE42S.mjs +6 -0
- package/dist/chunk-VYGBENWK.mjs +2 -0
- package/dist/chunk-W4CPRMMI.mjs +2 -0
- package/dist/chunk-W7O7OCR3.mjs +2 -0
- package/dist/chunk-WAVXKIE5.mjs +2 -0
- package/dist/chunk-WIKB3KKK.mjs +2 -0
- package/dist/chunk-WLMERB7F.mjs +2 -0
- package/dist/chunk-WNFTBC4W.mjs +2 -0
- package/dist/chunk-WNWCIVVE.mjs +2 -0
- package/dist/chunk-WQ6TO7V3.mjs +2 -0
- package/dist/chunk-WV5B2YSS.mjs +2 -0
- package/dist/chunk-WWNPZU23.mjs +2 -0
- package/dist/chunk-X5S4CIT2.mjs +2 -0
- package/dist/chunk-X65P5L7Q.mjs +2 -0
- package/dist/chunk-X6J3EUB6.mjs +2 -0
- package/dist/chunk-XA7ALOPD.mjs +2 -0
- package/dist/chunk-XBRARMTY.mjs +2 -0
- package/dist/chunk-XDODWCI4.mjs +2 -0
- package/dist/chunk-XET7U4MW.mjs +2 -0
- package/dist/chunk-XFRYPWRP.mjs +2 -0
- package/dist/chunk-XHSPQLZT.mjs +2 -0
- package/dist/chunk-XJ3QHSNK.mjs +2 -0
- package/dist/chunk-XK44WBTA.mjs +2 -0
- package/dist/chunk-XKEOR5FG.mjs +2 -0
- package/dist/chunk-XLEVQGAS.mjs +2 -0
- package/dist/chunk-XLFUIWWB.mjs +2 -0
- package/dist/chunk-XM52KUR6.mjs +2 -0
- package/dist/chunk-XMT7QQOQ.mjs +2 -0
- package/dist/chunk-XMYZDMNI.mjs +2 -0
- package/dist/chunk-XR66ZLNC.mjs +2 -0
- package/dist/chunk-XRKTUABZ.mjs +2 -0
- package/dist/chunk-XTD7K5QP.mjs +2 -0
- package/dist/chunk-XXMSE47K.mjs +2 -0
- package/dist/chunk-XXUBPPDV.mjs +2 -0
- package/dist/chunk-Y5FBPYCA.mjs +2 -0
- package/dist/chunk-Y5R7JQJN.mjs +2 -0
- package/dist/chunk-Y6SEZMLS.mjs +2 -0
- package/dist/chunk-YB3AZRKC.mjs +2 -0
- package/dist/chunk-YEDVFCVN.mjs +2 -0
- package/dist/chunk-YESI3ZUG.mjs +2 -0
- package/dist/chunk-YGNKQRIO.mjs +2 -0
- package/dist/chunk-YKGDF2FT.mjs +2 -0
- package/dist/chunk-YLE7Z6QD.mjs +2 -0
- package/dist/chunk-YLIZ3JZH.mjs +2 -0
- package/dist/chunk-YP2JCR36.mjs +2 -0
- package/dist/chunk-YQI544UZ.mjs +2 -0
- package/dist/chunk-YSDWSX3L.mjs +2 -0
- package/dist/chunk-YT5VDML5.mjs +2 -0
- package/dist/chunk-YVN35W4Y.mjs +2 -0
- package/dist/chunk-YYXXOFVX.mjs +2 -0
- package/dist/chunk-Z5GJEA5B.mjs +2 -0
- package/dist/chunk-ZCA67HV7.mjs +2 -0
- package/dist/chunk-ZGVDAEZE.mjs +2 -0
- package/dist/chunk-ZGXX6G7G.mjs +2 -0
- package/dist/chunk-ZMUCF3OV.mjs +2 -0
- package/dist/chunk-ZQKIKPY6.mjs +2 -0
- package/dist/chunk-ZVGVKAVN.mjs +2 -0
- package/dist/chunk-ZVRXVWBO.mjs +2 -0
- package/dist/chunk-ZXHC327E.mjs +2 -0
- package/dist/chunk-ZXT7AVK4.mjs +2 -0
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-list.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/hooks/use-keyboard-shortcut.d.ts +1 -2
- package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
- package/dist/icons/default-domains/amazon.mjs +1 -1
- package/dist/icons/default-domains/chatgpt.mjs +1 -1
- package/dist/icons/default-domains/figma.mjs +1 -1
- package/dist/icons/default-domains/github-enhanced.mjs +1 -1
- package/dist/icons/default-domains/google-enhanced.mjs +1 -1
- package/dist/icons/default-domains/spotify.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/nucleo/filter2.d.ts +6 -0
- package/dist/icons/nucleo/filter2.mjs +2 -0
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +1 -1
- package/dist/input-select.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/status-badge.d.ts +1 -0
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/wordmark.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-P7ET2243.mjs";import{a as W}from"./chunk-TNX6NR2B.mjs";import{a as D}from"./chunk-IV3XPVBH.mjs";import{a as M,d as S,e as L}from"./chunk-ZGXX6G7G.mjs";import{a as H}from"./chunk-UN5DDLLP.mjs";import{a as x}from"./chunk-JEMVTA7H.mjs";import{a as V}from"./chunk-E3L4XH55.mjs";import{b as _}from"./chunk-LEOGTCLI.mjs";import{b as g,d as f,i,k as P,l as w}from"./chunk-NTYX2MSW.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function C(r){let[t,m]=Z(!1),n=G(()=>{m(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),T(()=>{n()},[n]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as U,Home as $,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as B}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,Q=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function R(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:t,className:m}){let{domain:n="dub.co"}=F(),{theme:l}=Y(N),[b,v]=q(!1),c=K(s=>{s.preventDefault(),v(!0)},[]);return B(d.Root,{open:b,onOpenChange:v,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:c,className:"max-w-fit",children:r==="full"?o(H,{className:m}):o(x,{className:i("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:i("z-50 -mt-1.5 -translate-x-10",l==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),v(!1)},children:B("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>R(J),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>R(Q),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),t||n!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(_,{className:i("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as nt,jsx as e,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:W,childItems:M},{name:"Solutions",content:E,childItems:S},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:D,childItems:L}],O=X(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Tt({theme:r="light"}){let{domain:t="dub.co"}=tt(),m=C(80),n=C(40),l=et(),{data:b,isLoading:v}=rt(t==="dub.co"&&"/api/auth/session",P,{dedupingInterval:6e4});return e(N.Provider,{value:{theme:r},children:u("div",{className:i("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:i("absolute inset-0 block transition-all lg:hidden",n&&(l&&w.includes(l)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:g("/",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(A,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:i("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",l&&w.includes(l)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:c,href:s,content:k})=>{let y=s===`/${l}`||s==="/"&&l===null;return u(a.Item,{children:[e(it,{trigger:!!k,children:s!==void 0?e(p,{id:`nav-${s}`,href:g(s,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:c}),className:O({isActive:y}),children:c}):e("button",{className:i(O({isActive:y}),"cursor-default"),children:c})}),k&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(k,{domain:t})})]},c)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:i("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:b&&Object.keys(b).length>0?e(p,{href:f,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):v?null:u(nt,{children:[e(p,{href:g(`${f}/login`,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Login"}),className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:g(`${f}/register`,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Sign Up"}),className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,at as c,Tt as d,A as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as C}from"./chunk-32C65ISH.mjs";import{a as k}from"./chunk-6JPO26GL.mjs";import{a as b}from"./chunk-JFSNPBO7.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as m}from"./chunk-LFGWL3ID.mjs";import{a as g}from"./chunk-CZSSD6PV.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as u}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as p}from"./chunk-DWACNU5E.mjs";import{a}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as l}from"./chunk-HYPLE4VW.mjs";import{a as h}from"./chunk-3KFNNXJ6.mjs";import{a as i}from"./chunk-2LBJI2KO.mjs";import{a as r}from"./chunk-TNAH7N5Q.mjs";import{a as n}from"./chunk-DMUERTF2.mjs";import{a as s}from"./chunk-PDSUXFDU.mjs";import{a as t}from"./chunk-NPWONPKN.mjs";import{a as o}from"./chunk-KYMBX7DZ.mjs";import{a as e}from"./chunk-ZJICX3BL.mjs";var R=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:h,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:m,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:k,href:"/docs/api-reference/introduction"}],x=[{icon:i,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:n,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:t,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],P=[{icon:p,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:g,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:s,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:o,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:e,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"}],T=[{icon:d,title:"Help Center",href:"/help"},{icon:c,title:"Docs",href:"/docs"},{icon:a,title:"Blog",href:"/blog"},{icon:l,title:"Changelog",href:"/changelog"},{icon:b,title:"Customers",href:"/customers"},{icon:u,title:"Brand",href:"/brand"}];export{R as a,x as b,P as c,v as d,T as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v,b as g}from"./chunk-EZB3E4CO.mjs";import{a as c,c as u,d as N}from"./chunk-JSROSAJL.mjs";import{a as l}from"./chunk-DBVGI74E.mjs";import{b as o,i,n as d}from"./chunk-KCJJW5TO.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{a as k}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-32C65ISH.mjs";import{a as b}from"./chunk-JFSNPBO7.mjs";import{a as g}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as m}from"./chunk-LFGWL3ID.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as u}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as p}from"./chunk-DWACNU5E.mjs";import{a as l}from"./chunk-HYPLE4VW.mjs";import{a as h}from"./chunk-3KFNNXJ6.mjs";import{a}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as n}from"./chunk-DMUERTF2.mjs";import{a as s}from"./chunk-PDSUXFDU.mjs";import{a as t}from"./chunk-NPWONPKN.mjs";import{a as o}from"./chunk-KYMBX7DZ.mjs";import{a as i}from"./chunk-2LBJI2KO.mjs";import{a as r}from"./chunk-TNAH7N5Q.mjs";import{a as e}from"./chunk-ZJICX3BL.mjs";var R=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:h,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:m,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:k,href:"/docs/api-reference/introduction"}],x=[{icon:i,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:n,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:t,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],P=[{icon:p,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:g,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:s,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:o,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:e,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"}],T=[{icon:d,title:"Help Center",href:"/help"},{icon:c,title:"Docs",href:"/docs"},{icon:a,title:"Blog",href:"/blog"},{icon:l,title:"Changelog",href:"/changelog"},{icon:b,title:"Customers",href:"/customers"},{icon:u,title:"Brand",href:"/brand"}];export{R as a,x as b,P as c,v as d,T as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i}from"./chunk-USWPT2N2.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i}from"./chunk-NTYX2MSW.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-X6J3EUB6.mjs";import{EyeIcon as d,EyeOffIcon as c}from"lucide-react";import u,{useCallback as m,useState as p}from"react";import{jsx as t,jsxs as x}from"react/jsx-runtime";var f=u.forwardRef(({className:n,type:s,...r},i)=>{let[e,a]=p(!1),l=m(()=>a(!e),[e,a]);return x("div",{className:"relative",children:[t("input",{type:e?"text":s,className:o("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",n),ref:i,...r}),s==="password"&&t("button",{className:"absolute inset-y-0 right-0 flex items-center rounded-lg px-2.5",type:"button",onClick:()=>l(),"aria-label":e?"Hide password":"Show Password",children:e?t(d,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):t(c,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})}),r.error&&t("span",{className:"block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});f.displayName="Input";export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as A}from"./chunk-MIAABYP4.mjs";import{a as j}from"./chunk-LM4DXBEG.mjs";import{a as T}from"./chunk-GVBIGY6N.mjs";import{a as S}from"./chunk-NWME2ANF.mjs";import{a as K}from"./chunk-H5QORK4W.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-EAEI3KDY.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{h as O,i as k}from"./chunk-USWPT2N2.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)}}),!o&&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 m}from"./chunk-GIU3E2IT.mjs";import{i}from"./chunk-USWPT2N2.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{f as u}from"./chunk-NTYX2MSW.mjs";import{createContext as h,useCallback as p,useContext as K,useEffect as l,useId as m,useState as g}from"react";import{jsx as v}from"react/jsx-runtime";var b=h({listeners:[],setListeners:()=>{}});function C({children:t}){let[s,n]=g([]);return v(b.Provider,{value:{listeners:s,setListeners:n},children:t})}function N(t,s,n={}){let o=m(),{listeners:d,setListeners:c}=K(b),a=p(e=>{let r=e.target,S=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||r.tagName==="INPUT"||r.tagName==="TEXTAREA"||S||(Array.isArray(t)?!t.includes(e.key):e.key!==t))return;let y=d.filter(i=>i.enabled!==!1&&(Array.isArray(i.key)?i.key.includes(e.key):i.key===e.key));y.length&&u(y,(L,f)=>(f.priority??0)-(L.priority??0)).slice(-1)[0].id!==o||(e.preventDefault(),s(e))},[t,d,o,s]);l(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[a]),l(()=>(c(e=>[...e.filter(r=>r.id!==o),{id:o,key:t,...n}]),()=>c(e=>e.filter(r=>r.id!==o))),[JSON.stringify(t),n.enabled,n.priority])}export{b as a,C as b,N as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i}from"./chunk-NTYX2MSW.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-P5SR7Z3V.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function l({className:i}){return a("svg",{className:t("h-full w-full",i),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"#0D1117"}),C("path",{d:"M111.001 44C72.8976 44 42 74.7556 42 112.696C42 143.048 61.7708 168.798 89.1868 177.882C92.6352 178.518 93.9013 176.392 93.9013 174.577C93.9013 172.939 93.8373 167.528 93.8076 161.787C74.6115 165.943 70.5609 153.682 70.5609 153.682C67.4222 145.742 62.8997 143.63 62.8997 143.63C56.6393 139.367 63.3716 139.454 63.3716 139.454C70.3004 139.939 73.9488 146.534 73.9488 146.534C80.103 157.036 90.0906 154 94.0281 152.244C94.6474 147.804 96.4356 144.774 98.4089 143.058C83.0829 141.321 66.972 135.431 66.972 109.108C66.972 101.608 69.6674 95.4801 74.0814 90.6693C73.3649 88.939 71.0031 81.952 74.7498 72.4896C74.7498 72.4896 80.544 70.6433 93.7299 79.5312C99.2339 78.0091 105.137 77.2458 111.001 77.2196C116.864 77.2458 122.772 78.0091 128.286 79.5312C141.456 70.6433 147.242 72.4896 147.242 72.4896C150.998 81.952 148.635 88.939 147.919 90.6693C152.343 95.4801 155.02 101.608 155.02 109.108C155.02 135.493 138.878 141.303 123.513 143.004C125.988 145.136 128.194 149.316 128.194 155.725C128.194 164.917 128.114 172.315 128.114 174.577C128.114 176.405 129.356 178.547 132.853 177.873C160.254 168.779 180 143.038 180 112.696C180 74.7556 149.107 44 111.001 44ZM67.843 141.859C67.691 142.201 67.1517 142.303 66.6603 142.069C66.1599 141.844 65.8788 141.379 66.041 141.037C66.1896 140.685 66.73 140.587 67.2294 140.823C67.731 141.047 68.0166 141.517 67.843 141.859ZM71.237 144.874C70.9079 145.178 70.2646 145.037 69.8282 144.557C69.3768 144.078 69.2923 143.438 69.6259 143.129C69.9653 142.826 70.5892 142.968 71.0416 143.447C71.493 143.931 71.5809 144.567 71.237 144.874ZM73.5655 148.732C73.1427 149.024 72.4514 148.75 72.0241 148.139C71.6013 147.529 71.6013 146.796 72.0332 146.502C72.4617 146.209 73.1427 146.473 73.5758 147.079C73.9974 147.7 73.9974 148.433 73.5655 148.732ZM77.5034 153.2C77.1252 153.615 76.3196 153.504 75.73 152.937C75.1267 152.383 74.9588 151.597 75.3381 151.182C75.7209 150.766 76.531 150.883 77.1252 151.445C77.7239 151.998 77.9067 152.789 77.5034 153.2ZM82.5928 154.708C82.4259 155.246 81.6501 155.491 80.8685 155.262C80.0881 155.027 79.5774 154.397 79.7351 153.853C79.8973 153.311 80.6766 153.056 81.4639 153.301C82.2431 153.535 82.755 154.161 82.5928 154.708ZM88.3847 155.348C88.4041 155.915 87.7414 156.384 86.921 156.395C86.096 156.413 85.4287 155.954 85.4196 155.397C85.4196 154.825 86.0674 154.359 86.8924 154.346C87.7128 154.33 88.3847 154.785 88.3847 155.348ZM94.0746 155.131C94.1729 155.684 93.6027 156.251 92.788 156.403C91.987 156.548 91.2455 156.207 91.1438 155.659C91.0444 155.092 91.6248 154.525 92.4247 154.378C93.2405 154.237 93.9706 154.569 94.0746 155.131Z",fill:"url(#paint0_radial_39_32)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(42 44) rotate(44.1575) scale(192.354 192.312)",children:[C("stop",{stopColor:"white",stopOpacity:"0.77"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{l as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-USWPT2N2.mjs";import{jsx as e}from"react/jsx-runtime";function o({className:t}){return e("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-KCJJW5TO.mjs";import{EyeIcon as d,EyeOffIcon as c}from"lucide-react";import u,{useCallback as m,useState as p}from"react";import{jsx as t,jsxs as x}from"react/jsx-runtime";var f=u.forwardRef(({className:n,type:s,...r},i)=>{let[e,a]=p(!1),l=m(()=>a(!e),[e,a]);return x("div",{className:"relative",children:[t("input",{type:e?"text":s,className:o("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",n),ref:i,...r}),s==="password"&&t("button",{className:"absolute inset-y-0 right-0 flex items-center rounded-lg px-2.5",type:"button",onClick:()=>l(),"aria-label":e?"Hide password":"Show Password",children:e?t(d,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):t(c,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})}),r.error&&t("span",{className:"block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});f.displayName="Input";export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-P5SR7Z3V.mjs";import{jsx as l,jsxs as f}from"react/jsx-runtime";function o({className:t}){return f("svg",{className:C("h-full w-full",t),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M110.999 0C49.6974 0 0 49.6973 0 111.001C0 172.307 49.6974 222 110.999 222C172.308 222 222 172.307 222 111.001C222 49.7012 172.308 0.00530203 110.998 0.00530203L110.999 0ZM161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.324 146.469 93.5163 142.863 54.8787 151.691C51.1554 152.539 47.4441 150.207 46.5958 146.482C45.7435 142.757 48.0671 139.046 51.7996 138.197C94.0823 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.904 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.655 135.228 163.586 132.723C133.75 114.383 88.2687 109.072 52.9779 119.785C48.4011 121.167 43.5671 118.588 42.178 114.019C40.7995 109.442 43.3802 104.617 47.9491 103.225C88.2608 90.9935 138.376 96.9185 172.639 117.974C176.708 120.479 177.994 125.808 175.489 129.872V129.871ZM176.655 98.3977C140.881 77.1485 81.8574 75.1947 47.7012 85.5615C42.2164 87.225 36.4161 84.1286 34.754 78.6437C33.0918 73.1561 36.1855 67.3596 41.6743 65.6922C80.8832 53.7891 146.063 56.0889 187.251 80.5405C192.195 83.4685 193.812 89.8403 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.655Z",fill:"#1ED760"}),l("path",{d:"M161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.325 146.469 93.5164 142.863 54.8788 151.691C51.1556 152.539 47.4442 150.207 46.5959 146.482C45.7436 142.757 48.0672 139.046 51.7997 138.197C94.0824 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.905 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.656 135.228 163.586 132.723C133.75 114.383 88.2689 109.072 52.9781 119.785C48.4012 121.167 43.5672 118.588 42.1781 114.019C40.7996 109.442 43.3803 104.617 47.9492 103.225C88.2609 90.9934 138.376 96.9184 172.639 117.974C176.709 120.479 177.994 125.808 175.489 129.872V129.871ZM176.656 98.3977C140.881 77.1485 81.8576 75.1947 47.7014 85.5615C42.2165 87.225 36.4163 84.1286 34.7541 78.6437C33.092 73.1561 36.1856 67.3596 41.6744 65.6921C80.8833 53.7891 146.064 56.0888 187.251 80.5405C192.195 83.4685 193.813 89.8402 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.656Z",fill:"white"})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as r}from"./chunk-X6J3EUB6.mjs";import{LayoutGroup as l,motion as u}from"framer-motion";import{useId as m}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";function x({options:s,selected:a,onSelect:i}){let n=m();return o("div",{className:"flex text-sm",children:o(l,{id:n,children:s.map(({id:t,label:e})=>p("div",{className:"relative",children:[o("button",{type:"button",onClick:()=>i==null?void 0:i(t),className:r("px-3 py-4 transition-colors duration-75",t===a?"text-black":"text-gray-400 hover:text-gray-500"),"aria-selected":t===a,children:e}),t===a&&o(u.div,{layoutId:"indicator",transition:{duration:.1},className:"absolute bottom-0 w-full px-1.5",children:o("div",{className:"h-0.5 bg-black"})})]},t))})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as c}from"./chunk-WDAMFRJJ.mjs";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{i as r}from"./chunk-KCJJW5TO.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as n}from"./chunk-X6J3EUB6.mjs";import g from"next/image";import{useEffect as i,useState as r}from"react";import{jsx as u}from"react/jsx-runtime";function v(t){let[o,c]=r(!0),[l,e]=r(t.src);i(()=>e(t.src),[t.src]);let m=s=>{c(!1);let a=s.target;a.naturalWidth<=16&&a.naturalHeight<=16&&e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)};return u(g,{...t,src:l,alt:t.alt,className:n(o?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)},unoptimized:!0})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-P5SR7Z3V.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{e as _}from"./chunk-MZNQD55U.mjs";import{a as v}from"./chunk-EZB3E4CO.mjs";import{a as N}from"./chunk-YEDVFCVN.mjs";import{a as x}from"./chunk-3X642YQK.mjs";import{a as y}from"./chunk-PTL4V24K.mjs";import{a as b}from"./chunk-2CG6YID6.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{b as o,i as n,k as d,m as g,n as p,o as h}from"./chunk-KCJJW5TO.mjs";import T from"next/image";import s from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:v.map(({title:a,href:t})=>({name:a,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:t})=>({name:a,href:`/compare/${t}`})),legal:h.map(({name:a,slug:t})=>({name:a,href:`/legal/${t}`})),tools:g.map(({name:a,slug:t})=>({name:a,href:`/tools/${t}`}))};function Y(){let{domain:a="dub.co"}=E();return e("footer",{children:r(N,{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("/",a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{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(x,{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(f,{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(b,{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(D,{})]}),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(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.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(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.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(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.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(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.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(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]})]})]}),e(T,{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 D(){let{data:a}=A("https://status.dub.co/api/v1/summary",d),[t,l]=w("bg-gray-200"),[i,c]=w("Loading status...");return F(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),l(C)}else c("All systems operational"),l("bg-green-500")},[a]),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",t,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as w}from"./chunk-4BFSC5GH.mjs";import{a as T}from"./chunk-6WVPFBS2.mjs";import{a as S}from"./chunk-S2NEVEKR.mjs";import{h as g}from"./chunk-APCYPH3V.mjs";import{flexRender as z,getCoreRowModel as D,useReactTable as M}from"@tanstack/react-table";import{AnimatePresence as $,motion as j}from"framer-motion";import{useEffect as A,useMemo as H,useState as I}from"react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var P=g(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-r border-b"]);function Z(a){let{data:s,rowCount:p,columns:u,defaultColumn:C,resizeColumns:l=!0,pagination:b,onPaginationChange:y}=a,[r,f]=I(a.columnVisibility??{});A(()=>{f(a.columnVisibility??{})},[a.columnVisibility]);let v=M({data:s,rowCount:p,columns:u,defaultColumn:{minSize:60,size:150,maxSize:250,...C},columnResizeMode:l?"onChange":void 0,getCoreRowModel:D(),onPaginationChange:y,onColumnVisibilityChange:f,state:{pagination:b,columnVisibility:r},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...a,columnVisibility:r,resizeColumns:l,table:v}}function G({columns:a,data:s,loading:p,error:u,emptyState:C,cellRight:l,sortBy:b,sortOrder:y,onSortChange:r,sortableColumns:f=[],resizeColumns:v,columnVisibility:h={},className:N,thClassName:V,tdClassName:k,table:i,pagination:m,resourceName:c}){let R=H(()=>{let n=i.getFlatHeaders(),e={};for(let d=0;d<n.length;d++){let x=n[d];e[`--header-${x.id}-size`]=x.getSize(),e[`--col-${x.column.id}-size`]=x.column.getSize()}return e},[a,h,i.getState().columnSizingInfo,i.getState().columnSizing]);return o("div",{className:"relative border border-gray-200 bg-white sm:rounded-xl",children:[!u&&!!(s!=null&&s.length)||p?t("div",{className:"min-h-[400px] overflow-x-auto rounded-[inherit]",children:o("table",{className:g(["group/table w-full table-fixed border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent"],N),style:R,children:[t("thead",{children:i.getHeaderGroups().map(n=>t("tr",{children:n.headers.map(e=>{let d=f.includes(e.column.id);return o("th",{className:g(P,"select-none font-medium",V),style:{width:`calc(var(--header-${e==null?void 0:e.id}-size) * 1px)`},children:[t("div",{className:"flex items-center justify-between gap-6 !pr-0",children:o("button",{type:"button",className:"flex items-center gap-2",disabled:!d,onClick:()=>r==null?void 0:r({sortBy:e.column.id,sortOrder:b!==e.column.id||y==="asc"?"desc":"asc"}),"aria-label":"Sort by column",children:[t("span",{children:e.isPlaceholder?null:z(e.column.columnDef.header,e.getContext())}),d&&t(T,{order:b===e.column.id?y||"desc":null})]})}),v&&e.index<n.headers.length-1&&t("div",{className:"absolute -right-[4px] top-0 z-[1] h-full w-[7px] cursor-col-resize",...{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler()}})]},e.id)})},n.id))}),t("tbody",{children:i.getRowModel().rows.map(n=>t("tr",{children:n.getVisibleCells().map(e=>t("td",{className:g(P,"group text-gray-600",k),style:{width:`calc(var(--col-${e.column.id}-size) * 1px)`},children:o("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[t("div",{className:"min-w-0 shrink grow",children:z(e.column.columnDef.cell,e.getContext())}),l==null?void 0:l(e)]})},e.id))},n.id))})]})}):t("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:u||C||`No ${(c==null?void 0:c(!0))||"items"} found.`}),m&&!u&&!!(s!=null&&s.length)&&o("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:[o("div",{children:[t("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",o("span",{className:"font-medium",children:[m.pageIndex*m.pageSize+1,"-",Math.min(m.pageIndex*m.pageSize+m.pageSize,i.getRowCount())]})," ","of"," ",t("span",{className:"font-medium",children:i.getRowCount().toLocaleString()})," ",(c==null?void 0:c(i.getRowCount()!==1))||"items"]}),o("div",{className:"flex items-center gap-2",children:[t(w,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>i.previousPage(),disabled:!i.getCanPreviousPage()}),t(w,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>i.nextPage(),disabled:!i.getCanNextPage()})]})]}),t($,{children:p&&t(j.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex items-center justify-center rounded-xl bg-white/50",children:t(S,{})})})]})}export{Z as a,G as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as m}from"./chunk-4BFSC5GH.mjs";import{h as i}from"./chunk-APCYPH3V.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,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-XM52KUR6.mjs";import{b as E}from"./chunk-25UIIY3B.mjs";import{i as g}from"./chunk-NTYX2MSW.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",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(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-P5SR7Z3V.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{b as c}from"./chunk-NK3PZXCM.mjs";import{c as s,g as m}from"./chunk-P5SR7Z3V.mjs";import*as n from"@radix-ui/react-tooltip";import d from"linkify-react";import{HelpCircle as x}from"lucide-react";import u from"next/link";import{useState as f}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function P({children:e}){return t(n.Provider,{delayDuration:100,children:e})}function p({children:e,content:o,side:r="top"}){let[l,i]=f(!1);return a(n.Root,{open:l,onOpenChange:i,delayDuration:0,children:[t(n.Trigger,{asChild:!0,onClick:()=>{i(!0)},onBlur:()=>{i(!1)},children:e}),t(n.Portal,{children:t(n.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,children:typeof o=="string"?t("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:o}):typeof o=="function"?o({setOpen:i}):o})})]})}function k({title:e,cta:o,href:r,target:l,onClick:i}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[t("p",{className:"text-sm text-gray-700",children:e}),o&&(r?t(u,{href:r,...l?{target:l}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):i?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:i,children:o}):null)]})}function w({title:e,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",t("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:l=>l.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function C({children:e}){return t("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:t(d,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function R(e){return t(p,{...e,children:t(x,{className:"h-4 w-4 text-gray-500"})})}function B({value:e,unit:o="total clicks",prefix:r,children:l,lastClicked:i}){return(!e||e<1e3)&&!i?l:t(p,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[r,s(e||0,{full:!0})," ",o]}),i&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",m(i,{withAgo:!0})]})]}),children:l})}function L({children:e,content:o,...r}){return t(p,{content:o,...r,children:t("div",{className:"flex cursor-pointer items-center",children:t(c,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function O({tooltipContent:e,children:o,...r}){return t(p,{content:e,children:t("div",{className:"flex cursor-pointer items-center",children:t("button",{type:"button",...r,children:o})})})}export{P as a,p as b,k as c,w as d,C as e,R as f,B as g,L as h,O as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-USWPT2N2.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function l({className:i}){return a("svg",{className:t("h-full w-full",i),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"#0D1117"}),C("path",{d:"M111.001 44C72.8976 44 42 74.7556 42 112.696C42 143.048 61.7708 168.798 89.1868 177.882C92.6352 178.518 93.9013 176.392 93.9013 174.577C93.9013 172.939 93.8373 167.528 93.8076 161.787C74.6115 165.943 70.5609 153.682 70.5609 153.682C67.4222 145.742 62.8997 143.63 62.8997 143.63C56.6393 139.367 63.3716 139.454 63.3716 139.454C70.3004 139.939 73.9488 146.534 73.9488 146.534C80.103 157.036 90.0906 154 94.0281 152.244C94.6474 147.804 96.4356 144.774 98.4089 143.058C83.0829 141.321 66.972 135.431 66.972 109.108C66.972 101.608 69.6674 95.4801 74.0814 90.6693C73.3649 88.939 71.0031 81.952 74.7498 72.4896C74.7498 72.4896 80.544 70.6433 93.7299 79.5312C99.2339 78.0091 105.137 77.2458 111.001 77.2196C116.864 77.2458 122.772 78.0091 128.286 79.5312C141.456 70.6433 147.242 72.4896 147.242 72.4896C150.998 81.952 148.635 88.939 147.919 90.6693C152.343 95.4801 155.02 101.608 155.02 109.108C155.02 135.493 138.878 141.303 123.513 143.004C125.988 145.136 128.194 149.316 128.194 155.725C128.194 164.917 128.114 172.315 128.114 174.577C128.114 176.405 129.356 178.547 132.853 177.873C160.254 168.779 180 143.038 180 112.696C180 74.7556 149.107 44 111.001 44ZM67.843 141.859C67.691 142.201 67.1517 142.303 66.6603 142.069C66.1599 141.844 65.8788 141.379 66.041 141.037C66.1896 140.685 66.73 140.587 67.2294 140.823C67.731 141.047 68.0166 141.517 67.843 141.859ZM71.237 144.874C70.9079 145.178 70.2646 145.037 69.8282 144.557C69.3768 144.078 69.2923 143.438 69.6259 143.129C69.9653 142.826 70.5892 142.968 71.0416 143.447C71.493 143.931 71.5809 144.567 71.237 144.874ZM73.5655 148.732C73.1427 149.024 72.4514 148.75 72.0241 148.139C71.6013 147.529 71.6013 146.796 72.0332 146.502C72.4617 146.209 73.1427 146.473 73.5758 147.079C73.9974 147.7 73.9974 148.433 73.5655 148.732ZM77.5034 153.2C77.1252 153.615 76.3196 153.504 75.73 152.937C75.1267 152.383 74.9588 151.597 75.3381 151.182C75.7209 150.766 76.531 150.883 77.1252 151.445C77.7239 151.998 77.9067 152.789 77.5034 153.2ZM82.5928 154.708C82.4259 155.246 81.6501 155.491 80.8685 155.262C80.0881 155.027 79.5774 154.397 79.7351 153.853C79.8973 153.311 80.6766 153.056 81.4639 153.301C82.2431 153.535 82.755 154.161 82.5928 154.708ZM88.3847 155.348C88.4041 155.915 87.7414 156.384 86.921 156.395C86.096 156.413 85.4287 155.954 85.4196 155.397C85.4196 154.825 86.0674 154.359 86.8924 154.346C87.7128 154.33 88.3847 154.785 88.3847 155.348ZM94.0746 155.131C94.1729 155.684 93.6027 156.251 92.788 156.403C91.987 156.548 91.2455 156.207 91.1438 155.659C91.0444 155.092 91.6248 154.525 92.4247 154.378C93.2405 154.237 93.9706 154.569 94.0746 155.131Z",fill:"url(#paint0_radial_39_32)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(42 44) rotate(44.1575) scale(192.354 192.312)",children:[C("stop",{stopColor:"white",stopOpacity:"0.77"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{l as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as u}from"./chunk-BHWCGFQN.mjs";import{a as l}from"./chunk-EAEI3KDY.mjs";import{i as r}from"./chunk-USWPT2N2.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-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as O}from"./chunk-KP36KR7A.mjs";import{b as E}from"./chunk-TLMC3GAF.mjs";import{i as g}from"./chunk-USWPT2N2.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",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(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 r}from"./chunk-NTYX2MSW.mjs";import{cva as n}from"class-variance-authority";import{createContext as e}from"react";import{jsx as t}from"react/jsx-runtime";var p=n("group/card-list w-full flex flex-col transition-[gap,opacity] min-w-0",{variants:{variant:{compact:"gap-0",loose:"gap-4"},loading:{true:"opacity-50"}}}),l=e({variant:"loose"});function m({variant:a="loose",loading:o=!1,className:i,children:s}){return t("ul",{className:r(p({variant:a,loading:o}),i),"data-variant":a,children:t(l.Provider,{value:{variant:a},children:s})})}export{l as a,m as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as c}from"./chunk-WDAMFRJJ.mjs";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{i as r}from"./chunk-P5SR7Z3V.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as g}from"./chunk-NWME2ANF.mjs";import{i}from"./chunk-P5SR7Z3V.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:m,preventDefaultClose:u}){let p=D(),f=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=g();return b&&!m?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||f({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||f()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-ERQFJWQW.mjs";import{a as m,c as g,e as k}from"./chunk-EBNB474Q.mjs";import{a as l}from"./chunk-GWBWT64E.mjs";import{a as h}from"./chunk-BW5R7RS3.mjs";import{a as f}from"./chunk-ECA63QAF.mjs";import{a as d}from"./chunk-C42UNILO.mjs";import{a as p}from"./chunk-DQFBFI4C.mjs";import{a as c}from"./chunk-AEWJZ6KN.mjs";import{b as a,i as t}from"./chunk-X6J3EUB6.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";var v=[{name:"Spotify Link Shortener",href:"/tools/spotify-link-shortener",icon:p},{name:"ChatGPT Link Shortener",href:"/tools/chatgpt-link-shortener",icon:l},{name:"GitHub Link Shortener",href:"/tools/github-link-shortener",icon:f},{name:"Google Link Shortener",href:"/tools/google-link-shortener",icon:d},{name:"Amazon Link Shortener",href:"/tools/amazon-link-shortener",icon:c},{name:"Figma Link Shortener",href:"/tools/figma-link-shortener",icon:h}];function _({domain:o}){return s("div",{className:"grid w-[32rem] grid-cols-[7fr_5fr]",children:[s("div",{className:"p-5",children:[e("p",{className:t(m,"mb-2"),children:"Tools"}),e("div",{className:"flex flex-col gap-2",children:v.map(({name:r,href:n,icon:i})=>e(k,{name:r,href:a(n,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:r}),icon:e(i,{})}))})]}),s("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:t(m,"mb-2"),children:"Resources"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:u.map(({icon:r,title:n,href:i})=>e(g,{href:a(i,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:n}),icon:e(r,{className:t("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:n,showArrow:!0}))})]})]})}export{_ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-X6J3EUB6.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{a as r}from"./chunk-7TBGFJM2.mjs";import{i as t}from"./chunk-USWPT2N2.mjs";import{motion as c}from"framer-motion";import{forwardRef as u,useRef as C}from"react";import{jsx as d}from"react/jsx-runtime";var R=u(({width:i=!1,height:e=!1,className:p,transition:f,children:s,...h},l)=>{var a,m;let n=C(null),o=r(n);return d(c.div,{ref:l,className:t("overflow-hidden",p),animate:{width:i?((a=o==null?void 0:o.contentRect)==null?void 0:a.width)??"auto":"auto",height:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.height)??"auto":"auto"},transition:f??{type:"spring",duration:.3},...h,children:d("div",{ref:n,className:t(e&&"h-max",i&&"w-max"),children:s})})});R.displayName="AnimatedSizeContainer";export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";function t(r){return o("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:o("g",{fill:"currentColor",children:o("path",{d:"M10.5,16.25h-3v-7.25L3.106,5.3c-.226-.19-.356-.47-.356-.765v-1.785H15.25v1.785c0,.295-.13,.575-.356,.765l-4.394,3.7v7.25Z",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})})}export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-DEQWASOB.mjs";import{b as s,f as m}from"./chunk-APCYPH3V.mjs";import*as n from"@radix-ui/react-tooltip";import d from"linkify-react";import{HelpCircle as x}from"lucide-react";import u from"next/link";import{useState as f}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function P({children:e}){return t(n.Provider,{delayDuration:100,children:e})}function p({children:e,content:o,side:r="top"}){let[i,l]=f(!1);return a(n.Root,{open:i,onOpenChange:l,delayDuration:0,children:[t(n.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:e}),t(n.Portal,{children:t(n.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,children:typeof o=="string"?t("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:o}):typeof o=="function"?o({setOpen:l}):o})})]})}function k({title:e,cta:o,href:r,target:i,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[t("p",{className:"text-sm text-gray-700",children:e}),o&&(r?t(u,{href:r,...i?{target:i}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function w({title:e,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",t("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function C({children:e}){return t("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:t(d,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function R(e){return t(p,{...e,children:t(x,{className:"h-4 w-4 text-gray-500"})})}function B({value:e,unit:o="total clicks",children:r,lastClicked:i}){return(!e||e<1e3)&&!i?r:t(p,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(e||0,{full:!0})," ",o]}),i&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",m(i,{withAgo:!0})]})]}),children:r})}function L({children:e,content:o,...r}){return t(p,{content:o,...r,children:t("div",{className:"flex cursor-pointer items-center",children:t(c,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function O({tooltipContent:e,children:o,...r}){return t(p,{content:e,children:t("div",{className:"flex cursor-pointer items-center",children:t("button",{type:"button",...r,children:o})})})}export{P as a,p as b,k as c,w as d,C as e,R as f,B as g,L as h,O as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as m}from"./chunk-X6J3EUB6.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{i as e}from"./chunk-X6J3EUB6.mjs";import{jsx as t,jsxs as o}from"react/jsx-runtime";function i({className:r}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"256",height:"256",viewBox:"0 0 256 256",className:e("text-[#ff0000]",r),children:[t("defs",{}),t("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"#ff0000",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:t("path",{d:"M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z M 36 58.5 v -27 L 59.382 45 L 36 58.5 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"currentColor",fillRule:"nonzero",opacity:1},transform:" matrix(1 0 0 1 0 0) ",strokeLinecap:"round"})})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-KCJJW5TO.mjs";import{jsx as l,jsxs as f}from"react/jsx-runtime";function o({className:t}){return f("svg",{className:C("h-full w-full",t),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M110.999 0C49.6974 0 0 49.6973 0 111.001C0 172.307 49.6974 222 110.999 222C172.308 222 222 172.307 222 111.001C222 49.7012 172.308 0.00530203 110.998 0.00530203L110.999 0ZM161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.324 146.469 93.5163 142.863 54.8787 151.691C51.1554 152.539 47.4441 150.207 46.5958 146.482C45.7435 142.757 48.0671 139.046 51.7996 138.197C94.0823 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.904 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.655 135.228 163.586 132.723C133.75 114.383 88.2687 109.072 52.9779 119.785C48.4011 121.167 43.5671 118.588 42.178 114.019C40.7995 109.442 43.3802 104.617 47.9491 103.225C88.2608 90.9935 138.376 96.9185 172.639 117.974C176.708 120.479 177.994 125.808 175.489 129.872V129.871ZM176.655 98.3977C140.881 77.1485 81.8574 75.1947 47.7012 85.5615C42.2164 87.225 36.4161 84.1286 34.754 78.6437C33.0918 73.1561 36.1855 67.3596 41.6743 65.6922C80.8832 53.7891 146.063 56.0889 187.251 80.5405C192.195 83.4685 193.812 89.8403 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.655Z",fill:"#1ED760"}),l("path",{d:"M161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.325 146.469 93.5164 142.863 54.8788 151.691C51.1556 152.539 47.4442 150.207 46.5959 146.482C45.7436 142.757 48.0672 139.046 51.7997 138.197C94.0824 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.905 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.656 135.228 163.586 132.723C133.75 114.383 88.2689 109.072 52.9781 119.785C48.4012 121.167 43.5672 118.588 42.1781 114.019C40.7996 109.442 43.3803 104.617 47.9492 103.225C88.2609 90.9934 138.376 96.9184 172.639 117.974C176.709 120.479 177.994 125.808 175.489 129.872V129.871ZM176.656 98.3977C140.881 77.1485 81.8576 75.1947 47.7014 85.5615C42.2165 87.225 36.4163 84.1286 34.7541 78.6437C33.092 73.1561 36.1856 67.3596 41.6744 65.6921C80.8833 53.7891 146.064 56.0888 187.251 80.5405C192.195 83.4685 193.813 89.8402 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.656Z",fill:"white"})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-NTYX2MSW.mjs";import{cva as d}from"class-variance-authority";import*as i from"react";import{jsx as s}from"react/jsx-runtime";var o=d("relative w-full rounded-lg border px-4 py-6 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive border-red-500 dark:border-red-500"}},defaultVariants:{variant:"default"}}),n=i.forwardRef(({className:e,variant:t,...r},l)=>s("div",{ref:l,role:"alert",className:a(o({variant:t}),e),...r}));n.displayName="Alert";var c=i.forwardRef(({className:e,...t},r)=>s("h5",{ref:r,className:a("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";var m=i.forwardRef(({className:e,...t},r)=>s("div",{ref:r,className:a("text-sm [&_p]:leading-relaxed",e),...t}));m.displayName="AlertDescription";export{n as a,c as b,m as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as A}from"./chunk-KJOYEOVN.mjs";import{a as j}from"./chunk-LYIB723H.mjs";import{a as T}from"./chunk-GVBIGY6N.mjs";import{a as S}from"./chunk-NWME2ANF.mjs";import{a as K}from"./chunk-Y5R7JQJN.mjs";import{a as H}from"./chunk-LPV7TLRR.mjs";import{a as z}from"./chunk-QPA3XY32.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{h as O,i as k}from"./chunk-NTYX2MSW.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)}}),!o&&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{e as N}from"./chunk-QCJ2OM6S.mjs";import{a as x}from"./chunk-EZB3E4CO.mjs";import{a as v}from"./chunk-VLW66CSB.mjs";import{a as b}from"./chunk-KD32GO3D.mjs";import{a as y}from"./chunk-HMFPTJ3U.mjs";import{a as h}from"./chunk-ALEYOCBW.mjs";import{a as f}from"./chunk-PLIK2T5C.mjs";import{b as o,i as n,k as d,m as g,n as p}from"./chunk-X6J3EUB6.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{i as C}from"./chunk-NTYX2MSW.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function V({className:l}){return o("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",l),children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-KCJJW5TO.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as l,d as p}from"./chunk-EZB3E4CO.mjs";import{a as n,c,d as u}from"./chunk-JSROSAJL.mjs";import{b as s,i as m}from"./chunk-KCJJW5TO.mjs";import{jsx as e,jsxs as d}from"react/jsx-runtime";function g({domain:o}){return d("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[d("div",{className:"p-5",children:[e("p",{className:m(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:i,title:r,description:t,href:a})=>e(c,{href:s(a,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:r}),icon:e(u,{icon:i}),title:r,description:t}))})]}),d("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:m(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:r,title:t,href:a})=>e(c,{href:s(a,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:t}),icon:e(i,{className:m("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:t,showArrow:!0},a))})]})]})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-VRSSHUPE.mjs";import{a as h}from"./chunk-H5QORK4W.mjs";import{b as p,d as f,i,k as g}from"./chunk-USWPT2N2.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 l}from"./chunk-X6J3EUB6.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 t}from"./chunk-USWPT2N2.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-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as O}from"./chunk-LPZJ7QJD.mjs";import{b as E}from"./chunk-NJE6EGEB.mjs";import{i as g}from"./chunk-KCJJW5TO.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",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(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{a as b}from"./chunk-R45DOTSL.mjs";import{h as s}from"./chunk-APCYPH3V.mjs";import{cva as L}from"class-variance-authority";import{UploadCloud as V}from"lucide-react";import{useState as F}from"react";import{toast as h}from"sonner";import{Fragment as M,jsx as t,jsxs as c}from"react/jsx-runtime";var d={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"}},z=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 J({readFile:N,onChange:r,variant:w,className:D,iconClassName:x,accept:i="any",imageSrc:l,loading:P=!1,clickToUpload:n=!0,showHoverOverlay:R=!0,content:u,maxFileSizeMB:p=0,accessibilityLabel:U="File upload"}){let[g,o]=F(!1),[j,T]=F(null),f=async e=>{let a="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!a)return;if(T(a.name),p>0&&a.size/1024/1024>p){h.error(`File size too big (max ${p} MB)`);return}let m=d[i].types;if(m.length&&!m.includes(a.type)){h.error(d[i].errorMessage??"File type not supported");return}if(N){let y=new FileReader;y.onload=E=>{var v;return r==null?void 0:r({src:(v=E.target)==null?void 0:v.result,file:a})},y.readAsDataURL(a);return}r==null||r({file:a})};return c("label",{className:s(z({variant:w}),n&&"cursor-pointer",D),children:[P&&t("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:t(b,{})}),t("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),o(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),f(e),o(!1)}}),c("div",{className:s("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",g&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",l?s("opacity-0",R&&"group-hover:opacity-100"):"group-hover:bg-gray-50"),children:[t(V,{className:s("h-7 w-7 text-gray-500 transition-all duration-75 group-hover:scale-110 group-active:scale-95",g?"scale-110":"scale-100",x)}),u!==null&&t("div",{className:"mt-2 text-center text-sm text-gray-500",children:u??t(M,{children:c("p",{children:["Drag and drop ",n&&"or click"," to upload."]})})}),t("span",{className:"sr-only",children:U})]}),l&&t("img",{src:l,alt:"Preview",className:"h-full w-full rounded-[inherit] object-cover"}),n&&t("div",{className:"sr-only mt-1 flex shadow-sm",children:t("input",{type:"file",accept:d[i].types.join(","),onChange:f},j)})]})}export{J as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as e}from"./chunk-EHYVEIOL.mjs";import{a as r}from"./chunk-BKZ6TNZC.mjs";import{h as o}from"./chunk-APCYPH3V.mjs";import{cva as m}from"class-variance-authority";import{useState as f}from"react";import{toast as d}from"sonner";import{jsx as t,jsxs as v}from"react/jsx-runtime";var g=m("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-gray-100 hover:scale-105 hover:bg-blue-100 active:scale-95 text-gray-700 hover:text-blue-800",neutral:"bg-transparent hover:bg-gray-100 active:bg-gray-200"}},defaultVariants:{variant:"default"}});function w({variant:n="default",value:s,className:i,icon:c}){let[p,a]=f(!1),l=c||r;return v("button",{onClick:u=>{u.stopPropagation(),a(!0),navigator.clipboard.writeText(s).then(()=>{d.success("Copied to clipboard!")}),setTimeout(()=>a(!1),3e3)},className:o(g({variant:n}),i),children:[t("span",{className:"sr-only",children:"Copy"}),p?t(e,{className:"h-3.5 w-3.5"}):t(l,{className:"h-3.5 w-3.5"})]})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as F}from"./chunk-KIUI2G67.mjs";import{i as r}from"./chunk-KCJJW5TO.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{h as v}from"./chunk-APCYPH3V.mjs";import{jsx as h}from"react/jsx-runtime";function s({className:c}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:v("text-[#0077b5]",c),children:h("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}export{s as a};
|