@dub/ui 0.1.66 → 0.1.68
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.d.ts +3 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +49 -49
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.d.ts +2 -1
- package/dist/button.mjs +1 -1
- package/dist/card-list/card-list-card.mjs +1 -1
- package/dist/card-list/card-list.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-222G5NF7.mjs +2 -0
- package/dist/chunk-22PRZ2OX.mjs +2 -0
- package/dist/chunk-25MRWMFJ.mjs +2 -0
- package/dist/chunk-26UWURFH.mjs +2 -0
- package/dist/chunk-2AHRQWK6.mjs +2 -0
- package/dist/chunk-2BETCCRW.mjs +2 -0
- package/dist/chunk-2D3MKMMF.mjs +2 -0
- package/dist/chunk-2DYEAIZQ.mjs +2 -0
- package/dist/chunk-2F3Y5M6U.mjs +2 -0
- package/dist/chunk-2FANBH5R.mjs +6 -0
- package/dist/chunk-2IB4PS5G.mjs +2 -0
- package/dist/chunk-2KVPRZAU.mjs +2 -0
- package/dist/chunk-2SLBTXEH.mjs +2 -0
- package/dist/chunk-2UES2TRT.mjs +2 -0
- package/dist/chunk-2VIKRCFU.mjs +6 -0
- package/dist/chunk-2ZEW54U3.mjs +2 -0
- package/dist/chunk-2ZGZWHB4.mjs +2 -0
- package/dist/chunk-324RZJEK.mjs +2 -0
- package/dist/chunk-36PZK5TP.mjs +2 -0
- package/dist/chunk-3CQAOUWE.mjs +2 -0
- package/dist/chunk-3CQXVVGP.mjs +2 -0
- package/dist/chunk-3DVX4CVF.mjs +2 -0
- package/dist/chunk-3E4XWSLE.mjs +2 -0
- package/dist/chunk-3FQ67SPJ.mjs +2 -0
- package/dist/chunk-3HGARJF6.mjs +2 -0
- package/dist/chunk-3HT5YIY5.mjs +2 -0
- package/dist/chunk-3N2LLEC7.mjs +2 -0
- package/dist/chunk-3SRRJDU4.mjs +2 -0
- package/dist/chunk-3SUGMN7W.mjs +2 -0
- package/dist/chunk-3TR4IEDT.mjs +2 -0
- package/dist/chunk-3W3LAANN.mjs +2 -0
- package/dist/chunk-3W63LIZM.mjs +2 -0
- package/dist/chunk-3XBZQUTE.mjs +2 -0
- package/dist/chunk-3YE5RE74.mjs +6 -0
- package/dist/chunk-3ZFE52KF.mjs +2 -0
- package/dist/chunk-4C2LSCCC.mjs +2 -0
- package/dist/chunk-4DUPKJ5F.mjs +2 -0
- package/dist/chunk-4E5RG2Y7.mjs +6 -0
- package/dist/chunk-4GCHN7KC.mjs +2 -0
- package/dist/chunk-4H2QRHWA.mjs +2 -0
- package/dist/chunk-4H7GTSJX.mjs +2 -0
- package/dist/chunk-4I4SDRGF.mjs +2 -0
- package/dist/chunk-4JHL2UYW.mjs +2 -0
- package/dist/chunk-4KUKYU6H.mjs +2 -0
- package/dist/chunk-4MEYCEWL.mjs +2 -0
- package/dist/chunk-4R424NWK.mjs +2 -0
- package/dist/chunk-4S3GWZRX.mjs +6 -0
- package/dist/chunk-4SJN7IJ6.mjs +2 -0
- package/dist/chunk-4VAFBNDW.mjs +2 -0
- package/dist/chunk-4XNNNXSA.mjs +6 -0
- package/dist/chunk-4ZRACYLH.mjs +2 -0
- package/dist/chunk-4ZUW2GLL.mjs +2 -0
- package/dist/chunk-53TZQNRB.mjs +2 -0
- package/dist/chunk-57VTG3GJ.mjs +2 -0
- package/dist/chunk-5CY7CRD5.mjs +2 -0
- package/dist/chunk-5DPDUW7J.mjs +2 -0
- package/dist/chunk-5ECX7TQB.mjs +2 -0
- package/dist/chunk-5FME2SF3.mjs +2 -0
- package/dist/chunk-5FWQKIRX.mjs +2 -0
- package/dist/chunk-5GJ5FKXO.mjs +2 -0
- package/dist/chunk-5K4RJ5MR.mjs +2 -0
- package/dist/chunk-5KDUIUDU.mjs +6 -0
- package/dist/chunk-5MZGMMZG.mjs +2 -0
- package/dist/chunk-5ORITTGP.mjs +2 -0
- package/dist/chunk-5R6LVMN2.mjs +2 -0
- package/dist/chunk-5TGJASJ5.mjs +2 -0
- package/dist/chunk-5X3KWE47.mjs +2 -0
- package/dist/chunk-5YZZXSCP.mjs +2 -0
- package/dist/chunk-5ZLK4D4J.mjs +2 -0
- package/dist/chunk-5ZOZMSMR.mjs +2 -0
- package/dist/chunk-5ZP6GPDG.mjs +2 -0
- package/dist/chunk-635NI6CC.mjs +2 -0
- package/dist/chunk-64JANH7J.mjs +2 -0
- package/dist/chunk-66KJTLM3.mjs +2 -0
- package/dist/chunk-6AKYKI5H.mjs +2 -0
- package/dist/chunk-6CES5HOE.mjs +2 -0
- package/dist/chunk-6GUJFD2W.mjs +2 -0
- package/dist/chunk-6J3QAFIU.mjs +2 -0
- package/dist/chunk-6LHZOYGR.mjs +2 -0
- package/dist/chunk-6LRNGIYE.mjs +2 -0
- package/dist/chunk-6M6KT7ZG.mjs +2 -0
- package/dist/chunk-6MQZX6ZE.mjs +2 -0
- package/dist/chunk-6PMLLYMC.mjs +2 -0
- package/dist/chunk-6PVMRZ7Z.mjs +2 -0
- package/dist/chunk-6TN5NPU7.mjs +2 -0
- package/dist/chunk-6WH53E4O.mjs +2 -0
- package/dist/chunk-6WIJRJLL.mjs +2 -0
- package/dist/chunk-6X7XSTUC.mjs +2 -0
- package/dist/chunk-6XNOZHWQ.mjs +2 -0
- package/dist/chunk-6XV45TZE.mjs +2 -0
- package/dist/chunk-6XZRPZ75.mjs +2 -0
- package/dist/chunk-72EAWASS.mjs +2 -0
- package/dist/chunk-74TXR4YK.mjs +2 -0
- package/dist/chunk-74WREZOJ.mjs +2 -0
- package/dist/chunk-75FRDC3L.mjs +6 -0
- package/dist/chunk-75LUGN2J.mjs +2 -0
- package/dist/chunk-767JU6MH.mjs +2 -0
- package/dist/chunk-76WOKFXS.mjs +2 -0
- package/dist/chunk-7AOCPVFX.mjs +2 -0
- package/dist/chunk-7B6KKT7Q.mjs +2 -0
- package/dist/chunk-7CXDQI4F.mjs +2 -0
- package/dist/chunk-7DTQCAGZ.mjs +2 -0
- package/dist/chunk-7ENSDQNG.mjs +2 -0
- package/dist/chunk-7EOVTE33.mjs +2 -0
- package/dist/chunk-7HGTOM6O.mjs +2 -0
- package/dist/chunk-7HVO56CC.mjs +2 -0
- package/dist/chunk-7JD64J67.mjs +2 -0
- package/dist/chunk-7KMRTCAC.mjs +2 -0
- package/dist/chunk-7LNA6Q2P.mjs +2 -0
- package/dist/chunk-7OVVXYQM.mjs +2 -0
- package/dist/chunk-7PAQ53VS.mjs +2 -0
- package/dist/chunk-7RPZO7IY.mjs +2 -0
- package/dist/chunk-7RYV54TO.mjs +2 -0
- package/dist/chunk-7TBCXOPO.mjs +2 -0
- package/dist/chunk-7WK6JRVV.mjs +2 -0
- package/dist/chunk-7WZ4DLDQ.mjs +2 -0
- package/dist/chunk-7YO6ZVET.mjs +2 -0
- package/dist/chunk-7YWV567X.mjs +2 -0
- package/dist/chunk-A3B3IC2O.mjs +6 -0
- package/dist/chunk-A4NNLLEX.mjs +2 -0
- package/dist/chunk-A5PZLNEK.mjs +2 -0
- package/dist/chunk-ACBUSF4G.mjs +2 -0
- package/dist/chunk-ACQ6GNPV.mjs +2 -0
- package/dist/chunk-AFC2JZ5B.mjs +2 -0
- package/dist/chunk-AFRIYT63.mjs +2 -0
- package/dist/chunk-AGKAKZCZ.mjs +2 -0
- package/dist/chunk-AKMVM32Y.mjs +2 -0
- package/dist/chunk-ALBWGV4S.mjs +2 -0
- package/dist/chunk-ALR5SADV.mjs +2 -0
- package/dist/chunk-AMO2USBZ.mjs +6 -0
- package/dist/chunk-APNVQWRT.mjs +2 -0
- package/dist/chunk-AQIV6QKZ.mjs +2 -0
- package/dist/chunk-AQT3I4RN.mjs +2 -0
- package/dist/chunk-ATZROWJ4.mjs +2 -0
- package/dist/chunk-AWGHWQXU.mjs +2 -0
- package/dist/chunk-AXEIBHBU.mjs +2 -0
- package/dist/chunk-AYU63O5X.mjs +2 -0
- package/dist/chunk-B3B366UQ.mjs +2 -0
- package/dist/chunk-B3TC5DLA.mjs +6 -0
- package/dist/chunk-B6IFPAXL.mjs +2 -0
- package/dist/chunk-B6NOO2VI.mjs +2 -0
- package/dist/chunk-BAPF2NV7.mjs +2 -0
- package/dist/chunk-BC7NHNWZ.mjs +2 -0
- package/dist/chunk-BDXJNMCR.mjs +2 -0
- package/dist/chunk-BHD7GX45.mjs +2 -0
- package/dist/chunk-BLAKAI3G.mjs +2 -0
- package/dist/chunk-BLFQNWUO.mjs +2 -0
- package/dist/chunk-BMAFY5TC.mjs +2 -0
- package/dist/chunk-BOCJNAIM.mjs +2 -0
- package/dist/chunk-BQMOVIXX.mjs +2 -0
- package/dist/chunk-BS6EW2NX.mjs +2 -0
- package/dist/chunk-BUXI2PSB.mjs +6 -0
- package/dist/chunk-BXMUIFIA.mjs +2 -0
- package/dist/chunk-BXRXWKT2.mjs +2 -0
- package/dist/chunk-BYUX4X46.mjs +2 -0
- package/dist/chunk-BZ77UXFR.mjs +2 -0
- package/dist/chunk-BZNX4SFL.mjs +2 -0
- package/dist/chunk-C4HKSYD2.mjs +2 -0
- package/dist/chunk-CADAM5T6.mjs +2 -0
- package/dist/chunk-CBVEFBG7.mjs +2 -0
- package/dist/chunk-CCITWO32.mjs +2 -0
- package/dist/chunk-CDAXG4KQ.mjs +2 -0
- package/dist/chunk-CE5TGYCP.mjs +6 -0
- package/dist/chunk-CESAAT5W.mjs +2 -0
- package/dist/chunk-CFANLFEH.mjs +2 -0
- package/dist/chunk-CFX7T5R7.mjs +2 -0
- package/dist/chunk-CISZA3C6.mjs +2 -0
- package/dist/chunk-CQO2LPWS.mjs +2 -0
- package/dist/chunk-CTOOY3PQ.mjs +2 -0
- package/dist/chunk-CUZKLWRH.mjs +6 -0
- package/dist/chunk-CWVTW5IR.mjs +2 -0
- package/dist/chunk-CXTDFOXS.mjs +2 -0
- package/dist/chunk-D2NP65QZ.mjs +2 -0
- package/dist/chunk-D2Q53NO7.mjs +2 -0
- package/dist/chunk-D6J3OUAK.mjs +2 -0
- package/dist/chunk-DBL46OEK.mjs +2 -0
- package/dist/chunk-DBLDF7J5.mjs +6 -0
- package/dist/chunk-DBRCEDEG.mjs +2 -0
- package/dist/chunk-DFD734RN.mjs +2 -0
- package/dist/chunk-DFU7OZ2P.mjs +6 -0
- package/dist/chunk-DIHT4SDA.mjs +2 -0
- package/dist/chunk-DK7HHP3K.mjs +2 -0
- package/dist/chunk-DKQNY2SN.mjs +2 -0
- package/dist/chunk-DL7SHBNU.mjs +2 -0
- package/dist/chunk-DMPLU2GO.mjs +2 -0
- package/dist/chunk-DONE5OUK.mjs +2 -0
- package/dist/chunk-DT2GR4CA.mjs +2 -0
- package/dist/chunk-DTIZT246.mjs +2 -0
- package/dist/chunk-DX7SYQ33.mjs +2 -0
- package/dist/chunk-DY5FUJZU.mjs +2 -0
- package/dist/chunk-DY6WF6GD.mjs +2 -0
- package/dist/chunk-DYQI6ZTY.mjs +2 -0
- package/dist/chunk-E5BADNXP.mjs +2 -0
- package/dist/chunk-E63UPOBE.mjs +2 -0
- package/dist/chunk-E6SW2MNB.mjs +2 -0
- package/dist/chunk-E76T5YQX.mjs +2 -0
- package/dist/chunk-E7SWNYXK.mjs +6 -0
- package/dist/chunk-EBGRK6XV.mjs +2 -0
- package/dist/chunk-EFUKM4YX.mjs +2 -0
- package/dist/chunk-EJ7TZVUX.mjs +6 -0
- package/dist/chunk-ELD4H7NS.mjs +2 -0
- package/dist/chunk-EN5PX57D.mjs +2 -0
- package/dist/chunk-EOBTWYOS.mjs +2 -0
- package/dist/chunk-EU3ZWMHV.mjs +2 -0
- package/dist/chunk-EVP4WFRX.mjs +2 -0
- package/dist/chunk-EW3EEQNA.mjs +2 -0
- package/dist/chunk-EXOYLC6E.mjs +2 -0
- package/dist/chunk-EZMPQAQK.mjs +2 -0
- package/dist/chunk-EZNQTLDN.mjs +6 -0
- package/dist/chunk-EZYJDMB4.mjs +2 -0
- package/dist/chunk-F2KBRIEP.mjs +42 -0
- package/dist/chunk-F3JUTQDH.mjs +2 -0
- package/dist/chunk-FBBMWUFV.mjs +6 -0
- package/dist/chunk-FCEBF5ZI.mjs +2 -0
- package/dist/chunk-FE56AO7C.mjs +2 -0
- package/dist/chunk-FF7OG7N5.mjs +2 -0
- package/dist/chunk-FMHICJIN.mjs +2 -0
- package/dist/chunk-FNN37ZKV.mjs +2 -0
- package/dist/chunk-FQBIXKGL.mjs +2 -0
- package/dist/chunk-FQME3ER6.mjs +2 -0
- package/dist/chunk-FSERKZBX.mjs +6 -0
- package/dist/chunk-FTAKIWWV.mjs +2 -0
- package/dist/chunk-FTLHMSZX.mjs +2 -0
- package/dist/chunk-FU6IWG4T.mjs +2 -0
- package/dist/chunk-FURZ4VUU.mjs +2 -0
- package/dist/chunk-FVCSMGFU.mjs +2 -0
- package/dist/chunk-FVTULQVK.mjs +2 -0
- package/dist/chunk-FWK6D3JT.mjs +2 -0
- package/dist/chunk-FYGK3IUQ.mjs +2 -0
- package/dist/chunk-FYVAETYJ.mjs +2 -0
- package/dist/chunk-FZSYIBOU.mjs +6 -0
- package/dist/chunk-G3NC2M2O.mjs +2 -0
- package/dist/chunk-G63XEVDA.mjs +2 -0
- package/dist/chunk-G73RY4IZ.mjs +2 -0
- package/dist/chunk-G7EWATSY.mjs +2 -0
- package/dist/chunk-GCONGFRR.mjs +42 -0
- package/dist/chunk-GDV2FRRU.mjs +2 -0
- package/dist/chunk-GGULMU4X.mjs +2 -0
- package/dist/chunk-GI2UKCC5.mjs +2 -0
- package/dist/chunk-GIW2RJQZ.mjs +2 -0
- package/dist/chunk-GKBG2GVQ.mjs +2 -0
- package/dist/chunk-GLOLXXUS.mjs +2 -0
- package/dist/chunk-GPHL3F7O.mjs +2 -0
- package/dist/chunk-GQ6DUOOO.mjs +2 -0
- package/dist/chunk-GRLBB3CY.mjs +2 -0
- package/dist/chunk-GS3UU6AB.mjs +2 -0
- package/dist/chunk-GTRCEQ3C.mjs +2 -0
- package/dist/chunk-GU2BV5Y6.mjs +2 -0
- package/dist/chunk-GUIKG6AJ.mjs +2 -0
- package/dist/chunk-GVLW5U6G.mjs +6 -0
- package/dist/chunk-GYGS42RX.mjs +2 -0
- package/dist/chunk-GYNDK3S4.mjs +2 -0
- package/dist/chunk-H2EI6OKM.mjs +2 -0
- package/dist/chunk-H2JTGYTR.mjs +2 -0
- package/dist/chunk-H3BY3RB7.mjs +2 -0
- package/dist/chunk-H6FQQKSV.mjs +2 -0
- package/dist/chunk-H7D66DOA.mjs +2 -0
- package/dist/chunk-HBWW5W3L.mjs +2 -0
- package/dist/chunk-HCF3NDQX.mjs +2 -0
- package/dist/chunk-HCF3Y7RI.mjs +2 -0
- package/dist/chunk-HDJ3ZU3Q.mjs +2 -0
- package/dist/chunk-HDTYKJBF.mjs +2 -0
- package/dist/chunk-HJLPTLSK.mjs +2 -0
- package/dist/chunk-HME5IAXO.mjs +2 -0
- package/dist/chunk-HNRCSOBW.mjs +2 -0
- package/dist/chunk-HQCQXTRI.mjs +2 -0
- package/dist/chunk-HQD2H6K7.mjs +2 -0
- package/dist/chunk-HRCOKQSY.mjs +2 -0
- package/dist/chunk-HUPLCED3.mjs +6 -0
- package/dist/chunk-HW7WJFRL.mjs +2 -0
- package/dist/chunk-HXFSL4GV.mjs +2 -0
- package/dist/chunk-HZREFIFE.mjs +2 -0
- package/dist/chunk-I5IZ5IRU.mjs +2 -0
- package/dist/chunk-I6MFQ65M.mjs +2 -0
- package/dist/chunk-IAFR6YJO.mjs +2 -0
- package/dist/chunk-IBDPN2DQ.mjs +2 -0
- package/dist/chunk-IC6D2OYK.mjs +2 -0
- package/dist/chunk-IKTBG23E.mjs +2 -0
- package/dist/chunk-IKYV6BZS.mjs +2 -0
- package/dist/chunk-ILP3RS2L.mjs +2 -0
- package/dist/chunk-ILW242Y2.mjs +2 -0
- package/dist/chunk-IO3AYAYV.mjs +2 -0
- package/dist/chunk-IOYSDHXN.mjs +2 -0
- package/dist/chunk-IPAMBXFZ.mjs +2 -0
- package/dist/chunk-IQIHH44Z.mjs +6 -0
- package/dist/chunk-IRNJCX2K.mjs +2 -0
- package/dist/chunk-ISTIOX5S.mjs +2 -0
- package/dist/chunk-IUCVV3OB.mjs +2 -0
- package/dist/chunk-IVPG5BFL.mjs +2 -0
- package/dist/chunk-IWHONTYR.mjs +2 -0
- package/dist/chunk-IWW7WNJ6.mjs +2 -0
- package/dist/chunk-IYF5MIVE.mjs +6 -0
- package/dist/chunk-IYNICDRY.mjs +42 -0
- package/dist/chunk-J44N3KRR.mjs +2 -0
- package/dist/chunk-J56AAG6B.mjs +2 -0
- package/dist/chunk-J6LISJJI.mjs +2 -0
- package/dist/chunk-JA7HVCQW.mjs +2 -0
- package/dist/chunk-JCZSZQMG.mjs +2 -0
- package/dist/chunk-JEUPPJ3L.mjs +2 -0
- package/dist/chunk-JIWYIAE3.mjs +2 -0
- package/dist/chunk-JLGJTNMB.mjs +2 -0
- package/dist/chunk-JLS4YJDX.mjs +2 -0
- package/dist/chunk-JNF4ME5N.mjs +2 -0
- package/dist/chunk-JT67W3NK.mjs +2 -0
- package/dist/chunk-JTBQ77NZ.mjs +2 -0
- package/dist/chunk-JUCIJ5NI.mjs +6 -0
- package/dist/chunk-JX3DWQC4.mjs +2 -0
- package/dist/chunk-JXFV7SIC.mjs +2 -0
- package/dist/chunk-K22JKTW6.mjs +2 -0
- package/dist/chunk-K34GJVKM.mjs +2 -0
- package/dist/chunk-K4TYLIMP.mjs +2 -0
- package/dist/chunk-K6PXCMAS.mjs +6 -0
- package/dist/chunk-KDEYGHWQ.mjs +2 -0
- package/dist/chunk-KEI53EEI.mjs +2 -0
- package/dist/chunk-KEQYYBWV.mjs +6 -0
- package/dist/chunk-KETCJ5PF.mjs +2 -0
- package/dist/chunk-KGHQKY4T.mjs +2 -0
- package/dist/chunk-KIUY5ELQ.mjs +2 -0
- package/dist/chunk-KKZ36EMY.mjs +2 -0
- package/dist/chunk-KLF5NNPL.mjs +2 -0
- package/dist/chunk-KLN77LGN.mjs +6 -0
- package/dist/chunk-KMENCT5Q.mjs +2 -0
- package/dist/chunk-KNJA6Y62.mjs +2 -0
- package/dist/chunk-KOPAZGCA.mjs +2 -0
- package/dist/chunk-KSJ6RIYC.mjs +2 -0
- package/dist/chunk-KTD5LCVU.mjs +2 -0
- package/dist/chunk-L24JO47X.mjs +2 -0
- package/dist/chunk-L4BA4PKE.mjs +2 -0
- package/dist/chunk-L5K34Q57.mjs +2 -0
- package/dist/chunk-LAACEVHR.mjs +2 -0
- package/dist/chunk-LCSNQ3E5.mjs +2 -0
- package/dist/chunk-LCTVKIGR.mjs +2 -0
- package/dist/chunk-LCZKCYKI.mjs +2 -0
- package/dist/chunk-LDMIRGRJ.mjs +2 -0
- package/dist/chunk-LF6GXO7U.mjs +2 -0
- package/dist/chunk-LGSP4Y7S.mjs +2 -0
- package/dist/chunk-LJK2CCKB.mjs +2 -0
- package/dist/chunk-LM4XLOPB.mjs +2 -0
- package/dist/chunk-LN4MHXF3.mjs +2 -0
- package/dist/chunk-LNAW5KVB.mjs +2 -0
- package/dist/chunk-LOR5YUEN.mjs +2 -0
- package/dist/chunk-LYRQAEES.mjs +2 -0
- package/dist/chunk-M4OCEY3N.mjs +2 -0
- package/dist/chunk-M675QYSO.mjs +6 -0
- package/dist/chunk-M6GG76GC.mjs +6 -0
- package/dist/chunk-M6PVZ4KK.mjs +2 -0
- package/dist/chunk-M77LJOGV.mjs +6 -0
- package/dist/chunk-MDFE7IXB.mjs +2 -0
- package/dist/chunk-MFDAT34U.mjs +2 -0
- package/dist/chunk-MHFROXKD.mjs +2 -0
- package/dist/chunk-MHQWCQ2O.mjs +2 -0
- package/dist/chunk-MJP64PJO.mjs +2 -0
- package/dist/chunk-MKG6N7L6.mjs +2 -0
- package/dist/chunk-MKSJVCCA.mjs +2 -0
- package/dist/chunk-MOB4273G.mjs +2 -0
- package/dist/chunk-MOCT2WKR.mjs +2 -0
- package/dist/chunk-MQFN36TT.mjs +2 -0
- package/dist/chunk-MSTMW25H.mjs +2 -0
- package/dist/chunk-MUQ2BP6R.mjs +2 -0
- package/dist/chunk-MYBCSCM4.mjs +2 -0
- package/dist/chunk-NCECGWST.mjs +2 -0
- package/dist/chunk-NEJ2U2ZO.mjs +2 -0
- package/dist/chunk-NK32IMAO.mjs +2 -0
- package/dist/chunk-NKJ6CLN6.mjs +6 -0
- package/dist/chunk-NL5BFUDW.mjs +2 -0
- package/dist/chunk-NM3QBSMA.mjs +2 -0
- package/dist/chunk-NRVISCC6.mjs +2 -0
- package/dist/chunk-NT7KZ2Z5.mjs +2 -0
- package/dist/chunk-NU5BIDYJ.mjs +2 -0
- package/dist/chunk-NXWZL2K7.mjs +2 -0
- package/dist/chunk-O4GPMA4M.mjs +2 -0
- package/dist/chunk-O5KGKODN.mjs +2 -0
- package/dist/chunk-OBFYZ527.mjs +2 -0
- package/dist/chunk-OC6YU4J2.mjs +2 -0
- package/dist/chunk-OIAN75OJ.mjs +2 -0
- package/dist/chunk-OIWSGPI3.mjs +2 -0
- package/dist/chunk-OMLXI5RX.mjs +2 -0
- package/dist/chunk-ONKISBGW.mjs +2 -0
- package/dist/chunk-OO3FXQCR.mjs +2 -0
- package/dist/chunk-OPAQ6B3I.mjs +2 -0
- package/dist/chunk-OPMJRHPE.mjs +2 -0
- package/dist/chunk-OQ64MGK7.mjs +2 -0
- package/dist/chunk-OUWBFTXV.mjs +2 -0
- package/dist/chunk-P5MTY2AC.mjs +2 -0
- package/dist/chunk-P5XC6NA3.mjs +2 -0
- package/dist/chunk-PATEGD5E.mjs +2 -0
- package/dist/chunk-PATZUAPI.mjs +2 -0
- package/dist/chunk-PFZCXGFM.mjs +2 -0
- package/dist/chunk-PI2B3KA4.mjs +2 -0
- package/dist/chunk-PLQOSDYV.mjs +2 -0
- package/dist/chunk-PLRPWDXM.mjs +2 -0
- package/dist/chunk-PMOM3LGQ.mjs +2 -0
- package/dist/chunk-PNFI7B25.mjs +2 -0
- package/dist/chunk-PTH7BGIN.mjs +2 -0
- package/dist/chunk-PUXTJ6K3.mjs +2 -0
- package/dist/chunk-PVKOD5OX.mjs +2 -0
- package/dist/chunk-PWUPAYJU.mjs +6 -0
- package/dist/chunk-PXFXWP3M.mjs +6 -0
- package/dist/chunk-PXIMTDFF.mjs +2 -0
- package/dist/chunk-PXP3RLG6.mjs +2 -0
- package/dist/chunk-PYOAGUXG.mjs +2 -0
- package/dist/chunk-PZ3Y4PAE.mjs +2 -0
- package/dist/chunk-PZWL7LTV.mjs +2 -0
- package/dist/chunk-Q2LZ3D4J.mjs +2 -0
- package/dist/chunk-Q4BQRFII.mjs +2 -0
- package/dist/chunk-Q4YXPDJ5.mjs +2 -0
- package/dist/chunk-Q6UXSPZM.mjs +2 -0
- package/dist/chunk-Q7N7XQW6.mjs +2 -0
- package/dist/chunk-QBFVWDXB.mjs +2 -0
- package/dist/chunk-QCYUCJDG.mjs +2 -0
- package/dist/chunk-QF24Z6O6.mjs +2 -0
- package/dist/chunk-QGQW4YDT.mjs +2 -0
- package/dist/chunk-QIOT5MTW.mjs +2 -0
- package/dist/chunk-QJI3JDRI.mjs +2 -0
- package/dist/chunk-QOSUYAUI.mjs +2 -0
- package/dist/chunk-QPGMQFBN.mjs +2 -0
- package/dist/chunk-QRAS5QAW.mjs +2 -0
- package/dist/chunk-QRC44MQW.mjs +2 -0
- package/dist/chunk-QT3MMKEV.mjs +2 -0
- package/dist/chunk-QTEMRIVE.mjs +2 -0
- package/dist/chunk-QYTSHJVO.mjs +2 -0
- package/dist/chunk-R37FVXIT.mjs +2 -0
- package/dist/chunk-R3K7MPSO.mjs +6 -0
- package/dist/chunk-RAVPSC4R.mjs +2 -0
- package/dist/chunk-RES6CYK5.mjs +2 -0
- package/dist/chunk-RGZ6FU24.mjs +2 -0
- package/dist/chunk-RIML4CFN.mjs +2 -0
- package/dist/chunk-RJNDT45N.mjs +2 -0
- package/dist/chunk-RJZLX3LE.mjs +2 -0
- package/dist/chunk-RKJCZPRD.mjs +2 -0
- package/dist/chunk-ROEQTALE.mjs +2 -0
- package/dist/chunk-RULK2R2K.mjs +2 -0
- package/dist/chunk-RYSV3UUI.mjs +2 -0
- package/dist/chunk-RZPC63I5.mjs +2 -0
- package/dist/chunk-S4WWUGWS.mjs +2 -0
- package/dist/chunk-S6OKN7SF.mjs +2 -0
- package/dist/chunk-SEBSCEE2.mjs +6 -0
- package/dist/chunk-SESVZEXS.mjs +2 -0
- package/dist/chunk-SGOHELMZ.mjs +2 -0
- package/dist/chunk-SHTWSBVE.mjs +2 -0
- package/dist/chunk-SL3HXUWA.mjs +6 -0
- package/dist/chunk-SNEFGJ73.mjs +2 -0
- package/dist/chunk-SQINKQ7E.mjs +2 -0
- package/dist/chunk-SRC2APHU.mjs +2 -0
- package/dist/chunk-SU4N2VTC.mjs +2 -0
- package/dist/chunk-SVEMB6YX.mjs +2 -0
- package/dist/chunk-SYAOXENE.mjs +2 -0
- package/dist/chunk-SYBTXQA2.mjs +2 -0
- package/dist/chunk-T3NBZTSU.mjs +2 -0
- package/dist/chunk-T3WGCAJT.mjs +2 -0
- package/dist/chunk-T6P55THA.mjs +2 -0
- package/dist/chunk-TAZL7JRU.mjs +2 -0
- package/dist/chunk-TFBA47IN.mjs +2 -0
- package/dist/chunk-THRTSP2D.mjs +2 -0
- package/dist/chunk-TOWKBEIR.mjs +2 -0
- package/dist/chunk-TP3T42OT.mjs +2 -0
- package/dist/chunk-TQJ4ULAK.mjs +2 -0
- package/dist/chunk-TTRYHGKF.mjs +2 -0
- package/dist/chunk-TVBM7UHX.mjs +2 -0
- package/dist/chunk-TVKL26TM.mjs +2 -0
- package/dist/chunk-TZLDAB6L.mjs +2 -0
- package/dist/chunk-TZXMR7WM.mjs +2 -0
- package/dist/chunk-U3N2ZUCE.mjs +6 -0
- package/dist/chunk-U4P356KE.mjs +6 -0
- package/dist/chunk-U4X27AAX.mjs +2 -0
- package/dist/chunk-U5TRJK2G.mjs +2 -0
- package/dist/chunk-UCOJBPDH.mjs +2 -0
- package/dist/chunk-UCXJZC2X.mjs +2 -0
- package/dist/chunk-UFBFBUJH.mjs +2 -0
- package/dist/chunk-UGNW4NWZ.mjs +2 -0
- package/dist/chunk-ULS3XSLX.mjs +2 -0
- package/dist/chunk-UOYFAA5Z.mjs +2 -0
- package/dist/chunk-UP6UMSTX.mjs +2 -0
- package/dist/chunk-UQL3Q5LF.mjs +2 -0
- package/dist/chunk-UQO2BUSU.mjs +2 -0
- package/dist/chunk-UU2JFGQY.mjs +2 -0
- package/dist/chunk-UUNGILHQ.mjs +2 -0
- package/dist/chunk-UVEMCZZ2.mjs +2 -0
- package/dist/chunk-UVU3H47W.mjs +6 -0
- package/dist/chunk-UYAULI5H.mjs +2 -0
- package/dist/chunk-UZFC2VTM.mjs +2 -0
- package/dist/chunk-V2E4F25B.mjs +6 -0
- package/dist/chunk-VA42HRRW.mjs +2 -0
- package/dist/chunk-VCEL3AB6.mjs +2 -0
- package/dist/chunk-VCI6SQLW.mjs +2 -0
- package/dist/chunk-VCTQS6IH.mjs +2 -0
- package/dist/chunk-VDZFPRGP.mjs +2 -0
- package/dist/chunk-VEPQLZQP.mjs +2 -0
- package/dist/chunk-VFN65HJO.mjs +2 -0
- package/dist/chunk-VGB7MVI4.mjs +2 -0
- package/dist/chunk-VGR2VXM7.mjs +2 -0
- package/dist/chunk-VLAEE3Q7.mjs +2 -0
- package/dist/chunk-VN37DL42.mjs +2 -0
- package/dist/chunk-VQXAAVII.mjs +2 -0
- package/dist/chunk-VRVR6A5C.mjs +2 -0
- package/dist/chunk-VTT3OMQU.mjs +2 -0
- package/dist/chunk-VUW4MQDK.mjs +2 -0
- package/dist/chunk-VVB4E25Q.mjs +2 -0
- package/dist/chunk-VYSN7KOB.mjs +6 -0
- package/dist/chunk-W6HN6HS6.mjs +2 -0
- package/dist/chunk-W6QBHUWL.mjs +6 -0
- package/dist/chunk-W7CBJWI4.mjs +2 -0
- package/dist/chunk-WBKU4VFB.mjs +2 -0
- package/dist/chunk-WCBV24J7.mjs +2 -0
- package/dist/chunk-WF5X2LMM.mjs +2 -0
- package/dist/chunk-WGUPJEOG.mjs +2 -0
- package/dist/chunk-WI6Y56VB.mjs +2 -0
- package/dist/chunk-WK7R5AWO.mjs +2 -0
- package/dist/chunk-WKWKEDBM.mjs +2 -0
- package/dist/chunk-WLD3LBEI.mjs +2 -0
- package/dist/chunk-WTBNIOC2.mjs +2 -0
- package/dist/chunk-WWAG6LV4.mjs +2 -0
- package/dist/chunk-WWYNK7J4.mjs +2 -0
- package/dist/chunk-X6T7ZUVZ.mjs +2 -0
- package/dist/chunk-XEQ622UP.mjs +2 -0
- package/dist/chunk-XERPVEK5.mjs +2 -0
- package/dist/chunk-XGZKMH3L.mjs +2 -0
- package/dist/chunk-XHSKMJDX.mjs +2 -0
- package/dist/chunk-XJJF3PZI.mjs +6 -0
- package/dist/chunk-XKZ5WZGV.mjs +2 -0
- package/dist/chunk-XMCU4OSH.mjs +2 -0
- package/dist/chunk-XOJ7547Y.mjs +2 -0
- package/dist/chunk-XP3CEWTB.mjs +2 -0
- package/dist/chunk-XW3HHI46.mjs +2 -0
- package/dist/chunk-XX2W5DXK.mjs +2 -0
- package/dist/chunk-XZQV5UYR.mjs +2 -0
- package/dist/chunk-Y442XFXZ.mjs +2 -0
- package/dist/chunk-Y4DR5A3E.mjs +2 -0
- package/dist/chunk-Y4LWK35A.mjs +2 -0
- package/dist/chunk-YA2Y34OJ.mjs +2 -0
- package/dist/chunk-YEHMHRSL.mjs +2 -0
- package/dist/chunk-YF3IDJL3.mjs +2 -0
- package/dist/chunk-YHCAA2CA.mjs +2 -0
- package/dist/chunk-YJ5QX2S5.mjs +2 -0
- package/dist/chunk-YKT2FZQJ.mjs +2 -0
- package/dist/chunk-YLBAT67N.mjs +2 -0
- package/dist/chunk-YMMJLAOK.mjs +6 -0
- package/dist/chunk-YTNYLPK4.mjs +2 -0
- package/dist/chunk-YUY52E3T.mjs +2 -0
- package/dist/chunk-YYVOHV2O.mjs +6 -0
- package/dist/chunk-Z6M2VZ25.mjs +2 -0
- package/dist/chunk-Z7GOLHQP.mjs +2 -0
- package/dist/chunk-ZHX4BJ7C.mjs +6 -0
- package/dist/chunk-ZJJTKQXT.mjs +2 -0
- package/dist/chunk-ZJT3YQA2.mjs +2 -0
- package/dist/chunk-ZLMR2WVZ.mjs +2 -0
- package/dist/chunk-ZMXJJHIU.mjs +6 -0
- package/dist/chunk-ZNH7PXDK.mjs +2 -0
- package/dist/chunk-ZOMBMCL4.mjs +2 -0
- package/dist/chunk-ZQNIUQQV.mjs +2 -0
- package/dist/chunk-ZRRYI6QO.mjs +2 -0
- package/dist/chunk-ZV6FEGLF.mjs +2 -0
- package/dist/chunk-ZWDZ2XVD.mjs +2 -0
- package/dist/chunk-ZXBUC37I.mjs +2 -0
- package/dist/chunk-ZXN4JTFK.mjs +2 -0
- package/dist/chunk-ZY3PQKYR.mjs +2 -0
- package/dist/combobox/index.d.ts +3 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/copy-text.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/empty-state.d.ts +12 -0
- package/dist/empty-state.mjs +2 -0
- 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.d.ts +2 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/grid.mjs +1 -1
- package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/default-domains/amazon.mjs +1 -1
- package/dist/icons/default-domains/chatgpt.mjs +1 -1
- package/dist/icons/default-domains/figma.mjs +1 -1
- package/dist/icons/default-domains/github-enhanced.mjs +1 -1
- package/dist/icons/default-domains/google-enhanced.mjs +1 -1
- package/dist/icons/default-domains/spotify.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.d.ts +3 -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/envelope-arrow-right.d.ts +6 -0
- package/dist/icons/nucleo/envelope-arrow-right.mjs +2 -0
- package/dist/icons/nucleo/location-pin.d.ts +6 -0
- package/dist/icons/nucleo/location-pin.mjs +2 -0
- package/dist/icons/payout-platforms/paypal.mjs +1 -1
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +1 -1
- package/dist/input-select.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/mini-area-chart.d.ts +13 -0
- package/dist/mini-area-chart.mjs +2 -0
- package/dist/modal.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/pagination-controls.d.ts +13 -0
- package/dist/pagination-controls.mjs +2 -0
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/sheet.mjs +1 -1
- package/dist/shimmer-dots.mjs +1 -1
- package/dist/status-badge.d.ts +4 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/dist/wordmark.mjs +1 -1
- package/package.json +1 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-A3B3IC2O.mjs";import{a as x,f as y,g as v}from"./chunk-YQKCCSJY.mjs";import{a as N}from"./chunk-2F3Y5M6U.mjs";import{a as f}from"./chunk-3W63LIZM.mjs";import{a as b}from"./chunk-KKZ36EMY.mjs";import{a as h}from"./chunk-26UWURFH.mjs";import{a as p}from"./chunk-ALEYOCBW.mjs";import{h as s,k as d,m as l,n as g}from"./chunk-TOWKBEIR.mjs";import T from"next/image";import m from"next/link";import{useParams as D}from"next/navigation";import{useEffect as E,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:x.map(({title:o,href:t})=>({name:o,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:y.map(({name:o,slug:t})=>({name:o,href:`/compare/${t}`})),legal:v.map(({name:o,slug:t})=>({name:o,href:`/legal/${t}`})),tools:g.map(({name:o,slug:t})=>({name:o,href:`/tools/${t}`}))};function Y({staticDomain:o}){let{domain:t="dub.co"}=D();return o&&(t=o),e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(m,{href:s("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(F,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Resources"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function F(){let{data:o}=A("https://status.dub.co/api/v1/summary",d),[t,a]=w("bg-gray-200"),[i,c]=w("Loading status...");return E(()=>{if(!o)return;let{ongoing_incidents:u}=o;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),a(C)}else c("All systems operational"),a("bg-green-500")},[o]),r(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l,b as v,f as g}from"./chunk-YQKCCSJY.mjs";import{a as c,c as u,d as N}from"./chunk-FQME3ER6.mjs";import{a as d}from"./chunk-222G5NF7.mjs";import{i as o,m as i}from"./chunk-VCTQS6IH.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as l,e as p}from"./chunk-YQKCCSJY.mjs";import{a as s,c as n}from"./chunk-TM35STE6.mjs";import{h as i,m as e}from"./chunk-LO5RKFLH.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as Z}from"./chunk-JNY6VJYB.mjs";import{a as K}from"./chunk-GVBIGY6N.mjs";import{a as V}from"./chunk-NWME2ANF.mjs";import{a as Q}from"./chunk-T54SWGGF.mjs";import{k as U}from"./chunk-6XZRPZ75.mjs";import{a as $}from"./chunk-WMTXO7RT.mjs";import{a as j}from"./chunk-JW75YDRU.mjs";import{a as B}from"./chunk-JOLDVN3E.mjs";import{a as F}from"./chunk-IHTRL6TU.mjs";import{a as P}from"./chunk-SU3S6WSE.mjs";import{m as i}from"./chunk-LO5RKFLH.mjs";import{Command as h,CommandInput as ie,CommandItem as ce,useCommandState as me}from"cmdk";import{ChevronDown as de}from"lucide-react";import{forwardRef as pe,isValidElement as ue,useCallback as fe,useEffect as b,useRef as xe,useState as f}from"react";import{Fragment as I,jsx as e,jsxs as c}from"react/jsx-runtime";function ge(s,o){return s===!0}function De({multiple:s,selected:o,setSelected:l,options:a,icon:d,placeholder:y="Select...",searchPlaceholder:G="Search...",emptyState:x,createLabel:N,onCreate:g,buttonProps:m,shortcutHint:z,caret:J,side:X,open:Y,onOpenChange:_,onSearchChange:C,shouldFilter:R=!0,inputClassName:ee,optionRight:w,optionClassName:E,matchTriggerWidth:L,children:te}){let D=ge(s,l),n=Array.isArray(o)?o:o?[o]:[],{isMobile:se}=V(),[oe,ae]=f(!1),O=Y??oe,v=_??ae,[r,k]=f(""),[W,M]=f(!1),[S,ne]=f(void 0),[re,A]=f(!1),le=t=>{var p;if(D){let T=n.some(({value:u})=>u===t.value);l(T?n.filter(({value:u})=>u!==t.value):[...n,t])}else l(n.length&&((p=n[0])==null?void 0:p.value)===t.value?null:t),v(!1)},H=fe((t,p)=>p===""?[...n,...t.filter(T=>n.findIndex(u=>u.value===T.value)===-1)]:t,[n]);return b(()=>{W&&(ne(a&&H(a,r)),M(!1))},[W,a,H,r]),b(()=>{M(!0)},[a]),b(()=>{O||(k(""),M(!0))},[O]),b(()=>C==null?void 0:C(r),[r]),e(Z,{openPopover:O,setOpenPopover:v,align:"start",side:X,onWheel:t=>{t.stopPropagation()},popoverContentClassName:i(L&&"sm:w-[var(--radix-popover-trigger-width)]"),content:e(Q,{width:!se&&!L,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:c(h,{loop:!0,shouldFilter:R,children:[c("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[e(ie,{placeholder:G,value:r,onValueChange:k,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",ee),onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!r)&&(t.preventDefault(),t.stopPropagation(),v(!1))}}),z&&e("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:z})]}),e(ve,{children:e(h.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:S!==void 0?c(I,{children:[S.map(t=>e(be,{option:t,multiple:D,selected:n.some(({value:p})=>p===t.value),onSelect:()=>le(t),right:w==null?void 0:w(t),className:E},`${t.label}, ${t.value}`)),r.length>0&&g&&c(ce,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",E),onSelect:async()=>{A(!0),await(g==null?void 0:g(r))&&(k(""),v(!1)),A(!1)},children:[re?e(P,{className:"size-4 shrink-0"}):e($,{className:"size-4 shrink-0"}),e("div",{className:"grow truncate",children:(N==null?void 0:N(r))||`Create "${r}"`})]}),R?e(he,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):S.length===0?e("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):null]}):e(h.Loading,{children:e("div",{className:"flex h-12 items-center justify-center",children:e(P,{})})})})})]})}),children:e(U,{variant:"secondary",...m,className:i(m==null?void 0:m.className,"flex gap-2"),textWrapperClassName:i(m==null?void 0:m.textWrapperClassName,"w-full flex items-center justify-start"),text:c(I,{children:[e("div",{className:"min-w-0 grow truncate text-left",children:te||n.map(t=>t.label).join(", ")||y}),J&&e(de,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:d?q(d)?d:e(d,{className:"size-4 shrink-0"}):void 0})})}var ve=({children:s})=>{let o=xe(null),{scrollProgress:l,updateScrollProgress:a}=K(o);return c(I,{children:[e("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:o,onScroll:a,children:s}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(l,2)}})]})};function be({option:s,onSelect:o,multiple:l,selected:a,right:d,className:y}){return c(h.Item,{className:i("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",y),onSelect:o,value:s.label+(s==null?void 0:s.value),children:[l&&e("div",{className:"shrink-0 text-gray-600",children:a?e(B,{className:"size-4 text-gray-600"}):e(F,{className:"size-4 text-gray-400"})}),c("div",{className:"flex min-w-0 grow items-center gap-1",children:[s.icon&&e("span",{className:"shrink-0 text-gray-600",children:q(s.icon)?s.icon:e(s.icon,{className:"h-4 w-4"})}),e("span",{className:"grow truncate",children:s.label})]}),d,!l&&a&&e(j,{className:"size-4 shrink-0 text-gray-600"})]})}var q=s=>ue(s),he=pe((s,o)=>me(a=>a.filtered.count===0)?e("div",{ref:o,"cmdk-empty":"",role:"presentation",...s}):null);export{De as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-BUXI2PSB.mjs";import{a as b}from"./chunk-BS6EW2NX.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-VCTQS6IH.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function j({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r==="dub.co"&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l,b as v,f as g}from"./chunk-XMCU4OSH.mjs";import{a as c,c as u,d as N}from"./chunk-DMPLU2GO.mjs";import{a as d}from"./chunk-GIW2RJQZ.mjs";import{i as o,m as i}from"./chunk-7LNA6Q2P.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as U}from"./chunk-KETCJ5PF.mjs";import{a as q}from"./chunk-UCOJBPDH.mjs";import{c as C}from"./chunk-6MQZX6ZE.mjs";import{a as I}from"./chunk-GYNDK3S4.mjs";import{a as H}from"./chunk-YF3IDJL3.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-VCTQS6IH.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-UVEMCZZ2.mjs";import{a as H}from"./chunk-KOPAZGCA.mjs";import{a as S,e as V}from"./chunk-H5ELGZJ5.mjs";import{a as E}from"./chunk-V2OJLNED.mjs";import{a as C}from"./chunk-Y7LKSAPE.mjs";import{a as W}from"./chunk-WUWY6SX2.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-ILW242Y2.mjs";import{h as w,i as P,k as M,m as l}from"./chunk-LO5RKFLH.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,K=`<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>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("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),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:V},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=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 Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(W,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("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 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("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:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-W6QBHUWL.mjs";import{a as b}from"./chunk-324RZJEK.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-7LNA6Q2P.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-ZMXJJHIU.mjs";import{a as b}from"./chunk-BS6EW2NX.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-VCTQS6IH.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function j({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r==="dub.co"&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-B3TC5DLA.mjs";import{a as x,f as y,g as v}from"./chunk-YQKCCSJY.mjs";import{a as N}from"./chunk-WUWY6SX2.mjs";import{a as f}from"./chunk-YLR3YGMI.mjs";import{a as b}from"./chunk-S2QOCNFK.mjs";import{a as h}from"./chunk-45SI4AEZ.mjs";import{a as p}from"./chunk-ALEYOCBW.mjs";import{h as s,k as d,m as l,n as g}from"./chunk-LO5RKFLH.mjs";import T from"next/image";import m from"next/link";import{useParams as D}from"next/navigation";import{useEffect as E,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:x.map(({title:o,href:t})=>({name:o,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:y.map(({name:o,slug:t})=>({name:o,href:`/compare/${t}`})),legal:v.map(({name:o,slug:t})=>({name:o,href:`/legal/${t}`})),tools:g.map(({name:o,slug:t})=>({name:o,href:`/tools/${t}`}))};function Y({staticDomain:o}){let{domain:t="dub.co"}=D();return o&&(t=o),e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(m,{href:s("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(F,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Resources"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function F(){let{data:o}=A("https://status.dub.co/api/v1/summary",d),[t,a]=w("bg-gray-200"),[i,c]=w("Loading status...");return E(()=>{if(!o)return;let{ongoing_incidents:u}=o;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),a(C)}else c("All systems operational"),a("bg-green-500")},[o]),r(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as l,e as p}from"./chunk-RX7ZQS6V.mjs";import{a as s,c as n}from"./chunk-DMPLU2GO.mjs";import{i,m as e}from"./chunk-7LNA6Q2P.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as h}from"./chunk-AQIV6QKZ.mjs";import{m as p}from"./chunk-7LNA6Q2P.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:p("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:p("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:p("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:p(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:p("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as s}from"./chunk-TOWKBEIR.mjs";import{AlertCircle as c,EyeIcon as u,EyeOffIcon as m}from"lucide-react";import f,{useCallback as p,useState as x}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var g=f.forwardRef(({className:n,type:a,...r},l)=>{let[t,i]=x(!1),d=p(()=>i(!t),[t,i]);return o("div",{children:[o("div",{className:"relative flex",children:[e("input",{type:t?"text":a,className:s("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",n),ref:l,...r}),o("div",{className:"group",children:[r.error&&e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:e(c,{className:s("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:s("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>d(),"aria-label":t?"Hide password":"Show Password",children:t?e(u,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):e(m,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});g.displayName="Input";export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-IYF5MIVE.mjs";import{a as b}from"./chunk-BS6EW2NX.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-VCTQS6IH.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function j({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r==="dub.co"&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-FSERKZBX.mjs";import{a as x,f as k,g as L}from"./chunk-RX7ZQS6V.mjs";import{a as C}from"./chunk-TP3T42OT.mjs";import{a as v}from"./chunk-KGHQKY4T.mjs";import{a as b}from"./chunk-64JANH7J.mjs";import{a as _}from"./chunk-NEJ2U2ZO.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-VCTQS6IH.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-400 hover:text-neutral-600 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/75 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},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:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.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:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-400 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-2VIKRCFU.mjs";import{a as x,f as y,g as v}from"./chunk-RX7ZQS6V.mjs";import{a as N}from"./chunk-WUWY6SX2.mjs";import{a as f}from"./chunk-YLR3YGMI.mjs";import{a as b}from"./chunk-S2QOCNFK.mjs";import{a as h}from"./chunk-45SI4AEZ.mjs";import{a as p}from"./chunk-ALEYOCBW.mjs";import{h as s,k as d,m as l,n as g}from"./chunk-LO5RKFLH.mjs";import T from"next/image";import m from"next/link";import{useParams as D}from"next/navigation";import{useEffect as E,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:x.map(({title:o,href:t})=>({name:o,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:y.map(({name:o,slug:t})=>({name:o,href:`/compare/${t}`})),legal:v.map(({name:o,slug:t})=>({name:o,href:`/legal/${t}`})),tools:g.map(({name:o,slug:t})=>({name:o,href:`/tools/${t}`}))};function Y({staticDomain:o}){let{domain:t="dub.co"}=D();return o&&(t=o),e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(m,{href:s("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(F,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Resources"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function F(){let{data:o}=A("https://status.dub.co/api/v1/summary",d),[t,a]=w("bg-gray-200"),[i,c]=w("Loading status...");return E(()=>{if(!o)return;let{ongoing_incidents:u}=o;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),a(C)}else c("All systems operational"),a("bg-green-500")},[o]),r(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i}from"./chunk-TOWKBEIR.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:a}){return t("svg",{className:i("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_radial_8328_50)"}),t("g",{"clip-path":"url(#clip0_8328_50)",children:[l("path",{d:"M85.0053 196C99.3544 196 111 184.352 111 170V144H85.0053C70.6562 144 59.0105 155.648 59.0105 170C59.0105 184.352 70.6562 196 85.0053 196Z",fill:"#0ACF83"}),l("path",{d:"M59.0105 118C59.0105 103.648 70.6562 92 85.0053 92H111V144H85.0053C70.6562 144 59.0105 132.352 59.0105 118Z",fill:"#A259FF"}),l("path",{d:"M59.0103 66C59.0103 51.648 70.6559 40 85.0051 40H111V92H85.0051C70.6559 92 59.0103 80.352 59.0103 66Z",fill:"#F24E1E"}),l("path",{d:"M111 40H136.995C151.344 40 162.99 51.648 162.99 66C162.99 80.352 151.344 92 136.995 92H111V40Z",fill:"#FF7262"}),l("path",{d:"M162.99 118C162.99 132.352 151.344 144 136.995 144C122.646 144 111 132.352 111 118C111 103.648 122.646 92 136.995 92C151.344 92 162.99 103.648 162.99 118Z",fill:"#1ABCFE"})]}),t("defs",{children:[t("radialGradient",{id:"paint0_radial_8328_50",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[l("stop",{stopColor:"white"}),l("stop",{offset:"0.5",stopColor:"white"}),l("stop",{offset:"1",stopColor:"#E8E8E8"})]}),l("clipPath",{id:"clip0_8328_50",children:l("rect",{width:"104",height:"156",fill:"white",transform:"translate(59 40)"})})]})]})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-TOWKBEIR.mjs";import{motion as t}from"framer-motion";import{jsx as e}from"react/jsx-runtime";function s({value:i=0,max:r=100,className:o}){return e("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",o),children:e(t.div,{initial:{width:0},animate:{width:i&&r?i/r*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${i&&r&&i>r?"bg-red-500":"bg-blue-500"} h-full`})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as C}from"./chunk-DZELCCCO.mjs";import{a as U}from"./chunk-6CES5HOE.mjs";import{a as q}from"./chunk-DIUPTP2P.mjs";import{a as I}from"./chunk-JFKAKOGX.mjs";import{a as H}from"./chunk-JNY6VJYB.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-LO5RKFLH.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l,b as v,f as g}from"./chunk-SW77GFWE.mjs";import{a as c,c as u,d as N}from"./chunk-FQME3ER6.mjs";import{a as d}from"./chunk-222G5NF7.mjs";import{i as o,m as i}from"./chunk-VCTQS6IH.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-HQCQXTRI.mjs";import{a as T}from"./chunk-CFX7T5R7.mjs";import{a as S,e as V}from"./chunk-7WB33WX5.mjs";import{a as E}from"./chunk-V2OJLNED.mjs";import{a as C}from"./chunk-Y7LKSAPE.mjs";import{a as W}from"./chunk-WUWY6SX2.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-ILW242Y2.mjs";import{h as w,i as P,k as M,m as l}from"./chunk-LO5RKFLH.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,K=`<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>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("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),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:V},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=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 Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(W,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("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 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("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:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-32C65ISH.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-HRTLCZFX.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,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:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-WMTXO7RT.mjs";import{m as n}from"./chunk-LO5RKFLH.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as d}from"lucide-react";import*as c from"react";import{jsx as r,jsxs as v}from"react/jsx-runtime";var g=e.Root,f=c.forwardRef(({className:t,...i},o)=>r(e.Item,{ref:o,className:n("border-b border-b-slate-200 py-3 last:border-none",t),...i}));f.displayName="AccordionItem";var l=c.forwardRef(({className:t,children:i,variant:o="chevron",...a},s)=>r(e.Header,{className:"flex",children:v(e.Trigger,{ref:s,className:n("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":o==="chevron","[&[data-state=open]>svg]:rotate-45":o==="plus"},t),...a,children:[i,o==="plus"?r(m,{className:"h-5 w-5 flex-none transition-transform duration-300"}):r(d,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));l.displayName=e.Trigger.displayName;var p=c.forwardRef(({className:t,children:i,...o},a)=>r(e.Content,{ref:a,className:n("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",t),...o,children:i}));p.displayName=e.Content.displayName;export{g as a,f as b,l as c,p as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i}from"./chunk-7LNA6Q2P.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-4C2LSCCC.mjs";import{a as H}from"./chunk-QRC44MQW.mjs";import{a as S,e as V}from"./chunk-YQKCCSJY.mjs";import{a as E}from"./chunk-V2OJLNED.mjs";import{a as C}from"./chunk-Y7LKSAPE.mjs";import{a as W}from"./chunk-WUWY6SX2.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-ILW242Y2.mjs";import{h as w,i as P,k as M,m as l}from"./chunk-LO5RKFLH.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,K=`<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>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("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),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:V},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=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 Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(W,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("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 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("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:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-FSERKZBX.mjs";import{a as x,f as k,g as L}from"./chunk-RX7ZQS6V.mjs";import{a as y}from"./chunk-TP3T42OT.mjs";import{a as _}from"./chunk-KGHQKY4T.mjs";import{a as b}from"./chunk-64JANH7J.mjs";import{a as v}from"./chunk-NEJ2U2ZO.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as n,l as f,m as g,n as h}from"./chunk-VCTQS6IH.mjs";import I from"next/image";import m from"next/link";import{useParams as P}from"next/navigation";import{useEffect as S,useState as C}from"react";import D from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var F=[{name:"Twitter",icon:_,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:v,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-400 hover:text-neutral-600 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=P();return o&&(s=o),e(y,{className:g("relative z-10 overflow-hidden py-16 md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(m,{href:n("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:F.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},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:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(m,{href:n(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(m,{href:n(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.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:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(m,{href:n(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(m,{href:n(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(m,{href:n(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(m,{href:"https://dub.co/blog/soc2",target:"_blank",className:"flex sm:justify-center",children:e(I,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-400 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=D("https://status.dub.co/api/v1/summary",f),[r,s]=C("bg-neutral-200"),[a,d]=C("Loading status...");return S(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:T}=p[0],E=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(T),s(E)}else d("All systems operational"),s("bg-green-500")},[o]),t(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as m}from"./chunk-CXTDFOXS.mjs";import{m as i}from"./chunk-LO5RKFLH.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as q}from"./chunk-DIUPTP2P.mjs";import{c as C}from"./chunk-DZELCCCO.mjs";import{a as I}from"./chunk-JFKAKOGX.mjs";import{a as U}from"./chunk-DK7HHP3K.mjs";import{a as H}from"./chunk-JNY6VJYB.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-LO5RKFLH.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i}from"./chunk-TOWKBEIR.mjs";import{cva as n}from"class-variance-authority";import{LayoutGroup as c,motion as m}from"framer-motion";import{useId as f}from"react";import{jsx as a,jsxs as b}from"react/jsx-runtime";var p=n("p-4 transition-colors duration-75",{variants:{variant:{default:"text-gray-400 data-[selected=true]:text-black data-[selected=false]:hover:text-gray-500",accent:"text-neutral-500 transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-neutral-700 data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),v=n("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-black",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function T({variant:r,options:s,selected:e,onSelect:o,className:l}){let d=f();return a("div",{className:i("flex text-sm",l),children:a(c,{id:d,children:s.map(({id:t,label:u})=>b("div",{className:"relative",children:[a("button",{type:"button",onClick:()=>o==null?void 0:o(t),className:p({variant:r}),"data-selected":t===e,"aria-selected":t===e,children:u}),t===e&&a(m.div,{layoutId:"indicator",transition:{duration:.1},className:v({variant:r}),children:a("div",{className:"h-0.5 rounded-t-full bg-current"})})]},t))})})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-IQIHH44Z.mjs";import{a as x,f as y,g as v}from"./chunk-TKPPZ7FM.mjs";import{a as N}from"./chunk-WUWY6SX2.mjs";import{a as b}from"./chunk-S2QOCNFK.mjs";import{a as f}from"./chunk-YLR3YGMI.mjs";import{a as p}from"./chunk-ALEYOCBW.mjs";import{a as h}from"./chunk-45SI4AEZ.mjs";import{h as s,k as d,m as l,n as g}from"./chunk-LO5RKFLH.mjs";import T from"next/image";import m from"next/link";import{useParams as D}from"next/navigation";import{useEffect as E,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:x.map(({title:o,href:t})=>({name:o,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:y.map(({name:o,slug:t})=>({name:o,href:`/compare/${t}`})),legal:v.map(({name:o,slug:t})=>({name:o,href:`/legal/${t}`})),tools:g.map(({name:o,slug:t})=>({name:o,href:`/tools/${t}`}))};function Y({staticDomain:o}){let{domain:t="dub.co"}=D();return o&&(t=o),e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(m,{href:s("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(F,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Resources"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function F(){let{data:o}=A("https://status.dub.co/api/v1/summary",d),[t,a]=w("bg-gray-200"),[i,c]=w("Loading status...");return E(()=>{if(!o)return;let{ongoing_incidents:u}=o;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),a(C)}else c("All systems operational"),a("bg-green-500")},[o]),r(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-CE5TGYCP.mjs";import{a as b}from"./chunk-324RZJEK.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-7LNA6Q2P.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("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",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as Z}from"./chunk-IKTBG23E.mjs";import{a as K}from"./chunk-GVBIGY6N.mjs";import{a as V}from"./chunk-NWME2ANF.mjs";import{a as Q}from"./chunk-LNAW5KVB.mjs";import{k as U}from"./chunk-AQT3I4RN.mjs";import{a as $}from"./chunk-WMTXO7RT.mjs";import{a as j}from"./chunk-JW75YDRU.mjs";import{a as B}from"./chunk-JOLDVN3E.mjs";import{a as F}from"./chunk-IHTRL6TU.mjs";import{a as P}from"./chunk-LYRQAEES.mjs";import{m as i}from"./chunk-TOWKBEIR.mjs";import{Command as h,CommandInput as ie,CommandItem as ce,useCommandState as me}from"cmdk";import{ChevronDown as de}from"lucide-react";import{forwardRef as pe,isValidElement as ue,useCallback as fe,useEffect as b,useRef as xe,useState as f}from"react";import{Fragment as I,jsx as e,jsxs as c}from"react/jsx-runtime";function ge(s,o){return s===!0}function De({multiple:s,selected:o,setSelected:l,options:a,icon:d,placeholder:y="Select...",searchPlaceholder:G="Search...",emptyState:x,createLabel:N,onCreate:g,buttonProps:m,shortcutHint:z,caret:J,side:X,open:Y,onOpenChange:_,onSearchChange:C,shouldFilter:R=!0,inputClassName:ee,optionRight:w,optionClassName:E,matchTriggerWidth:L,children:te}){let D=ge(s,l),n=Array.isArray(o)?o:o?[o]:[],{isMobile:se}=V(),[oe,ae]=f(!1),O=Y??oe,v=_??ae,[r,k]=f(""),[W,M]=f(!1),[S,ne]=f(void 0),[re,A]=f(!1),le=t=>{var p;if(D){let T=n.some(({value:u})=>u===t.value);l(T?n.filter(({value:u})=>u!==t.value):[...n,t])}else l(n.length&&((p=n[0])==null?void 0:p.value)===t.value?null:t),v(!1)},H=fe((t,p)=>p===""?[...n,...t.filter(T=>n.findIndex(u=>u.value===T.value)===-1)]:t,[n]);return b(()=>{W&&(ne(a&&H(a,r)),M(!1))},[W,a,H,r]),b(()=>{M(!0)},[a]),b(()=>{O||(k(""),M(!0))},[O]),b(()=>C==null?void 0:C(r),[r]),e(Z,{openPopover:O,setOpenPopover:v,align:"start",side:X,onWheel:t=>{t.stopPropagation()},popoverContentClassName:i(L&&"sm:w-[var(--radix-popover-trigger-width)]"),content:e(Q,{width:!se&&!L,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},className:"pointer-events-auto",children:c(h,{loop:!0,shouldFilter:R,children:[c("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[e(ie,{placeholder:G,value:r,onValueChange:k,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",ee),onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!r)&&(t.preventDefault(),t.stopPropagation(),v(!1))}}),z&&e("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:z})]}),e(ve,{children:e(h.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:S!==void 0?c(I,{children:[S.map(t=>e(be,{option:t,multiple:D,selected:n.some(({value:p})=>p===t.value),onSelect:()=>le(t),right:w==null?void 0:w(t),className:E},`${t.label}, ${t.value}`)),r.length>0&&g&&c(ce,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",E),onSelect:async()=>{A(!0),await(g==null?void 0:g(r))&&(k(""),v(!1)),A(!1)},children:[re?e(P,{className:"size-4 shrink-0"}):e($,{className:"size-4 shrink-0"}),e("div",{className:"grow truncate",children:(N==null?void 0:N(r))||`Create "${r}"`})]}),R?e(he,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):S.length===0?e("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):null]}):e(h.Loading,{children:e("div",{className:"flex h-12 items-center justify-center",children:e(P,{})})})})})]})}),children:e(U,{variant:"secondary",...m,className:i(m==null?void 0:m.className,"flex gap-2"),textWrapperClassName:i(m==null?void 0:m.textWrapperClassName,"w-full flex items-center justify-start"),text:c(I,{children:[e("div",{className:"min-w-0 grow truncate text-left",children:te||n.map(t=>t.label).join(", ")||y}),J&&e(de,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:d?q(d)?d:e(d,{className:"size-4 shrink-0"}):void 0})})}var ve=({children:s})=>{let o=xe(null),{scrollProgress:l,updateScrollProgress:a}=K(o);return c(I,{children:[e("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:o,onScroll:a,children:s}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(l,2)}})]})};function be({option:s,onSelect:o,multiple:l,selected:a,right:d,className:y}){return c(h.Item,{className:i("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",y),onSelect:o,value:s.label+(s==null?void 0:s.value),children:[l&&e("div",{className:"shrink-0 text-gray-600",children:a?e(B,{className:"size-4 text-gray-600"}):e(F,{className:"size-4 text-gray-400"})}),c("div",{className:"flex min-w-0 grow items-center gap-1",children:[s.icon&&e("span",{className:"shrink-0 text-gray-600",children:q(s.icon)?s.icon:e(s.icon,{className:"h-4 w-4"})}),e("span",{className:"grow truncate",children:s.label})]}),d,!l&&a&&e(j,{className:"size-4 shrink-0 text-gray-600"})]})}var q=s=>ue(s),he=pe((s,o)=>me(a=>a.filtered.count===0)?e("div",{ref:o,"cmdk-empty":"",role:"presentation",...s}):null);export{De as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as S}from"./chunk-2ZEW54U3.mjs";import{a as V}from"./chunk-6LHZOYGR.mjs";import{a as D}from"./chunk-PZ3Y4PAE.mjs";import{e as T,g as N,m as s}from"./chunk-VCTQS6IH.mjs";import{flexRender as R,getCoreRowModel as j,useReactTable as E}from"@tanstack/react-table";import{AnimatePresence as _,motion as U}from"framer-motion";import{useEffect as z,useState as $}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var k=(t,i)=>s(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1",i&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function me(t){let{data:i,rowCount:u,columns:g,defaultColumn:v,columnPinning:b,pagination:f,onPaginationChange:p}=t,[l,y]=$(t.columnVisibility??{});z(()=>{t.columnVisibility&&!N(t.columnVisibility,l)&&y(t.columnVisibility??{})},[t.columnVisibility]),z(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let P=E({data:i,rowCount:u,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...v},getCoreRowModel:j(),onPaginationChange:p,onColumnVisibilityChange:d=>y(d),state:{pagination:f,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:P}}function ue({columns:t,data:i,loading:u,error:g,emptyState:v,cellRight:b,sortBy:f,sortOrder:p,onSortChange:l,sortableColumns:y=[],className:P,containerClassName:d,scrollWrapperClassName:W,thClassName:w,tdClassName:h,table:o,pagination:r,resourceName:c,onRowClick:x,rowCount:O,children:A}){return a("div",{className:s("relative border border-gray-200 bg-white sm:rounded-xl",d),children:[!g&&!!(i!=null&&i.length)||u?a("div",{className:s("relative min-h-[400px] overflow-x-auto rounded-[inherit]",W),children:[a("table",{className:s(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent"],P),children:[n("thead",{children:o.getHeaderGroups().map(m=>n("tr",{children:m.headers.map(e=>{let C=y.includes(e.column.id),B=C?"button":"div";return n("th",{className:s(k(e.id),"select-none font-medium",I(e.column,!o.getRowModel().rows.length),typeof w=="function"?w(e.column.id):w),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:n("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(B,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:f!==e.column.id||p==="asc"?"desc":"asc"})},children:[n("span",{children:e.isPlaceholder?null:R(e.column.columnDef.header,e.getContext())}),C&&n(V,{order:f===e.column.id?p||"desc":null})]})})},e.id)})},m.id))}),n("tbody",{children:o.getRowModel().rows.map(m=>n("tr",{className:s("group/row",x&&"cursor-pointer select-none",o.getRowModel().rows.length>8&&m.index===o.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:x?e=>{T(e)||x(m,e)}:void 0,children:m.getVisibleCells().map(e=>n("td",{className:s(k(e.column.id,!!x),"group text-gray-600",I(e.column,m.index===o.getRowModel().rows.length-1),typeof h=="function"?h(e.column.id):h),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[n("div",{className:"min-w-0 shrink grow truncate",children:R(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},m.id))})]}),A]}):n("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||v||`No ${(c==null?void 0:c(!0))||"items"} found.`}),r&&!g&&!!(i!=null&&i.length)&&!!O&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[n("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(r.pageIndex-1)*r.pageSize+1,"-",Math.min((r.pageIndex-1)*r.pageSize+r.pageSize,o.getRowCount())]})," ","of"," ",n("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(c==null?void 0:c(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[n(S,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:r.pageIndex===1}),n(S,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:r.pageIndex===o.getPageCount()})]})]}),n(_,{children:u&&n(U.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:n(D,{})})})]})}var I=(t,i)=>{let u=t.getIsPinned();return s(u&&!i&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},M=t=>{let i=t.getIsPinned();return{left:i==="left"?`${t.getStart("left")}px`:void 0,right:i==="right"?`${t.getAfter("right")}px`:void 0,position:i?"sticky":"relative"}};export{me as a,ue as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as S}from"./chunk-ZRRYI6QO.mjs";import{a as V}from"./chunk-6LHZOYGR.mjs";import{a as D}from"./chunk-PZ3Y4PAE.mjs";import{e as T,g as N,m as s}from"./chunk-VCTQS6IH.mjs";import{flexRender as R,getCoreRowModel as j,useReactTable as E}from"@tanstack/react-table";import{AnimatePresence as _,motion as U}from"framer-motion";import{useEffect as z,useState as $}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var k=(t,i)=>s(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1",i&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function me(t){let{data:i,rowCount:u,columns:g,defaultColumn:v,columnPinning:b,pagination:f,onPaginationChange:p}=t,[l,y]=$(t.columnVisibility??{});z(()=>{t.columnVisibility&&!N(t.columnVisibility,l)&&y(t.columnVisibility??{})},[t.columnVisibility]),z(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let P=E({data:i,rowCount:u,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...v},getCoreRowModel:j(),onPaginationChange:p,onColumnVisibilityChange:d=>y(d),state:{pagination:f,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:P}}function ue({columns:t,data:i,loading:u,error:g,emptyState:v,cellRight:b,sortBy:f,sortOrder:p,onSortChange:l,sortableColumns:y=[],className:P,containerClassName:d,scrollWrapperClassName:W,thClassName:w,tdClassName:h,table:o,pagination:r,resourceName:c,onRowClick:x,rowCount:O,children:A}){return a("div",{className:s("relative border border-gray-200 bg-white sm:rounded-xl",d),children:[!g&&!!(i!=null&&i.length)||u?a("div",{className:s("relative min-h-[400px] overflow-x-auto rounded-[inherit]",W),children:[a("table",{className:s(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent"],P),children:[n("thead",{children:o.getHeaderGroups().map(m=>n("tr",{children:m.headers.map(e=>{let C=y.includes(e.column.id),B=C?"button":"div";return n("th",{className:s(k(e.id),"select-none font-medium",I(e.column,!o.getRowModel().rows.length),typeof w=="function"?w(e.column.id):w),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:n("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(B,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:f!==e.column.id||p==="asc"?"desc":"asc"})},children:[n("span",{children:e.isPlaceholder?null:R(e.column.columnDef.header,e.getContext())}),C&&n(V,{order:f===e.column.id?p||"desc":null})]})})},e.id)})},m.id))}),n("tbody",{children:o.getRowModel().rows.map(m=>n("tr",{className:s("group/row",x&&"cursor-pointer select-none",o.getRowModel().rows.length>8&&m.index===o.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:x?e=>{T(e)||x(m,e)}:void 0,children:m.getVisibleCells().map(e=>n("td",{className:s(k(e.column.id,!!x),"group text-gray-600",I(e.column,m.index===o.getRowModel().rows.length-1),typeof h=="function"?h(e.column.id):h),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[n("div",{className:"min-w-0 shrink grow truncate",children:R(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},m.id))})]}),A]}):n("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||v||`No ${(c==null?void 0:c(!0))||"items"} found.`}),r&&!g&&!!(i!=null&&i.length)&&!!O&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[n("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(r.pageIndex-1)*r.pageSize+1,"-",Math.min((r.pageIndex-1)*r.pageSize+r.pageSize,o.getRowCount())]})," ","of"," ",n("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(c==null?void 0:c(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[n(S,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:r.pageIndex===1}),n(S,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:r.pageIndex===o.getPageCount()})]})]}),n(_,{children:u&&n(U.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:n(D,{})})})]})}var I=(t,i)=>{let u=t.getIsPinned();return s(u&&!i&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},M=t=>{let i=t.getIsPinned();return{left:i==="left"?`${t.getStart("left")}px`:void 0,right:i==="right"?`${t.getAfter("right")}px`:void 0,position:i?"sticky":"relative"}};export{me as a,ue as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-M6GG76GC.mjs";import{a as x,f as y,g as v}from"./chunk-H5ELGZJ5.mjs";import{a as N}from"./chunk-WUWY6SX2.mjs";import{a as f}from"./chunk-YLR3YGMI.mjs";import{a as b}from"./chunk-S2QOCNFK.mjs";import{a as h}from"./chunk-45SI4AEZ.mjs";import{a as p}from"./chunk-ALEYOCBW.mjs";import{h as s,k as d,m as l,n as g}from"./chunk-LO5RKFLH.mjs";import T from"next/image";import m from"next/link";import{useParams as D}from"next/navigation";import{useEffect as E,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var n={features:x.map(({title:o,href:t})=>({name:o,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:y.map(({name:o,slug:t})=>({name:o,href:`/compare/${t}`})),legal:v.map(({name:o,slug:t})=>({name:o,href:`/legal/${t}`})),tools:g.map(({name:o,slug:t})=>({name:o,href:`/tools/${t}`}))};function Y({staticDomain:o}){let{domain:t="dub.co"}=D();return o&&(t=o),e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(m,{href:s("/",t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(p,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(F,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Resources"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(a=>e("li",{children:e(m,{href:s(a.href,t,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:t,utm_content:a.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function F(){let{data:o}=A("https://status.dub.co/api/v1/summary",d),[t,a]=w("bg-gray-200"),[i,c]=w("Loading status...");return E(()=>{if(!o)return;let{ongoing_incidents:u}=o;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),a(C)}else c("All systems operational"),a("bg-green-500")},[o]),r(m,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:l("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|