@dub/ui 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +7 -7
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.d.ts +1 -0
- package/dist/avatar.mjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-24GO6V2F.mjs +2 -0
- package/dist/chunk-26S2VKCL.mjs +2 -0
- package/dist/chunk-2COYHBQU.mjs +2 -0
- package/dist/chunk-2D3HRLYL.mjs +2 -0
- package/dist/chunk-2F6AJHDM.mjs +2 -0
- package/dist/chunk-2HPHH7SN.mjs +2 -0
- package/dist/chunk-2IQSJ46Y.mjs +2 -0
- package/dist/chunk-2KS5N5QP.mjs +2 -0
- package/dist/chunk-2KYVIUKZ.mjs +2 -0
- package/dist/chunk-2LBJI2KO.mjs +2 -0
- package/dist/chunk-2LOUHZW7.mjs +2 -0
- package/dist/chunk-2LQ55DUJ.mjs +2 -0
- package/dist/chunk-2M7DR3PH.mjs +2 -0
- package/dist/chunk-2O2B2GVS.mjs +2 -0
- package/dist/chunk-2OZQ3GG4.mjs +2 -0
- package/dist/chunk-2S2YYFQL.mjs +2 -0
- package/dist/chunk-2SIZB6Z2.mjs +2 -0
- package/dist/chunk-2SXMJV3C.mjs +6 -0
- package/dist/chunk-2SZ5E3PP.mjs +2 -0
- package/dist/chunk-2TD2AQWQ.mjs +2 -0
- package/dist/chunk-2TY2KYRV.mjs +2 -0
- package/dist/chunk-2VKEDVME.mjs +2 -0
- package/dist/chunk-2VTNINY3.mjs +2 -0
- package/dist/chunk-2W2M7KTU.mjs +2 -0
- package/dist/chunk-2XIN2T7E.mjs +2 -0
- package/dist/chunk-2YQLIQQN.mjs +2 -0
- package/dist/chunk-32C65ISH.mjs +2 -0
- package/dist/chunk-34SGC4YH.mjs +2 -0
- package/dist/chunk-35IBY4GZ.mjs +6 -0
- package/dist/chunk-3A5OAKQT.mjs +2 -0
- package/dist/chunk-3DL5JOPB.mjs +2 -0
- package/dist/chunk-3FV6AXQ3.mjs +2 -0
- package/dist/chunk-3GDSJXP4.mjs +2 -0
- package/dist/chunk-3HTARARH.mjs +2 -0
- package/dist/chunk-3I3KYVGK.mjs +2 -0
- package/dist/chunk-3KFNNXJ6.mjs +2 -0
- package/dist/chunk-3O4L5M2U.mjs +2 -0
- package/dist/chunk-3PGL3YLO.mjs +2 -0
- package/dist/chunk-3RV2M3TU.mjs +2 -0
- package/dist/chunk-3RYQCUYK.mjs +2 -0
- package/dist/chunk-3TZ4GPTL.mjs +2 -0
- package/dist/chunk-3UWVE2O2.mjs +2 -0
- package/dist/chunk-3XZLEIRD.mjs +2 -0
- package/dist/chunk-3ZFHMVSI.mjs +6 -0
- package/dist/chunk-43RC7HDU.mjs +2 -0
- package/dist/chunk-4BBI24XJ.mjs +2 -0
- package/dist/chunk-4E6RJ7RH.mjs +1 -0
- package/dist/chunk-4EIZC6LI.mjs +2 -0
- package/dist/chunk-4FNDXXAC.mjs +2 -0
- package/dist/chunk-4GPFU5OP.mjs +2 -0
- package/dist/chunk-4INGYKUF.mjs +2 -0
- package/dist/chunk-4LSID5UQ.mjs +2 -0
- package/dist/chunk-4OEMXY2P.mjs +2 -0
- package/dist/chunk-4PGXYFFA.mjs +2 -0
- package/dist/chunk-4PXOHWHU.mjs +2 -0
- package/dist/chunk-4XBMYXEM.mjs +2 -0
- package/dist/chunk-4XI25XZO.mjs +2 -0
- package/dist/chunk-4ZRNTST4.mjs +6 -0
- package/dist/chunk-52J4WFMT.mjs +2 -0
- package/dist/chunk-52LL4TBS.mjs +2 -0
- package/dist/chunk-54MZEIUI.mjs +2 -0
- package/dist/chunk-5DCNABVO.mjs +2 -0
- package/dist/chunk-5EAWC5R3.mjs +2 -0
- package/dist/chunk-5EKHMWK4.mjs +2 -0
- package/dist/chunk-5EMWWWMJ.mjs +2 -0
- package/dist/chunk-5FA55CVM.mjs +2 -0
- package/dist/chunk-5L2S344Z.mjs +2 -0
- package/dist/chunk-5MMCLP4T.mjs +2 -0
- package/dist/chunk-5P75NK6D.mjs +2 -0
- package/dist/chunk-5PA7NETF.mjs +2 -0
- package/dist/chunk-5RX4JKZ7.mjs +6 -0
- package/dist/chunk-5SAWGG7D.mjs +6 -0
- package/dist/chunk-5TFOH7FW.mjs +2 -0
- package/dist/chunk-5VYDBVWZ.mjs +2 -0
- package/dist/chunk-5W7CFW7G.mjs +2 -0
- package/dist/chunk-5WUQ5SSD.mjs +2 -0
- package/dist/chunk-5XIONXV4.mjs +2 -0
- package/dist/chunk-5YH4QIQ2.mjs +2 -0
- package/dist/chunk-637XHP77.mjs +2 -0
- package/dist/chunk-63DFCH7L.mjs +2 -0
- package/dist/chunk-63EVZTS6.mjs +2 -0
- package/dist/chunk-63RFWC6U.mjs +2 -0
- package/dist/chunk-64P5TCKJ.mjs +2 -0
- package/dist/chunk-6A2DNSW4.mjs +2 -0
- package/dist/chunk-6GTEPNHP.mjs +2 -0
- package/dist/chunk-6HNMOI5O.mjs +6 -0
- package/dist/chunk-6ILS75HU.mjs +2 -0
- package/dist/chunk-6JPO26GL.mjs +2 -0
- package/dist/chunk-6KOIBXDJ.mjs +2 -0
- package/dist/chunk-6LZ4IWMN.mjs +2 -0
- package/dist/chunk-6MPGL4KH.mjs +2 -0
- package/dist/chunk-6OLCEUS3.mjs +2 -0
- package/dist/chunk-6RYQQUSM.mjs +2 -0
- package/dist/chunk-6SIPPJ3S.mjs +2 -0
- package/dist/chunk-6SLAHSHY.mjs +2 -0
- package/dist/chunk-6TUOIQB7.mjs +2 -0
- package/dist/chunk-6TXK7NLD.mjs +2 -0
- package/dist/chunk-6YO46VSA.mjs +2 -0
- package/dist/chunk-732HAVXD.mjs +2 -0
- package/dist/chunk-73AQPKK3.mjs +2 -0
- package/dist/chunk-77CHYSIW.mjs +2 -0
- package/dist/chunk-7CR32UAY.mjs +2 -0
- package/dist/chunk-7D62Y45E.mjs +2 -0
- package/dist/chunk-7EIIB373.mjs +2 -0
- package/dist/chunk-7JVREEEI.mjs +2 -0
- package/dist/chunk-7MTVIW6J.mjs +2 -0
- package/dist/chunk-7PKIG4WC.mjs +2 -0
- package/dist/chunk-7SDKHF55.mjs +2 -0
- package/dist/chunk-7XFEGQW7.mjs +2 -0
- package/dist/chunk-A2A25K2L.mjs +2 -0
- package/dist/chunk-A7Y3JPXP.mjs +2 -0
- package/dist/chunk-ACPCB4I2.mjs +2 -0
- package/dist/chunk-AEA4FE6G.mjs +2 -0
- package/dist/chunk-AGO6RJUQ.mjs +2 -0
- package/dist/chunk-AK3VTPOG.mjs +2 -0
- package/dist/chunk-AK56NAT3.mjs +2 -0
- package/dist/chunk-ANZWNDHF.mjs +2 -0
- package/dist/chunk-AOFBA37O.mjs +2 -0
- package/dist/chunk-ASK4KFXH.mjs +2 -0
- package/dist/chunk-ATBKJCQI.mjs +6 -0
- package/dist/chunk-ATOQSQSX.mjs +2 -0
- package/dist/chunk-AU3TU3OY.mjs +2 -0
- package/dist/chunk-AUKVUUQF.mjs +2 -0
- package/dist/chunk-AWPWX4PY.mjs +2 -0
- package/dist/chunk-AX5SUICG.mjs +2 -0
- package/dist/chunk-AZSHYVRP.mjs +2 -0
- package/dist/chunk-B25FY6YB.mjs +2 -0
- package/dist/chunk-B4BRVRIY.mjs +2 -0
- package/dist/chunk-B4NQYHBZ.mjs +2 -0
- package/dist/chunk-B4WQHVKO.mjs +6 -0
- package/dist/chunk-B4ZUMPKI.mjs +2 -0
- package/dist/chunk-BA5AWLOP.mjs +2 -0
- package/dist/chunk-BAYO33VP.mjs +2 -0
- package/dist/chunk-BDNFHY6T.mjs +2 -0
- package/dist/chunk-BE6XZMNG.mjs +2 -0
- package/dist/chunk-BERH4K4R.mjs +2 -0
- package/dist/chunk-BFMRGJR7.mjs +2 -0
- package/dist/chunk-BHSHRRNE.mjs +2 -0
- package/dist/chunk-BKK2LN3N.mjs +2 -0
- package/dist/chunk-BL2X3IOF.mjs +2 -0
- package/dist/chunk-BLMH44TN.mjs +2 -0
- package/dist/chunk-BMZDMOXG.mjs +6 -0
- package/dist/chunk-BOCPUR5Z.mjs +2 -0
- package/dist/chunk-BOTROIWG.mjs +2 -0
- package/dist/chunk-BPF74YQI.mjs +2 -0
- package/dist/chunk-BQMCXTOR.mjs +2 -0
- package/dist/chunk-BRCE2HCO.mjs +2 -0
- package/dist/chunk-BRGDOGU3.mjs +6 -0
- package/dist/chunk-BSAHBWVL.mjs +2 -0
- package/dist/chunk-BTIQDQ4Q.mjs +6 -0
- package/dist/chunk-BTLQB7SF.mjs +2 -0
- package/dist/chunk-BUUXY5PY.mjs +2 -0
- package/dist/chunk-BUWQT42R.mjs +2 -0
- package/dist/chunk-BVP3AMVF.mjs +2 -0
- package/dist/chunk-BVTMRZND.mjs +6 -0
- package/dist/chunk-BW4XZCFB.mjs +2 -0
- package/dist/chunk-BWGYQBOX.mjs +2 -0
- package/dist/chunk-BWNCNH3R.mjs +2 -0
- package/dist/chunk-BXR6AH2P.mjs +2 -0
- package/dist/chunk-BYIJ43ZW.mjs +2 -0
- package/dist/chunk-BYUCYR5P.mjs +2 -0
- package/dist/chunk-C5VYRCDG.mjs +2 -0
- package/dist/chunk-C6D4QS4D.mjs +2 -0
- package/dist/chunk-C6KSN2P2.mjs +2 -0
- package/dist/chunk-C6V4KXHF.mjs +6 -0
- package/dist/chunk-C76ZKE43.mjs +2 -0
- package/dist/chunk-CAIIQECJ.mjs +2 -0
- package/dist/chunk-CHJUJE4X.mjs +2 -0
- package/dist/chunk-CKQU54PU.mjs +2 -0
- package/dist/chunk-CM7PMFG2.mjs +2 -0
- package/dist/chunk-CNTHLJXR.mjs +6 -0
- package/dist/chunk-COEPRWCY.mjs +2 -0
- package/dist/chunk-CTSTG4GK.mjs +6 -0
- package/dist/chunk-CW357N5E.mjs +2 -0
- package/dist/chunk-CWRTMY4K.mjs +6 -0
- package/dist/chunk-CXD5V6EP.mjs +2 -0
- package/dist/chunk-CY7PQZRM.mjs +2 -0
- package/dist/chunk-CYVWU2SP.mjs +2 -0
- package/dist/chunk-D3AZYWPA.mjs +2 -0
- package/dist/chunk-D5WX7PJB.mjs +2 -0
- package/dist/chunk-D6PDF22E.mjs +2 -0
- package/dist/chunk-D7SRRREC.mjs +2 -0
- package/dist/chunk-D7USZAZP.mjs +2 -0
- package/dist/chunk-DAM64FK4.mjs +2 -0
- package/dist/chunk-DAZALGLW.mjs +2 -0
- package/dist/chunk-DC36CR56.mjs +2 -0
- package/dist/chunk-DCL4MB7A.mjs +2 -0
- package/dist/chunk-DKIUF57R.mjs +2 -0
- package/dist/chunk-DLETK3JE.mjs +2 -0
- package/dist/chunk-DLMXMEZY.mjs +2 -0
- package/dist/chunk-DMADXWHH.mjs +2 -0
- package/dist/chunk-DMLF4GJF.mjs +2 -0
- package/dist/chunk-DMO7DFCC.mjs +2 -0
- package/dist/chunk-DMUERTF2.mjs +2 -0
- package/dist/chunk-DNUFXC6G.mjs +2 -0
- package/dist/chunk-DP4YQEMX.mjs +2 -0
- package/dist/chunk-DU4NB3MH.mjs +2 -0
- package/dist/chunk-DUUKDJA6.mjs +2 -0
- package/dist/chunk-DWACNU5E.mjs +2 -0
- package/dist/chunk-DWB64XSY.mjs +2 -0
- package/dist/chunk-DZ47BADR.mjs +2 -0
- package/dist/chunk-DZIB4NN7.mjs +2 -0
- package/dist/chunk-E3VG6CQ2.mjs +2 -0
- package/dist/chunk-E5L2OWEU.mjs +2 -0
- package/dist/chunk-E5NDHDY2.mjs +2 -0
- package/dist/chunk-E5YVFLIA.mjs +2 -0
- package/dist/chunk-E64PMPSS.mjs +6 -0
- package/dist/chunk-E6HWCEBB.mjs +2 -0
- package/dist/chunk-EDQYILFY.mjs +2 -0
- package/dist/chunk-EE3DY3TR.mjs +2 -0
- package/dist/chunk-EEF6EPGB.mjs +2 -0
- package/dist/chunk-EFCWPYMA.mjs +2 -0
- package/dist/chunk-EFEMK55A.mjs +2 -0
- package/dist/chunk-EKF6H63J.mjs +2 -0
- package/dist/chunk-ELWUYRKK.mjs +2 -0
- package/dist/chunk-EPD7PWKY.mjs +2 -0
- package/dist/chunk-ESL73QAN.mjs +2 -0
- package/dist/chunk-EVYDVAVA.mjs +2 -0
- package/dist/chunk-EYZ7GDSC.mjs +2 -0
- package/dist/chunk-F2AVRMTR.mjs +6 -0
- package/dist/chunk-FECSAU4C.mjs +2 -0
- package/dist/chunk-FG26QHVN.mjs +2 -0
- package/dist/chunk-FGQI6XJQ.mjs +2 -0
- package/dist/chunk-FKIGBGCB.mjs +2 -0
- package/dist/chunk-FKL2RERC.mjs +2 -0
- package/dist/chunk-FN2J3AVE.mjs +2 -0
- package/dist/chunk-FN5WHFTP.mjs +2 -0
- package/dist/chunk-FQA3MJNN.mjs +2 -0
- package/dist/chunk-FRLFD2ES.mjs +2 -0
- package/dist/chunk-FWKUIXLZ.mjs +6 -0
- package/dist/chunk-FXXDWSKY.mjs +2 -0
- package/dist/chunk-FYWMALFK.mjs +2 -0
- package/dist/chunk-G37ONOBW.mjs +2 -0
- package/dist/chunk-G3UBTKH7.mjs +2 -0
- package/dist/chunk-G4CFL7MH.mjs +2 -0
- package/dist/chunk-G4O4HU3N.mjs +2 -0
- package/dist/chunk-GC5HGGPL.mjs +2 -0
- package/dist/chunk-GCVNGLLG.mjs +2 -0
- package/dist/chunk-GFUFVOPR.mjs +2 -0
- package/dist/chunk-GFX5MVTL.mjs +2 -0
- package/dist/chunk-GJI6VAVC.mjs +2 -0
- package/dist/chunk-GJOO6ZDQ.mjs +2 -0
- package/dist/chunk-GKJ3OFEJ.mjs +2 -0
- package/dist/chunk-GRBCFYEM.mjs +2 -0
- package/dist/chunk-GRFAFTOP.mjs +6 -0
- package/dist/chunk-GULLWDTH.mjs +2 -0
- package/dist/chunk-H2QHRKQP.mjs +2 -0
- package/dist/chunk-H43FMVF4.mjs +2 -0
- package/dist/chunk-H6EI7JAC.mjs +2 -0
- package/dist/chunk-H6YO7HO3.mjs +2 -0
- package/dist/chunk-HBYA3B3O.mjs +2 -0
- package/dist/chunk-HCOYBBRG.mjs +2 -0
- package/dist/chunk-HCSLTLQJ.mjs +2 -0
- package/dist/chunk-HD6YF3EZ.mjs +2 -0
- package/dist/chunk-HE3BCKPL.mjs +2 -0
- package/dist/chunk-HEXWU5VG.mjs +2 -0
- package/dist/chunk-HFHKOIAX.mjs +6 -0
- package/dist/chunk-HFPQIZC6.mjs +2 -0
- package/dist/chunk-HIQXFKNG.mjs +2 -0
- package/dist/chunk-HJ5XEUN7.mjs +2 -0
- package/dist/chunk-HJP7WGFK.mjs +2 -0
- package/dist/chunk-HJTMBTBX.mjs +6 -0
- package/dist/chunk-HNXJA6CJ.mjs +2 -0
- package/dist/chunk-HPOHGCIW.mjs +2 -0
- package/dist/chunk-HRFSSAKB.mjs +2 -0
- package/dist/chunk-HTME5G5W.mjs +2 -0
- package/dist/chunk-HTMM6WXM.mjs +2 -0
- package/dist/chunk-HXYPYGHL.mjs +2 -0
- package/dist/chunk-HY4DKUHI.mjs +2 -0
- package/dist/chunk-HYPLE4VW.mjs +2 -0
- package/dist/chunk-HZYXQ3MC.mjs +2 -0
- package/dist/chunk-I3VHDNVN.mjs +2 -0
- package/dist/chunk-I7JJCIMU.mjs +2 -0
- package/dist/chunk-IC6OYAMK.mjs +2 -0
- package/dist/chunk-ICEVFMZW.mjs +2 -0
- package/dist/chunk-IGFN5BSV.mjs +2 -0
- package/dist/chunk-IIFMULXN.mjs +2 -0
- package/dist/chunk-IJUWWVAZ.mjs +2 -0
- package/dist/chunk-INISB4KV.mjs +2 -0
- package/dist/chunk-IP2B33JZ.mjs +2 -0
- package/dist/chunk-IQVF3XWX.mjs +2 -0
- package/dist/chunk-IS537Y2Z.mjs +2 -0
- package/dist/chunk-ITEGZYV3.mjs +6 -0
- package/dist/chunk-IVQ7JIOU.mjs +2 -0
- package/dist/chunk-IWEF32NS.mjs +2 -0
- package/dist/chunk-IXKHV2N5.mjs +2 -0
- package/dist/chunk-IXM7QA7I.mjs +2 -0
- package/dist/chunk-IYFT2FKW.mjs +2 -0
- package/dist/chunk-IZYQXXQJ.mjs +2 -0
- package/dist/chunk-J2GORZBD.mjs +1 -0
- package/dist/chunk-J2UNKIZH.mjs +2 -0
- package/dist/chunk-J3IDQN5M.mjs +2 -0
- package/dist/chunk-J3XQLDPV.mjs +2 -0
- package/dist/chunk-J5EEGK2D.mjs +2 -0
- package/dist/chunk-JBH6ZAPQ.mjs +2 -0
- package/dist/chunk-JBN7WFP3.mjs +2 -0
- package/dist/chunk-JBURS7BX.mjs +2 -0
- package/dist/chunk-JDYEQG7L.mjs +2 -0
- package/dist/chunk-JE2C3EPJ.mjs +2 -0
- package/dist/chunk-JFSNPBO7.mjs +2 -0
- package/dist/chunk-JG7HARGV.mjs +2 -0
- package/dist/chunk-JIYMB4IM.mjs +6 -0
- package/dist/chunk-JKSIE5IM.mjs +2 -0
- package/dist/chunk-JN66NXCY.mjs +2 -0
- package/dist/chunk-JP57AFGB.mjs +2 -0
- package/dist/chunk-JSY5LHHK.mjs +2 -0
- package/dist/chunk-JUX3CLVC.mjs +2 -0
- package/dist/chunk-JX5W4R2L.mjs +2 -0
- package/dist/chunk-JY44CIXV.mjs +2 -0
- package/dist/chunk-JY6CFEPF.mjs +2 -0
- package/dist/chunk-JZ6UR2RV.mjs +2 -0
- package/dist/chunk-K3VELXUZ.mjs +2 -0
- package/dist/chunk-K4LQE5VT.mjs +2 -0
- package/dist/chunk-K5PSK524.mjs +2 -0
- package/dist/chunk-K5TGD7XY.mjs +6 -0
- package/dist/chunk-KAP2NTDG.mjs +2 -0
- package/dist/chunk-KBSVR5V3.mjs +2 -0
- package/dist/chunk-KCP2L6LE.mjs +2 -0
- package/dist/chunk-KDNSFAET.mjs +2 -0
- package/dist/chunk-KGJN3574.mjs +2 -0
- package/dist/chunk-KGMSGNRU.mjs +2 -0
- package/dist/chunk-KJGIGRFE.mjs +2 -0
- package/dist/chunk-KKXO7LRB.mjs +6 -0
- package/dist/chunk-KM3MOTZO.mjs +2 -0
- package/dist/chunk-KNIPG7TV.mjs +2 -0
- package/dist/chunk-KQD3JUYQ.mjs +2 -0
- package/dist/chunk-KR2QRW67.mjs +2 -0
- package/dist/chunk-KRO2B7YM.mjs +2 -0
- package/dist/chunk-KRTUG2A3.mjs +2 -0
- package/dist/chunk-KTINRJRF.mjs +2 -0
- package/dist/chunk-KTQQGDOC.mjs +2 -0
- package/dist/chunk-KVKEFKYI.mjs +2 -0
- package/dist/chunk-KVTNN7ID.mjs +2 -0
- package/dist/chunk-KYMBX7DZ.mjs +2 -0
- package/dist/chunk-KYR5VT6J.mjs +2 -0
- package/dist/chunk-KZ43CCOP.mjs +2 -0
- package/dist/chunk-L2ZLHNHY.mjs +2 -0
- package/dist/chunk-L3J4LUFF.mjs +2 -0
- package/dist/chunk-L7RXJ44W.mjs +2 -0
- package/dist/chunk-LAZXPMSH.mjs +2 -0
- package/dist/chunk-LBIDSBDC.mjs +2 -0
- package/dist/chunk-LJZAX76P.mjs +2 -0
- package/dist/chunk-LLRCEJB4.mjs +2 -0
- package/dist/chunk-LMB54POX.mjs +2 -0
- package/dist/chunk-LOYVT6OP.mjs +2 -0
- package/dist/chunk-LR6FJVUB.mjs +2 -0
- package/dist/chunk-LVPA36JM.mjs +2 -0
- package/dist/chunk-LW3RTDNQ.mjs +2 -0
- package/dist/chunk-LWNH5N3Y.mjs +2 -0
- package/dist/chunk-LXYRKMMJ.mjs +2 -0
- package/dist/chunk-M2QPQGIL.mjs +2 -0
- package/dist/chunk-M5ARCUMU.mjs +2 -0
- package/dist/chunk-M67CTKNL.mjs +2 -0
- package/dist/chunk-M6RRMOK6.mjs +2 -0
- package/dist/chunk-MAZ6YG5Y.mjs +2 -0
- package/dist/chunk-MBAL4WEY.mjs +2 -0
- package/dist/chunk-MCSWU3SS.mjs +2 -0
- package/dist/chunk-MIAOXGNS.mjs +2 -0
- package/dist/chunk-MIQTBVNU.mjs +2 -0
- package/dist/chunk-MNTYVEVE.mjs +2 -0
- package/dist/chunk-MOJOOMRA.mjs +2 -0
- package/dist/chunk-MOUGUPBB.mjs +2 -0
- package/dist/chunk-MPOE6WS2.mjs +2 -0
- package/dist/chunk-MUZ6V67F.mjs +2 -0
- package/dist/chunk-MVRODYEW.mjs +2 -0
- package/dist/chunk-N2UGKQH4.mjs +2 -0
- package/dist/chunk-N4FQWPUI.mjs +2 -0
- package/dist/chunk-N4RNKGX6.mjs +2 -0
- package/dist/chunk-N7NKALOQ.mjs +2 -0
- package/dist/chunk-NDI2LGSM.mjs +2 -0
- package/dist/chunk-NEGWM3CK.mjs +2 -0
- package/dist/chunk-NJF4O2UD.mjs +2 -0
- package/dist/chunk-NKDFB7LH.mjs +2 -0
- package/dist/chunk-NKQN5XA6.mjs +2 -0
- package/dist/chunk-NKYZ36IO.mjs +2 -0
- package/dist/chunk-NKZG4E32.mjs +2 -0
- package/dist/chunk-NLUMD5MZ.mjs +2 -0
- package/dist/chunk-NMHRHEJQ.mjs +2 -0
- package/dist/chunk-NNTBEWRY.mjs +2 -0
- package/dist/chunk-NO6MOVSA.mjs +6 -0
- package/dist/chunk-NPWONPKN.mjs +2 -0
- package/dist/chunk-NSHIWBRU.mjs +2 -0
- package/dist/chunk-NTERUKXP.mjs +2 -0
- package/dist/chunk-O2V7R5AS.mjs +2 -0
- package/dist/chunk-O374VG2Z.mjs +2 -0
- package/dist/chunk-O3FTJ6KM.mjs +2 -0
- package/dist/chunk-O3KEPWMN.mjs +2 -0
- package/dist/chunk-O3U55RD7.mjs +2 -0
- package/dist/chunk-OBHTQFWH.mjs +2 -0
- package/dist/chunk-ODVPK2MI.mjs +6 -0
- package/dist/chunk-OHN3LGAU.mjs +2 -0
- package/dist/chunk-OK6FQJZY.mjs +2 -0
- package/dist/chunk-OKLH6ZRX.mjs +6 -0
- package/dist/chunk-OLJ3XQMX.mjs +2 -0
- package/dist/chunk-OLQDEHWZ.mjs +2 -0
- package/dist/chunk-OR4ZAUXU.mjs +2 -0
- package/dist/chunk-OSL4RF2V.mjs +2 -0
- package/dist/chunk-OUAKD4BK.mjs +2 -0
- package/dist/chunk-OUPTZNBV.mjs +2 -0
- package/dist/chunk-OUQJYIJK.mjs +2 -0
- package/dist/chunk-OXPXJ6DV.mjs +2 -0
- package/dist/chunk-OZH7NYAG.mjs +2 -0
- package/dist/chunk-OZL5DWTU.mjs +2 -0
- package/dist/chunk-OZLQ2BGG.mjs +2 -0
- package/dist/chunk-PDSUXFDU.mjs +2 -0
- package/dist/chunk-PEB3OOJD.mjs +2 -0
- package/dist/chunk-PEDQHDGO.mjs +2 -0
- package/dist/chunk-PG4SJSE4.mjs +2 -0
- package/dist/chunk-PLVAY633.mjs +6 -0
- package/dist/chunk-PNI6WOIE.mjs +2 -0
- package/dist/chunk-PSD4VLL7.mjs +2 -0
- package/dist/chunk-PUMZASOU.mjs +2 -0
- package/dist/chunk-PV53CAPL.mjs +2 -0
- package/dist/chunk-PXKQQK7F.mjs +2 -0
- package/dist/chunk-Q4ASP33R.mjs +2 -0
- package/dist/chunk-Q5KEJKGK.mjs +2 -0
- package/dist/chunk-Q5KRG5EO.mjs +2 -0
- package/dist/chunk-Q5MRUOJO.mjs +2 -0
- package/dist/chunk-Q5RNXKRU.mjs +2 -0
- package/dist/chunk-QAJY2VWJ.mjs +6 -0
- package/dist/chunk-QB4VHFVE.mjs +2 -0
- package/dist/chunk-QF4ZG4IO.mjs +2 -0
- package/dist/chunk-QI5N3AKM.mjs +2 -0
- package/dist/chunk-QQUGCKIN.mjs +2 -0
- package/dist/chunk-QUCUV4TH.mjs +2 -0
- package/dist/chunk-QVD7OXUV.mjs +2 -0
- package/dist/chunk-QZ2HLLTX.mjs +2 -0
- package/dist/chunk-QZZG5JIN.mjs +2 -0
- package/dist/chunk-R3HER2QA.mjs +2 -0
- package/dist/chunk-R3YR4LC6.mjs +2 -0
- package/dist/chunk-R4KDWH4W.mjs +2 -0
- package/dist/chunk-R4KEOG3E.mjs +6 -0
- package/dist/chunk-R7LUD3W6.mjs +2 -0
- package/dist/chunk-RAUXDUU7.mjs +2 -0
- package/dist/chunk-RDBDUTWD.mjs +2 -0
- package/dist/chunk-RDCD5KJX.mjs +2 -0
- package/dist/chunk-REH4L7H7.mjs +2 -0
- package/dist/chunk-RGVCFXWK.mjs +2 -0
- package/dist/chunk-RI6JIZZD.mjs +2 -0
- package/dist/chunk-RPUROL4I.mjs +2 -0
- package/dist/chunk-RQMSLLPK.mjs +2 -0
- package/dist/chunk-RRNKXXH6.mjs +2 -0
- package/dist/chunk-RRPR34R2.mjs +6 -0
- package/dist/chunk-RUFIYUWE.mjs +2 -0
- package/dist/chunk-RVI2B5RN.mjs +2 -0
- package/dist/chunk-RVNLURMM.mjs +2 -0
- package/dist/chunk-RY3THW7P.mjs +2 -0
- package/dist/chunk-RZGSOJYO.mjs +2 -0
- package/dist/chunk-RZQWS5UQ.mjs +2 -0
- package/dist/chunk-S5QECAZN.mjs +2 -0
- package/dist/chunk-SAF3LENR.mjs +2 -0
- package/dist/chunk-SBUWOAMD.mjs +2 -0
- package/dist/chunk-SCLUM3KX.mjs +2 -0
- package/dist/chunk-SDDPW7OS.mjs +2 -0
- package/dist/chunk-SDUHSZOE.mjs +2 -0
- package/dist/chunk-SES5K3VW.mjs +2 -0
- package/dist/chunk-SHAX3XHU.mjs +2 -0
- package/dist/chunk-SJ7AGXLW.mjs +2 -0
- package/dist/chunk-SJBC3MX4.mjs +2 -0
- package/dist/chunk-SJBE53SX.mjs +2 -0
- package/dist/chunk-SKSF2QU4.mjs +2 -0
- package/dist/chunk-SKZITERI.mjs +2 -0
- package/dist/chunk-SO5MY6MP.mjs +2 -0
- package/dist/chunk-SQ72NMUG.mjs +2 -0
- package/dist/chunk-SSR5HDSW.mjs +2 -0
- package/dist/chunk-SYFACKWG.mjs +2 -0
- package/dist/chunk-T3MTCKPD.mjs +2 -0
- package/dist/chunk-T5ANRHLT.mjs +2 -0
- package/dist/chunk-T6JL3WOA.mjs +2 -0
- package/dist/chunk-TBSSVSOU.mjs +2 -0
- package/dist/chunk-TEUVWUM3.mjs +2 -0
- package/dist/chunk-TF3LDJ5R.mjs +6 -0
- package/dist/chunk-THHLBN7N.mjs +2 -0
- package/dist/chunk-TI5KXH5C.mjs +2 -0
- package/dist/chunk-TJ3U346L.mjs +2 -0
- package/dist/chunk-TKILHP52.mjs +2 -0
- package/dist/chunk-TKUJ45O7.mjs +2 -0
- package/dist/chunk-TNAH7N5Q.mjs +2 -0
- package/dist/chunk-TPAIXPEW.mjs +2 -0
- package/dist/chunk-TUG5B6HV.mjs +2 -0
- package/dist/chunk-TWOXOTB5.mjs +2 -0
- package/dist/chunk-TYJUNW4W.mjs +2 -0
- package/dist/chunk-TZJEIYJ5.mjs +2 -0
- package/dist/chunk-U566KVYJ.mjs +6 -0
- package/dist/chunk-U7YZTR7L.mjs +2 -0
- package/dist/chunk-UE5FESA4.mjs +2 -0
- package/dist/chunk-UEX4RCBB.mjs +6 -0
- package/dist/chunk-UG73AMUT.mjs +2 -0
- package/dist/chunk-UGCRJZJX.mjs +2 -0
- package/dist/chunk-UIFZOBQS.mjs +2 -0
- package/dist/chunk-UJPYXZSJ.mjs +6 -0
- package/dist/chunk-UPCYYH6V.mjs +2 -0
- package/dist/chunk-UQRA5CIK.mjs +2 -0
- package/dist/chunk-UQUT3ZK3.mjs +2 -0
- package/dist/chunk-UU26UDN7.mjs +2 -0
- package/dist/chunk-UVGBM4KM.mjs +2 -0
- package/dist/chunk-UWEWDVB4.mjs +2 -0
- package/dist/chunk-UXC6FRSO.mjs +2 -0
- package/dist/chunk-V2FDPSFN.mjs +2 -0
- package/dist/chunk-V6VNLKIG.mjs +2 -0
- package/dist/chunk-V6YDESTV.mjs +2 -0
- package/dist/chunk-VABK3NNS.mjs +2 -0
- package/dist/chunk-VC26F3RP.mjs +2 -0
- package/dist/chunk-VDHVVWG6.mjs +2 -0
- package/dist/chunk-VGFEGFII.mjs +2 -0
- package/dist/chunk-VGHATC2D.mjs +2 -0
- package/dist/chunk-VHICV25E.mjs +2 -0
- package/dist/chunk-VIJB2P4M.mjs +2 -0
- package/dist/chunk-VJB6JLDV.mjs +2 -0
- package/dist/chunk-VKB7TCLW.mjs +2 -0
- package/dist/chunk-VL4RHFEN.mjs +2 -0
- package/dist/chunk-VMYST2HS.mjs +2 -0
- package/dist/chunk-VN656M5F.mjs +2 -0
- package/dist/chunk-VOYPFLKP.mjs +2 -0
- package/dist/chunk-VRJ2NRSO.mjs +2 -0
- package/dist/chunk-VSWAUQIL.mjs +2 -0
- package/dist/chunk-VTRRJHUU.mjs +2 -0
- package/dist/chunk-VTSJYP2N.mjs +2 -0
- package/dist/chunk-VU52JHH5.mjs +2 -0
- package/dist/chunk-VVUU6JRM.mjs +2 -0
- package/dist/chunk-VVZOOOJY.mjs +2 -0
- package/dist/chunk-W23T3CXB.mjs +2 -0
- package/dist/chunk-W3Y4CZGN.mjs +2 -0
- package/dist/chunk-W4C3OZTS.mjs +2 -0
- package/dist/chunk-W7WEA2ZV.mjs +2 -0
- package/dist/chunk-WF5VDI7X.mjs +2 -0
- package/dist/chunk-WFJSFTVW.mjs +2 -0
- package/dist/chunk-WFLL3SHE.mjs +6 -0
- package/dist/chunk-WGCI5T3R.mjs +6 -0
- package/dist/chunk-WGXEON4V.mjs +2 -0
- package/dist/chunk-WH27MDW6.mjs +2 -0
- package/dist/chunk-WIS4N3GF.mjs +2 -0
- package/dist/chunk-WJB35KEW.mjs +2 -0
- package/dist/chunk-WJICABWO.mjs +2 -0
- package/dist/chunk-WMAJWRVF.mjs +6 -0
- package/dist/chunk-WOEZLFFM.mjs +2 -0
- package/dist/chunk-WOOWWHYP.mjs +2 -0
- package/dist/chunk-WQPHAMKG.mjs +2 -0
- package/dist/chunk-WQSW7LJU.mjs +2 -0
- package/dist/chunk-WSG3I47M.mjs +2 -0
- package/dist/chunk-WYFG5LXQ.mjs +2 -0
- package/dist/chunk-X5XFF7SS.mjs +2 -0
- package/dist/chunk-X72BZPN3.mjs +2 -0
- package/dist/chunk-XC2AX62T.mjs +2 -0
- package/dist/chunk-XCLT6ETU.mjs +6 -0
- package/dist/chunk-XEYIVIYO.mjs +2 -0
- package/dist/chunk-XEZMUHIV.mjs +2 -0
- package/dist/chunk-XLCQBU5J.mjs +2 -0
- package/dist/chunk-XLMDO4ZL.mjs +2 -0
- package/dist/chunk-XPZTGCEI.mjs +2 -0
- package/dist/chunk-XTBZIQ2U.mjs +2 -0
- package/dist/chunk-XUCXF47V.mjs +2 -0
- package/dist/chunk-XVRD64YX.mjs +6 -0
- package/dist/chunk-XW3NMHCT.mjs +2 -0
- package/dist/chunk-XWEN3PFJ.mjs +2 -0
- package/dist/chunk-XZGMS5ZH.mjs +2 -0
- package/dist/chunk-Y2W7AILC.mjs +2 -0
- package/dist/chunk-Y4HMM6AU.mjs +2 -0
- package/dist/chunk-Y4QF7RN2.mjs +2 -0
- package/dist/chunk-YCNFF3Q2.mjs +2 -0
- package/dist/chunk-YEZMS6DB.mjs +2 -0
- package/dist/chunk-YF7NXSU4.mjs +2 -0
- package/dist/chunk-YFTL7BRZ.mjs +6 -0
- package/dist/chunk-YGGS2GND.mjs +2 -0
- package/dist/chunk-YI2MXKDK.mjs +2 -0
- package/dist/chunk-YNY4Y3TS.mjs +2 -0
- package/dist/chunk-YPUGSNR3.mjs +2 -0
- package/dist/chunk-YQAFXCBS.mjs +2 -0
- package/dist/chunk-YVKMEUKA.mjs +2 -0
- package/dist/chunk-YWNA7F3R.mjs +2 -0
- package/dist/chunk-YZCRKBXT.mjs +2 -0
- package/dist/chunk-YZDKBALF.mjs +6 -0
- package/dist/chunk-Z2QCHWY3.mjs +2 -0
- package/dist/chunk-Z2VDBFTY.mjs +2 -0
- package/dist/chunk-Z3YV2WRJ.mjs +2 -0
- package/dist/chunk-ZBWYXGD2.mjs +2 -0
- package/dist/chunk-ZCVIMP3Z.mjs +6 -0
- package/dist/chunk-ZFMAOKZG.mjs +2 -0
- package/dist/chunk-ZGYSZEW5.mjs +2 -0
- package/dist/chunk-ZIT4I6Y3.mjs +2 -0
- package/dist/chunk-ZJGLR3ZA.mjs +2 -0
- package/dist/chunk-ZJICX3BL.mjs +2 -0
- package/dist/chunk-ZJWHCAS3.mjs +2 -0
- package/dist/chunk-ZKAEB6EP.mjs +2 -0
- package/dist/chunk-ZLRQTD6Y.mjs +2 -0
- package/dist/chunk-ZNBFWJ76.mjs +2 -0
- package/dist/chunk-ZNUVBW2G.mjs +2 -0
- package/dist/chunk-ZPH6QMWS.mjs +2 -0
- package/dist/chunk-ZPPR2L25.mjs +6 -0
- package/dist/chunk-ZQFWVOBH.mjs +2 -0
- package/dist/chunk-ZSO3KWDZ.mjs +2 -0
- package/dist/chunk-ZUWQQ4UY.mjs +2 -0
- package/dist/chunk-ZWSXYDQQ.mjs +2 -0
- package/dist/chunk-ZXTST5XC.mjs +2 -0
- package/dist/chunk-ZXTSXTXC.mjs +6 -0
- package/dist/chunk-ZZGTNYHX.mjs +2 -0
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-list.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/go.d.ts +6 -0
- package/dist/icons/go.mjs +2 -0
- package/dist/icons/index.d.ts +19 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/nucleo/blog.d.ts +6 -0
- package/dist/icons/nucleo/blog.mjs +2 -0
- package/dist/icons/nucleo/book2.d.ts +6 -0
- package/dist/icons/nucleo/book2.mjs +2 -0
- package/dist/icons/nucleo/bullet-list.d.ts +6 -0
- package/dist/icons/nucleo/bullet-list.mjs +2 -0
- package/dist/icons/nucleo/chart-line.d.ts +6 -0
- package/dist/icons/nucleo/chart-line.mjs +2 -0
- package/dist/icons/nucleo/code.d.ts +6 -0
- package/dist/icons/nucleo/code.mjs +2 -0
- package/dist/icons/nucleo/headset.d.ts +6 -0
- package/dist/icons/nucleo/headset.mjs +2 -0
- package/dist/icons/nucleo/hexadecagon-star.d.ts +6 -0
- package/dist/icons/nucleo/hexadecagon-star.mjs +2 -0
- package/dist/icons/nucleo/key.d.ts +6 -0
- package/dist/icons/nucleo/key.mjs +2 -0
- package/dist/icons/nucleo/paintbrush.d.ts +6 -0
- package/dist/icons/nucleo/paintbrush.mjs +2 -0
- package/dist/icons/nucleo/stars2.d.ts +6 -0
- package/dist/icons/nucleo/stars2.mjs +2 -0
- package/dist/icons/nucleo/users.d.ts +6 -0
- package/dist/icons/nucleo/users.mjs +2 -0
- package/dist/icons/nucleo/window-settings.d.ts +6 -0
- package/dist/icons/nucleo/window-settings.mjs +2 -0
- package/dist/icons/prisma.d.ts +6 -0
- package/dist/icons/prisma.mjs +2 -0
- package/dist/icons/python.d.ts +6 -0
- package/dist/icons/python.mjs +2 -0
- package/dist/icons/raycast.d.ts +6 -0
- package/dist/icons/raycast.mjs +2 -0
- package/dist/icons/ruby.d.ts +6 -0
- package/dist/icons/ruby.mjs +2 -0
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/tinybird.d.ts +6 -0
- package/dist/icons/tinybird.mjs +2 -0
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/typescript.d.ts +6 -0
- package/dist/icons/typescript.mjs +2 -0
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +60 -8
- 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.d.ts +6 -0
- package/dist/nav/content/product-content.mjs +2 -0
- package/dist/nav/content/resources-content.d.ts +6 -0
- package/dist/nav/content/resources-content.mjs +2 -0
- package/dist/nav/content/shared.d.ts +22 -0
- package/dist/nav/content/shared.mjs +2 -0
- package/dist/nav/content/solutions-content.d.ts +6 -0
- package/dist/nav/content/solutions-content.mjs +2 -0
- package/dist/nav/nav-mobile.d.ts +14 -0
- package/dist/nav/nav-mobile.mjs +2 -0
- package/dist/nav/nav.d.ts +42 -0
- package/dist/nav/nav.mjs +2 -0
- package/dist/nav-logo.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.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/shared-d1be4b94.d.ts +5 -0
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.d.ts +42 -0
- package/dist/table/table.mjs +2 -0
- package/dist/table/use-table-pagination.d.ts +13 -0
- package/dist/table/use-table-pagination.mjs +2 -0
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/user-967d33e3.d.ts +8 -0
- 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-6HNMOI5O.mjs";import{a as x}from"./chunk-3GDSJXP4.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.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(({shortTitle: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 p,d as h}from"./chunk-UEX4RCBB.mjs";import{d as n,g as f,i as l}from"./chunk-5D54PSF2.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("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(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("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:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:n,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${n}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${n}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as d,d as p,f as s}from"./chunk-MUZ6V67F.mjs";import{a as n,c as l,d as f}from"./chunk-D3AZYWPA.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function b({domain:c}){return m("div",{className:"grid w-[32rem] grid-cols-[5fr_3fr]",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},o))})]})]})}export{b as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-R3HER2QA.mjs";import{f as e,g as s}from"./chunk-5XIONXV4.mjs";import{Globe as o}from"lucide-react";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,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-4PXOHWHU.mjs";import{a as f}from"./chunk-JX5W4R2L.mjs";import{a as y}from"./chunk-5YH4QIQ2.mjs";import{b as N}from"./chunk-VGHATC2D.mjs";import{d as b,g as w,h as d,i as C}from"./chunk-3I3KYVGK.mjs";import*as r from"@radix-ui/react-navigation-menu";import p from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import v from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as H,BarChart as W,Link2 as A,QrCode as I,Users as D,Webhook as $}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:W,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:H,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:I,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:A,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:$,slug:"docs/api-reference/introduction"}];import{useCallback as O,useEffect as L,useState as G}from"react";function S(i){let[e,m]=G(!1),l=O(()=>{m(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as c from"@radix-ui/react-popover";import{BoxSelect as z,Home as F,LayoutGrid as Z,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<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>`,J=`<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 V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function R({variant:i="full",isInApp:e,className:m}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,g]=q(!1),n=Y(a=>{a.preventDefault(),g(!0)},[]);return _(c.Root,{open:k,onOpenChange:g,children:[o(c.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:m}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(c.Portal,{children:o(c.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),g(!1)},children:_("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(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),e||l!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"},{name:"Help Center",slug:"help"}];function Be({theme:i="light"}){let{domain:e="dub.co"}=ee(),m=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:g}=re(e==="dub.co"&&"/api/auth/session",w,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&C.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(v,{href:m("/"),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(R,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:B,shortTitle:E})=>s(v,{href:m(`/${n}`),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:E})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:B})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(v,{id:`nav-${a}`,href:m(`/${a}`),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(v,{href:b,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"}):g?null:s(ie,{children:[t(v,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{p.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(v,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{p.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"})]})})]})})]})})}export{S as a,M as b,x as c,ae as d,Be as e,R as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as z}from"./chunk-VABK3NNS.mjs";import{a as O}from"./chunk-K4MP745I.mjs";import{a as H,b as K}from"./chunk-DLMXMEZY.mjs";import{a as A}from"./chunk-J3XQLDPV.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{f as R,i as v}from"./chunk-RZQWS5UQ.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 w,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=w(()=>{S(""),I(null)},[]);T(()=>{N||C()},[N]);let s=u?e.find(({key:t})=>t===u):null,$=w(t=>{d.current&&(P.current={width:d.current.scrollWidth,height:d.current.scrollHeight}),S(""),I(t),l==null||l(t)},[]),L=w(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:v("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:v("group flex h-10 cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 outline-none transition-all sm:text-sm","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=w(()=>{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:v("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{k as r}from"./chunk-UIFZOBQS.mjs";import{jsx as a}from"react/jsx-runtime";function d({user:e={},className:n}){return e?a("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:e.image||`https://api.dicebear.com/7.x/micah/svg?seed=${e.id||e.email}`,className:(void 0)("h-10 w-10 rounded-full border border-gray-300",n),draggable:!1}):a("div",{className:(void 0)("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",n)})}function l({id:e}){return a("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${e}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{d as a,l as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-ZJGLR3ZA.mjs";import{i as s,j as m}from"./chunk-JKSIE5IM.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:[(void 0)(e||0,{full:!0})," ",o]}),i&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",(void 0)(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{b as l}from"./chunk-HCSLTLQJ.mjs";import{a as s}from"./chunk-34SGC4YH.mjs";import{d as r}from"./chunk-ELWUYRKK.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("",{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 transition-all",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{k as r}from"./chunk-UIFZOBQS.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:(void 0)("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:(void 0)("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:(void 0)("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";function r(s){return t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 199 198",fill:"none",...s,children:[t("g",{fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[o("path",{fill:"#871101",fillOpacity:.8,d:"M153.5 130.41 40.38 197.58l146.469-9.939L198.13 39.95l-44.63 90.46Z"}),o("path",{fill:"#871101",d:"M187.089 187.54 174.5 100.65l-34.291 45.28 46.88 41.61Z"}),o("path",{fill:"url(#b)",d:"M187.259 187.54 95.03 180.3l-54.16 17.091 146.389-9.851Z"}),o("path",{fill:"url(#c)",d:"m41 197.41 23.04-75.48-50.7 10.841L41 197.41Z"}),o("path",{fill:"url(#d)",d:"M140.2 146.18 119 63.14l-60.67 56.87 81.87 26.17Z"}),o("path",{fill:"url(#e)",d:"m193.32 64.31-57.35-46.84L120 69.1l73.32-4.79Z"}),o("path",{fill:"url(#f)",d:"m166.5.77-33.73 18.64L111.49.52l55.01.25Z"}),o("path",{fill:"url(#g)",d:"m0 158.09 14.13-25.77-11.43-30.7L0 158.09Z"}),o("path",{fill:"#fff",d:"m1.94 100.65 11.5 32.62 49.97-11.211 57.05-53.02 16.1-51.139L111.209 0l-43.1 16.13c-13.58 12.63-39.93 37.62-40.88 38.09-.94.48-17.4 31.59-25.29 46.43Z"}),o("path",{fill:"url(#h)",d:"M42.32 42.05c29.43-29.18 67.37-46.42 81.93-31.73 14.551 14.69-.88 50.39-30.31 79.56s-66.9 47.36-81.45 32.67c-14.56-14.68.4-51.33 29.83-80.5Z"}),o("path",{fill:"url(#i)",d:"m41 197.38 22.86-75.72 75.92 24.39c-27.45 25.74-57.98 47.5-98.78 51.33Z"}),o("path",{fill:"url(#j)",d:"m120.56 68.89 19.49 77.2c22.93-24.11 43.51-50.03 53.589-82.09l-73.079 4.89Z"}),o("path",{fill:"url(#k)",d:"M193.44 64.39c7.8-23.54 9.6-57.31-27.181-63.58l-30.18 16.67 57.361 46.91Z"}),o("path",{fill:"#9E1209",d:"M0 157.75c1.08 38.851 29.11 39.43 41.05 39.771L13.47 133.11 0 157.75Z"}),o("path",{fill:"url(#l)",d:"M120.669 69.01c17.62 10.83 53.131 32.58 53.851 32.98 1.119.63 15.31-23.93 18.53-37.81l-72.381 4.83Z"}),o("path",{fill:"url(#m)",d:"m63.83 121.66 30.56 58.96c18.07-9.8 32.22-21.74 45.18-34.53l-75.74-24.43Z"}),o("path",{fill:"url(#n)",d:"m13.35 133.19-4.33 51.56c8.17 11.16 19.41 12.13 31.2 11.26-8.53-21.23-25.57-63.68-26.87-62.82Z"}),o("path",{fill:"url(#o)",d:"m135.9 17.61 60.71 8.52C193.37 12.4 183.42 3.54 166.46.77L135.9 17.61Z"})]}),t("defs",{children:[t("linearGradient",{id:"b",x1:151.795,x2:97.93,y1:217.785,y2:181.638,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#871101"}),o("stop",{offset:.99,stopColor:"#911209"}),o("stop",{offset:1,stopColor:"#911209"})]}),t("linearGradient",{id:"c",x1:38.696,x2:47.047,y1:127.391,y2:181.661,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#fff"}),o("stop",{offset:.23,stopColor:"#E57252"}),o("stop",{offset:.46,stopColor:"#DE3B20"}),o("stop",{offset:.99,stopColor:"#A60003"}),o("stop",{offset:1,stopColor:"#A60003"})]}),t("linearGradient",{id:"d",x1:96.133,x2:99.21,y1:76.715,y2:132.102,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#fff"}),o("stop",{offset:.23,stopColor:"#E4714E"}),o("stop",{offset:.56,stopColor:"#BE1A0D"}),o("stop",{offset:.99,stopColor:"#A80D00"}),o("stop",{offset:1,stopColor:"#A80D00"})]}),t("linearGradient",{id:"e",x1:147.103,x2:156.314,y1:25.521,y2:65.216,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#fff"}),o("stop",{offset:.18,stopColor:"#E46342"}),o("stop",{offset:.4,stopColor:"#C82410"}),o("stop",{offset:.99,stopColor:"#A80D00"}),o("stop",{offset:1,stopColor:"#A80D00"})]}),t("linearGradient",{id:"f",x1:118.976,x2:158.669,y1:11.541,y2:-8.305,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#fff"}),o("stop",{offset:.54,stopColor:"#C81F11"}),o("stop",{offset:.99,stopColor:"#BF0905"}),o("stop",{offset:1,stopColor:"#BF0905"})]}),t("linearGradient",{id:"g",x1:3.903,x2:7.17,y1:113.555,y2:146.263,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#fff"}),o("stop",{offset:.31,stopColor:"#DE4024"}),o("stop",{offset:.99,stopColor:"#BF190B"}),o("stop",{offset:1,stopColor:"#BF190B"})]}),t("linearGradient",{id:"h",x1:-18.556,x2:135.015,y1:155.104,y2:-2.809,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#BD0012"}),o("stop",{offset:.07,stopColor:"#fff"}),o("stop",{offset:.17,stopColor:"#fff"}),o("stop",{offset:.27,stopColor:"#C82F1C"}),o("stop",{offset:.33,stopColor:"#820C01"}),o("stop",{offset:.46,stopColor:"#A31601"}),o("stop",{offset:.72,stopColor:"#B31301"}),o("stop",{offset:.99,stopColor:"#E82609"}),o("stop",{offset:1,stopColor:"#E82609"})]}),t("linearGradient",{id:"i",x1:99.075,x2:52.818,y1:171.033,y2:159.617,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8C0C01"}),o("stop",{offset:.54,stopColor:"#990C00"}),o("stop",{offset:.99,stopColor:"#A80D0E"}),o("stop",{offset:1,stopColor:"#A80D0E"})]}),t("linearGradient",{id:"j",x1:178.526,x2:137.433,y1:115.515,y2:78.684,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#7E110B"}),o("stop",{offset:.99,stopColor:"#9E0C00"}),o("stop",{offset:1,stopColor:"#9E0C00"})]}),t("linearGradient",{id:"k",x1:193.623,x2:173.154,y1:47.937,y2:26.054,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#79130D"}),o("stop",{offset:.99,stopColor:"#9E120B"}),o("stop",{offset:1,stopColor:"#9E120B"})]}),t("linearGradient",{id:"n",x1:26.67,x2:9.989,y1:197.336,y2:140.742,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#8B2114"}),o("stop",{offset:.43,stopColor:"#9E100A"}),o("stop",{offset:.99,stopColor:"#B3100C"}),o("stop",{offset:1,stopColor:"#B3100C"})]}),t("linearGradient",{id:"o",x1:154.641,x2:192.039,y1:9.798,y2:26.306,gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#B31000"}),o("stop",{offset:.44,stopColor:"#910F08"}),o("stop",{offset:.99,stopColor:"#791C12"}),o("stop",{offset:1,stopColor:"#791C12"})]}),t("radialGradient",{id:"l",cx:0,cy:0,r:1,gradientTransform:"translate(143.831 79.388) scale(50.3576)",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#A80D00"}),o("stop",{offset:.99,stopColor:"#7E0E08"}),o("stop",{offset:1,stopColor:"#7E0E08"})]}),t("radialGradient",{id:"m",cx:0,cy:0,r:1,gradientTransform:"translate(74.092 145.751) scale(66.9437)",gradientUnits:"userSpaceOnUse",children:[o("stop",{stopColor:"#A30C00"}),o("stop",{offset:.99,stopColor:"#800E08"}),o("stop",{offset:1,stopColor:"#800E08"})]}),o("clipPath",{id:"a",children:o("path",{fill:"#fff",d:"M0 0h198.13v197.58H0z"})})]})]})}export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-R4KEOG3E.mjs";import{f as u}from"./chunk-JG7HARGV.mjs";import{b as g}from"./chunk-2SIZB6Z2.mjs";import{d as c,g as h,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as w,Menu as x,X as z}from"lucide-react";import n 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,s]=N(!1);C(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:l}=L(d==="dub.co"&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>s(!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 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",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 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:o,href:f,childItems:p},m)=>e(I,{name:o,href:f,childItems:p,setOpen:s},m)),l&&Object.keys(l).length>0?e("li",{className:"py-3",children:e(n,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(S,{children:[e("li",{className:"py-3",children:e(n,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(n,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var I=({name:r,href:d,childItems:a,setOpen:s})=>{let{domain:l="dub.co"}=y(),[o,f]=N(!1);return a?e("li",{className:"py-3",children:i(g,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!o),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",o&&"rotate-180")})]}),o&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:m,icon:k,iconClassName:v})=>i(n,{href:u(m,l),onClick:()=>s(!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))})]})}):e("li",{className:"py-3",children:e(n,{href:l==="dub.co"?`/${d}`:`https://dub.co/${d}`,onClick:()=>s(!1),className:"flex w-full font-semibold capitalize",children:r})})};export{R as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as N}from"./chunk-PLVAY633.mjs";import{a as x}from"./chunk-2COYHBQU.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.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(({shortTitle: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{a as z}from"./chunk-5EMWWWMJ.mjs";import{a as O}from"./chunk-K4MP745I.mjs";import{a as H,b as K}from"./chunk-2SIZB6Z2.mjs";import{a as A}from"./chunk-DLETK3JE.mjs";import{a as M}from"./chunk-YURUGH4S.mjs";import{f as R,i as w}from"./chunk-JP57AFGB.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 outline-none transition-all sm:text-sm","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{a as l}from"./chunk-Z3YV2WRJ.mjs";import{d as e,e as s}from"./chunk-JKSIE5IM.mjs";import{Globe as o}from"lucide-react";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 F}from"./chunk-UGCRJZJX.mjs";import{a as H}from"./chunk-NEGWM3CK.mjs";import{a as T}from"./chunk-YZCRKBXT.mjs";import{a as C}from"./chunk-4LSID5UQ.mjs";import{a as p}from"./chunk-K4MP745I.mjs";import{g as O}from"./chunk-CHJUJE4X.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,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as L}from"./chunk-BVP3AMVF.mjs";import{a as S}from"./chunk-R4KDWH4W.mjs";import{a as V}from"./chunk-W3Y4CZGN.mjs";import{f as w}from"./chunk-3GDSJXP4.mjs";import{a as W}from"./chunk-DMLF4GJF.mjs";import{a as M}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as s,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as q}from"class-variance-authority";import p from"next/link";import{useParams as J,useSelectedLayoutSegment as Q}from"next/navigation";import{createContext as X}from"react";import ee from"swr";import{useCallback as I,useEffect as _,useState as A}from"react";function H(r){let[e,m]=A(!1),a=I(()=>{m(window.scrollY>r)},[r]);return _(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),_(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as O,Home as G,LayoutGrid as Z,Type as $}from"lucide-react";import{useParams as z}from"next/navigation";import{useCallback as j,useContext as F,useState as U}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as B}from"react/jsx-runtime";var K=`<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>`,Y=`<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 T(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),R.error("Failed to copy to clipboard.")}}function E({variant:r="full",isInApp:e,className:m}){let{domain:a="dub.co"}=z(),{theme:g}=F(x),[b,c]=U(!1),n=j(d=>{d.preventDefault(),c(!0)},[]);return B(l.Root,{open:b,onOpenChange:c,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:r==="full"?o(W,{className:m}):o(k,{className:s("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:s("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:d=>{d.stopPropagation(),c(!1)},children:B("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:()=>T(K),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>T(Y),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(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(G,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:s("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 re,jsx as t,jsxs as u}from"react/jsx-runtime";var x=X({theme:"light"}),te=[{name:"Product",href:"/",content:L},{name:"Solutions",content:V},{name:"Pricing",href:"/pricing"},{name:"Resources",content:S}],D=q(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Re({theme:r="light"}){let{domain:e="dub.co"}=J(),m=H(80),a=Q(),{data:g,isLoading:b}=ee(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:s("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:s("-z-1 absolute inset-0 border-transparent transition-all")}),t(M,{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(E,{})}),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:s("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",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),te.map(({name:c,href:n,content:d})=>{let C=n===`/${a}`||n==="/"&&a===null;return u(i.Item,{children:[t(oe,{trigger:!!d,children:n!==void 0?t(p,{id:`nav-${n}`,href:w(n,e)??"/test",className:D({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${n})`})}},children:c},n):t("button",{className:s(D({isActive:C}),"cursor-default"),children:c})}),d&&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(d,{domain:e})})]},n)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:s("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(re,{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 oe({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,te as c,Re as d,E as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f,b as g,f as m}from"./chunk-JG7HARGV.mjs";import{a as c,c as l,d as x}from"./chunk-D3AZYWPA.mjs";import{a as v}from"./chunk-FXXDWSKY.mjs";import{i as s,l as d}from"./chunk-JP57AFGB.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:f.map(({icon:i,title:t,description:n,href:a})=>e(l,{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:g.map(({icon:i,iconClassName:t,title:n,description:a,href:p})=>e(l,{href:m(p,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},p))}),e("p",{className:s(c,"my-4"),children:"Compare"}),e("div",{className:"flex flex-col gap-1.5",children:d.map(({name:i,slug:t})=>o(h,{href:m(`/compare/${t}`,r),className:"group flex items-center 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{c as g}from"./chunk-BMZDMOXG.mjs";import{b as u}from"./chunk-2SIZB6Z2.mjs";import{d as c,g as h,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as v,Menu as w,X as x}from"lucide-react";import r from"next/link";import{useParams as b}from"next/navigation";import{useEffect as z,useState as y}from"react";import C from"swr";import{Fragment as $,jsx as e,jsxs as i}from"react/jsx-runtime";function j({theme:d="light"}){let{domain:m="dub.co"}=b(),[a,s]=y(!1);z(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:l}=C(m==="dub.co"&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:t(d==="dark"&&"dark"),children:[e("button",{onClick:()=>s(!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 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{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 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[g.map(({name:o,href:f,childItems:p},n)=>e(L,{name:o,href:f,childItems:p,setOpen:s},n)),l&&Object.keys(l).length>0?e("li",{className:"py-3",children:e(r,{href:c,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i($,{children:[e("li",{className:"py-3",children:e(r,{href:`${c}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${c}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:d,href:m,childItems:a,setOpen:s})=>{let{domain:l="dub.co"}=b(),[o,f]=y(!1);return a?e("li",{className:"py-3",children:i(u,{height:!0,initial:!1,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!o),children:[e("p",{className:"font-semibold",children:d}),e(v,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",o&&"rotate-180")})]}),o&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:p,href:n,icon:N,iconClassName:k})=>i(r,{href:l==="dub.co"?`/${n}`:`https://dub.co/${n}`,onClick:()=>s(!1),className:"flex w-full space-x-2",children:[e(N,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:p})]},n))})]})}):e("li",{className:"py-3",children:e(r,{href:l==="dub.co"?`/${m}`:`https://dub.co/${m}`,onClick:()=>s(!1),className:"flex w-full font-semibold capitalize",children:d})})};export{j as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-PLBNO4SP.mjs";import{a as y}from"./chunk-3EYESOVW.mjs";import{a as f}from"./chunk-HISIKABS.mjs";import{b as N}from"./chunk-A2ZSXR46.mjs";import{d as b,g as w,i as d,j as C}from"./chunk-5D54PSF2.mjs";import*as r from"@radix-ui/react-navigation-menu";import p from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import v from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as H,BarChart as W,Link2 as A,QrCode as I,Users as D,Webhook as $}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:W,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:H,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:I,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:A,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:$,slug:"docs/api-reference/introduction"}];import{useCallback as O,useEffect as L,useState as G}from"react";function S(i){let[e,m]=G(!1),l=O(()=>{m(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as c from"@radix-ui/react-popover";import{BoxSelect as z,Home as F,LayoutGrid as Z,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<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>`,J=`<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 V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function R({variant:i="full",isInApp:e,className:m}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,g]=q(!1),n=Y(a=>{a.preventDefault(),g(!0)},[]);return _(c.Root,{open:k,onOpenChange:g,children:[o(c.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:m}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(c.Portal,{children:o(c.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),g(!1)},children:_("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(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),e||l!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"},{name:"Help Center",slug:"help"}];function Be({theme:i="light"}){let{domain:e="dub.co"}=ee(),m=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:g}=re(e==="dub.co"&&"/api/auth/session",w,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&C.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(v,{href:m("/"),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(R,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:B,shortTitle:E})=>s(v,{href:m(`/${n}`),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:E})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:B})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(v,{id:`nav-${a}`,href:m(`/${a}`),...e!=="dub.co"&&{onClick:()=>{p.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(v,{href:b,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"}):g?null:s(ie,{children:[t(v,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{p.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(v,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{p.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"})]})})]})})]})})}export{S as a,M as b,x as c,ae as d,Be as e,R as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as C}from"./chunk-UIFZOBQS.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function V({className:l}){return o("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-6 w-auto text-black dark:text-white",l),children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as f}from"./chunk-MBAL4WEY.mjs";import{g as c}from"./chunk-CHJUJE4X.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(),b=(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},y=e=>{if(P(e)){let t=r;return t&&b(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-base text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:text-sm sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",y(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
|
+
var r=["stats","changelog","terms","privacy","abuse"],t=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"GitHub Link Shortener",slug:"github-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"Link Inspector",slug:"inspector"},{name:"QR Code API",slug:"qr-code"},{name:"UTM Builder",slug:"utm-builder"}],e=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];export{r as a,t as b,e as c,a as d,s as e,m as f,i as g,A as h,_ as i,o as j,n as k};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as S}from"./chunk-QB4VHFVE.mjs";import{a as V}from"./chunk-YVKMEUKA.mjs";import{a as L}from"./chunk-6ILS75HU.mjs";import{f as w}from"./chunk-KTINRJRF.mjs";import{a as W}from"./chunk-DMLF4GJF.mjs";import{a as M}from"./chunk-HPOHGCIW.mjs";import{a as k}from"./chunk-63RFWC6U.mjs";import{b as P}from"./chunk-YF7NXSU4.mjs";import{d as h,g as N,i as s,j as y}from"./chunk-JP57AFGB.mjs";import*as i from"@radix-ui/react-navigation-menu";import f from"@vercel/analytics";import{cva as q}from"class-variance-authority";import p from"next/link";import{useParams as J,useSelectedLayoutSegment as Q}from"next/navigation";import{createContext as X}from"react";import ee from"swr";import{useCallback as I,useEffect as _,useState as A}from"react";function H(r){let[e,m]=A(!1),a=I(()=>{m(window.scrollY>r)},[r]);return _(()=>(window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)),[a]),_(()=>{a()},[a]),e}import*as l from"@radix-ui/react-popover";import{BoxSelect as O,Home as G,LayoutGrid as Z,Type as $}from"lucide-react";import{useParams as z}from"next/navigation";import{useCallback as j,useContext as F,useState as U}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as B}from"react/jsx-runtime";var K=`<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>`,Y=`<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 T(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),R.error("Failed to copy to clipboard.")}}function E({variant:r="full",isInApp:e,className:m}){let{domain:a="dub.co"}=z(),{theme:g}=F(x),[b,c]=U(!1),n=j(d=>{d.preventDefault(),c(!0)},[]);return B(l.Root,{open:b,onOpenChange:c,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:r==="full"?o(W,{className:m}):o(k,{className:s("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:s("z-50 -mt-1.5 -translate-x-10",g==="dark"&&"dark"),onClick:d=>{d.stopPropagation(),c(!1)},children:B("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:()=>T(K),icon:o(k,{className:"h-4 w-4"})}),o(v,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>T(Y),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(v,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(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(G,{strokeWidth:2,className:"h-4 w-4"})}):o(v,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function v({className:r,...e}){return o(P,{className:s("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 re,jsx as t,jsxs as u}from"react/jsx-runtime";var x=X({theme:"light"}),te=[{name:"Product",href:"/",content:L},{name:"Solutions",content:V},{name:"Pricing",href:"/pricing"},{name:"Resources",content:S}],D=q(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Re({theme:r="light"}){let{domain:e="dub.co"}=J(),m=H(80),a=Q(),{data:g,isLoading:b}=ee(e==="dub.co"&&"/api/auth/session",N,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:r},children:u("div",{className:s("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[t("div",{className:s("-z-1 absolute inset-0 border-transparent transition-all")}),t(M,{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(E,{})}),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:s("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",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),te.map(({name:c,href:n,content:d})=>{let C=n===`/${a}`||n==="/"&&a===null;return u(i.Item,{children:[t(oe,{trigger:!!d,children:n!==void 0?t(p,{id:`nav-${n}`,href:w(n,e)??"/test",className:D({isActive:C}),...e!=="dub.co"&&{onClick:()=>{f.track("Referred from custom domain",{domain:e,medium:`navbar item (${n})`})}},children:c},n):t("button",{className:s(D({isActive:C}),"cursor-default"),children:c})}),d&&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(d,{domain:e})})]},n)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:s("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(re,{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 oe({trigger:r,children:e}){return r?t(i.Trigger,{asChild:!0,children:e}):e}export{H as a,x as b,te as c,Re as d,E as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-RVI2B5RN.mjs";import{b as s,e as m}from"./chunk-3I3KYVGK.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{d as N}from"./chunk-QAJY2VWJ.mjs";import{a as x}from"./chunk-DMADXWHH.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.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(({shortTitle:a,slug: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($,{})]}),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 $(){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{a as p}from"./chunk-K4MP745I.mjs";import{e as d}from"./chunk-JKSIE5IM.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:m,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-KQD3JUYQ.mjs";import{a as F}from"./chunk-YQAFXCBS.mjs";import{a as H}from"./chunk-FYWMALFK.mjs";import{a as C}from"./chunk-AX5SUICG.mjs";import{a as p}from"./chunk-K4MP745I.mjs";import{h as O}from"./chunk-3I3KYVGK.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{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as a}from"react/jsx-runtime";function d({user:e={},className:n}){return e?a("img",{alt:`Avatar for ${e.name||e.email}`,referrerPolicy:"no-referrer",src:e.image||`https://api.dicebear.com/7.x/micah/svg?seed=${e.id||e.email}`,className:r("h-10 w-10 rounded-full border border-gray-300",n),draggable:!1}):a("div",{className:r("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",n)})}function l({id:e}){return a("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${e}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{d as a,l as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as d,d as p,f as s}from"./chunk-E6HWCEBB.mjs";import{a as n,c as l,d as f}from"./chunk-D3AZYWPA.mjs";import{i as r}from"./chunk-JP57AFGB.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function b({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},o))})]})]})}export{b as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as h}from"./chunk-YZDKBALF.mjs";import{d as m,g as u,i as t}from"./chunk-JP57AFGB.mjs";import{ChevronDown as k,Menu as v,X as w}from"lucide-react";import n from"next/link";import{useParams as g}from"next/navigation";import{useEffect as x,useState as b}from"react";import L from"swr";import{Fragment as C,jsx as e,jsxs as i}from"react/jsx-runtime";function S({theme:r="light"}){let{domain:d="dub.co"}=g(),[a,s]=b(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:l}=L(d==="dub.co"&&"/api/auth/session",u,{dedupingInterval:6e4});return i("div",{className:t(r==="dark"&&"dark"),children:[e("button",{onClick:()=>s(!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 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(v,{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 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[h.map(({name:o,href:c,childItems:f})=>e(z,{name:o,href:c,childItems:f,setOpen:s},c)),l&&Object.keys(l).length>0?e("li",{className:"py-3",children:e(n,{href:m,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(C,{children:[e("li",{className:"py-3",children:e(n,{href:`${m}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(n,{href:`${m}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var z=({name:r,href:d,childItems:a,setOpen:s})=>{let{domain:l="dub.co"}=g(),[o,c]=b(!1);return a?i("li",{className:"py-3",children:[i("button",{className:"flex w-full justify-between",onClick:()=>c(!o),children:[e("p",{className:"font-semibold",children:r}),e(k,{className:t("h-5 w-5 text-gray-500 transition-all dark:text-white/50",o&&"rotate-180")})]}),o&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:f,href:p,icon:y,iconClassName:N})=>i(n,{href:l==="dub.co"?`/${p}`:`https://dub.co/${p}`,onClick:()=>s(!1),className:"flex w-full space-x-2",children:[e(y,{className:t("h-5 w-5 text-gray-500 dark:text-white/80",N)}),e("span",{className:"text-sm",children:f})]},p))})]}):e("li",{className:"py-3",children:e(n,{href:l==="dub.co"?`/${d}`:`https://dub.co/${d}`,onClick:()=>s(!1),className:"flex w-full font-semibold capitalize",children:r})})};export{S as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as p}from"./chunk-CTSTG4GK.mjs";import{a as f}from"./chunk-AK3VTPOG.mjs";import{d as n,g as m,i as l}from"./chunk-JP57AFGB.mjs";import{ChevronDown as b,Menu as N,X as g}from"lucide-react";import o from"next/link";import{useParams as y}from"next/navigation";import{useEffect as k,useState as w}from"react";import x from"swr";import{Fragment as v,jsx as e,jsxs as t}from"react/jsx-runtime";function M({theme:u="light"}){let{domain:r="dub.co"}=y(),[a,c]=w(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:d}=x(r==="dub.co"&&"/api/auth/session",m,{dedupingInterval:6e4});return t("div",{className:l(u==="dark"&&"dark"),children:[e("button",{onClick:()=>c(!a),className:l("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(g,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>setOpenFeatures(!openFeatures),children:[e("p",{className:"font-semibold",children:"Features"}),e(b,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",openFeatures&&"rotate-180")})]}),openFeatures&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:f.map(({slug:s,icon:i,shortTitle:h})=>t(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:h})]},s))})]}),p.map(({name:s,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:s})},i)),d&&Object.keys(d).length>0?e("li",{className:"py-3",children:e(o,{href:n,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(v,{children:[e("li",{className:"py-3",children:e(o,{href:`${n}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${n}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as v}from"./chunk-ELWUYRKK.mjs";import{jsx as h}from"react/jsx-runtime";function c({className:t}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:v("text-[#0077b5]",t),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{c as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-K4MP745I.mjs";import{i as d}from"./chunk-RZQWS5UQ.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function u({children:t,content:n,align:m="center",openPopover:a,setOpenPopover:l,mobileOnly:v,popoverContentClassName:c,collisionBoundary:g,sticky:P,onEscapeKeyDown:s}){let{isMobile:b}=p();return v||b?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Portal,{children:[i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:m,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:P,collisionBoundary:g,onEscapeKeyDown:s,children:n})})]})}export{u as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-6JPO26GL.mjs";import{a as d}from"./chunk-LFGWL3ID.mjs";import{a as h}from"./chunk-32C65ISH.mjs";import{a as c}from"./chunk-SBK5CRMY.mjs";import{a as l}from"./chunk-CZSSD6PV.mjs";import{a as u}from"./chunk-D7SRRREC.mjs";import{a}from"./chunk-DWACNU5E.mjs";import{a as n}from"./chunk-MOUGUPBB.mjs";import{a as r}from"./chunk-DMUERTF2.mjs";import{a as s}from"./chunk-PDSUXFDU.mjs";import{a as t}from"./chunk-NPWONPKN.mjs";import{a as o}from"./chunk-KYMBX7DZ.mjs";import{a as i}from"./chunk-2LBJI2KO.mjs";import{a as e}from"./chunk-ZJICX3BL.mjs";var f=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:n,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:c,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:d,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:u,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:h,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:p,slug:"docs/api-reference/introduction"}],g=[{icon:i,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:r,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:t,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],y=[{icon:a,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:l,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],T=[{icon:s,iconClassName:"py-0.5 group-hover:text-[#3178C6]",name:"Typescript",href:"/solutions/typescript"},{icon:o,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",name:"Python",href:"/solutions/python"},{icon:e,iconClassName:"group-hover:text-[#00ACD7]",name:"Go",href:"/solutions/go"}];export{f as a,g as b,y as c,T as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as p,d as h}from"./chunk-3ZFHMVSI.mjs";import{c as n,e as l,l as f}from"./chunk-JKSIE5IM.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",void 0,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("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(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("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:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:n,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${n}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${n}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as e}from"./chunk-CHJUJE4X.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-UPCYYH6V.mjs";import{a as s}from"./chunk-2LQ55DUJ.mjs";import{h as r}from"./chunk-3I3KYVGK.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("",{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 transition-all",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{g as t}from"./chunk-CHJUJE4X.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{e as N}from"./chunk-CNTHLJXR.mjs";import{a as x}from"./chunk-JG7HARGV.mjs";import{a as v}from"./chunk-HPOHGCIW.mjs";import{a as b}from"./chunk-5FA55CVM.mjs";import{a as y}from"./chunk-MVRODYEW.mjs";import{a as h}from"./chunk-OLQDEHWZ.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-JP57AFGB.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{i as t}from"./chunk-RZQWS5UQ.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|