@dub/ui 0.1.54 → 0.1.56
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.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.mjs +1 -1
- package/dist/card-list/card-list-card.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-23NDOR7C.mjs +2 -0
- package/dist/chunk-23WZJGND.mjs +2 -0
- package/dist/chunk-27HU6NGS.mjs +2 -0
- package/dist/chunk-2CGNAYG4.mjs +2 -0
- package/dist/chunk-2JE5SE7K.mjs +2 -0
- package/dist/chunk-2S46TRKP.mjs +2 -0
- package/dist/chunk-2SB65XU5.mjs +6 -0
- package/dist/chunk-2VOMTNWE.mjs +2 -0
- package/dist/chunk-2WLN2PGI.mjs +2 -0
- package/dist/chunk-2WZBCRME.mjs +2 -0
- package/dist/chunk-2ZXQBFQZ.mjs +2 -0
- package/dist/chunk-33X4DGEK.mjs +2 -0
- package/dist/chunk-36O7I5AO.mjs +2 -0
- package/dist/chunk-37GGJYHY.mjs +6 -0
- package/dist/chunk-37PAGNDO.mjs +2 -0
- package/dist/chunk-3BFLYPAF.mjs +2 -0
- package/dist/chunk-3HX5U2XW.mjs +2 -0
- package/dist/chunk-3IGXY4YL.mjs +6 -0
- package/dist/chunk-3N5KUJM5.mjs +2 -0
- package/dist/chunk-3PQYS47P.mjs +2 -0
- package/dist/chunk-3PZUMRJC.mjs +2 -0
- package/dist/chunk-3ST4N22Y.mjs +2 -0
- package/dist/chunk-3UD4GSL4.mjs +2 -0
- package/dist/chunk-3UORMNTJ.mjs +2 -0
- package/dist/chunk-3V5LYUOS.mjs +2 -0
- package/dist/chunk-3VQZ5FDA.mjs +2 -0
- package/dist/chunk-3WKP6SRA.mjs +2 -0
- package/dist/chunk-3WOWTVPR.mjs +2 -0
- package/dist/chunk-3YM3OBBI.mjs +2 -0
- package/dist/chunk-3ZPCBBZT.mjs +2 -0
- package/dist/chunk-3ZTOIX2A.mjs +2 -0
- package/dist/chunk-42676HMH.mjs +2 -0
- package/dist/chunk-47GVM7OY.mjs +2 -0
- package/dist/chunk-4EQ5SI7D.mjs +2 -0
- package/dist/chunk-4FDAE4LW.mjs +2 -0
- package/dist/chunk-4GXWKYK2.mjs +2 -0
- package/dist/chunk-4LNBEFLL.mjs +2 -0
- package/dist/chunk-4NH7JUBA.mjs +6 -0
- package/dist/chunk-4NY4DL6Z.mjs +2 -0
- package/dist/chunk-4OLXISGI.mjs +2 -0
- package/dist/chunk-4R5UFQZJ.mjs +2 -0
- package/dist/chunk-4UC3L663.mjs +2 -0
- package/dist/chunk-4UZWCDBH.mjs +2 -0
- package/dist/chunk-534BPRVZ.mjs +2 -0
- package/dist/chunk-55MTKXCB.mjs +2 -0
- package/dist/chunk-55PMEEPY.mjs +2 -0
- package/dist/chunk-5B4IYE46.mjs +2 -0
- package/dist/chunk-5EE42VOC.mjs +6 -0
- package/dist/chunk-5G6UZ3E2.mjs +2 -0
- package/dist/chunk-5GFIZCYK.mjs +2 -0
- package/dist/chunk-5JLOQ447.mjs +2 -0
- package/dist/chunk-5LKIQPGN.mjs +2 -0
- package/dist/chunk-5N57KQA7.mjs +2 -0
- package/dist/chunk-5NPOCL3F.mjs +2 -0
- package/dist/chunk-5NQWHOHK.mjs +2 -0
- package/dist/chunk-5P64XPBB.mjs +2 -0
- package/dist/chunk-5R7DL7XD.mjs +2 -0
- package/dist/chunk-5RCMVMQK.mjs +2 -0
- package/dist/chunk-5TISAX4N.mjs +2 -0
- package/dist/chunk-62NO6MCF.mjs +2 -0
- package/dist/chunk-64M4CYYQ.mjs +2 -0
- package/dist/chunk-64NE6Q6R.mjs +2 -0
- package/dist/chunk-6GYMBUS4.mjs +2 -0
- package/dist/chunk-6HLKGUQ2.mjs +2 -0
- package/dist/chunk-6NR26IGZ.mjs +2 -0
- package/dist/chunk-6QCQTMQU.mjs +2 -0
- package/dist/chunk-6RL6KQVR.mjs +2 -0
- package/dist/chunk-6T2KKT2L.mjs +2 -0
- package/dist/chunk-6TOTQPDL.mjs +2 -0
- package/dist/chunk-6X35U34M.mjs +2 -0
- package/dist/chunk-6ZX6XWDG.mjs +2 -0
- package/dist/chunk-72L3Z4C6.mjs +6 -0
- package/dist/chunk-73JII4W3.mjs +2 -0
- package/dist/chunk-77VB3H4D.mjs +2 -0
- package/dist/chunk-7A3EB447.mjs +2 -0
- package/dist/chunk-7A5RND6K.mjs +2 -0
- package/dist/chunk-7BL6KHHZ.mjs +2 -0
- package/dist/chunk-7ELQOYKY.mjs +2 -0
- package/dist/chunk-7LL43UGA.mjs +2 -0
- package/dist/chunk-7LV7OHZM.mjs +2 -0
- package/dist/chunk-7MUMDM6R.mjs +2 -0
- package/dist/chunk-7O4WDR7E.mjs +2 -0
- package/dist/chunk-7OPVMKL6.mjs +2 -0
- package/dist/chunk-7V4KCQBA.mjs +2 -0
- package/dist/chunk-7VXI3AU2.mjs +2 -0
- package/dist/chunk-A3HQ3HRQ.mjs +2 -0
- package/dist/chunk-A66FTKMV.mjs +2 -0
- package/dist/chunk-A6MU5MUS.mjs +2 -0
- package/dist/chunk-ABHTUMNO.mjs +2 -0
- package/dist/chunk-ABJQU3DT.mjs +2 -0
- package/dist/chunk-AEGZBXD3.mjs +2 -0
- package/dist/chunk-AEUUF7H6.mjs +2 -0
- package/dist/chunk-AFS6ETPE.mjs +2 -0
- package/dist/chunk-AKVPCSTH.mjs +2 -0
- package/dist/chunk-AL7RWCAF.mjs +2 -0
- package/dist/chunk-ALW7VAOR.mjs +2 -0
- package/dist/chunk-AQIBSN2C.mjs +2 -0
- package/dist/chunk-AQOPFUPM.mjs +2 -0
- package/dist/chunk-ARWZUX2F.mjs +2 -0
- package/dist/chunk-ATBJYUZV.mjs +2 -0
- package/dist/chunk-ATHVS2OH.mjs +2 -0
- package/dist/chunk-AV75PGHO.mjs +6 -0
- package/dist/chunk-AXPWQBVG.mjs +2 -0
- package/dist/chunk-AYFVXRLB.mjs +2 -0
- package/dist/chunk-AZGTDUXC.mjs +2 -0
- package/dist/chunk-B473XU47.mjs +6 -0
- package/dist/chunk-B6OTQKPK.mjs +2 -0
- package/dist/chunk-BDCQZEXP.mjs +2 -0
- package/dist/chunk-BIAIRAN3.mjs +2 -0
- package/dist/chunk-BLGOPX6H.mjs +2 -0
- package/dist/chunk-BMYCKUZT.mjs +2 -0
- package/dist/chunk-BNOB6AOD.mjs +2 -0
- package/dist/chunk-BNOYDEML.mjs +2 -0
- package/dist/chunk-BQXDS6SZ.mjs +2 -0
- package/dist/chunk-BRTJ3FKE.mjs +2 -0
- package/dist/chunk-BTMAEAXY.mjs +2 -0
- package/dist/chunk-BWJ42FN4.mjs +2 -0
- package/dist/chunk-BWOBKNZV.mjs +2 -0
- package/dist/chunk-C25ATLFD.mjs +2 -0
- package/dist/chunk-C2NZXC5A.mjs +2 -0
- package/dist/chunk-CDC7UXHX.mjs +2 -0
- package/dist/chunk-CDKURJNV.mjs +2 -0
- package/dist/chunk-CE5DS6SU.mjs +6 -0
- package/dist/chunk-CEF62S2S.mjs +2 -0
- package/dist/chunk-CEYRKFO7.mjs +2 -0
- package/dist/chunk-CHBFPC7K.mjs +2 -0
- package/dist/chunk-CJBK7USO.mjs +2 -0
- package/dist/chunk-CKTJZ6NY.mjs +2 -0
- package/dist/chunk-CKVMQ3GF.mjs +2 -0
- package/dist/chunk-CMOBBHD3.mjs +2 -0
- package/dist/chunk-CNIVR3IP.mjs +42 -0
- package/dist/chunk-CT2AEOVM.mjs +2 -0
- package/dist/chunk-CVX2PKLK.mjs +2 -0
- package/dist/chunk-CX7VKCW3.mjs +2 -0
- package/dist/chunk-CXAOLATV.mjs +2 -0
- package/dist/chunk-CYYSBJDQ.mjs +2 -0
- package/dist/chunk-D4AXRKCR.mjs +2 -0
- package/dist/chunk-D4C7ZLGV.mjs +2 -0
- package/dist/chunk-D4JEPE5O.mjs +2 -0
- package/dist/chunk-D4YLU4NN.mjs +2 -0
- package/dist/chunk-D6IC6ZCY.mjs +2 -0
- package/dist/chunk-DDLNUWIM.mjs +2 -0
- package/dist/chunk-DDOJYISQ.mjs +2 -0
- package/dist/chunk-DHTAACBW.mjs +2 -0
- package/dist/chunk-DJQXH64T.mjs +2 -0
- package/dist/chunk-DS6FFD65.mjs +2 -0
- package/dist/chunk-DUBAXHGE.mjs +6 -0
- package/dist/chunk-DVLEKTPP.mjs +2 -0
- package/dist/chunk-E427IY6E.mjs +2 -0
- package/dist/chunk-ECT6MV5O.mjs +2 -0
- package/dist/chunk-EIQOSGUU.mjs +2 -0
- package/dist/chunk-EKOJOFEZ.mjs +2 -0
- package/dist/chunk-ENNEDWYN.mjs +2 -0
- package/dist/chunk-EPUXP7TX.mjs +2 -0
- package/dist/chunk-EQ4F6URP.mjs +2 -0
- package/dist/chunk-ETMRYZ4D.mjs +2 -0
- package/dist/chunk-EVYEP7ME.mjs +2 -0
- package/dist/chunk-EXNVAM5N.mjs +2 -0
- package/dist/chunk-EZYPEJ5U.mjs +2 -0
- package/dist/chunk-F6BYQBQ7.mjs +2 -0
- package/dist/chunk-FA2ZXM2O.mjs +2 -0
- package/dist/chunk-FDCEKKA6.mjs +2 -0
- package/dist/chunk-FHJV2JPW.mjs +2 -0
- package/dist/chunk-FKJ3XVF6.mjs +2 -0
- package/dist/chunk-FNVLFG36.mjs +2 -0
- package/dist/chunk-FOYFJJWT.mjs +2 -0
- package/dist/chunk-FRF55NUB.mjs +2 -0
- package/dist/chunk-FWOJFOCB.mjs +2 -0
- package/dist/chunk-FZXD5CKS.mjs +2 -0
- package/dist/chunk-G2CKKQM4.mjs +2 -0
- package/dist/chunk-G3WP7JES.mjs +2 -0
- package/dist/chunk-G4J5B6WQ.mjs +2 -0
- package/dist/chunk-G7OZNAAC.mjs +2 -0
- package/dist/chunk-GBR4TZJB.mjs +2 -0
- package/dist/chunk-GC3YFEZT.mjs +2 -0
- package/dist/chunk-GCUYZO2M.mjs +2 -0
- package/dist/chunk-GENR6MNK.mjs +2 -0
- package/dist/chunk-GFYO5DEQ.mjs +2 -0
- package/dist/chunk-GHGNKP2R.mjs +2 -0
- package/dist/chunk-GME4ZF2C.mjs +2 -0
- package/dist/chunk-GN6OS64N.mjs +2 -0
- package/dist/chunk-GPBFEW5F.mjs +2 -0
- package/dist/chunk-GPO4FZRN.mjs +2 -0
- package/dist/chunk-GS636JKA.mjs +2 -0
- package/dist/chunk-GTTUR7QA.mjs +2 -0
- package/dist/chunk-GULORZWO.mjs +2 -0
- package/dist/chunk-GVP6GKM5.mjs +2 -0
- package/dist/chunk-H26HX4GU.mjs +2 -0
- package/dist/chunk-H2KPMT2L.mjs +2 -0
- package/dist/chunk-H3SI37GU.mjs +2 -0
- package/dist/chunk-H5ZEESFK.mjs +2 -0
- package/dist/chunk-H73NKFSA.mjs +2 -0
- package/dist/chunk-H74PHTIS.mjs +2 -0
- package/dist/chunk-H7XPZE46.mjs +2 -0
- package/dist/chunk-HBI23T3V.mjs +2 -0
- package/dist/chunk-HBQMWZ37.mjs +2 -0
- package/dist/chunk-HDLCSEMD.mjs +2 -0
- package/dist/chunk-HIREQFQ4.mjs +6 -0
- package/dist/chunk-HJDI4ACV.mjs +6 -0
- package/dist/chunk-HKYBISUM.mjs +2 -0
- package/dist/chunk-HNHKKDU2.mjs +2 -0
- package/dist/chunk-HNTUCBNY.mjs +6 -0
- package/dist/chunk-HOIXISZR.mjs +6 -0
- package/dist/chunk-HR7EOQDF.mjs +2 -0
- package/dist/chunk-HUKCLCRK.mjs +2 -0
- package/dist/chunk-HURP74YP.mjs +2 -0
- package/dist/chunk-HVB54OY4.mjs +2 -0
- package/dist/chunk-HZ4WIQF7.mjs +2 -0
- package/dist/chunk-I3S6LIX6.mjs +2 -0
- package/dist/chunk-I5N2OWCE.mjs +2 -0
- package/dist/chunk-I7WFEGJ6.mjs +2 -0
- package/dist/chunk-IAHGONA6.mjs +2 -0
- package/dist/chunk-IBR3Z6IE.mjs +2 -0
- package/dist/chunk-IFFVIO2A.mjs +2 -0
- package/dist/chunk-IFUKQ4I2.mjs +2 -0
- package/dist/chunk-IH6NNPVV.mjs +2 -0
- package/dist/chunk-IHSU5MHV.mjs +2 -0
- package/dist/chunk-IHW3KULD.mjs +2 -0
- package/dist/chunk-IIGTTVYL.mjs +6 -0
- package/dist/chunk-IIY4XNYD.mjs +2 -0
- package/dist/chunk-IOEALVFO.mjs +2 -0
- package/dist/chunk-IPITQB6G.mjs +2 -0
- package/dist/chunk-ITRVGN72.mjs +2 -0
- package/dist/chunk-IV3STE3P.mjs +2 -0
- package/dist/chunk-IYLTVNKD.mjs +2 -0
- package/dist/chunk-J74SR7PV.mjs +2 -0
- package/dist/chunk-JAYBFYGW.mjs +2 -0
- package/dist/chunk-JDOMKLNS.mjs +2 -0
- package/dist/chunk-JFL72ZVG.mjs +2 -0
- package/dist/chunk-JHBPJCLE.mjs +2 -0
- package/dist/chunk-JI5CVYPJ.mjs +2 -0
- package/dist/chunk-JLS2A7N6.mjs +2 -0
- package/dist/chunk-JMT5BHU6.mjs +2 -0
- package/dist/chunk-JOPBNXC5.mjs +2 -0
- package/dist/chunk-JP6RAL4I.mjs +2 -0
- package/dist/chunk-JPA7EPCH.mjs +2 -0
- package/dist/chunk-JQ74AJQZ.mjs +2 -0
- package/dist/chunk-JR2US6AN.mjs +2 -0
- package/dist/chunk-JRV67N3E.mjs +2 -0
- package/dist/chunk-JS5N2QX3.mjs +2 -0
- package/dist/chunk-JTIKVZI5.mjs +2 -0
- package/dist/chunk-JVHZ37YT.mjs +2 -0
- package/dist/chunk-JXZUBG5Y.mjs +2 -0
- package/dist/chunk-K2VFR73T.mjs +2 -0
- package/dist/chunk-K5KQBLCG.mjs +2 -0
- package/dist/chunk-K7IIEM3U.mjs +2 -0
- package/dist/chunk-KBTWKGPH.mjs +2 -0
- package/dist/chunk-KD47LV5N.mjs +2 -0
- package/dist/chunk-KEVPFK5U.mjs +2 -0
- package/dist/chunk-KGKUC4Q6.mjs +2 -0
- package/dist/chunk-KJLWJ5BH.mjs +2 -0
- package/dist/chunk-KKU2D6VI.mjs +2 -0
- package/dist/chunk-KMKMHO6S.mjs +2 -0
- package/dist/chunk-KNKKNNOG.mjs +2 -0
- package/dist/chunk-KOTCLWQ2.mjs +2 -0
- package/dist/chunk-KPDVPLOH.mjs +2 -0
- package/dist/chunk-KSAVWNRQ.mjs +2 -0
- package/dist/chunk-KSEVVU3Y.mjs +2 -0
- package/dist/chunk-KSXKEXJU.mjs +2 -0
- package/dist/chunk-L7MGORVB.mjs +2 -0
- package/dist/chunk-LBH7RVVD.mjs +2 -0
- package/dist/chunk-LBXXLWZW.mjs +2 -0
- package/dist/chunk-LCGC3PZN.mjs +2 -0
- package/dist/chunk-LCLKQE35.mjs +2 -0
- package/dist/chunk-LCYT4ROU.mjs +2 -0
- package/dist/chunk-LDW7KKPM.mjs +2 -0
- package/dist/chunk-LF5WEXG2.mjs +2 -0
- package/dist/chunk-LFE4KZRU.mjs +2 -0
- package/dist/chunk-LL7RB34K.mjs +2 -0
- package/dist/chunk-LLSSRTE5.mjs +2 -0
- package/dist/chunk-LNEH4XV5.mjs +2 -0
- package/dist/chunk-LRMNEM64.mjs +6 -0
- package/dist/chunk-LVQOJPQW.mjs +6 -0
- package/dist/chunk-LXNN3GX4.mjs +2 -0
- package/dist/chunk-M24ICGQX.mjs +2 -0
- package/dist/chunk-M3ENHC2P.mjs +2 -0
- package/dist/chunk-M4HZS252.mjs +2 -0
- package/dist/chunk-M6FT3CN4.mjs +2 -0
- package/dist/chunk-M6XAI5CN.mjs +2 -0
- package/dist/chunk-M7DHLISK.mjs +2 -0
- package/dist/chunk-MF3XISAW.mjs +2 -0
- package/dist/chunk-MIBQJABM.mjs +2 -0
- package/dist/chunk-MJY6UB4T.mjs +2 -0
- package/dist/chunk-MKLWYCEO.mjs +2 -0
- package/dist/chunk-MNXJAOB4.mjs +2 -0
- package/dist/chunk-MO7Q45AL.mjs +2 -0
- package/dist/chunk-MP3B3I67.mjs +2 -0
- package/dist/chunk-MPBPAFJI.mjs +2 -0
- package/dist/chunk-MPBWNVVK.mjs +2 -0
- package/dist/chunk-MSZNOA4Z.mjs +2 -0
- package/dist/chunk-MTP5EWTN.mjs +2 -0
- package/dist/chunk-MUDZYANE.mjs +2 -0
- package/dist/chunk-MUSCMCWM.mjs +2 -0
- package/dist/chunk-MVCDFIIL.mjs +2 -0
- package/dist/chunk-MWT5HTEP.mjs +2 -0
- package/dist/chunk-N4M4JQHI.mjs +2 -0
- package/dist/chunk-NARBFL5J.mjs +2 -0
- package/dist/chunk-NDERHZJT.mjs +2 -0
- package/dist/chunk-NHUS7JAU.mjs +2 -0
- package/dist/chunk-NI3EECXM.mjs +2 -0
- package/dist/chunk-NJV6EZYF.mjs +2 -0
- package/dist/chunk-NMGOMCXL.mjs +2 -0
- package/dist/chunk-NMTV5KK4.mjs +2 -0
- package/dist/chunk-NO2HQILR.mjs +2 -0
- package/dist/chunk-NPV46HGV.mjs +2 -0
- package/dist/chunk-NPWFVNFW.mjs +2 -0
- package/dist/chunk-NSYGRGNJ.mjs +2 -0
- package/dist/chunk-NUUJT3BM.mjs +2 -0
- package/dist/chunk-NWFZHBNM.mjs +2 -0
- package/dist/chunk-O2EFYDLJ.mjs +2 -0
- package/dist/chunk-O33LUKBJ.mjs +2 -0
- package/dist/chunk-O5FEJTEM.mjs +2 -0
- package/dist/chunk-OASMPPYS.mjs +2 -0
- package/dist/chunk-OCWW7DB6.mjs +2 -0
- package/dist/chunk-ODE7I3Q2.mjs +2 -0
- package/dist/chunk-OGT4O5WK.mjs +42 -0
- package/dist/chunk-OH6MRTBD.mjs +2 -0
- package/dist/chunk-OIFSSI2G.mjs +2 -0
- package/dist/chunk-OIGEFLLF.mjs +2 -0
- package/dist/chunk-ONBPDPKH.mjs +2 -0
- package/dist/chunk-OQCDTBGU.mjs +2 -0
- package/dist/chunk-OQCPKGEH.mjs +2 -0
- package/dist/chunk-OTAVO76S.mjs +2 -0
- package/dist/chunk-OURMUA5Y.mjs +2 -0
- package/dist/chunk-OVUYJMGK.mjs +2 -0
- package/dist/chunk-OXGVHPBG.mjs +2 -0
- package/dist/chunk-OZEQYTJ6.mjs +2 -0
- package/dist/chunk-P3P62EFA.mjs +2 -0
- package/dist/chunk-P4MRJZPT.mjs +2 -0
- package/dist/chunk-P4S2U3SH.mjs +2 -0
- package/dist/chunk-P7DS3BNM.mjs +2 -0
- package/dist/chunk-PBEDQYMS.mjs +2 -0
- package/dist/chunk-PC6LGRWQ.mjs +2 -0
- package/dist/chunk-PMPDDDML.mjs +2 -0
- package/dist/chunk-PP7CTU2Z.mjs +2 -0
- package/dist/chunk-PPGWDKOK.mjs +2 -0
- package/dist/chunk-PPNOF3YC.mjs +2 -0
- package/dist/chunk-PR7UHRSY.mjs +2 -0
- package/dist/chunk-PWHVVLX2.mjs +2 -0
- package/dist/chunk-Q2476BO7.mjs +2 -0
- package/dist/chunk-Q4N4BW3E.mjs +2 -0
- package/dist/chunk-Q5JPRN5X.mjs +2 -0
- package/dist/chunk-Q6ZROBP5.mjs +2 -0
- package/dist/chunk-QAXXAI44.mjs +2 -0
- package/dist/chunk-QC7OTQX4.mjs +2 -0
- package/dist/chunk-QCMNJ6RX.mjs +2 -0
- package/dist/chunk-QDV4GMST.mjs +2 -0
- package/dist/chunk-QFTVNYQM.mjs +2 -0
- package/dist/chunk-QFWGKIAY.mjs +6 -0
- package/dist/chunk-QG45JS34.mjs +2 -0
- package/dist/chunk-QOTJXOJE.mjs +2 -0
- package/dist/chunk-QQP6CL4T.mjs +2 -0
- package/dist/chunk-QRWOBXW4.mjs +2 -0
- package/dist/chunk-QSTDMSWY.mjs +2 -0
- package/dist/chunk-QUGTPUHE.mjs +2 -0
- package/dist/chunk-QYNLH47L.mjs +2 -0
- package/dist/chunk-QYSAA4YY.mjs +2 -0
- package/dist/chunk-QZ4OLOQJ.mjs +2 -0
- package/dist/chunk-R2LXZDHC.mjs +2 -0
- package/dist/chunk-R4VITMJA.mjs +2 -0
- package/dist/chunk-R4VJLKJR.mjs +42 -0
- package/dist/chunk-RAG5W2TB.mjs +2 -0
- package/dist/chunk-RC7ZWGOD.mjs +2 -0
- package/dist/chunk-RDP5LF3R.mjs +2 -0
- package/dist/chunk-REENLU3K.mjs +2 -0
- package/dist/chunk-RH5TFXH2.mjs +2 -0
- package/dist/chunk-RIF7OLJ5.mjs +6 -0
- package/dist/chunk-RIXDTB47.mjs +2 -0
- package/dist/chunk-RLGWFWEI.mjs +2 -0
- package/dist/chunk-ROJISAST.mjs +2 -0
- package/dist/chunk-RSZKVYNA.mjs +2 -0
- package/dist/chunk-RTAWCNHU.mjs +2 -0
- package/dist/chunk-RUPXUU27.mjs +2 -0
- package/dist/chunk-RUXRDUTG.mjs +6 -0
- package/dist/chunk-RVCCWBMV.mjs +2 -0
- package/dist/chunk-RXKG5RLG.mjs +2 -0
- package/dist/chunk-S2ZRQNR3.mjs +2 -0
- package/dist/chunk-S4R5RDME.mjs +2 -0
- package/dist/chunk-S5WFUTXU.mjs +2 -0
- package/dist/chunk-S7H7B6ZO.mjs +2 -0
- package/dist/chunk-S7RJHBBI.mjs +6 -0
- package/dist/chunk-SBNG5YHO.mjs +2 -0
- package/dist/chunk-SC7YGG55.mjs +6 -0
- package/dist/chunk-SEEWMDI3.mjs +2 -0
- package/dist/chunk-SESHSVQ5.mjs +2 -0
- package/dist/chunk-SGMRKWQJ.mjs +2 -0
- package/dist/chunk-SIT4ZKMN.mjs +2 -0
- package/dist/chunk-SMLXLNKS.mjs +2 -0
- package/dist/chunk-SNOXDAT7.mjs +2 -0
- package/dist/chunk-SQFR7U75.mjs +2 -0
- package/dist/chunk-SQMZFMYA.mjs +2 -0
- package/dist/chunk-SWPHLY7E.mjs +2 -0
- package/dist/chunk-SXXVQ3MY.mjs +2 -0
- package/dist/chunk-T2EZI4FR.mjs +2 -0
- package/dist/chunk-T42PCMK5.mjs +2 -0
- package/dist/chunk-T6FJ5WZ6.mjs +2 -0
- package/dist/chunk-T7RRV6MO.mjs +2 -0
- package/dist/chunk-TGWOSEEL.mjs +2 -0
- package/dist/chunk-TK2W4I5B.mjs +2 -0
- package/dist/chunk-TO4AWMII.mjs +6 -0
- package/dist/chunk-TOV2GNLT.mjs +2 -0
- package/dist/chunk-TRRYD7WY.mjs +2 -0
- package/dist/chunk-TTBXL73X.mjs +2 -0
- package/dist/chunk-TTWKUJAO.mjs +2 -0
- package/dist/chunk-TUN3I7XH.mjs +2 -0
- package/dist/chunk-TVKSNEQJ.mjs +2 -0
- package/dist/chunk-TYNQ3QYV.mjs +2 -0
- package/dist/chunk-U2WRXMET.mjs +2 -0
- package/dist/chunk-U6375HUU.mjs +2 -0
- package/dist/chunk-U6CRVGDW.mjs +2 -0
- package/dist/chunk-U7LQH6GV.mjs +2 -0
- package/dist/chunk-U7LZ7K26.mjs +6 -0
- package/dist/chunk-UGMTFPRT.mjs +2 -0
- package/dist/chunk-UH7M44WN.mjs +2 -0
- package/dist/chunk-UHFYLWGM.mjs +2 -0
- package/dist/chunk-UIN3VZIM.mjs +2 -0
- package/dist/chunk-UKDUI34F.mjs +2 -0
- package/dist/chunk-UMS2JUQY.mjs +2 -0
- package/dist/chunk-UN4PEHNQ.mjs +2 -0
- package/dist/chunk-UOOZ7FNR.mjs +2 -0
- package/dist/chunk-UOWJEIAY.mjs +2 -0
- package/dist/chunk-UTBKAGCV.mjs +2 -0
- package/dist/chunk-UWKKRQYL.mjs +2 -0
- package/dist/chunk-V3WAFDQC.mjs +2 -0
- package/dist/chunk-V6B6MYJW.mjs +2 -0
- package/dist/chunk-V6TVBQIS.mjs +6 -0
- package/dist/chunk-VCXX6QWH.mjs +2 -0
- package/dist/chunk-VDEVIUMO.mjs +2 -0
- package/dist/chunk-VH3ZPE3F.mjs +2 -0
- package/dist/chunk-VHBZNUHU.mjs +2 -0
- package/dist/chunk-VJOR3A7F.mjs +2 -0
- package/dist/chunk-VJSIGRJR.mjs +2 -0
- package/dist/chunk-VJVTBQ6O.mjs +2 -0
- package/dist/chunk-VJZUFDXY.mjs +2 -0
- package/dist/chunk-VQX4L2RZ.mjs +2 -0
- package/dist/chunk-VSN7G5KN.mjs +2 -0
- package/dist/chunk-VUFKVLRI.mjs +2 -0
- package/dist/chunk-VZXODMOQ.mjs +2 -0
- package/dist/chunk-W2BLJDRO.mjs +2 -0
- package/dist/chunk-W45II32I.mjs +2 -0
- package/dist/chunk-W5DLT5X6.mjs +2 -0
- package/dist/chunk-W5YHS7ZZ.mjs +6 -0
- package/dist/chunk-W7PI4UYT.mjs +2 -0
- package/dist/chunk-WB4ZLJWW.mjs +2 -0
- package/dist/chunk-WB7TZW5M.mjs +2 -0
- package/dist/chunk-WCJVEZF4.mjs +2 -0
- package/dist/chunk-WHHIQDGZ.mjs +2 -0
- package/dist/chunk-WMAG5TUS.mjs +2 -0
- package/dist/chunk-WOAZ56CH.mjs +2 -0
- package/dist/chunk-WQMRWJRU.mjs +2 -0
- package/dist/chunk-WXMSOZD5.mjs +2 -0
- package/dist/chunk-WY57S7IO.mjs +2 -0
- package/dist/chunk-WYUOC23C.mjs +2 -0
- package/dist/chunk-WZ5GEF6I.mjs +2 -0
- package/dist/chunk-X4Y3KW4F.mjs +2 -0
- package/dist/chunk-XCFNW3P4.mjs +2 -0
- package/dist/chunk-XD2EZSPQ.mjs +42 -0
- package/dist/chunk-XDJ5LDUZ.mjs +2 -0
- package/dist/chunk-XEHXPGKL.mjs +2 -0
- package/dist/chunk-XIETXXF2.mjs +2 -0
- package/dist/chunk-XIMUGRP5.mjs +2 -0
- package/dist/chunk-XJBIVLMN.mjs +2 -0
- package/dist/chunk-XKDWEEOG.mjs +2 -0
- package/dist/chunk-XKKNAETQ.mjs +2 -0
- package/dist/chunk-XKUUB4S3.mjs +2 -0
- package/dist/chunk-XP2UVT4E.mjs +2 -0
- package/dist/chunk-XPF7WKUM.mjs +2 -0
- package/dist/chunk-XS5MPVLF.mjs +2 -0
- package/dist/chunk-XSCXFY4Y.mjs +2 -0
- package/dist/chunk-XSR3TMCO.mjs +2 -0
- package/dist/chunk-XTASNETJ.mjs +2 -0
- package/dist/chunk-XW4KWZXE.mjs +6 -0
- package/dist/chunk-XYOQODZV.mjs +2 -0
- package/dist/chunk-Y3UDAM57.mjs +2 -0
- package/dist/chunk-Y7R334JN.mjs +2 -0
- package/dist/chunk-YC634SUM.mjs +2 -0
- package/dist/chunk-YCDQ2GDI.mjs +2 -0
- package/dist/chunk-YCIAALTS.mjs +2 -0
- package/dist/chunk-YCLPKG6F.mjs +2 -0
- package/dist/chunk-YDJX3HHA.mjs +6 -0
- package/dist/chunk-YDYWFBY6.mjs +2 -0
- package/dist/chunk-YHVVVPQK.mjs +2 -0
- package/dist/chunk-YJANHNDK.mjs +2 -0
- package/dist/chunk-YKFINYXE.mjs +2 -0
- package/dist/chunk-YKPKRF4H.mjs +2 -0
- package/dist/chunk-YN66WKFB.mjs +6 -0
- package/dist/chunk-YO6HOCT3.mjs +6 -0
- package/dist/chunk-YOMIO4S3.mjs +6 -0
- package/dist/chunk-YQ6TOHDR.mjs +2 -0
- package/dist/chunk-YU53ZEF6.mjs +2 -0
- package/dist/chunk-YW4GV4LY.mjs +2 -0
- package/dist/chunk-YW6X43VR.mjs +2 -0
- package/dist/chunk-YWHSH4CG.mjs +2 -0
- package/dist/chunk-YYSRT7TY.mjs +2 -0
- package/dist/chunk-Z53TPNYT.mjs +42 -0
- package/dist/chunk-Z6LRM6ZG.mjs +2 -0
- package/dist/chunk-Z77DH6LN.mjs +6 -0
- package/dist/chunk-ZAM7FELE.mjs +2 -0
- package/dist/chunk-ZEQFXR6C.mjs +2 -0
- package/dist/chunk-ZFNCHXVZ.mjs +2 -0
- package/dist/chunk-ZLUU5SZU.mjs +2 -0
- package/dist/chunk-ZSBV7KMZ.mjs +2 -0
- package/dist/chunk-ZTSTVUPR.mjs +2 -0
- package/dist/chunk-ZXDD673O.mjs +2 -0
- package/dist/chunk-ZYN4QP4S.mjs +2 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/copy-text.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.d.ts +1 -1
- package/dist/filter/filter-list.mjs +1 -1
- package/dist/filter/filter-select.d.ts +4 -2
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/grid.mjs +1 -1
- 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/webhook.d.ts +6 -0
- package/dist/icons/nucleo/webhook.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 +2 -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/sheet.mjs +1 -1
- package/dist/shimmer-dots.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.d.ts +2 -1
- package/dist/table/table.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/types-50b289da.d.ts +31 -0
- package/dist/wordmark.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-U7LZ7K26.mjs";import{a as v}from"./chunk-MYVDXJUG.mjs";import{a as N}from"./chunk-YYSRT7TY.mjs";import{a as y}from"./chunk-GJAPZPRF.mjs";import{a as x}from"./chunk-53GPIIBD.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{a as b}from"./chunk-OKTE2ZBK.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-6IZLSA2Z.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{c as l,d as p}from"./chunk-3YM3OBBI.mjs";import{a as n,c,d as u}from"./chunk-ETVA6YOC.mjs";import{b as s,j as m}from"./chunk-6IZLSA2Z.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{i as r}from"./chunk-O2EFYDLJ.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:(void 0)("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:(void 0)("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:(void 0)("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-NWME2ANF.mjs";import{q as d}from"./chunk-OQCPKGEH.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function C({children:t,content:n,align:p="center",side:v="bottom",openPopover:a,setOpenPopover:l,mobileOnly:g,popoverContentClassName:c,collisionBoundary:P,sticky:b,onEscapeKeyDown:s,onWheel:f}){let{isMobile:h}=m();return g||h?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),i(r.Portal,{children:[e(r.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:p,side:v,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:b,collisionBoundary:P,onEscapeKeyDown:s,onWheel:f,children:n})})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-IIGTTVYL.mjs";import{a as h}from"./chunk-A4XJCPDP.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-6IZLSA2Z.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{q as n}from"./chunk-OQCPKGEH.mjs";import{motion as t}from"framer-motion";import{jsx as e}from"react/jsx-runtime";function s({value:i=0,max:r=100,className:o}){return e("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",o),children:e(t.div,{initial:{width:0},animate:{width:i&&r?i/r*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${i&&r&&i>r?"bg-red-500":"bg-blue-500"} h-full`})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as v}from"./chunk-O2EFYDLJ.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:(void 0)("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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-3YM3OBBI.mjs";import{a as m,c as g,e as k}from"./chunk-PMPDDDML.mjs";import{a as h}from"./chunk-QZ4OLOQJ.mjs";import{a as f}from"./chunk-NMTV5KK4.mjs";import{a as d}from"./chunk-7A5RND6K.mjs";import{a as p}from"./chunk-2CGNAYG4.mjs";import{a as c}from"./chunk-MSZNOA4Z.mjs";import{a as l}from"./chunk-3ST4N22Y.mjs";import{b as a,j as t}from"./chunk-OCWW7DB6.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{c as M}from"./chunk-GCUYZO2M.mjs";import{a as $}from"./chunk-KD47LV5N.mjs";import{a as z}from"./chunk-GVBIGY6N.mjs";import{a as P}from"./chunk-NWME2ANF.mjs";import{a as H}from"./chunk-RUPXUU27.mjs";import{a as T}from"./chunk-LPV7TLRR.mjs";import{a as j}from"./chunk-CKVMQ3GF.mjs";import{a as W}from"./chunk-YURUGH4S.mjs";import{f as K,j as k}from"./chunk-OCWW7DB6.mjs";import{Command as y,useCommandState as G}from"cmdk";import{ChevronDown as J,ListFilter as X}from"lucide-react";import{Fragment as Y,forwardRef as _,isValidElement as V,useCallback as N,useEffect as w,useImperativeHandle as ee,useRef as S,useState as D}from"react";import{Fragment as se,jsx as n,jsxs as m}from"react/jsx-runtime";function be({filters:t,onSelect:o,onRemove:a,onOpenFilter:s,onSearchChange:l,onSelectedFilterChange:g,activeFilters:i,askAI:h,children:v,emptyState:c,className:Q}){var L,A;let{isMobile:U}=P(),f=S(null),C=S(),[x,b]=D(!1);M("f",()=>b(!0),{enabled:!x});let[d,R]=D(""),[u,F]=D(null),E=N(()=>{R(""),F(null)},[]);w(()=>{x||E()},[x]);let r=u?t.find(({key:e})=>e===u):null,Z=N(e=>{f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight}),R(""),F(e),s==null||s(e)},[]),I=N(e=>{if(!r||!i)return!1;let p=i.find(({key:q})=>q===u);return(p==null?void 0:p.value)===e||p&&r.multiple&&Array.isArray(p.value)&&p.value.includes(e)},[r]),O=N(e=>{r&&(I(e)?a(r.key,e):o(r.key,e),r.multiple||b(!1))},[i,r,h]);return w(()=>{l==null||l(d)},[d]),w(()=>{g==null||g(u)},[u]),w(()=>{(r==null?void 0:r.options)&&f.current&&(C.current={width:f.current.clientWidth,height:f.current.clientHeight})},[r==null?void 0:r.options]),n($,{openPopover:x,setOpenPopover:b,onEscapeKeyDown:e=>{u&&(e.preventDefault(),E())},content:n(H,{width:!U,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(y,{loop:!0,shouldFilter:!r||r.shouldFilter!==!1,children:[m("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[n(re,{placeholder:`${(r==null?void 0:r.label)||"Filter"}...`,value:d,onValueChange:R,onKeyDown:e=>{(e.key==="Escape"||e.key==="Backspace"&&!d)&&(e.preventDefault(),e.stopPropagation(),u?E():b(!1))},emptySubmit:e=>{e.preventDefault(),e.stopPropagation(),h?(o("ai",r?`${r.label} ${d}`:d),b(!1)):O(d)}}),!r&&n("kbd",{className:"mr-2 hidden shrink-0 rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:"F"})]}),n(ne,{ref:f,children:m(y.List,{className:k("flex w-full flex-col gap-1 p-1",r?"min-w-[100px]":"min-w-[180px]"),children:[r?((A=(L=r.options)==null?void 0:L.filter(e=>!d||!e.hideDuringSearch))==null?void 0:A.map(e=>{let p=I(e.value);return n(B,{filter:r,option:e,right:p?n(T,{className:"h-4 w-4"}):e.right,onSelect:()=>O(e.value)},e.value)}))??n(y.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:C.current,children:n(j,{})})}):t.map(e=>m(Y,{children:[n(B,{filter:e,onSelect:()=>Z(e.key)}),e.separatorAfter&&n(y.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},e.key)),(!r||r.options)&&n(oe,{search:d,askAI:h,children:c?te(c)?(c==null?void 0:c[u??"default"])??"No matches":c:"No matches"})]})},u)]})}),children:m("button",{type:"button",className:k("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 text-sm outline-none transition-all","border-gray-200 bg-white text-gray-900 placeholder-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200",Q),children:[n(X,{className:"size-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:v??"Filter"}),i!=null&&i.length?n("div",{className:"flex size-4 shrink-0 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:i.length}):n(J,{className:"size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]})})}function te(t){return typeof t=="object"&&t!==null&&!V(t)}var re=t=>{let o=G(a=>a.filtered.count===0);return n(y.Input,{...t,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:a=>{var s,l;(s=t.onKeyDown)==null||s.call(t,a),a.key==="Enter"&&o&&((l=t.emptySubmit)==null||l.call(t,a))},autoCapitalize:"none"})},ne=_(({children:t},o)=>{let a=S(null);ee(o,()=>a.current);let{scrollProgress:s,updateScrollProgress:l}=z(a);return m(se,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:l,children:t}),n("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(s,2)}})]})});function B({filter:t,option:o,right:a,onSelect:s}){var h,v;let{isMobile:l}=P(),g=o?o.icon??((h=t.getOptionIcon)==null?void 0:h.call(t,o.value,{key:t.key,option:o}))??t.icon:t.icon,i=o?o.label??((v=t.getOptionLabel)==null?void 0:v.call(t,o.value,{key:t.key,option:o})):t.label;return m(y.Item,{className:k("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100"),onPointerDown:c=>{c.preventDefault()},onPointerUp:c=>{c.preventDefault(),l?setTimeout(s,100):s()},onSelect:s,value:i+(o==null?void 0:o.value),children:[n("span",{className:"shrink-0 text-gray-600",children:ae(g)?g:n(g,{className:"h-4 w-4"})}),K(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var oe=({search:t,askAI:o,children:a})=>o&&t?m(y.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(W,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',t,'"']})]})]}):n(y.Empty,{className:"p-2 text-center text-sm text-gray-400",children:a}),ae=t=>V(t);export{be as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-A66FTKMV.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{a as F}from"./chunk-IYLTVNKD.mjs";import{q as r}from"./chunk-OQCPKGEH.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{j as h}from"./chunk-ZLUU5SZU.mjs";import{q as p}from"./chunk-OQCPKGEH.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:p("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:p("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:p("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:p(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:p("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as A}from"./chunk-27HU6NGS.mjs";import{a as T}from"./chunk-VJOR3A7F.mjs";import{a as K}from"./chunk-GVBIGY6N.mjs";import{a as S}from"./chunk-NWME2ANF.mjs";import{a as M}from"./chunk-KEVPFK5U.mjs";import{a as j}from"./chunk-LPV7TLRR.mjs";import{a as H}from"./chunk-YJANHNDK.mjs";import{a as z}from"./chunk-YURUGH4S.mjs";import{n as O,q as k}from"./chunk-OQCPKGEH.mjs";import{Command as d,useCommandState as Q}from"cmdk";import{ChevronDown as U,ListFilter as Z}from"lucide-react";import{Fragment as q,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 re,jsx as n,jsxs as i}from"react/jsx-runtime";function ge({filters:e,onSelect:r,onRemove:o,onOpenFilter:l,activeFilters:s,askAI:u,children:h,emptyState:c,className:b}){var L;let{isMobile:g}=S(),v=E(null),F=E(),[x,f]=R(!1);A("f",()=>f(!0),{enabled:!x});let[y,w]=R(""),[p,P]=R(null),C=N(()=>{w(""),P(null)},[]);J(()=>{x||C()},[x]);let a=p?e.find(({key:t})=>t===p):null,B=N(t=>{v.current&&(F.current={width:v.current.scrollWidth,height:v.current.scrollHeight}),w(""),P(t),l==null||l(t)},[]),D=N(t=>{if(!a||!s)return!1;let m=s.find(({key:V})=>V===p);return(m==null?void 0:m.value)===t||m&&a.multiple&&Array.isArray(m.value)&&m.value.includes(t)},[a]),I=N(t=>{a&&(D(t)?o(a.key,t):r(a.key,t),a.multiple||f(!1))},[s,a,u]);return n(T,{openPopover:x,setOpenPopover:f,onEscapeKeyDown:t=>{p&&(t.preventDefault(),C())},content:n(M,{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:`${(a==null?void 0:a.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",a?`${a.label} ${y}`:y),f(!1)):I(y)}}),!a&&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",a?"min-w-[100px]":"min-w-[180px]"),children:[a?((L=a.options)==null?void 0:L.map(t=>{let m=D(t.value);return n(W,{filter:a,option:t,right:m?n(j,{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:F.current,children:n(H,{})})}):e.map(t=>i(q,{children:[n(W,{filter:t,onSelect:()=>B(t.key)}),t.separatorAfter&&n(d.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]},t.key)),(!a||a.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(Z,{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(U,{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=Q(o=>o.filtered.count===0);return n(d.Input,{...e,size:1,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:o=>{var l,s;(l=e.onKeyDown)==null||l.call(e,o),o.key==="Enter"&&r&&((s=e.emptySubmit)==null||s.call(e,o))},autoCapitalize:"none"})},ee=G(({children:e},r)=>{let o=E(null);X(r,()=>o.current);let{scrollProgress:l,updateScrollProgress:s}=K(o);return i(re,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:o,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:o,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:o})]})}var te=({search:e,askAI:r,children:o})=>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(z,{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:o}),ne=e=>$(e);export{ge as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as n}from"./chunk-O2EFYDLJ.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:(void 0)(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,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-ETMRYZ4D.mjs";import{a as T}from"./chunk-HBI23T3V.mjs";import{a as E}from"./chunk-IIY4XNYD.mjs";import{a as _,d as L,e as V}from"./chunk-OZIRG64I.mjs";import{a as D}from"./chunk-Z6LRM6ZG.mjs";import{a as x}from"./chunk-UIN3VZIM.mjs";import{a as W}from"./chunk-7V4KCQBA.mjs";import{k as S}from"./chunk-TK2W4I5B.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-OCWW7DB6.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import h from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<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>`,X=`<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 B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("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(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:r,...t}){return o(S,{className:n("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 lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["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 Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(h,{className:"grow basis-0",href:k("/",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(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:n("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",s&&w.includes(s)?"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")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(h,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&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(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("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:g&&Object.keys(g).length>0?e(h,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(lt,{children:[e(h,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(h,{href:b?"https://app.dub.co/register":"https://d.to/try",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 st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-NWME2ANF.mjs";import{a as s}from"./chunk-PWHVVLX2.mjs";import{a as y}from"./chunk-2TGXECZQ.mjs";import{a as g,e as f,i as b}from"./chunk-FHJV2JPW.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.current.select()},[t]);let{isMobile:L}=p();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:o,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(s,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(y,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(s,{})})})]})}export{H as a,O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as e}from"./chunk-EHYVEIOL.mjs";import{a as r}from"./chunk-BKZ6TNZC.mjs";import{j as o}from"./chunk-OCWW7DB6.mjs";import{cva as g}from"class-variance-authority";import{useState as f}from"react";import{toast as d}from"sonner";import{jsx as t,jsxs as b}from"react/jsx-runtime";var y=g("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-gray-100 active:bg-gray-200",neutral:"bg-transparent hover:bg-gray-100 active:bg-gray-200"}},defaultVariants:{variant:"default"}});function B({variant:n="default",value:s,className:i,icon:p,successMessage:c}){let[u,a]=f(!1),l=p||r;return b("button",{onClick:m=>{m.stopPropagation(),a(!0),navigator.clipboard.writeText(s).then(()=>{d.success(c||"Copied to clipboard!")}),setTimeout(()=>a(!1),3e3)},className:o(y({variant:n}),i),type:"button",children:[t("span",{className:"sr-only",children:"Copy"}),u?t(e,{className:"h-3.5 w-3.5"}):t(l,{className:"h-3.5 w-3.5"})]})}export{B as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as t}from"./chunk-5NPOCL3F.mjs";import{a as l}from"./chunk-QC6GZ7KR.mjs";import{f as o,q as m}from"./chunk-OQCPKGEH.mjs";import{jsx as s}from"react/jsx-runtime";function n({apexDomain:r,className:e,imageProps:a}){return r?s(t,{src:`${o}${r}`,alt:r,className:m("h-8 w-8 rounded-full sm:h-10 sm:w-10",e),width:20,height:20,draggable:!1,...a}):s("div",{className:m("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",e),children:s(l,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-YOMIO4S3.mjs";import{a as v}from"./chunk-3YM3OBBI.mjs";import{a as N}from"./chunk-7V4KCQBA.mjs";import{a as y}from"./chunk-EPUXP7TX.mjs";import{a as x}from"./chunk-D4JEPE5O.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{a as b}from"./chunk-T2EZI4FR.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-OCWW7DB6.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{i as e}from"./chunk-O2EFYDLJ.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-HNTUCBNY.mjs";import{a as h}from"./chunk-RUPXUU27.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-OCWW7DB6.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{q as t}from"./chunk-OQCPKGEH.mjs";import{motion as r}from"framer-motion";import{jsx as e,jsxs as c}from"react/jsx-runtime";var n="M6.75 8.25L4 11L1.25 8.25",s="M6.75 3.75L4 1L1.25 3.75";function i({order:o,className:a}){return c("svg",{className:t("w-2 text-gray-950",a),viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e(r.path,{className:t(!o&&"opacity-40"),animate:{d:o==="asc"?s:n},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e(r.path,{className:"opacity-40",animate:{d:o==="asc"?n:s},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as r}from"./chunk-7TBGFJM2.mjs";import{j as t}from"./chunk-FOYFJJWT.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{e as _}from"./chunk-SC7YGG55.mjs";import{a as v}from"./chunk-OZIRG64I.mjs";import{a as N}from"./chunk-PBEDQYMS.mjs";import{a as x}from"./chunk-R4VITMJA.mjs";import{a as y}from"./chunk-5TISAX4N.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{a as b}from"./chunk-BMYCKUZT.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-FOYFJJWT.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{e as u}from"./chunk-MYVDXJUG.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{a as s}from"./chunk-GV2NLM3E.mjs";import{a as o}from"./chunk-IGIB6XZB.mjs";import{a as i}from"./chunk-GYE7FFDN.mjs";import{a as c}from"./chunk-UUJYTAK4.mjs";import{i as a}from"./chunk-O2EFYDLJ.mjs";import{cva as u}from"class-variance-authority";import{jsx as m,jsxs as x}from"react/jsx-runtime";var d=u("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"}}),f={neutral:i,success:s,pending:o,error:c};function y({className:l,variant:e,icon:t,onClick:r,children:p,...g}){let n=t!==null?t??f[e??"neutral"]:null;return x("span",{className:(void 0)(d({variant:e}),r&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",l),onClick:r,...g,children:[n&&m(n,{className:"h-3 w-3 shrink-0"}),p]})}export{d as a,y as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-E427IY6E.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{a as v,b as g}from"./chunk-MYVDXJUG.mjs";import{a as c,c as u,d as N}from"./chunk-ETVA6YOC.mjs";import{a as l}from"./chunk-S6IOBHOB.mjs";import{b as o,j as i,n as d}from"./chunk-6IZLSA2Z.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{q as C}from"./chunk-OQCPKGEH.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,42 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as v}from"./chunk-OCWW7DB6.mjs";import{useEffect as U,useRef as w,useState as _}from"react";import{jsx as S}from"react/jsx-runtime";var y=`
|
|
3
|
+
attribute vec2 position;
|
|
4
|
+
|
|
5
|
+
void main()
|
|
6
|
+
{
|
|
7
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
8
|
+
}
|
|
9
|
+
`,z=`
|
|
10
|
+
precision mediump float;
|
|
11
|
+
|
|
12
|
+
uniform vec2 resolution;
|
|
13
|
+
uniform float time;
|
|
14
|
+
uniform float dotSize;
|
|
15
|
+
uniform float cellSize;
|
|
16
|
+
uniform float speed;
|
|
17
|
+
|
|
18
|
+
// Gold noise: https://stackoverflow.com/a/28095165
|
|
19
|
+
float PHI = 1.61803398874989484820459;
|
|
20
|
+
float random(in vec2 xy){
|
|
21
|
+
return fract(tan(distance(xy*PHI, xy))*xy.x);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void main(void) {
|
|
25
|
+
vec2 uv = gl_FragCoord.xy;
|
|
26
|
+
|
|
27
|
+
vec2 cellUv = vec2(int(uv.x / cellSize), int(uv.y / cellSize));
|
|
28
|
+
float id = random(cellUv + 1.0);
|
|
29
|
+
|
|
30
|
+
float fadeEffect = (sin(time * speed + id * 20.0) + 1.0) * 0.5;
|
|
31
|
+
|
|
32
|
+
vec2 dotUv = fract(uv / cellSize);
|
|
33
|
+
float dot = step(max(dotUv.x, dotUv.y), dotSize / cellSize);
|
|
34
|
+
|
|
35
|
+
float opacity = dot * fadeEffect;
|
|
36
|
+
|
|
37
|
+
vec4 fragColor = vec4(vec3(0.0), opacity);
|
|
38
|
+
fragColor.rgb *= fragColor.a;
|
|
39
|
+
|
|
40
|
+
gl_FragColor = fragColor;
|
|
41
|
+
}
|
|
42
|
+
`,I=60,C=1e3/I;function H({dotSize:c=1,cellSize:l=3,speed:s=5,className:p}){let f=w(null),[h,A]=_(!1);return U(()=>{let o=f.current;if(!o||!o.parentElement)return;let m=o.parentElement,d=window.devicePixelRatio||1;o.width=m.clientWidth*d,o.height=m.clientHeight*d;let e=o.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(e===null){alert("Failed to initialize WebGL");return}let t=e.createProgram();if(!t){console.error("Failed to create shader program");return}for(let r=0;r<2;++r){let T=r===0?y:z,i=e.createShader(r===0?e.VERTEX_SHADER:e.FRAGMENT_SHADER);if(!i){console.error("Failed to create shader");return}e.shaderSource(i,T),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)||console.error(e.getShaderInfoLog(i)),e.attachShader(t,i),e.linkProgram(t)}e.getProgramParameter(t,e.LINK_STATUS)||console.error(e.getProgramInfoLog(t));let u=e.getAttribLocation(t,"position"),R=e.getUniformLocation(t,"time"),F=e.getUniformLocation(t,"resolution"),E=e.getUniformLocation(t,"dotSize"),x=e.getUniformLocation(t,"cellSize"),P=e.getUniformLocation(t,"speed");e.useProgram(t);let L=[1,1,-1,1,1,-1,-1,-1],b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,b),e.bufferData(e.ARRAY_BUFFER,new Float32Array(L),e.STATIC_DRAW),e.enableVertexAttribArray(u),e.vertexAttribPointer(u,2,e.FLOAT,!1,0,0),e.uniform1f(E,c*window.devicePixelRatio),e.uniform1f(x,l*window.devicePixelRatio),e.uniform1f(P,s);let n,g=0;function a(r){if(r-g<C){n=requestAnimationFrame(a);return}g=r,e&&o&&t&&(e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.uniform1f(R,r/1e3),e.uniform2f(F,o.width,o.height),e.drawArrays(e.TRIANGLE_STRIP,0,4)),n=requestAnimationFrame(a)}return n=requestAnimationFrame(a),o.addEventListener("webglcontextlost",r=>{r.preventDefault(),A(!0),cancelAnimationFrame(n)}),()=>{cancelAnimationFrame(n),o.removeEventListener("webglcontextlost",()=>{})}},[c,l,s]),S("div",{className:v("absolute inset-0",p,h&&"opacity-0"),children:S("canvas",{ref:f,width:"100%",height:"100%",className:"size-full"})})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-A66FTKMV.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{g as u}from"./chunk-FOYFJJWT.mjs";import{createContext as L,useCallback as f,useContext as h,useEffect as l,useId as K,useState as p}from"react";import{jsx as g}from"react/jsx-runtime";var b=L({listeners:[],setListeners:()=>{}});function C({children:t}){let[s,r]=p([]);return g(b.Provider,{value:{listeners:s,setListeners:r},children:t})}function N(t,s,r={}){let i=K(),{listeners:d,setListeners:c}=h(b),a=f(e=>{let n=e.target,S=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||!!S!=!!r.modal||(Array.isArray(t)?!t.includes(e.key):e.key!==t))return;let y=d.filter(o=>o.enabled!==!1&&(Array.isArray(o.key)?o.key.includes(e.key):o.key===e.key));!y.length||u(y,(o,m)=>(m.priority??0)-(o.priority??0)).slice(-1)[0].id!==i||(e.preventDefault(),s(e))},[t,d,i,s]);l(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[a]),l(()=>(c(e=>[...e.filter(n=>n.id!==i),{id:i,key:t,...r}]),()=>c(e=>e.filter(n=>n.id!==i))),[JSON.stringify(t),r.enabled,r.priority])}export{b as a,C as b,N as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as a}from"./chunk-FHJV2JPW.mjs";import{jsx as t,jsxs as r}from"react/jsx-runtime";function n({className:i}){return r("svg",{className:a("h-full w-full",i),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8357_120)"}),t("path",{d:"M182.248 111.875C182.248 105.853 181.76 101.458 180.702 96.9003H111.931V124.083H152.298C151.484 130.838 147.089 141.011 137.323 147.848L137.186 148.758L158.93 165.603L160.437 165.753C174.272 152.975 182.248 134.175 182.248 111.875Z",fill:"url(#paint1_linear_8357_120)"}),t("path",{d:"M111.931 183.495C131.707 183.495 148.31 176.984 160.437 165.753L137.323 147.848C131.138 152.161 122.836 155.172 111.931 155.172C92.561 155.172 76.1211 142.395 70.2607 124.734L69.4017 124.807L46.7918 142.305L46.4961 143.127C58.5411 167.055 83.2826 183.495 111.931 183.495Z",fill:"url(#paint2_linear_8357_120)"}),t("path",{d:"M70.2606 124.734C68.7143 120.177 67.8194 115.293 67.8194 110.248C67.8194 105.201 68.7143 100.318 70.1793 95.7607L70.1383 94.7901L47.245 77.0109L46.496 77.3672C41.5317 87.2964 38.6831 98.4466 38.6831 110.248C38.6831 122.048 41.5317 133.198 46.496 143.127L70.2606 124.734Z",fill:"url(#paint3_linear_8357_120)"}),t("path",{d:"M111.931 65.3222C125.685 65.3222 134.963 71.2633 140.253 76.2282L160.925 56.0444C148.229 44.2434 131.707 37 111.931 37C83.2826 37 58.5411 53.4399 46.4961 77.3672L70.1794 95.7607C76.1211 78.1 92.561 65.3222 111.931 65.3222Z",fill:"url(#paint4_linear_8357_120)"}),r("defs",{children:[r("radialGradient",{id:"paint0_radial_8357_120",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[t("stop",{"stop-color":"white"}),t("stop",{offset:"0.5","stop-color":"white"}),t("stop",{offset:"1","stop-color":"#E8E8E8"})]}),r("linearGradient",{id:"paint1_linear_8357_120",x1:"176.5",y1:"148.5",x2:"112",y2:"97",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#76A7F9"}),t("stop",{offset:"1","stop-color":"#4285F4"})]}),r("linearGradient",{id:"paint2_linear_8357_120",x1:"38.5",y1:"164.5",x2:"160",y2:"175",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#34A853"}),t("stop",{offset:"1","stop-color":"#8DFBAA"})]}),r("linearGradient",{id:"paint3_linear_8357_120",x1:"81",y1:"115",x2:"35.9999",y2:"110",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FFE28F"}),t("stop",{offset:"1","stop-color":"#FBBC05"})]}),r("linearGradient",{id:"paint4_linear_8357_120",x1:"117.5",y1:"84",x2:"78",y2:"45.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FF968D"}),t("stop",{offset:"1","stop-color":"#EB4335"})]})]})]})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as l,d as p}from"./chunk-QOTJXOJE.mjs";import{a as n,c,d as u}from"./chunk-ETVA6YOC.mjs";import{b as s,j as m}from"./chunk-6IZLSA2Z.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-HOIXISZR.mjs";import{a as h}from"./chunk-A4XJCPDP.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-6IZLSA2Z.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{a as Q}from"./chunk-VJOR3A7F.mjs";import{a as D}from"./chunk-GVBIGY6N.mjs";import{a as B}from"./chunk-NWME2ANF.mjs";import{a as F}from"./chunk-KEVPFK5U.mjs";import{k as K}from"./chunk-ZLUU5SZU.mjs";import{a as H}from"./chunk-WMTXO7RT.mjs";import{a as $}from"./chunk-JOLDVN3E.mjs";import{a as V}from"./chunk-IHTRL6TU.mjs";import{a as L}from"./chunk-JW75YDRU.mjs";import{a as M}from"./chunk-YJANHNDK.mjs";import{q as m}from"./chunk-OQCPKGEH.mjs";import{Command as b,CommandEmpty as le,CommandInput as re,CommandItem as ie}from"cmdk";import{ChevronDown as ce}from"lucide-react";import{isValidElement as me,useCallback as de,useEffect as v,useRef as pe,useState as f}from"react";import{Fragment as T,jsx as e,jsxs as i}from"react/jsx-runtime";function ue(s,a){return s===!0}function Pe({multiple:s,selected:a,setSelected:r,options:o,icon:d,placeholder:Z="Select...",searchPlaceholder:q="Search...",emptyState:x,createLabel:y,onCreate:g,buttonProps:c,shortcutHint:I,caret:G,side:J,open:X,onOpenChange:Y,onSearchChange:N,shouldFilter:P=!0,optionClassName:z,matchTriggerWidth:R,children:_}){let E=ue(s,r),n=Array.isArray(a)?a:a?[a]:[],{isMobile:ee}=B(),[te,se]=f(!1),C=X??te,h=Y??se,[l,w]=f(""),[W,O]=f(!1),[k,ae]=f(void 0),[oe,A]=f(!1),ne=t=>{var p;if(E){let S=n.some(({value:u})=>u===t.value);r(S?n.filter(({value:u})=>u!==t.value):[...n,t])}else r(n.length&&((p=n[0])==null?void 0:p.value)===t.value?null:t),h(!1)},j=de((t,p)=>p===""?[...n,...t.filter(S=>n.findIndex(u=>u.value===S.value)===-1)]:t,[n]);return v(()=>{W&&(ae(o&&j(o,l)),O(!1))},[W,o,j,l]),v(()=>{O(!0)},[o]),v(()=>{C||(w(""),O(!0))},[C]),v(()=>N==null?void 0:N(l),[l]),e(Q,{openPopover:C,setOpenPopover:h,align:"start",side:J,onWheel:t=>{t.stopPropagation()},popoverContentClassName:m(R&&"sm:w-[var(--radix-popover-trigger-width)]"),content:e(F,{width:!ee&&!R,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},children:i(b,{loop:!0,shouldFilter:P,children:[i("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[e(re,{placeholder:q,value:l,onValueChange:w,className:"grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!l)&&(t.preventDefault(),t.stopPropagation(),h(!1))}}),I&&e("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:I})]}),e(fe,{children:e(b.List,{className:m("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:k!==void 0?i(T,{children:[k.map(t=>e(xe,{option:t,multiple:E,selected:n.some(({value:p})=>p===t.value),onSelect:()=>ne(t),className:z},`${t.label}, ${t.value}`)),l.length>0&&g&&i(ie,{className:m("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",z),onSelect:async()=>{A(!0),await(g==null?void 0:g(l))&&(w(""),h(!1)),A(!1)},children:[oe?e(M,{className:"size-4 shrink-0"}):e(H,{className:"size-4 shrink-0"}),e("div",{className:"grow truncate",children:(y==null?void 0:y(l))||`Create "${l}"`})]}),P?e(le,{className:"flex h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):k.length===0?e("div",{className:"flex h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):null]}):e(b.Loading,{children:e("div",{className:"flex h-12 items-center justify-center",children:e(M,{})})})})})]})}),children:e(K,{variant:"secondary",...c,className:m(c==null?void 0:c.className,"flex gap-2"),textWrapperClassName:m(c==null?void 0:c.textWrapperClassName,"w-full flex items-center justify-start"),text:i(T,{children:[e("div",{className:"min-w-0 grow truncate text-left",children:_||n.map(t=>t.label).join(", ")||Z}),G&&e(ce,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:d?U(d)?d:e(d,{className:"size-4"}):void 0})})}var fe=({children:s})=>{let a=pe(null),{scrollProgress:r,updateScrollProgress:o}=D(a);return i(T,{children:[e("div",{className:"scrollbar-hide max-h-[min(50vh,240px)] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:o,children:s}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(r,2)}})]})};function xe({option:s,onSelect:a,multiple:r,selected:o,className:d}){return i(b.Item,{className:m("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",d),onSelect:a,value:s.label+(s==null?void 0:s.value),children:[r&&e("div",{className:"shrink-0 text-gray-600",children:o?e($,{className:"size-4 text-gray-600"}):e(V,{className:"size-4 text-gray-400"})}),i("div",{className:"flex min-w-0 grow items-center gap-1",children:[s.icon&&e("span",{className:"shrink-0 text-gray-600",children:U(s.icon)?s.icon:e(s.icon,{className:"h-4 w-4"})}),e("span",{className:"grow truncate",children:s.label})]}),!r&&o&&e(L,{className:"size-4 shrink-0 text-gray-600"})]})}var U=s=>me(s);export{Pe as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as o,jsxs as e}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:e("g",{fill:"currentColor",children:[o("path",{d:"M3.804,13.278l3.721-6.444c-.91-.515-1.524-1.492-1.524-2.613,0-1.657,1.343-3,3-3s3,1.343,3,3c0,.08-.003,.159-.009,.237",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("path",{d:"M14.246,13.25H6.805c.009,1.046-.53,2.065-1.5,2.626-1.435,.828-3.27,.337-4.098-1.098s-.337-3.27,1.098-4.098c.069-.04,.139-.077,.21-.11",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("path",{d:"M9,4.222l3.72,6.444c.901-.531,2.054-.574,3.025-.014,1.435,.828,1.927,2.663,1.098,4.098s-2.663,1.927-4.098,1.098c-.069-.04-.136-.082-.2-.126",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("circle",{cx:"3.804",cy:"13.278",fill:"currentColor",r:"1.25",stroke:"none"}),o("circle",{cx:"9",cy:"4.222",fill:"currentColor",r:"1.25",stroke:"none"}),o("circle",{cx:"14.248",cy:"13.252",fill:"currentColor",r:"1.25",stroke:"none"})]})})}export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-LVX4YTF2.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{c as l,d as p}from"./chunk-CP3MQQGD.mjs";import{a as n,c,d as u}from"./chunk-ETVA6YOC.mjs";import{b as s,j as m}from"./chunk-6IZLSA2Z.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{e as u}from"./chunk-ODE7I3Q2.mjs";import{a as m,c as g,e as k}from"./chunk-ETVA6YOC.mjs";import{a as f}from"./chunk-S7ZYL2JZ.mjs";import{a as d}from"./chunk-OVMD74I4.mjs";import{a as p}from"./chunk-5L2MLHUY.mjs";import{a as c}from"./chunk-BJHER3QM.mjs";import{a as l}from"./chunk-YMUES22A.mjs";import{a as h}from"./chunk-4WVM5INH.mjs";import{b as a,j as t}from"./chunk-6IZLSA2Z.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{b as g}from"./chunk-YKPKRF4H.mjs";import{i as c}from"./chunk-O2EFYDLJ.mjs";import{Command as s}from"cmdk";import{Lock as T}from"lucide-react";import{jsx as o,jsxs as w}from"react/jsx-runtime";var h=({presets:f,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,b=e=>"date"in e,a=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),y=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&a(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&a(m,d)&&(u=!0),i&&u},x=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(b(e)){let t=r;return t&&a(t,e.date)}return!1};return o(s,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:o(s.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:f.map((e,t)=>w(s.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:(void 0)("group relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",x(e)&&"font-semibold text-gray-800"),children:[o("span",{children:e.label}),e.requiresUpgrade?o(T,{className:"h-3.5 w-3.5","aria-hidden":"true"}):e.shortcut?o("kbd",{className:"text-gray-4000 hidden rounded bg-gray-100 px-2 py-0.5 text-xs font-light group-data-[selected=true]:bg-gray-200 md:block",children:e.shortcut.toUpperCase()}):null,e.requiresUpgrade&&e.tooltipContent&&o(g,{side:"bottom",content:e.tooltipContent,children:o("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};h.displayName="DatePicker.Presets";export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{q as n}from"./chunk-OQCPKGEH.mjs";import{jsx as e,jsxs as a}from"react/jsx-runtime";function h({cellSize:t=12,strokeWidth:s=1,patternOffset:r=[0,0],className:i}){return a("svg",{className:n("pointer-events-none absolute inset-0 text-black/10",i),width:"100%",height:"100%",children:[e("defs",{children:e("pattern",{id:"grid",x:r[0]-1,y:r[1]-1,width:t,height:t,patternUnits:"userSpaceOnUse",children:e("path",{d:`M ${t} 0 L 0 0 0 ${t}`,fill:"transparent",stroke:"currentColor",strokeWidth:s})})}),e("rect",{fill:"url(#grid)",width:"100%",height:"100%"})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as P}from"./chunk-5P67N5YK.mjs";import{a as S}from"./chunk-BUD5OCBS.mjs";import{a as h}from"./chunk-SC5MU5OM.mjs";import{j as m,k as w}from"./chunk-6IZLSA2Z.mjs";import{flexRender as T,getCoreRowModel as A,useReactTable as B}from"@tanstack/react-table";import{AnimatePresence as O,motion as j}from"framer-motion";import{useEffect as N,useState as U}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var V=t=>m(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1"]);function oe(t){let{data:n,rowCount:r,columns:g,defaultColumn:x,columnPinning:b,pagination:y,onPaginationChange:f}=t,[l,p]=U(t.columnVisibility??{});N(()=>{t.columnVisibility&&!w(t.columnVisibility,l)&&p(t.columnVisibility??{})},[t.columnVisibility]),N(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let v=B({data:n,rowCount:r,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...x},getCoreRowModel:A(),onPaginationChange:f,onColumnVisibilityChange:d=>p(d),state:{pagination:y,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:v}}function le({columns:t,data:n,loading:r,error:g,emptyState:x,cellRight:b,sortBy:y,sortOrder:f,onSortChange:l,sortableColumns:p=[],className:v,scrollWrapperClassName:d,thClassName:k,tdClassName:R,table:o,pagination:s,resourceName:u,rowCount:I,children:W}){return a("div",{className:"relative border border-gray-200 bg-white sm:rounded-xl",children:[!g&&!!(n!=null&&n.length)||r?a("div",{className:m("relative min-h-[400px] overflow-x-auto rounded-[inherit]",d),children:[a("table",{className:m(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent"],v),children:[i("thead",{children:o.getHeaderGroups().map(c=>i("tr",{children:c.headers.map(e=>{let C=p.includes(e.column.id),M=C?"button":"div";return i("th",{className:m(V(e.id),"select-none font-medium",D(e.column,!o.getRowModel().rows.length),k),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:i("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(M,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:y!==e.column.id||f==="asc"?"desc":"asc"})},children:[i("span",{children:e.isPlaceholder?null:T(e.column.columnDef.header,e.getContext())}),C&&i(S,{order:y===e.column.id?f||"desc":null})]})})},e.id)})},c.id))}),i("tbody",{children:o.getRowModel().rows.map(c=>i("tr",{children:c.getVisibleCells().map(e=>i("td",{className:m(V(e.column.id),"group text-gray-600",D(e.column,c.index===o.getRowModel().rows.length-1),R),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[i("div",{className:"min-w-0 shrink grow truncate",children:T(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},c.id))})]}),W]}):i("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||x||`No ${(u==null?void 0:u(!0))||"items"} found.`}),s&&!g&&!!(n!=null&&n.length)&&!!I&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[i("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(s.pageIndex-1)*s.pageSize+1,"-",Math.min((s.pageIndex-1)*s.pageSize+s.pageSize,o.getRowCount())]})," ","of"," ",i("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(u==null?void 0:u(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[i(P,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:s.pageIndex===1}),i(P,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:s.pageIndex===o.getPageCount()})]})]}),i(O,{children:r&&i(j.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex items-center justify-center rounded-xl bg-white/50",children:i(h,{})})})]})}var D=(t,n)=>{let r=t.getIsPinned();return m(r&&!n&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},z=t=>{let n=t.getIsPinned();return{left:n==="left"?`${t.getStart("left")}px`:void 0,right:n==="right"?`${t.getAfter("right")}px`:void 0,position:n?"sticky":"relative"}};export{oe as a,le as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{q as t}from"./chunk-OQCPKGEH.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,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-EQ4F6URP.mjs";import{a as E}from"./chunk-MUSCMCWM.mjs";import{a as H}from"./chunk-GME4ZF2C.mjs";import{a as _,d as L,e as V}from"./chunk-MYVDXJUG.mjs";import{a as D}from"./chunk-6TOTQPDL.mjs";import{a as x}from"./chunk-WHHIQDGZ.mjs";import{a as W}from"./chunk-UOOZ7FNR.mjs";import{k as S}from"./chunk-YKPKRF4H.mjs";import{b as k,h as P,i as n,k as w,m as M}from"./chunk-O2EFYDLJ.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import h from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<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>`,X=`<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 B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:(void 0)("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:(void 0)("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("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(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:r,...t}){return o(S,{className:(void 0)("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 lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["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 Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",void 0,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:(void 0)("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:(void 0)("absolute inset-0 block transition-all lg:hidden",i&&(s&&(void 0).includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(h,{className:"grow basis-0",href:k("/",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(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:(void 0)("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",s&&(void 0).includes(s)?"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")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(h,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&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(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:(void 0)("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:g&&Object.keys(g).length>0?e(h,{href:void 0,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"}):u?null:c(lt,{children:[e(h,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(h,{href:b?"https://app.dub.co/register":"https://d.to/try",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 st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as l,d as p}from"./chunk-MYVDXJUG.mjs";import{a as n,c,d as u}from"./chunk-UTBKAGCV.mjs";import{c as s,q as m}from"./chunk-OQCPKGEH.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{j as t}from"./chunk-OCWW7DB6.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};
|