@dub/ui 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +10 -10
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-23K3HVCC.mjs +2 -0
- package/dist/chunk-2AIQM3DI.mjs +2 -0
- package/dist/chunk-2CCRA2BH.mjs +2 -0
- package/dist/chunk-2I4CTJJC.mjs +2 -0
- package/dist/chunk-2IXFUHO5.mjs +2 -0
- package/dist/chunk-2J7LGVJF.mjs +2 -0
- package/dist/chunk-2LTMKQCR.mjs +2 -0
- package/dist/chunk-2SA5Q32H.mjs +2 -0
- package/dist/chunk-2VCRES3J.mjs +2 -0
- package/dist/chunk-2WA4MAII.mjs +2 -0
- package/dist/chunk-2WSXNK5K.mjs +6 -0
- package/dist/chunk-2XHWKQKH.mjs +6 -0
- package/dist/chunk-2XM6VYZJ.mjs +2 -0
- package/dist/chunk-34A7ZDQZ.mjs +2 -0
- package/dist/chunk-36PY7ONN.mjs +6 -0
- package/dist/chunk-37XKBUCF.mjs +6 -0
- package/dist/chunk-3BTK3FI4.mjs +2 -0
- package/dist/chunk-3DD73X4J.mjs +2 -0
- package/dist/chunk-3E7LYZ7W.mjs +2 -0
- package/dist/chunk-3IYCQRU6.mjs +2 -0
- package/dist/chunk-3J5QMFAC.mjs +2 -0
- package/dist/chunk-3JZCXNRX.mjs +2 -0
- package/dist/chunk-3KAWZENW.mjs +2 -0
- package/dist/chunk-3P4ZALDZ.mjs +2 -0
- package/dist/chunk-3R4HQHLG.mjs +2 -0
- package/dist/chunk-3RJB5OQS.mjs +2 -0
- package/dist/chunk-3TBK7K3U.mjs +2 -0
- package/dist/chunk-3X4JVFFC.mjs +2 -0
- package/dist/chunk-3XEZSLEG.mjs +2 -0
- package/dist/chunk-425CADTC.mjs +2 -0
- package/dist/chunk-45H5QQMF.mjs +2 -0
- package/dist/chunk-47PRCOZT.mjs +2 -0
- package/dist/chunk-4A2VU4XD.mjs +2 -0
- package/dist/chunk-4FTIDAYC.mjs +2 -0
- package/dist/chunk-4G6ZFLKQ.mjs +2 -0
- package/dist/chunk-4HYOYAQH.mjs +2 -0
- package/dist/chunk-4ID6OOZM.mjs +6 -0
- package/dist/chunk-4M6ORY7S.mjs +2 -0
- package/dist/chunk-4QJ3FIQR.mjs +2 -0
- package/dist/chunk-4S76MH7C.mjs +2 -0
- package/dist/chunk-4TDDDH7E.mjs +2 -0
- package/dist/chunk-4UBF76W4.mjs +2 -0
- package/dist/chunk-4XJQGDQI.mjs +2 -0
- package/dist/chunk-4YIMMTJK.mjs +2 -0
- package/dist/chunk-53HOOCMJ.mjs +2 -0
- package/dist/chunk-57VC5WUU.mjs +2 -0
- package/dist/chunk-5ADFXHOC.mjs +2 -0
- package/dist/chunk-5BXZ3GVB.mjs +2 -0
- package/dist/chunk-5KL2VCQA.mjs +2 -0
- package/dist/chunk-5LFAK6SN.mjs +2 -0
- package/dist/chunk-5LMB6HQS.mjs +2 -0
- package/dist/chunk-5LSYGAQU.mjs +2 -0
- package/dist/chunk-5LWNWDJF.mjs +2 -0
- package/dist/chunk-5N3MR3LP.mjs +2 -0
- package/dist/chunk-5S3S4HQ3.mjs +2 -0
- package/dist/chunk-5SEBJ24Z.mjs +6 -0
- package/dist/chunk-5UW4ICEU.mjs +2 -0
- package/dist/chunk-5VJPMVYR.mjs +2 -0
- package/dist/chunk-5VOFXGMC.mjs +2 -0
- package/dist/chunk-62OJJLPW.mjs +2 -0
- package/dist/chunk-636KYWZ7.mjs +2 -0
- package/dist/chunk-64HUVA7B.mjs +2 -0
- package/dist/chunk-65Q6HWVA.mjs +2 -0
- package/dist/chunk-66GHHUUS.mjs +2 -0
- package/dist/chunk-6BRIOTPE.mjs +2 -0
- package/dist/chunk-6F5Y3CRC.mjs +2 -0
- package/dist/chunk-6GKC3OJK.mjs +6 -0
- package/dist/chunk-6ICW3LPQ.mjs +6 -0
- package/dist/chunk-6JWQDKQR.mjs +2 -0
- package/dist/chunk-6PPLNYSA.mjs +2 -0
- package/dist/chunk-6PUZT6XB.mjs +2 -0
- package/dist/chunk-6R4UNSWF.mjs +2 -0
- package/dist/chunk-6SQJ4WJ7.mjs +2 -0
- package/dist/chunk-6UHOE7N2.mjs +2 -0
- package/dist/chunk-6UK2HWP7.mjs +2 -0
- package/dist/chunk-6UN3Z7FV.mjs +2 -0
- package/dist/chunk-6YNOOW2I.mjs +2 -0
- package/dist/chunk-735BXUUD.mjs +2 -0
- package/dist/chunk-73UNXSIT.mjs +2 -0
- package/dist/chunk-76SDJAWS.mjs +2 -0
- package/dist/chunk-77QBPBM7.mjs +2 -0
- package/dist/chunk-7AOSWE2Q.mjs +2 -0
- package/dist/chunk-7CYGQP6H.mjs +6 -0
- package/dist/chunk-7H6X662T.mjs +2 -0
- package/dist/chunk-7JKYMBMJ.mjs +2 -0
- package/dist/chunk-7NFZPRER.mjs +2 -0
- package/dist/chunk-7QSDGAPC.mjs +2 -0
- package/dist/chunk-7RDZCRWO.mjs +2 -0
- package/dist/chunk-7T6LQG3R.mjs +2 -0
- package/dist/chunk-7U5KEZUW.mjs +2 -0
- package/dist/chunk-7USD4LAQ.mjs +2 -0
- package/dist/chunk-7YJUC3Y3.mjs +2 -0
- package/dist/chunk-A3ICS45S.mjs +2 -0
- package/dist/chunk-A5TJWGGP.mjs +2 -0
- package/dist/chunk-ABWQM67P.mjs +2 -0
- package/dist/chunk-ADAD5FYM.mjs +2 -0
- package/dist/chunk-ADSVOL35.mjs +2 -0
- package/dist/chunk-AHGBL2TI.mjs +2 -0
- package/dist/chunk-AIMBHYKU.mjs +2 -0
- package/dist/chunk-AINXTOGN.mjs +2 -0
- package/dist/chunk-ALEYOCBW.mjs +2 -0
- package/dist/chunk-ANXP53R4.mjs +2 -0
- package/dist/chunk-AOFU2NTR.mjs +2 -0
- package/dist/chunk-AUMQXTR2.mjs +2 -0
- package/dist/chunk-AWXUVGHO.mjs +2 -0
- package/dist/chunk-BABGQ3O2.mjs +2 -0
- package/dist/chunk-BCSS44TA.mjs +6 -0
- package/dist/chunk-BCZB4ILZ.mjs +2 -0
- package/dist/chunk-BFSQK5UY.mjs +2 -0
- package/dist/chunk-BG4KTSF4.mjs +2 -0
- package/dist/chunk-BJDSBLOO.mjs +2 -0
- package/dist/chunk-BJEUFO3J.mjs +2 -0
- package/dist/chunk-BKZC76TM.mjs +6 -0
- package/dist/chunk-BLWKZX7B.mjs +2 -0
- package/dist/chunk-BM4RG6DR.mjs +2 -0
- package/dist/chunk-BNXLTWMM.mjs +2 -0
- package/dist/chunk-BOY2G6AG.mjs +2 -0
- package/dist/chunk-BPF2HGFC.mjs +2 -0
- package/dist/chunk-BR5S3RVQ.mjs +2 -0
- package/dist/chunk-BRYKSZF4.mjs +2 -0
- package/dist/chunk-BZRJKTP7.mjs +2 -0
- package/dist/chunk-C76JAIYX.mjs +2 -0
- package/dist/chunk-CCMNAIZ3.mjs +2 -0
- package/dist/chunk-CFNJ2F7K.mjs +2 -0
- package/dist/chunk-CHKQX4UP.mjs +2 -0
- package/dist/chunk-CI3RZOGJ.mjs +2 -0
- package/dist/chunk-CINPJVE3.mjs +2 -0
- package/dist/chunk-CLDMP6US.mjs +2 -0
- package/dist/chunk-COZG343W.mjs +2 -0
- package/dist/chunk-CPFMFAU2.mjs +2 -0
- package/dist/chunk-CS7PVXN7.mjs +2 -0
- package/dist/chunk-CUMIRJAM.mjs +2 -0
- package/dist/chunk-CUYZMDRN.mjs +2 -0
- package/dist/chunk-CVOZTALH.mjs +2 -0
- package/dist/chunk-CVVGDWRL.mjs +2 -0
- package/dist/chunk-CX5AGXUF.mjs +2 -0
- package/dist/chunk-CXY6TFWC.mjs +6 -0
- package/dist/chunk-CZJ22L5Q.mjs +2 -0
- package/dist/chunk-D5FWKXY7.mjs +2 -0
- package/dist/chunk-DACL3EY5.mjs +2 -0
- package/dist/chunk-DBGVBLE4.mjs +2 -0
- package/dist/chunk-DDFVM6DV.mjs +2 -0
- package/dist/chunk-DDH3RGOS.mjs +2 -0
- package/dist/chunk-DEGRBBLU.mjs +2 -0
- package/dist/chunk-DETKTZLD.mjs +6 -0
- package/dist/chunk-DFTTHLLQ.mjs +2 -0
- package/dist/chunk-DI3HZNTU.mjs +6 -0
- package/dist/chunk-DJJD7VHE.mjs +2 -0
- package/dist/chunk-DLDIYZ56.mjs +2 -0
- package/dist/chunk-DNGIQGTJ.mjs +2 -0
- package/dist/chunk-DP2K3KV4.mjs +2 -0
- package/dist/chunk-DP5SYYEV.mjs +2 -0
- package/dist/chunk-DSVP3D2H.mjs +2 -0
- package/dist/chunk-DXHFEOBF.mjs +2 -0
- package/dist/chunk-DXTP6F74.mjs +2 -0
- package/dist/chunk-DZ5IKQLK.mjs +2 -0
- package/dist/chunk-E2JCOFTL.mjs +2 -0
- package/dist/chunk-E4JQEXLT.mjs +2 -0
- package/dist/chunk-E4XRNLGV.mjs +2 -0
- package/dist/chunk-E6VJQMTO.mjs +2 -0
- package/dist/chunk-E7OTSLEQ.mjs +2 -0
- package/dist/chunk-EAHDJGDZ.mjs +2 -0
- package/dist/chunk-ECVHTC2P.mjs +2 -0
- package/dist/chunk-EF7DUS5H.mjs +2 -0
- package/dist/chunk-EH5XL5NR.mjs +2 -0
- package/dist/chunk-EIWICRCG.mjs +6 -0
- package/dist/chunk-EKNEQP34.mjs +2 -0
- package/dist/chunk-EM5FQKG5.mjs +2 -0
- package/dist/chunk-EMBPUURE.mjs +6 -0
- package/dist/chunk-EOBKM3SL.mjs +2 -0
- package/dist/chunk-EOPEHYWA.mjs +2 -0
- package/dist/chunk-EQVDUGC5.mjs +6 -0
- package/dist/chunk-ERHJUR3T.mjs +2 -0
- package/dist/chunk-EUW3F2IW.mjs +2 -0
- package/dist/chunk-EUZYBVT7.mjs +2 -0
- package/dist/chunk-EVEH7EXK.mjs +6 -0
- package/dist/chunk-EWZYDHV4.mjs +2 -0
- package/dist/chunk-EYEQRKQS.mjs +6 -0
- package/dist/chunk-EYLJBH2K.mjs +2 -0
- package/dist/chunk-EZO5AXPH.mjs +2 -0
- package/dist/chunk-EZYOIYAS.mjs +2 -0
- package/dist/chunk-F2DM2346.mjs +2 -0
- package/dist/chunk-F7QSUKIY.mjs +2 -0
- package/dist/chunk-FC6G5ITH.mjs +6 -0
- package/dist/chunk-FC7HIJJ2.mjs +2 -0
- package/dist/chunk-FDLMQORG.mjs +2 -0
- package/dist/chunk-FHN2WHWX.mjs +2 -0
- package/dist/chunk-FIFKXLRU.mjs +2 -0
- package/dist/chunk-FIJLB73Y.mjs +2 -0
- package/dist/chunk-FJAQEA3X.mjs +2 -0
- package/dist/chunk-FMKHALZT.mjs +2 -0
- package/dist/chunk-FN3RUOQU.mjs +2 -0
- package/dist/chunk-FXTEWMOW.mjs +2 -0
- package/dist/chunk-G3CJOJZC.mjs +2 -0
- package/dist/chunk-G5YTEVMC.mjs +2 -0
- package/dist/chunk-GCDBEHAK.mjs +2 -0
- package/dist/chunk-GHSFBVK2.mjs +2 -0
- package/dist/chunk-GLHMHUOS.mjs +6 -0
- package/dist/chunk-GNKRA4PT.mjs +2 -0
- package/dist/chunk-GOFCWDWN.mjs +2 -0
- package/dist/chunk-GOTGSB6M.mjs +2 -0
- package/dist/chunk-GP46YP3A.mjs +2 -0
- package/dist/chunk-GQIOHGGX.mjs +2 -0
- package/dist/chunk-GUCG2R77.mjs +2 -0
- package/dist/chunk-GV2NLM3E.mjs +2 -0
- package/dist/chunk-GWHEPTNA.mjs +2 -0
- package/dist/chunk-GXDM3XTX.mjs +2 -0
- package/dist/chunk-GYE7FFDN.mjs +2 -0
- package/dist/chunk-GZTUKQA7.mjs +2 -0
- package/dist/chunk-H2B5RCO3.mjs +2 -0
- package/dist/chunk-H64E7AEN.mjs +2 -0
- package/dist/chunk-HDFJHOQD.mjs +2 -0
- package/dist/chunk-HFMI7Q2O.mjs +2 -0
- package/dist/chunk-HFMTV4MZ.mjs +2 -0
- package/dist/chunk-HJMQR6M2.mjs +2 -0
- package/dist/chunk-HL2XXNL7.mjs +2 -0
- package/dist/chunk-HRUDOZLA.mjs +2 -0
- package/dist/chunk-HVKKTXKT.mjs +2 -0
- package/dist/chunk-HVZTG3NQ.mjs +2 -0
- package/dist/chunk-HXJCPVJD.mjs +2 -0
- package/dist/chunk-HXZ7BLYI.mjs +2 -0
- package/dist/chunk-HYPHT2S7.mjs +2 -0
- package/dist/chunk-HZ6P36Z2.mjs +2 -0
- package/dist/chunk-I6DMF7JU.mjs +2 -0
- package/dist/chunk-I6XBV4N2.mjs +2 -0
- package/dist/chunk-IAAPDQMC.mjs +2 -0
- package/dist/chunk-IABEYATB.mjs +2 -0
- package/dist/chunk-IBHAWQZU.mjs +2 -0
- package/dist/chunk-IBSFUEJB.mjs +2 -0
- package/dist/chunk-ICWVGPAX.mjs +2 -0
- package/dist/chunk-IDS2CWZH.mjs +2 -0
- package/dist/chunk-IEFDEKX4.mjs +2 -0
- package/dist/chunk-IFBIFL3E.mjs +2 -0
- package/dist/chunk-IGIB6XZB.mjs +2 -0
- package/dist/chunk-IGUSCYKA.mjs +2 -0
- package/dist/chunk-IHMUT342.mjs +2 -0
- package/dist/chunk-IJ232EVK.mjs +2 -0
- package/dist/chunk-IMACCYL7.mjs +2 -0
- package/dist/chunk-IOYSFSEC.mjs +2 -0
- package/dist/chunk-IPHPUCI6.mjs +2 -0
- package/dist/chunk-IQLNVGI7.mjs +2 -0
- package/dist/chunk-IT6GTRCF.mjs +2 -0
- package/dist/chunk-J3TSF5FN.mjs +2 -0
- package/dist/chunk-J65T2HOJ.mjs +2 -0
- package/dist/chunk-JCJMEI6U.mjs +2 -0
- package/dist/chunk-JINC5ZHV.mjs +2 -0
- package/dist/chunk-JJFYIWWB.mjs +2 -0
- package/dist/chunk-JKIBJN72.mjs +2 -0
- package/dist/chunk-JT4JKCTX.mjs +2 -0
- package/dist/chunk-JTZAOG2J.mjs +2 -0
- package/dist/chunk-JU6DJTT2.mjs +2 -0
- package/dist/chunk-JXANMH2C.mjs +2 -0
- package/dist/chunk-JYFBSDPW.mjs +2 -0
- package/dist/chunk-JZHKXZTG.mjs +2 -0
- package/dist/chunk-JZM7UFYY.mjs +2 -0
- package/dist/chunk-K2VHT6J5.mjs +6 -0
- package/dist/chunk-K5FLHSCO.mjs +2 -0
- package/dist/chunk-K7IIEJVZ.mjs +2 -0
- package/dist/chunk-KAINQA56.mjs +2 -0
- package/dist/chunk-KBLROGH5.mjs +6 -0
- package/dist/chunk-KDYZDWOD.mjs +6 -0
- package/dist/chunk-KGEZPQXF.mjs +2 -0
- package/dist/chunk-KIBLMPQL.mjs +2 -0
- package/dist/chunk-KPFLNPPS.mjs +2 -0
- package/dist/chunk-KU2DU4OR.mjs +2 -0
- package/dist/chunk-KVIG4WHJ.mjs +2 -0
- package/dist/chunk-KVOCXIGJ.mjs +2 -0
- package/dist/chunk-KY5KL65X.mjs +2 -0
- package/dist/chunk-KYYCOGLF.mjs +2 -0
- package/dist/chunk-L5LN3P3Z.mjs +2 -0
- package/dist/chunk-LBL2SCSB.mjs +2 -0
- package/dist/chunk-LC6HV5UE.mjs +2 -0
- package/dist/chunk-LCP42JFU.mjs +2 -0
- package/dist/chunk-LJYCQ3P2.mjs +2 -0
- package/dist/chunk-LL6P7U3J.mjs +2 -0
- package/dist/chunk-LMRGZRFK.mjs +2 -0
- package/dist/chunk-LMW2JTCE.mjs +2 -0
- package/dist/chunk-LN5OM5KW.mjs +2 -0
- package/dist/chunk-LNFALGD4.mjs +2 -0
- package/dist/chunk-LWHRLS4E.mjs +2 -0
- package/dist/chunk-LWMKXF44.mjs +2 -0
- package/dist/chunk-LYTDE3QP.mjs +2 -0
- package/dist/chunk-M5G2MXO6.mjs +2 -0
- package/dist/chunk-M5VYWC23.mjs +2 -0
- package/dist/chunk-MDG44LAK.mjs +2 -0
- package/dist/chunk-MDK6EUNU.mjs +2 -0
- package/dist/chunk-MO6CVTQA.mjs +2 -0
- package/dist/chunk-MWGVUPWK.mjs +2 -0
- package/dist/chunk-N4Q65V2K.mjs +2 -0
- package/dist/chunk-N54BRLGX.mjs +2 -0
- package/dist/chunk-NCXG2SK7.mjs +2 -0
- package/dist/chunk-ND6XJDON.mjs +2 -0
- package/dist/chunk-NER3RF7P.mjs +2 -0
- package/dist/chunk-NIBNMQ3O.mjs +2 -0
- package/dist/chunk-NMS74JVH.mjs +2 -0
- package/dist/chunk-NNISN7HK.mjs +6 -0
- package/dist/chunk-NNKU3QO2.mjs +2 -0
- package/dist/chunk-NQSIXI3Q.mjs +2 -0
- package/dist/chunk-NROYQRHQ.mjs +2 -0
- package/dist/chunk-NVFOIXBM.mjs +2 -0
- package/dist/chunk-NVGTGWC4.mjs +2 -0
- package/dist/chunk-NZEGMJSW.mjs +2 -0
- package/dist/chunk-O2Q5X4BD.mjs +2 -0
- package/dist/chunk-O35C2KAX.mjs +2 -0
- package/dist/chunk-O3FZNHDK.mjs +2 -0
- package/dist/chunk-O5ED4ULH.mjs +2 -0
- package/dist/chunk-O6UNRZ4Y.mjs +2 -0
- package/dist/chunk-OAIIUMGM.mjs +6 -0
- package/dist/chunk-ODDOAG4D.mjs +2 -0
- package/dist/chunk-OER4OKXW.mjs +2 -0
- package/dist/chunk-OIUE7P57.mjs +2 -0
- package/dist/chunk-OP4HJ67E.mjs +2 -0
- package/dist/chunk-OQ6MW3XC.mjs +2 -0
- package/dist/chunk-OSXECD7F.mjs +2 -0
- package/dist/chunk-OSYJJRL4.mjs +2 -0
- package/dist/chunk-OTBQ3XRV.mjs +2 -0
- package/dist/chunk-OURXGHVY.mjs +2 -0
- package/dist/chunk-OY5CO5DL.mjs +2 -0
- package/dist/chunk-OZPEAIHO.mjs +2 -0
- package/dist/chunk-P5B75XYD.mjs +2 -0
- package/dist/chunk-PBFOD7GN.mjs +2 -0
- package/dist/chunk-PEJS7PXM.mjs +2 -0
- package/dist/chunk-PJISRRLF.mjs +2 -0
- package/dist/chunk-PKX3AN3X.mjs +2 -0
- package/dist/chunk-PL37P5ZV.mjs +2 -0
- package/dist/chunk-PMFAHCLA.mjs +2 -0
- package/dist/chunk-PNA3V7R5.mjs +2 -0
- package/dist/chunk-PP7JZZTP.mjs +2 -0
- package/dist/chunk-PQJUEJ3I.mjs +2 -0
- package/dist/chunk-PQQONZO5.mjs +2 -0
- package/dist/chunk-PV6IBOYS.mjs +2 -0
- package/dist/chunk-Q3RLZ7UC.mjs +2 -0
- package/dist/chunk-Q5S2P2BS.mjs +2 -0
- package/dist/chunk-QBCNPJXG.mjs +2 -0
- package/dist/chunk-QC6GZ7KR.mjs +2 -0
- package/dist/chunk-QGB64MVQ.mjs +2 -0
- package/dist/chunk-QGI7CKJR.mjs +2 -0
- package/dist/chunk-QJZ3EDUK.mjs +2 -0
- package/dist/chunk-QLFZHFIZ.mjs +2 -0
- package/dist/chunk-QQU7LAFI.mjs +2 -0
- package/dist/chunk-QS6DNCZI.mjs +2 -0
- package/dist/chunk-QWDFYSPL.mjs +2 -0
- package/dist/chunk-QZBXFURD.mjs +2 -0
- package/dist/chunk-R27OFGXD.mjs +2 -0
- package/dist/chunk-R3JUJJWG.mjs +2 -0
- package/dist/chunk-R5OHA6WP.mjs +2 -0
- package/dist/chunk-R6HV27RB.mjs +2 -0
- package/dist/chunk-R6VTHDJP.mjs +2 -0
- package/dist/chunk-RCKL3YIU.mjs +2 -0
- package/dist/chunk-REH2ZV27.mjs +2 -0
- package/dist/chunk-RG73C62W.mjs +2 -0
- package/dist/chunk-RH37AB4X.mjs +2 -0
- package/dist/chunk-RJPL5ZMX.mjs +6 -0
- package/dist/chunk-RKKEDQTW.mjs +2 -0
- package/dist/chunk-ROJUXY5M.mjs +6 -0
- package/dist/chunk-ROXLEPYW.mjs +2 -0
- package/dist/chunk-RPG4RVLP.mjs +2 -0
- package/dist/chunk-S2RE7TDN.mjs +2 -0
- package/dist/chunk-S3EIQA6L.mjs +2 -0
- package/dist/chunk-SAMZZNFI.mjs +2 -0
- package/dist/chunk-SAZWS5J3.mjs +2 -0
- package/dist/chunk-SBA7IVN6.mjs +2 -0
- package/dist/chunk-SFA3JAIS.mjs +2 -0
- package/dist/chunk-SKM6U7WY.mjs +2 -0
- package/dist/chunk-SMO74JVP.mjs +2 -0
- package/dist/chunk-SNQGPU36.mjs +6 -0
- package/dist/chunk-SODG463V.mjs +2 -0
- package/dist/chunk-SQ74WPXU.mjs +2 -0
- package/dist/chunk-STVXH27C.mjs +2 -0
- package/dist/chunk-SY3S7DTB.mjs +2 -0
- package/dist/chunk-SYDGOWXQ.mjs +2 -0
- package/dist/chunk-SYRX37OP.mjs +2 -0
- package/dist/chunk-SZS2RSKI.mjs +2 -0
- package/dist/chunk-T4WQ7DFO.mjs +2 -0
- package/dist/chunk-T74CSMLF.mjs +2 -0
- package/dist/chunk-TBZQNSBA.mjs +2 -0
- package/dist/chunk-TK34LANA.mjs +2 -0
- package/dist/chunk-TKA3JGYD.mjs +2 -0
- package/dist/chunk-TM5KMVCE.mjs +2 -0
- package/dist/chunk-TNSBY3HD.mjs +2 -0
- package/dist/chunk-TPX6ZMYI.mjs +2 -0
- package/dist/chunk-TR7ALNN6.mjs +2 -0
- package/dist/chunk-TSNU5VK5.mjs +2 -0
- package/dist/chunk-TTN7XF7I.mjs +2 -0
- package/dist/chunk-TTQYBKAX.mjs +2 -0
- package/dist/chunk-TU3EWZXU.mjs +2 -0
- package/dist/chunk-TU3W6DKD.mjs +2 -0
- package/dist/chunk-TWHF5JOO.mjs +2 -0
- package/dist/chunk-U65R5DB7.mjs +2 -0
- package/dist/chunk-U6JXWMO7.mjs +2 -0
- package/dist/chunk-UAVCY7CY.mjs +2 -0
- package/dist/chunk-UAWBYRZ4.mjs +2 -0
- package/dist/chunk-UAWOQ2OX.mjs +2 -0
- package/dist/chunk-UBHVH3H7.mjs +2 -0
- package/dist/chunk-UDNXN2YB.mjs +2 -0
- package/dist/chunk-UGGYFQHE.mjs +2 -0
- package/dist/chunk-UJ65CMI2.mjs +2 -0
- package/dist/chunk-UJX5YM3Z.mjs +2 -0
- package/dist/chunk-UJXSUQRH.mjs +2 -0
- package/dist/chunk-ULE33N6L.mjs +2 -0
- package/dist/chunk-UMBZZ36L.mjs +2 -0
- package/dist/chunk-US6GBXW2.mjs +2 -0
- package/dist/chunk-UWZ4RULU.mjs +1 -0
- package/dist/chunk-UZXLPZ2L.mjs +2 -0
- package/dist/chunk-V6JBMKWF.mjs +2 -0
- package/dist/chunk-V742NCDK.mjs +2 -0
- package/dist/chunk-V74JAM6D.mjs +2 -0
- package/dist/chunk-VDHEDBAB.mjs +2 -0
- package/dist/chunk-VEBGB25V.mjs +2 -0
- package/dist/chunk-VELYVU3A.mjs +2 -0
- package/dist/chunk-VES64LCO.mjs +2 -0
- package/dist/chunk-VETEWFVX.mjs +2 -0
- package/dist/chunk-VF3Y62VK.mjs +2 -0
- package/dist/chunk-VGP5KROX.mjs +2 -0
- package/dist/chunk-VIRT4TFK.mjs +2 -0
- package/dist/chunk-VIZMN4Q2.mjs +2 -0
- package/dist/chunk-VJM4RUJB.mjs +2 -0
- package/dist/chunk-VJSH43OP.mjs +2 -0
- package/dist/chunk-VKMYWXHH.mjs +2 -0
- package/dist/chunk-VLOGVTBN.mjs +2 -0
- package/dist/chunk-VNM34W3P.mjs +6 -0
- package/dist/chunk-VOA6SNPJ.mjs +2 -0
- package/dist/chunk-VOJYSUJD.mjs +2 -0
- package/dist/chunk-VTKU2ORO.mjs +2 -0
- package/dist/chunk-VTWCWUME.mjs +2 -0
- package/dist/chunk-W3CJG5RC.mjs +2 -0
- package/dist/chunk-W62ZF3Q2.mjs +2 -0
- package/dist/chunk-W6NH6B2G.mjs +2 -0
- package/dist/chunk-WC6VMUIK.mjs +2 -0
- package/dist/chunk-WDAMFRJJ.mjs +2 -0
- package/dist/chunk-WFW4CSKV.mjs +2 -0
- package/dist/chunk-WHZXG5N6.mjs +2 -0
- package/dist/chunk-WKSVJIJU.mjs +2 -0
- package/dist/chunk-WLXBPADO.mjs +2 -0
- package/dist/chunk-WN4OXAG5.mjs +2 -0
- package/dist/chunk-WVER5FM4.mjs +2 -0
- package/dist/chunk-WZNZTMJR.mjs +2 -0
- package/dist/chunk-X4UFN43E.mjs +2 -0
- package/dist/chunk-X733HPF2.mjs +2 -0
- package/dist/chunk-XEEJKEQI.mjs +2 -0
- package/dist/chunk-XGTXRCKQ.mjs +2 -0
- package/dist/chunk-XIWQTZU6.mjs +2 -0
- package/dist/chunk-XLZPRBDV.mjs +2 -0
- package/dist/chunk-XMHPUB6B.mjs +2 -0
- package/dist/chunk-XVUEPYCX.mjs +2 -0
- package/dist/chunk-XWSZTMUY.mjs +2 -0
- package/dist/chunk-XWYWVK6R.mjs +2 -0
- package/dist/chunk-XXL3FQK5.mjs +6 -0
- package/dist/chunk-XYUAGPUL.mjs +2 -0
- package/dist/chunk-XZDKTOU3.mjs +2 -0
- package/dist/chunk-XZQYUHTM.mjs +2 -0
- package/dist/chunk-Y5O3DXJD.mjs +2 -0
- package/dist/chunk-Y6JEXTQD.mjs +2 -0
- package/dist/chunk-Y7HPYYAP.mjs +2 -0
- package/dist/chunk-YHSSNW2W.mjs +2 -0
- package/dist/chunk-YIVCB25P.mjs +1 -0
- package/dist/chunk-YJDVYJYU.mjs +2 -0
- package/dist/chunk-YJI2MS37.mjs +2 -0
- package/dist/chunk-YKJON2QN.mjs +2 -0
- package/dist/chunk-YKWH2M5O.mjs +2 -0
- package/dist/chunk-YLAF7S2H.mjs +2 -0
- package/dist/chunk-YOYFW6AJ.mjs +2 -0
- package/dist/chunk-YRHRHQGV.mjs +2 -0
- package/dist/chunk-YSTZAA3H.mjs +2 -0
- package/dist/chunk-YTPGJJHG.mjs +2 -0
- package/dist/chunk-YUSEW5TU.mjs +2 -0
- package/dist/chunk-Z22VZU47.mjs +2 -0
- package/dist/chunk-Z2OHLUED.mjs +2 -0
- package/dist/chunk-Z5QDMA72.mjs +2 -0
- package/dist/chunk-ZB4DGEQK.mjs +2 -0
- package/dist/chunk-ZBJBVAYG.mjs +2 -0
- package/dist/chunk-ZBVDGNZ3.mjs +2 -0
- package/dist/chunk-ZCBJXZ4H.mjs +2 -0
- package/dist/chunk-ZGDH7XPI.mjs +2 -0
- package/dist/chunk-ZHXB2PDG.mjs +2 -0
- package/dist/chunk-ZHXYP44Q.mjs +2 -0
- package/dist/chunk-ZOMZCD5I.mjs +2 -0
- package/dist/chunk-ZONICCSQ.mjs +2 -0
- package/dist/chunk-ZRPQHHSQ.mjs +2 -0
- package/dist/chunk-ZXFZ6EDI.mjs +6 -0
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.d.ts +7 -2
- package/dist/copy-button.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-list.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/default-domains/amazon.d.ts +7 -0
- package/dist/icons/default-domains/amazon.mjs +2 -0
- package/dist/icons/default-domains/chatgpt.d.ts +7 -0
- package/dist/icons/default-domains/chatgpt.mjs +2 -0
- package/dist/icons/default-domains/github.d.ts +7 -0
- package/dist/icons/default-domains/github.mjs +2 -0
- package/dist/icons/default-domains/spotify.d.ts +7 -0
- package/dist/icons/default-domains/spotify.mjs +2 -0
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/facebook.d.ts +1 -1
- package/dist/icons/facebook.mjs +1 -1
- package/dist/icons/github.d.ts +1 -1
- package/dist/icons/github.mjs +1 -1
- package/dist/icons/google.d.ts +1 -1
- package/dist/icons/google.mjs +1 -1
- package/dist/icons/index.d.ts +27 -11
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.d.ts +1 -1
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.d.ts +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-dots.d.ts +1 -1
- package/dist/icons/loading-dots.mjs +1 -1
- package/dist/icons/loading-spinner.d.ts +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/nucleo/arrow-turn-right2.d.ts +6 -0
- package/dist/icons/nucleo/arrow-turn-right2.mjs +2 -0
- package/dist/icons/nucleo/circle-check.d.ts +6 -0
- package/dist/icons/nucleo/circle-check.mjs +2 -0
- package/dist/icons/nucleo/circle-half-dotted-clock.d.ts +6 -0
- package/dist/icons/nucleo/circle-half-dotted-clock.mjs +2 -0
- package/dist/icons/nucleo/circle-info.d.ts +6 -0
- package/dist/icons/nucleo/circle-info.mjs +2 -0
- package/dist/icons/nucleo/circle-warning.d.ts +6 -0
- package/dist/icons/nucleo/circle-warning.mjs +2 -0
- package/dist/icons/nucleo/circle-xmark.d.ts +6 -0
- package/dist/icons/nucleo/circle-xmark.mjs +2 -0
- package/dist/icons/nucleo/flag2.d.ts +6 -0
- package/dist/icons/nucleo/flag2.mjs +2 -0
- package/dist/icons/nucleo/globe.mjs +1 -1
- package/dist/icons/nucleo/globe2.d.ts +6 -0
- package/dist/icons/nucleo/globe2.mjs +2 -0
- package/dist/icons/nucleo/lines-y.d.ts +6 -0
- package/dist/icons/nucleo/lines-y.mjs +2 -0
- package/dist/icons/nucleo/magnifier.d.ts +6 -0
- package/dist/icons/nucleo/magnifier.mjs +2 -0
- package/dist/icons/nucleo/pen-writing.d.ts +6 -0
- package/dist/icons/nucleo/pen-writing.mjs +2 -0
- package/dist/icons/nucleo/refresh2.d.ts +6 -0
- package/dist/icons/nucleo/refresh2.mjs +2 -0
- package/dist/icons/product-hunt.d.ts +1 -1
- package/dist/icons/product-hunt.mjs +1 -1
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/twitter.d.ts +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/unsplash.d.ts +1 -1
- package/dist/icons/unsplash.mjs +1 -1
- package/dist/icons/youtube.d.ts +1 -1
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +28 -11
- package/dist/index.mjs +1 -1
- package/dist/input-select.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/status-badge.d.ts +95 -0
- package/dist/status-badge.mjs +2 -0
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/wordmark.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as N}from"./chunk-BKZC76TM.mjs";import{a as x}from"./chunk-YP4Q5KOH.mjs";import{a as v}from"./chunk-AUMQXTR2.mjs";import{a as b}from"./chunk-UAVCY7CY.mjs";import{a as y}from"./chunk-TK34LANA.mjs";import{a as h}from"./chunk-MO6CVTQA.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-34A7ZDQZ.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),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:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("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"})]}),t("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(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("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(A,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("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:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(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:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as _}from"./chunk-JZHKXZTG.mjs";import{a as R}from"./chunk-JKIBJN72.mjs";import{a as W}from"./chunk-IQLNVGI7.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-PV6IBOYS.mjs";import{a as E}from"./chunk-E4XRNLGV.mjs";import{a as V}from"./chunk-AUMQXTR2.mjs";import{a as k}from"./chunk-LCP42JFU.mjs";import{b as P}from"./chunk-WC6VMUIK.mjs";import{c as h,g as N,i as n,j as y}from"./chunk-34A7ZDQZ.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,Q=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:g}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{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),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:g,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className: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",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(p,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.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]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?t(p,{href:h,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"}):b?null:u(ne,{children:[t(p,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-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 ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as t}from"./chunk-G5YTEVMC.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-K2VHT6J5.mjs";import{f as h}from"./chunk-PV6IBOYS.mjs";import{b as u}from"./chunk-G3CJOJZC.mjs";import{c,g,i as t}from"./chunk-VIZMN4Q2.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-K4MP745I.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as m,d as g,g as f}from"./chunk-34A7ZDQZ.mjs";import{Link2 as y}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(),s=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(m(s),500),i=P(()=>g(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,f,{revalidateOnFocus:!1}),{title:d,description:n,image:u}=N||{},o=W(null);E(()=>{!t&&o.current&&o.current.select()},[t]);let{isMobile:L}=b();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{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:s,onChange:c=>x.replace(`/tools/metatags${c.target.value.length>0?`?url=${c.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(v,{})}),u?e("img",{src:u,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[i?e("p",{className:"text-sm text-[#536471]",children:i}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),d?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:d}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),n?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:n}):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(y,{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(v,{})})})]})}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{h as o}from"./chunk-G5YTEVMC.mjs";import{cva as m}from"class-variance-authority";import{useState as f}from"react";import{toast as d}from"sonner";import{jsx as t,jsxs as v}from"react/jsx-runtime";var g=m("group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-gray-100 hover:scale-105 hover:bg-blue-100 active:scale-95 text-gray-700 hover:text-blue-800",neutral:"bg-transparent hover:bg-gray-200 active:bg-gray-300"}},defaultVariants:{variant:"default"}});function w({variant:n="default",value:s,className:i,icon:c}){let[p,a]=f(!1),l=c||r;return v("button",{onClick:u=>{u.stopPropagation(),a(!0),navigator.clipboard.writeText(s).then(()=>{d.success("Copied to clipboard!")}),setTimeout(()=>a(!1),3e3)},className:o(g({variant:n}),i),children:[t("span",{className:"sr-only",children:"Copy"}),p?t(e,{className:"h-3.5 w-3.5"}):t(l,{className:"h-3.5 w-3.5"})]})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-VIZMN4Q2.mjs";import{cva as d}from"class-variance-authority";import*as i from"react";import{jsx as s}from"react/jsx-runtime";var o=d("relative w-full rounded-lg border px-4 py-6 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive border-red-500 dark:border-red-500"}},defaultVariants:{variant:"default"}}),n=i.forwardRef(({className:e,variant:t,...r},l)=>s("div",{ref:l,role:"alert",className:a(o({variant:t}),e),...r}));n.displayName="Alert";var c=i.forwardRef(({className:e,...t},r)=>s("h5",{ref:r,className:a("text-md mb-2 font-medium leading-none tracking-tight",e),...t}));c.displayName="AlertTitle";var m=i.forwardRef(({className:e,...t},r)=>s("div",{ref:r,className:a("text-sm [&_p]:leading-relaxed",e),...t}));m.displayName="AlertDescription";export{n as a,c as b,m as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as r}from"./chunk-GNKRA4PT.mjs";import{LayoutGroup as l,motion as u}from"framer-motion";import{useId as m}from"react";import{jsx as o,jsxs as p}from"react/jsx-runtime";function x({options:s,selected:a,onSelect:i}){let n=m();return o("div",{className:"flex text-sm",children:o(l,{id:n,children:s.map(({id:t,label:e})=>p("div",{className:"relative",children:[o("button",{type:"button",onClick:()=>i==null?void 0:i(t),className:r("px-3 py-4 transition-colors duration-75",t===a?"text-black":"text-gray-400 hover:text-gray-500"),"aria-selected":t===a,children:e}),t===a&&o(u.div,{layoutId:"indicator",transition:{duration:.1},className:"absolute bottom-0 w-full px-1.5",children:o("div",{className:"h-0.5 bg-black"})})]},t))})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as o}from"./chunk-GNKRA4PT.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as d,d as p,f as s}from"./chunk-TU3W6DKD.mjs";import{a as n,c as l,d as f}from"./chunk-735BXUUD.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function h({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:[m("div",{className:"p-5",children:[e("p",{className:r(n,"mb-2"),children:"Profiles"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:i,title:t,description:a,href:o})=>e(l,{href:s(o,c),icon:e(f,{icon:i}),title:t,description:a}))})]}),m("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:r(n,"mb-2"),children:"SDKs"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:i,iconClassName:t,title:a,href:o})=>e(l,{href:s(o,c),icon:e(i,{className:r("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:a,showArrow:!0},o))})]})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-UJXSUQRH.mjs";import{a as s}from"./chunk-4G6ZFLKQ.mjs";import{i as r}from"./chunk-VIZMN4Q2.mjs";import{cva as y}from"class-variance-authority";import{forwardRef as x}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var h=y("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),m=x(({text:a,variant:e="primary",className:i,loading:g,icon:d,shortcut:t,disabledTooltip:b,...n},p)=>b?o(l,{content:b,children:u("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},i),children:[d,o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):u("button",{ref:p,type:n.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 rounded-md border px-4 text-sm",n.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":h({variant:e}),i),disabled:n.disabled||g,...n,children:[g?o(s,{}):d||null,a&&o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:t})]}));m.displayName="Button";export{h as a,m as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as l}from"./chunk-KAINQA56.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as _}from"./chunk-53HOOCMJ.mjs";import{a as R}from"./chunk-LN5OM5KW.mjs";import{a as W}from"./chunk-NROYQRHQ.mjs";import{a as M,d as S,e as L,f as w}from"./chunk-QBCNPJXG.mjs";import{a as E}from"./chunk-E4XRNLGV.mjs";import{a as V}from"./chunk-AUMQXTR2.mjs";import{a as k}from"./chunk-LCP42JFU.mjs";import{b as P}from"./chunk-RH37AB4X.mjs";import{c as h,g as N,i as n,j as y}from"./chunk-34A7ZDQZ.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as X}from"class-variance-authority";import p from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{useCallback as G,useEffect as T,useState as Z}from"react";function H(r){let[e,c]=Z(!1),a=G(()=>{c(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),T(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as $,Home as z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as K,useContext as Y,useState as q}from"react";import{toast as I}from"sonner";import{jsx as o,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,Q=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),I.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),I.error("Failed to copy to clipboard.")}}function A({variant:r="full",isInApp:e,className:c}){let{domain:a="dub.co"}=F(),{theme:g}=Y(x),[b,d]=q(!1),s=K(m=>{m.preventDefault(),d(!0)},[]);return D(l.Root,{open:b,onOpenChange:d,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:s,className:"max-w-fit",children:r==="full"?o(E,{className:c}):o(k,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",c)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:m=>{m.stopPropagation(),d(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(v,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(J),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(Q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),e||a!="dub.co"?o(v,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{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),...e})}import{Fragment as ne,jsx as t,jsxs as u}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Product",content:_,childItems:M},{name:"Solutions",content:W,childItems:S},{name:"Pricing",href:"/pricing"},{name:"Resources",content:R,childItems:L}],O=X(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Be({theme:r="light"}){let{domain:e="dub.co"}=ee(),c=H(80),a=te(),{data:g,isLoading:b}=re(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:n("-z-1 absolute inset-0 border-transparent transition-all")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:w("/",e),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(A,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className: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",a&&y.includes(a)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",c&&"h-14 w-screen rounded-none drop-shadow-none")})}),ae.map(({name:d,href:s,content:m})=>{let C=s===`/${a}`||s==="/"&&a===null;return u(i.Item,{children:[t(ie,{trigger:!!m,children:s!==void 0?t(p,{id:`nav-${s}`,href:w(s,e)??"/test",className:O({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${s})`})}},children:d}):t("button",{className:n(O({isActive:C}),"cursor-default"),children:d})}),m&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(m,{domain:e})})]},d)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.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]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?t(p,{href:h,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"}):b?null:u(ne,{children:[t(p,{href:`${h}/login`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(p,{href:`${h}/register`,...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-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 ie({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,ae as c,Be as d,A as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-2XHWKQKH.mjs";import{f as h}from"./chunk-QBCNPJXG.mjs";import{b as u}from"./chunk-T74CSMLF.mjs";import{c,g,i as t}from"./chunk-34A7ZDQZ.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f}from"./chunk-K4MP745I.mjs";import{i}from"./chunk-VIZMN4Q2.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-4ID6OOZM.mjs";import{f as h}from"./chunk-QBCNPJXG.mjs";import{b as u}from"./chunk-T74CSMLF.mjs";import{c,g,i as t}from"./chunk-34A7ZDQZ.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-E7OTSLEQ.mjs";import{a as T}from"./chunk-JT4JKCTX.mjs";import{a as F}from"./chunk-6F5Y3CRC.mjs";import{a as C}from"./chunk-CVVGDWRL.mjs";import{a as p}from"./chunk-K4MP745I.mjs";import{i as O}from"./chunk-KAINQA56.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.from),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.from):S(t==null?void 0:t.from)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as u}from"./chunk-G3CJOJZC.mjs";import{e as y,i as g}from"./chunk-VIZMN4Q2.mjs";import{AnimatePresence as v,motion as b}from"framer-motion";import{X as k}from"lucide-react";import{isValidElement as L}from"react";import{Fragment as C,jsx as t,jsxs as s}from"react/jsx-runtime";function E({filters:l,activeFilters:n,onRemove:x,onRemoveAll:h,className:w}){return t(u,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:s("div",{className:g("flex w-full flex-wrap items-start gap-4",w),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(v,{children:n==null?void 0:n.map(({key:a,value:o})=>{var d,p,c;if(a==="loader")return t(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${o}`);let e=l.find(r=>r.key===a);if(!e)throw new Error("Filter.List received an activeFilter without a corresponding filter");let i=(d=e.options)==null?void 0:d.find(r=>typeof r.value=="string"&&typeof o=="string"?r.value.toLowerCase()===o.toLowerCase():r.value===o),m=(i==null?void 0:i.icon)??((p=e.getOptionIcon)==null?void 0:p.call(e,o,{key:e.key,option:i}))??e.icon,N=(i==null?void 0:i.label)??((c=e.getOptionLabel)==null?void 0:c.call(e,o,{key:e.key,option:i}))??o;return s(b.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[s("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:f(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?s(C,{children:[t("span",{className:"shrink-0 text-gray-600",children:f(m)?m:t(m,{className:"h-4 w-4"})}),y(N,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>x(a),children:t(k,{className:"h-3.5 w-3.5"})})]},a)})})}),(n==null?void 0:n.length)!==0&&t("button",{type:"button",className:"whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:h,children:"Clear Filters"})]})})}var f=l=>L(l);export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as t}from"./chunk-G5YTEVMC.mjs";import{jsx as r}from"react/jsx-runtime";function s({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-34A7ZDQZ.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function r({className:L}){return a("svg",{className:t("h-full w-full",L),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"black"}),C("path",{d:"M173.607 97.7454C176.886 87.8002 175.751 76.9142 170.492 67.8719C162.584 54.0098 146.691 46.8792 131.17 50.2298C122.423 40.4311 109.151 36.0738 96.3504 38.7981C83.5497 41.5224 73.1632 50.9148 69.1005 63.4398C58.9049 65.5455 50.1051 71.9745 44.9529 81.0819C36.9593 94.9215 38.7736 112.379 49.4395 124.252C46.1479 134.192 47.2727 145.08 52.5258 154.125C60.4432 167.992 76.3466 175.122 91.8764 171.767C98.784 179.601 108.708 184.058 119.11 183.999C135.02 184.014 149.114 173.67 153.974 158.414C164.168 156.304 172.967 149.876 178.122 140.771C186.019 126.956 184.197 109.593 173.607 97.7454ZM119.11 174.444C112.76 174.454 106.609 172.213 101.735 168.112L102.593 167.623L131.456 150.844C132.917 149.981 133.818 148.406 133.827 146.7V105.717L146.03 112.826C146.152 112.889 146.237 113.006 146.258 113.143V147.103C146.227 162.19 134.091 174.412 119.11 174.444ZM60.756 149.348C57.5714 143.81 56.428 137.318 57.5268 131.015L58.3841 131.533L87.2755 148.312C88.7311 149.172 90.535 149.172 91.9907 148.312L127.283 127.82V142.009C127.277 142.158 127.203 142.296 127.083 142.383L97.849 159.363C84.8581 166.9 68.2607 162.419 60.756 149.348ZM53.1545 86.032C56.3612 80.4583 61.4227 76.207 67.443 74.0308V108.567C67.4209 110.266 68.3188 111.843 69.7863 112.682L104.907 133.087L92.7051 140.196C92.5711 140.267 92.4105 140.267 92.2764 140.196L63.0993 123.244C50.134 115.676 45.6875 98.9734 53.1545 85.8881V86.032ZM153.403 109.488L118.167 88.8812L130.341 81.8013C130.475 81.7297 130.636 81.7297 130.77 81.8013L159.947 98.7815C169.053 104.074 174.307 114.185 173.432 124.737C172.557 135.289 165.712 144.383 155.86 148.082V113.546C155.809 111.851 154.875 110.309 153.403 109.488ZM165.548 91.0973L164.691 90.5792L135.856 73.6566C134.392 72.7912 132.577 72.7912 131.113 73.6566L95.8486 94.1479V79.9594C95.8333 79.8125 95.8991 79.6689 96.02 79.5853L125.197 62.6339C134.326 57.3376 145.672 57.8319 154.312 63.9022C162.953 69.9726 167.331 80.5253 165.548 90.9821V91.0973ZM89.1901 116.251L76.9877 109.171C76.8644 109.096 76.7807 108.969 76.7591 108.826V74.9517C76.773 64.3439 82.8721 54.6994 92.4112 50.201C101.95 45.7026 113.211 47.1605 121.311 53.9424L120.453 54.4316L91.5906 71.2103C90.1293 72.0736 89.2279 73.6485 89.2187 75.3546L89.1901 116.251ZM95.82 101.861L111.537 92.7377L127.283 101.861V120.107L111.595 129.231L95.8486 120.107L95.82 101.861Z",fill:"url(#paint0_radial_39_26)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_26",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40 38) rotate(45.5947) scale(204.365 204.365)",children:[C("stop",{stopColor:"white",stopOpacity:"0.85"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as z}from"./chunk-6UK2HWP7.mjs";import{a as O}from"./chunk-K4MP745I.mjs";import{a as H,b as K}from"./chunk-5LMB6HQS.mjs";import{a as A}from"./chunk-ABWQM67P.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{j as R,l as w}from"./chunk-GNKRA4PT.mjs";import{Command as c,useCommandState as B}from"cmdk";import{Check as V,ChevronDown as Q,ListFilter as Z}from"lucide-react";import{forwardRef as q,isValidElement as G,useCallback as v,useEffect as T,useImperativeHandle as J,useRef as E,useState as k}from"react";import{Fragment as W,jsx as n,jsxs as m}from"react/jsx-runtime";function ce({filters:e,onSelect:o,onRemove:a,onOpenFilter:l,activeFilters:r,askAI:i,children:p,className:y}){var D;let{isMobile:h}=O(),d=E(null),P=E(),[N,f]=k(!1),[g,S]=k(""),[u,I]=k(null),C=v(()=>{S(""),I(null)},[]);T(()=>{N||C()},[N]);let s=u?e.find(({key:t})=>t===u):null,$=v(t=>{d.current&&(P.current={width:d.current.scrollWidth,height:d.current.scrollHeight}),S(""),I(t),l==null||l(t)},[]),L=v(t=>{var b;s&&(((b=r==null?void 0:r.find(({key:x})=>x===u))==null?void 0:b.value)===t?a(s.key):o(s.key,t)),f(!1)},[r,s,i]);return n(z,{openPopover:N,setOpenPopover:f,onEscapeKeyDown:t=>{u&&(t.preventDefault(),C())},content:n(K,{width:!h,height:!0,className:"rounded-[inherit]",style:{transform:"translateZ(0)"},children:m(c,{loop:!0,children:[n(U,{placeholder:`${(s==null?void 0:s.label)||"Filter"}...`,value:g,onValueChange:S,onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!g)&&(t.preventDefault(),t.stopPropagation(),u?C():f(!1))},emptySubmit:t=>{t.preventDefault(),t.stopPropagation(),i?(o("ai",s?`${s.label} ${g}`:g),f(!1)):L(g)}}),n(X,{ref:d,children:m(c.List,{className:w("flex w-full flex-col gap-1 p-1",s?"min-w-[100px]":"min-w-[180px]"),children:[s?((D=s.options)==null?void 0:D.map(t=>{var x;let b=((x=r==null?void 0:r.find(({key:j})=>j===u))==null?void 0:x.value)===t.value;return n(F,{filter:s,option:t,right:b?n(V,{className:"h-4 w-4"}):t.right,onSelect:()=>L(t.value)},t.value)}))??n(c.Loading,{children:n("div",{className:"-m-1 flex items-center justify-center",style:P.current,children:n(A,{})})}):e.map(t=>m(W,{children:[n(F,{filter:t,onSelect:()=>$(t.key)},t.key),t.separatorAfter&&n(c.Separator,{className:"-mx-1 my-1 border-b border-gray-200"})]})),(!s||s.options)&&n(Y,{search:g,askAI:i})]})},u)]})}),children:m("button",{type:"button",className:w("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",y),children:[n(Z,{className:"h-4 w-4 shrink-0"}),n("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:p??"Filter"}),n("div",{className:"ml-1",children:r!=null&&r.length?n("div",{className:"flex h-4 w-4 items-center justify-center rounded-full bg-black text-[0.625rem] text-white",children:r.length}):n(Q,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})})]})})}var U=e=>{let o=B(a=>a.filtered.count===0);return n(c.Input,{...e,size:1,className:"w-full rounded-t-lg border-0 border-b border-gray-200 px-4 py-3 text-sm ring-0 placeholder:text-gray-400 focus:border-gray-200 focus:ring-0",onKeyDown:a=>{var l,r;(l=e.onKeyDown)==null||l.call(e,a),a.key==="Enter"&&o&&((r=e.emptySubmit)==null||r.call(e,a))}})},X=q(({children:e},o)=>{let a=E(null);J(o,()=>a.current);let[l,r]=k(1),i=v(()=>{if(!a.current)return;let{scrollTop:y,scrollHeight:h,clientHeight:d}=a.current;r(h===d?1:y/(h-d))},[]),p=H(a);return T(i,[p]),m(W,{children:[n("div",{className:"scrollbar-hide max-h-[50vh] w-screen overflow-y-scroll sm:w-auto",ref:a,onScroll:i,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 F({filter:e,option:o,right:a,onSelect:l}){var p,y;let r=o?o.icon??((p=e.getOptionIcon)==null?void 0:p.call(e,o.value,{key:e.key,option:o}))??e.icon:e.icon,i=o?o.label??((y=e.getOptionLabel)==null?void 0:y.call(e,o.value,{key:e.key,option:o})):e.label;return m(c.Item,{className:w("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"),onSelect:l,value:i,children:[n("span",{className:"shrink-0 text-gray-600",children:_(r)?r:n(r,{className:"h-4 w-4"})}),R(i,48),n("div",{className:"ml-1 flex shrink-0 grow justify-end text-gray-500",children:a})]})}var Y=({search:e,askAI:o})=>o&&e?m(c.Empty,{className:"flex min-w-[180px] items-center space-x-2 rounded-md bg-gray-100 px-3 py-2",children:[n(M,{className:"h-4 w-4"}),m("p",{className:"text-center text-sm text-gray-600",children:["Ask AI ",m("span",{className:"text-black",children:['"',e,'"']})]})]}):n(c.Empty,{className:"p-2 text-center text-sm text-gray-400",children:"No matches"}),_=e=>G(e);export{ce as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-34A7ZDQZ.mjs";import{motion as l}from"framer-motion";import{forwardRef as R,useRef as b}from"react";import{useEffect as h,useState as v}from"react";function p(e){let[n,r]=v(),s=([t])=>{r(t)};return h(()=>{let t=e==null?void 0:e.current;if(!t)return;let i=new ResizeObserver(s);return i.observe(t),()=>i.disconnect()},[e]),n}import{jsx as u}from"react/jsx-runtime";var C=R(({width:e=!1,height:n=!1,className:r,transition:s,children:t,...i},f)=>{var m,c;let d=b(null),o=p(d);return u(l.div,{ref:f,className:a("overflow-hidden",r),animate:{width:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.width)??"auto":"auto",height:n?((c=o==null?void 0:o.contentRect)==null?void 0:c.height)??"auto":"auto"},transition:s??{type:"spring",duration:.3},...i,children:u("div",{ref:d,className:a(n&&"h-max",e&&"w-max"),children:t})})});C.displayName="AnimatedSizeContainer";export{p as a,C as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as c}from"./chunk-WDAMFRJJ.mjs";import{a as n}from"./chunk-GV2NLM3E.mjs";import{a as s}from"./chunk-IGIB6XZB.mjs";import{a as o}from"./chunk-GYE7FFDN.mjs";import{i as r}from"./chunk-KAINQA56.mjs";import{cva as g}from"class-variance-authority";import{jsx as f,jsxs as m}from"react/jsx-runtime";var d=g("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),u={neutral:o,success:n,pending:s,error:c};function B({className:i,variant:e,icon:t,children:l,...p}){let a=t!==null?t??u[e??"neutral"]:null;return m("span",{className:r(d({variant:e}),i),...p,children:[a&&f(a,{className:"h-3 w-3 shrink-0"}),l]})}export{d as a,B as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-34A7ZDQZ.mjs";import{jsx as t,jsxs as o}from"react/jsx-runtime";function i({className:r}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"256",height:"256",viewBox:"0 0 256 256",className:e("text-[#ff0000]",r),children:[t("defs",{}),t("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"#ff0000",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:t("path",{d:"M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z M 36 58.5 v -27 L 59.382 45 L 36 58.5 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"currentColor",fillRule:"nonzero",opacity:1},transform:" matrix(1 0 0 1 0 0) ",strokeLinecap:"round"})})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-XLMDO4ZL.mjs";import{a as s}from"./chunk-LNFALGD4.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{cva as y}from"class-variance-authority";import{forwardRef as x}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var h=y("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),m=x(({text:a,variant:e="primary",className:i,loading:g,icon:d,shortcut:t,disabledTooltip:b,...n},p)=>b?o(l,{content:b,children:u("div",{className:r("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},i),children:[d,o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):u("button",{ref:p,type:n.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 rounded-md border px-4 text-sm",n.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":h({variant:e}),i),disabled:n.disabled||g,...n,children:[g?o(s,{}):d||null,a&&o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:t})]}));m.displayName="Button";export{h as a,m as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-KDYZDWOD.mjs";import{f as h}from"./chunk-BJDSBLOO.mjs";import{b as u}from"./chunk-G3CJOJZC.mjs";import{c,g,i as t}from"./chunk-VIZMN4Q2.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as e}from"./chunk-EHYVEIOL.mjs";import{a as r}from"./chunk-BKZ6TNZC.mjs";import{i as o}from"./chunk-VIZMN4Q2.mjs";import{cva as m}from"class-variance-authority";import{useState as f}from"react";import{toast as d}from"sonner";import{jsx as t,jsxs as v}from"react/jsx-runtime";var g=m("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-gray-100 hover:scale-105 hover:bg-blue-100 active:scale-95 text-gray-700 hover:text-blue-800",neutral:"bg-transparent hover:bg-gray-200 active:bg-gray-300"}},defaultVariants:{variant:"default"}});function w({variant:n="default",value:s,className:i,icon:c}){let[p,a]=f(!1),l=c||r;return v("button",{onClick:u=>{u.stopPropagation(),a(!0),navigator.clipboard.writeText(s).then(()=>{d.success("Copied to clipboard!")}),setTimeout(()=>a(!1),3e3)},className:o(g({variant:n}),i),children:[t("span",{className:"sr-only",children:"Copy"}),p?t(e,{className:"h-3.5 w-3.5"}):t(l,{className:"h-3.5 w-3.5"})]})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as m}from"./chunk-6UN3Z7FV.mjs";import{l as i}from"./chunk-GNKRA4PT.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as N}from"./chunk-GLHMHUOS.mjs";import{a as x}from"./chunk-BJDSBLOO.mjs";import{a as v}from"./chunk-KU2DU4OR.mjs";import{a as b}from"./chunk-PNA3V7R5.mjs";import{a as y}from"./chunk-2XM6VYZJ.mjs";import{a as h}from"./chunk-TTN7XF7I.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-VIZMN4Q2.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),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:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("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"})]}),t("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(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("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(A,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("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:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(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:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-Y5O3DXJD.mjs";import{a as s,i as m}from"./chunk-GNKRA4PT.mjs";import*as n from"@radix-ui/react-tooltip";import d from"linkify-react";import{HelpCircle as x}from"lucide-react";import u from"next/link";import{useState as f}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function P({children:e}){return t(n.Provider,{delayDuration:100,children:e})}function p({children:e,content:o,side:r="top"}){let[i,l]=f(!1);return a(n.Root,{open:i,onOpenChange:l,children:[t(n.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:e}),t(n.Portal,{children:t(n.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?t("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function k({title:e,cta:o,href:r,target:i,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[t("p",{className:"text-sm text-gray-700",children:e}),o&&(r?t(u,{href:r,...i?{target:i}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function w({title:e,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",t("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function C({children:e}){return t("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:t(d,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function R(e){return t(p,{...e,children:t(x,{className:"h-4 w-4 text-gray-500"})})}function B({value:e,unit:o="total clicks",children:r,lastClicked:i}){return(!e||e<1e3)&&!i?r:t(p,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(e||0,{full:!0})," ",o]}),i&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",m(i,{withAgo:!0})]})]}),children:r})}function L({children:e,content:o,...r}){return t(p,{content:o,...r,children:t("div",{className:"flex cursor-pointer items-center",children:t(c,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function O({tooltipContent:e,children:o,...r}){return t(p,{content:e,children:t("div",{className:"flex cursor-pointer items-center",children:t("button",{type:"button",...r,children:o})})})}export{P as a,p as b,k as c,w as d,C as e,R as f,B as g,L as h,O as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as v}from"./chunk-VIZMN4Q2.mjs";import{jsx as h}from"react/jsx-runtime";function s({className:c}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:v("text-[#0077b5]",c),children:h("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-6GKC3OJK.mjs";import{f as h}from"./chunk-TWHF5JOO.mjs";import{b as u}from"./chunk-G3CJOJZC.mjs";import{c,g,i as t}from"./chunk-VIZMN4Q2.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-CPFMFAU2.mjs";import{a as F}from"./chunk-U6JXWMO7.mjs";import{a as H}from"./chunk-NQSIXI3Q.mjs";import{a as C}from"./chunk-JU6DJTT2.mjs";import{a as p}from"./chunk-K4MP745I.mjs";import{i as O}from"./chunk-34A7ZDQZ.mjs";import{enUS as W}from"date-fns/locale";import{useEffect as N,useMemo as q,useState as E}from"react";import{format as M}from"date-fns";import{createContext as J}from"react";var I=J({isOpen:!1,setIsOpen:()=>{}}),K=()=>{let r=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(r,{hour:"numeric"}).format();return Number.isInteger(Number(l))},k=(r,l,f=!1)=>{let i=!K(),o;return f?o=i?M(r,"d MMM, yyyy h:mm a",{locale:l}):M(r,"d MMM, yyyy HH:mm",{locale:l}):o=M(r,"d MMM, yyyy",{locale:l}),o},U=(r,l)=>{let{toYear:f,fromYear:i,fromMonth:o,toMonth:g,fromDay:P,toDay:y}=l;if(r&&r.length>0){let w=i,b=f;r.forEach(e=>{var v,R,$,c,x,h;if("date"in e){let d=e.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${e.label} is before fromYear ${w}.`);if(f&&d>f)throw new Error(`Preset ${e.label} is after toYear ${b}.`);if(o&&e.date.getMonth()<o.getMonth())throw new Error(`Preset ${e.label} is before fromMonth ${o}.`);if(g&&e.date.getMonth()>g.getMonth())throw new Error(`Preset ${e.label} is after toMonth ${g}.`);if(P&&e.date.getDate()<P.getDate())throw new Error(`Preset ${e.label} is before fromDay ${P}.`);if(y&&e.date.getDate()>y.getDate())throw new Error(`Preset ${e.label} is after toDay ${M(y,"MMM dd, yyyy")}.`)}if("dateRange"in e){let d=(v=e.dateRange.from)==null?void 0:v.getFullYear(),s=(R=e.dateRange.to)==null?void 0:R.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${e.label}'s 'from' is before fromYear ${w}.`);if(s&&f&&s>f)throw new Error(`Preset ${e.label}'s 'to' is after toYear ${b}.`);if(o){let n=($=e.dateRange.from)==null?void 0:$.getMonth();if(n&&n<o.getMonth())throw new Error(`Preset ${e.label}'s 'from' is before fromMonth ${M(o,"MMM, yyyy")}.`)}if(g){let n=(c=e.dateRange.to)==null?void 0:c.getMonth();if(n&&n>g.getMonth())throw new Error(`Preset ${e.label}'s 'to' is after toMonth ${M(g,"MMM, yyyy")}.`)}if(P){let n=(x=e.dateRange.from)==null?void 0:x.getDate();if(n&&n<P.getDate())throw new Error(`Preset ${e.dateRange.from}'s 'from' is before fromDay ${M(P,"MMM dd, yyyy")}.`)}if(y){let n=(h=e.dateRange.to)==null?void 0:h.getDate();if(n&&n>y.getDate())throw new Error(`Preset ${e.label}'s 'to' is after toDay ${M(y,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as Z}from"react/jsx-runtime";var X=({value:r,defaultValue:l,presetId:f,onChange:i,presets:o,disabled:g,disableNavigation:P,disabledDays:y,showYearNavigation:w=!1,locale:b=W,placeholder:e="Select date range",hasError:v,align:R="center",className:$,...c})=>{let{isDesktop:x}=p(),[h,d]=E(!1),[s,n]=E(o&&f?o==null?void 0:o.find(({id:a})=>a===f):void 0),[t,u]=E((s==null?void 0:s.dateRange)??r??l??void 0),[A,S]=E(t==null?void 0:t.from),L=q(()=>t,[h]);N(()=>{u(r)},[r]),N(()=>{let a=o==null?void 0:o.find(({id:Y})=>Y===f);n(a),u((a==null?void 0:a.dateRange)??r??l)},[o,f]),N(()=>{h?t&&S(t.from):S(t==null?void 0:t.from)},[h]);let B=(a,Y)=>{let D=(t==null?void 0:t.from)&&(t==null?void 0:t.to)?{from:Y}:a;u(D),n(void 0),(D==null?void 0:D.from)&&(D==null?void 0:D.to)&&(i==null||i(D),d(!1))},Q=a=>{u(a.dateRange),n(a),i==null||i(a.dateRange,a),d(!1)},V=()=>{u(L),d(!1)},z=a=>{a||V(),d(a)},G=q(()=>t?`${t.from?k(t.from,b):""} - ${t.to?k(t.to,b):""}`:null,[t,b]);return m(I.Provider,{value:{isOpen:h,setIsOpen:d},children:m(C,{align:R,openPopover:h,setOpenPopover:z,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:Z("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[o&&o.length>0&&m("div",{className:O("relative flex h-16 w-full items-center sm:h-full sm:w-44","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(F,{currentValue:t,presets:o,onSelect:Q})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(T,{mode:"range",selected:t,onSelect:B,month:A,onMonthChange:S,numberOfMonths:x?2:1,disabled:y,disableNavigation:P,showYearNavigation:w,locale:b,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...c})})]})}),children:m(H,{placeholder:e,disabled:g,className:$,hasError:v,"aria-required":c.required||c["aria-required"],"aria-invalid":c["aria-invalid"],"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],children:(s==null?void 0:s.label)??G})})})};function ge({presets:r,...l}){return r&&U(r,l),m(X,{presets:r,...l})}export{I as a,ge as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-JFSNPBO7.mjs";import{a as k}from"./chunk-32C65ISH.mjs";import{a as y}from"./chunk-CZSSD6PV.mjs";import{a as m}from"./chunk-D7SRRREC.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as u}from"./chunk-JBURS7BX.mjs";import{a as f}from"./chunk-BOCPUR5Z.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as p}from"./chunk-3KFNNXJ6.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as c}from"./chunk-KDNSFAET.mjs";import{a as l}from"./chunk-2W2M7KTU.mjs";import{a as d}from"./chunk-HYPLE4VW.mjs";import{a as n}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as o}from"./chunk-NPWONPKN.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as r}from"./chunk-2LBJI2KO.mjs";import{a as s}from"./chunk-TNAH7N5Q.mjs";import{a as t}from"./chunk-ZJICX3BL.mjs";var P=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:p,href:"/features/analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:g,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:m,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:k,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:x,href:"/docs/api-reference/introduction"}],v=[{icon:r,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:n,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:o,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],T=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:y,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],B=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/docs/quickstart/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/docs/quickstart/python"},{icon:t,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/docs/quickstart/go"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/docs/quickstart/ruby"}],E=[{icon:u,title:"Help Center",href:"/help"},{icon:l,title:"Docs",href:"/docs"},{icon:c,title:"Blog",href:"/blog"},{icon:d,title:"Changelog",href:"/changelog"},{icon:C,title:"Customers",href:"/customers"},{icon:f,title:"Brand",href:"/brand"}];var L=(e,S)=>S==="dub.co"?e:`https://dub.co${e}`;export{P as a,v as b,T as c,B as d,E as e,L as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-JFSNPBO7.mjs";import{a as k}from"./chunk-32C65ISH.mjs";import{a as y}from"./chunk-CZSSD6PV.mjs";import{a as m}from"./chunk-D7SRRREC.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as u}from"./chunk-JBURS7BX.mjs";import{a as f}from"./chunk-BOCPUR5Z.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as c}from"./chunk-KDNSFAET.mjs";import{a as l}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as d}from"./chunk-3KFNNXJ6.mjs";import{a as s}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as o}from"./chunk-NPWONPKN.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as r}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as t}from"./chunk-ZJICX3BL.mjs";var P=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:d,href:"/features/analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:g,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:m,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:k,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:x,href:"/docs/api-reference/introduction"}],v=[{icon:r,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:s,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:o,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],T=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:y,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],B=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:t,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"}],E=[{icon:u,title:"Help Center",href:"/help"},{icon:l,title:"Docs",href:"/docs"},{icon:c,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:C,title:"Customers",href:"/customers"},{icon:f,title:"Brand",href:"/brand"}];var L=(e,S)=>S==="dub.co"?e:`https://dub.co${e}`;export{P as a,v as b,T as c,B as d,E as e,L as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-73UNXSIT.mjs";import{a as o}from"./chunk-QC6GZ7KR.mjs";import{h as s,i as e}from"./chunk-G5YTEVMC.mjs";import{jsx as m}from"react/jsx-runtime";function f({apexDomain:r,className:t}){return r?m(l,{src:`${void 0}${r}`,alt:r,className:s("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20}):m("div",{className:s("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:m(o,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as f}from"./chunk-5VJPMVYR.mjs";import{i as c}from"./chunk-34A7ZDQZ.mjs";import{Command as a}from"cmdk";import{Lock as x}from"lucide-react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var w=({presets:g,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,D=e=>"date"in e,o=(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&&o(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&o(m,d)&&(u=!0),i&&u},T=e=>{if(P(e)){let t=r;return t&&y(t,e.dateRange)}else if(D(e)){let t=r;return t&&o(t,e.date)}return!1};return s(a,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:s(a.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:g.map((e,t)=>R(a.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-sm text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",T(e)&&"font-semibold text-gray-800"),children:[s("span",{children:e.label}),e.requiresUpgrade&&s(x,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&s(f,{side:"bottom",content:e.tooltipContent,children:s("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-34A7ZDQZ.mjs";import{jsx as r}from"react/jsx-runtime";function h({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as r}from"./chunk-VIZMN4Q2.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as v}from"./chunk-VNM34W3P.mjs";import{a as y}from"./chunk-QBCNPJXG.mjs";import{a as x}from"./chunk-AUMQXTR2.mjs";import{a as h}from"./chunk-UAVCY7CY.mjs";import{a as b}from"./chunk-TK34LANA.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-34A7ZDQZ.mjs";import m from"@vercel/analytics";import _ from"next/image";import s from"next/link";import{useParams as C}from"next/navigation";import{useEffect as T,useState as N}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:y.map(({title:a,href:o})=>({name:a,href:o})),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:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=C(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(x,{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:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(v,{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."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("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(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("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"})]}),t("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(R,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("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(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(A,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("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:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(_,{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 A(){let{data:a}=P("https://status.dub.co/api/v1/summary",u),[o,r]=N("bg-gray-200"),[i,c]=N("Loading status...");return T(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:k,name:w}=d[0],L=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(w),r(L)}else c("All systems operational"),r("bg-green-500")},[a]),t(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:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-VNM34W3P.mjs";import{f as h}from"./chunk-QBCNPJXG.mjs";import{b as u}from"./chunk-T74CSMLF.mjs";import{c,g,i as t}from"./chunk-34A7ZDQZ.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-KVIG4WHJ.mjs";import{i as s}from"./chunk-34A7ZDQZ.mjs";import{cva as L}from"class-variance-authority";import{UploadCloud as V}from"lucide-react";import{useState as F}from"react";import{toast as h}from"sonner";import{Fragment as M,jsx as t,jsxs as c}from"react/jsx-runtime";var d={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"}},z=L("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function J({readFile:N,onChange:r,variant:w,className:D,iconClassName:x,accept:i="any",imageSrc:l,loading:P=!1,clickToUpload:n=!0,showHoverOverlay:R=!0,content:u,maxFileSizeMB:p=0,accessibilityLabel:U="File upload"}){let[g,o]=F(!1),[j,T]=F(null),f=async e=>{let a="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!a)return;if(T(a.name),p>0&&a.size/1024/1024>p){h.error(`File size too big (max ${p} MB)`);return}let m=d[i].types;if(m.length&&!m.includes(a.type)){h.error(d[i].errorMessage??"File type not supported");return}if(N){let y=new FileReader;y.onload=E=>{var v;return r==null?void 0:r({src:(v=E.target)==null?void 0:v.result,file:a})},y.readAsDataURL(a);return}r==null||r({file:a})};return c("label",{className:s(z({variant:w}),n&&"cursor-pointer",D),children:[P&&t("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:t(b,{})}),t("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),o(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),f(e),o(!1)}}),c("div",{className:s("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",g&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",l?s("opacity-0",R&&"group-hover:opacity-100"):"group-hover:bg-gray-50"),children:[t(V,{className:s("h-7 w-7 text-gray-500 transition-all duration-75 group-hover:scale-110 group-active:scale-95",g?"scale-110":"scale-100",x)}),u!==null&&t("div",{className:"mt-2 text-center text-sm text-gray-500",children:u??t(M,{children:c("p",{children:["Drag and drop ",n&&"or click"," to upload."]})})}),t("span",{className:"sr-only",children:U})]}),l&&t("img",{src:l,alt:"Preview",className:"h-full w-full rounded-[inherit] object-cover"}),n&&t("div",{className:"sr-only mt-1 flex shadow-sm",children:t("input",{type:"file",accept:d[i].types.join(","),onChange:f},j)})]})}export{J as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-KAINQA56.mjs";import{motion as l}from"framer-motion";import{forwardRef as R,useRef as b}from"react";import{useEffect as h,useState as v}from"react";function p(e){let[n,r]=v(),s=([t])=>{r(t)};return h(()=>{let t=e==null?void 0:e.current;if(!t)return;let i=new ResizeObserver(s);return i.observe(t),()=>i.disconnect()},[e]),n}import{jsx as u}from"react/jsx-runtime";var C=R(({width:e=!1,height:n=!1,className:r,transition:s,children:t,...i},f)=>{var m,c;let d=b(null),o=p(d);return u(l.div,{ref:f,className:a("overflow-hidden",r),animate:{width:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.width)??"auto":"auto",height:n?((c=o==null?void 0:o.contentRect)==null?void 0:c.height)??"auto":"auto"},transition:s??{type:"spring",duration:.3},...i,children:u("div",{ref:d,className:a(n&&"h-max",e&&"w-max"),children:t})})});C.displayName="AnimatedSizeContainer";export{p as a,C as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-CVOZTALH.mjs";import{k as o}from"./chunk-K5FLHSCO.mjs";import{h as e,i as s}from"./chunk-34A7ZDQZ.mjs";import{jsx as m}from"react/jsx-runtime";function f({apexDomain:r,className:t}){return r?m(l,{src:`${e}${r}`,alt:r,className:s("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20}):m("div",{className:s("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:m(o,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as g,b as f,f as m}from"./chunk-QBCNPJXG.mjs";import{a as c,c as p,d as x}from"./chunk-N4Q65V2K.mjs";import{a as v}from"./chunk-IDS2CWZH.mjs";import{h as s,j as d}from"./chunk-G5YTEVMC.mjs";import k from"@vercel/analytics";import{ChevronRight as N}from"lucide-react";import h from"next/link";import{jsx as e,jsxs as o}from"react/jsx-runtime";function P({domain:r}){return o("div",{className:"grid w-[40rem] grid-cols-2",children:[o("div",{className:"p-5",children:[e("p",{className:s(c,"mb-2"),children:"Features"}),e("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:g.map(({icon:i,title:t,description:n,href:a})=>e(p,{href:m(a,r),...r!=="dub.co"&&{onClick:()=>{k.track("Referred from custom domain",{domain:r,medium:`navbar item (${a})`})}},icon:e(x,{icon:i}),title:t,description:n},a))})]}),o("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[o(h,{href:m("/blog/category/customers",r),className:s(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",e(N,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),e("div",{className:"grid grid-cols-1",children:f.map(({icon:i,iconClassName:t,title:n,description:a,href:l})=>e(p,{href:m(l,r),className:"-mx-2",icon:e(i,{className:s("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:n,description:a,descriptionLines:2},l))}),e("p",{className:s(c,"my-4"),children:"Compare"}),e("div",{className:"flex flex-col gap-1.5",children:(void 0).map(({name:i,slug:t})=>o(h,{href:m(`/compare/${t}`,r),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:[o("p",{className:"text-sm font-medium",children:["Dub vs. ",i]})," ",e(v,{className:"h-3 w-3"})]},t))})]})]})}export{P as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-J3TSF5FN.mjs";import{b as s,f as m}from"./chunk-VIZMN4Q2.mjs";import*as n from"@radix-ui/react-tooltip";import d from"linkify-react";import{HelpCircle as x}from"lucide-react";import u from"next/link";import{useState as f}from"react";import{jsx as t,jsxs as a}from"react/jsx-runtime";function P({children:e}){return t(n.Provider,{delayDuration:100,children:e})}function p({children:e,content:o,side:r="top"}){let[i,l]=f(!1);return a(n.Root,{open:i,onOpenChange:l,children:[t(n.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:e}),t(n.Portal,{children:t(n.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?t("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function k({title:e,cta:o,href:r,target:i,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[t("p",{className:"text-sm text-gray-700",children:e}),o&&(r?t(u,{href:r,...i?{target:i}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?t("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function w({title:e,cta:o,href:r}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[e," ",t("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function C({children:e}){return t("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:t(d,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:e})})}function R(e){return t(p,{...e,children:t(x,{className:"h-4 w-4 text-gray-500"})})}function B({value:e,unit:o="total clicks",children:r,lastClicked:i}){return(!e||e<1e3)&&!i?r:t(p,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(e||0,{full:!0})," ",o]}),i&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",m(i,{withAgo:!0})]})]}),children:r})}function L({children:e,content:o,...r}){return t(p,{content:o,...r,children:t("div",{className:"flex cursor-pointer items-center",children:t(c,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:e})})})}function O({tooltipContent:e,children:o,...r}){return t(p,{content:e,children:t("div",{className:"flex cursor-pointer items-center",children:t("button",{type:"button",...r,children:o})})})}export{P as a,p as b,k as c,w as d,C as e,R as f,B as g,L as h,O as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i}from"./chunk-KAINQA56.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as N}from"./chunk-CXY6TFWC.mjs";import{a as x}from"./chunk-QBCNPJXG.mjs";import{a as v}from"./chunk-AUMQXTR2.mjs";import{a as b}from"./chunk-UAVCY7CY.mjs";import{a as y}from"./chunk-TK34LANA.mjs";import{a as h}from"./chunk-MO6CVTQA.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-34A7ZDQZ.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({title:a,href:o})=>({name:a,href:o})),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:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("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"})]}),t("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(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("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(A,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("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:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("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:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function A(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),t(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:[t("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-SNQGPU36.mjs";import{f as h}from"./chunk-QBCNPJXG.mjs";import{b as u}from"./chunk-T74CSMLF.mjs";import{c,g,i as t}from"./chunk-34A7ZDQZ.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as C,useState as N}from"react";import L from"swr";import{Fragment as S,jsx as e,jsxs as i}from"react/jsx-runtime";function R({theme:r="light"}){let{domain:d="dub.co"}=y(),[a,l]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:s}=L(d==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>l(!a),className:t("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 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(z,{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:t("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:n,href:f,childItems:p},m)=>e(I,{name:n,href:f,childItems:p,setOpen:l},m)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(o,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(o,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:l})=>{let{domain:s="dub.co"}=y(),[n,f]=N(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!n),children:[e("p",{className:"font-semibold",children:r}),e(w,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",n&&"rotate-180")})]}),n&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(o,{href:h(m,s),onClick:()=>l(!1),className:"flex w-full space-x-2",children:[e(k,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",v)}),e("span",{className:"text-sm",children:p})]},m))})]})}):d?e("li",{className:"py-3",children:e(o,{href:h(d,s),onClick:()=>l(!1),className:"flex w-full font-semibold capitalize",children:r})}):null};export{R as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client"
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as m}from"./chunk-CLDMP6US.mjs";import{i}from"./chunk-KAINQA56.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|