@dub/ui 0.1.57 → 0.1.59
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/badge.d.ts +1 -1
- package/dist/button.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chunk-367BTK5M.mjs +6 -0
- package/dist/chunk-36KDCV4A.mjs +2 -0
- package/dist/chunk-3VMZMEXH.mjs +2 -0
- package/dist/chunk-3X6P7NPM.mjs +6 -0
- package/dist/chunk-4GPTJKAH.mjs +2 -0
- package/dist/chunk-55VS7WHV.mjs +2 -0
- package/dist/chunk-55YMSBH5.mjs +2 -0
- package/dist/chunk-5LS4PJQL.mjs +2 -0
- package/dist/chunk-5YTIRCO4.mjs +6 -0
- package/dist/chunk-6DR5VY2D.mjs +6 -0
- package/dist/chunk-6KB2TRTU.mjs +2 -0
- package/dist/chunk-7BFVVVA6.mjs +6 -0
- package/dist/chunk-7POXTXXP.mjs +6 -0
- package/dist/chunk-AHEXOEWI.mjs +6 -0
- package/dist/chunk-AS4EW4PV.mjs +2 -0
- package/dist/chunk-AYZOO2S4.mjs +2 -0
- package/dist/chunk-B57GBMVK.mjs +2 -0
- package/dist/chunk-BUZFQLRP.mjs +2 -0
- package/dist/chunk-BWV6PZDD.mjs +6 -0
- package/dist/chunk-CCLFARHB.mjs +2 -0
- package/dist/chunk-CSRFW3TO.mjs +2 -0
- package/dist/chunk-CVMK7RQK.mjs +2 -0
- package/dist/chunk-DJOZYJRH.mjs +2 -0
- package/dist/chunk-DWMZ2CNB.mjs +2 -0
- package/dist/chunk-DZKFL5LZ.mjs +2 -0
- package/dist/chunk-EK35VQRF.mjs +2 -0
- package/dist/chunk-EQ3OK3Q2.mjs +2 -0
- package/dist/chunk-F33C6PRK.mjs +2 -0
- package/dist/chunk-FFAJZ7QV.mjs +2 -0
- package/dist/chunk-FGXABAIF.mjs +2 -0
- package/dist/chunk-FPK7YXJW.mjs +2 -0
- package/dist/chunk-FWFAGQPK.mjs +2 -0
- package/dist/chunk-GGJ5K53M.mjs +2 -0
- package/dist/chunk-GYAJLSQ4.mjs +2 -0
- package/dist/chunk-HDFJF5D7.mjs +2 -0
- package/dist/chunk-HELW5H5V.mjs +2 -0
- package/dist/chunk-HGSMOAEK.mjs +2 -0
- package/dist/chunk-HKBHGJLF.mjs +2 -0
- package/dist/chunk-HMHJPZMW.mjs +2 -0
- package/dist/chunk-HTEHBEFZ.mjs +6 -0
- package/dist/chunk-I2KUN2PQ.mjs +2 -0
- package/dist/chunk-I5RBLKIH.mjs +2 -0
- package/dist/chunk-IBNV2UYH.mjs +2 -0
- package/dist/chunk-IFWRAUEA.mjs +6 -0
- package/dist/chunk-J7PIERXU.mjs +2 -0
- package/dist/chunk-JVOLGC6U.mjs +6 -0
- package/dist/chunk-K4HSJ43U.mjs +2 -0
- package/dist/chunk-KABJJOQ2.mjs +2 -0
- package/dist/chunk-KK4T2RP3.mjs +2 -0
- package/dist/chunk-LI4H65CE.mjs +2 -0
- package/dist/chunk-LLSHOFBQ.mjs +2 -0
- package/dist/chunk-LPBJUSIV.mjs +6 -0
- package/dist/chunk-LW6MJBXO.mjs +2 -0
- package/dist/chunk-M2N2TWLR.mjs +2 -0
- package/dist/chunk-MBWURO7N.mjs +2 -0
- package/dist/chunk-MNQHSNHR.mjs +6 -0
- package/dist/chunk-MOT3S3IQ.mjs +2 -0
- package/dist/chunk-N4DS67OB.mjs +2 -0
- package/dist/chunk-NBNIINEG.mjs +2 -0
- package/dist/chunk-NBS2A66G.mjs +2 -0
- package/dist/chunk-NG5DMOG6.mjs +6 -0
- package/dist/chunk-NLBRQCZT.mjs +2 -0
- package/dist/chunk-NSRVADZF.mjs +2 -0
- package/dist/chunk-O63AOCPW.mjs +6 -0
- package/dist/chunk-OIYVPXLG.mjs +2 -0
- package/dist/chunk-OTTKTQJX.mjs +6 -0
- package/dist/chunk-P7GSQVSQ.mjs +2 -0
- package/dist/chunk-PMCRTMM4.mjs +2 -0
- package/dist/chunk-PODKSKSO.mjs +2 -0
- package/dist/chunk-PQQKPLLW.mjs +2 -0
- package/dist/chunk-PYTBC6CD.mjs +2 -0
- package/dist/chunk-PZM6NPBJ.mjs +2 -0
- package/dist/chunk-Q47DNI5V.mjs +2 -0
- package/dist/chunk-Q4FORPFJ.mjs +2 -0
- package/dist/chunk-QFXP6OVM.mjs +2 -0
- package/dist/chunk-QLDEJI6E.mjs +2 -0
- package/dist/chunk-QN73DMDB.mjs +2 -0
- package/dist/chunk-R3DYAPSC.mjs +2 -0
- package/dist/chunk-RFTZHH5M.mjs +6 -0
- package/dist/chunk-RVYDO6K5.mjs +2 -0
- package/dist/chunk-S36UIGPP.mjs +2 -0
- package/dist/chunk-SDGAOUCH.mjs +2 -0
- package/dist/chunk-SQQMHYPL.mjs +2 -0
- package/dist/chunk-SRULN7ZQ.mjs +2 -0
- package/dist/chunk-TB4NMQVE.mjs +2 -0
- package/dist/chunk-TCAF2NUG.mjs +2 -0
- package/dist/chunk-TCRAN2YI.mjs +2 -0
- package/dist/chunk-TKOAQFMI.mjs +2 -0
- package/dist/chunk-U2ZMY2PE.mjs +2 -0
- package/dist/chunk-UCB3RCYG.mjs +2 -0
- package/dist/chunk-UWZVN6EK.mjs +2 -0
- package/dist/chunk-VKU4PKDW.mjs +2 -0
- package/dist/chunk-VSBGUPGV.mjs +2 -0
- package/dist/chunk-VXZBJURE.mjs +6 -0
- package/dist/chunk-VZRZXLRD.mjs +2 -0
- package/dist/chunk-W7FEDULH.mjs +2 -0
- package/dist/chunk-WL2WTW23.mjs +2 -0
- package/dist/chunk-WTRLSSEA.mjs +2 -0
- package/dist/chunk-X34773CA.mjs +2 -0
- package/dist/chunk-X5GFDFAY.mjs +2 -0
- package/dist/chunk-X6M3O54I.mjs +2 -0
- package/dist/chunk-XDGX6KRQ.mjs +2 -0
- package/dist/chunk-YMYKAEOQ.mjs +2 -0
- package/dist/chunk-YW772ZZ7.mjs +6 -0
- package/dist/chunk-Z5FA2WUW.mjs +2 -0
- package/dist/chunk-ZAFGTF6A.mjs +2 -0
- package/dist/chunk-ZDS4H5Z4.mjs +2 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.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.d.ts +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.d.ts +7 -7
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/status-badge.d.ts +1 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.d.ts +6 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.d.ts +3 -2
- package/dist/utm-builder.mjs +1 -1
- package/package.json +1 -1
package/dist/badge.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "black" | "blue" | "gray" | "violet" | "sky" | "neutral" | "rainbow" | null | undefined;
|
|
7
7
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
8
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
}
|
package/dist/button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{j as a,k as b}from"./chunk-NFT4CZEK.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-
|
|
2
|
+
import{j as a,k as b}from"./chunk-NFT4CZEK.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-MADKDZPF.mjs";import"./chunk-ILOTW3LM.mjs";import"./chunk-TCGFEN54.mjs";import"./chunk-O3KWGEBR.mjs";import"./chunk-INQSSLYX.mjs";import"./chunk-EX6WLDZE.mjs";import"./chunk-2COCR43F.mjs";import"./chunk-IODGUY4G.mjs";import"./chunk-KCK3HMV3.mjs";import"./chunk-URNITXJC.mjs";import"./chunk-AHM3CYPV.mjs";import"./chunk-CEHEOF6H.mjs";import"./chunk-PDSUXFDU.mjs";import"./chunk-E6VJQMTO.mjs";import"./chunk-HCJQICLW.mjs";import"./chunk-KUT7JPA7.mjs";import"./chunk-KYMBX7DZ.mjs";import"./chunk-2LBJI2KO.mjs";import"./chunk-TNAH7N5Q.mjs";import"./chunk-APBWOZBO.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DMUERTF2.mjs";import"./chunk-X6FDPQG5.mjs";import"./chunk-LDAB35J2.mjs";import"./chunk-CUYZMDRN.mjs";import"./chunk-QGANLVES.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-PRJVDP45.mjs";import"./chunk-NPWONPKN.mjs";import"./chunk-ZOMZCD5I.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-CMPNHHII.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-ALEYOCBW.mjs";import"./chunk-ZJICX3BL.mjs";import"./chunk-HJMQR6M2.mjs";import"./chunk-QJ65WYAM.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-YKIQG64V.mjs";import"./chunk-5PZS4TTS.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Button,a as buttonVariants};
|
package/dist/carousel.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-H2COZSRO.mjs";import"./chunk-NFT4CZEK.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-H2COZSRO.mjs";import"./chunk-NFT4CZEK.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-MADKDZPF.mjs";import"./chunk-ILOTW3LM.mjs";import"./chunk-TCGFEN54.mjs";import"./chunk-O3KWGEBR.mjs";import"./chunk-INQSSLYX.mjs";import"./chunk-EX6WLDZE.mjs";import"./chunk-2COCR43F.mjs";import"./chunk-IODGUY4G.mjs";import"./chunk-KCK3HMV3.mjs";import"./chunk-URNITXJC.mjs";import"./chunk-AHM3CYPV.mjs";import"./chunk-CEHEOF6H.mjs";import"./chunk-PDSUXFDU.mjs";import"./chunk-E6VJQMTO.mjs";import"./chunk-HCJQICLW.mjs";import"./chunk-KUT7JPA7.mjs";import"./chunk-KYMBX7DZ.mjs";import"./chunk-2LBJI2KO.mjs";import"./chunk-TNAH7N5Q.mjs";import"./chunk-APBWOZBO.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DMUERTF2.mjs";import"./chunk-X6FDPQG5.mjs";import"./chunk-LDAB35J2.mjs";import"./chunk-CUYZMDRN.mjs";import"./chunk-QGANLVES.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-PRJVDP45.mjs";import"./chunk-NPWONPKN.mjs";import"./chunk-ZOMZCD5I.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-CMPNHHII.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-ALEYOCBW.mjs";import"./chunk-ZJICX3BL.mjs";import"./chunk-HJMQR6M2.mjs";import"./chunk-QJ65WYAM.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-YKIQG64V.mjs";import"./chunk-5PZS4TTS.mjs";import"./chunk-AUBFB4SI.mjs";export{a as AUTOPLAY_DEFAULT_DELAY,d as Carousel,e as CarouselContent,f as CarouselItem,i as CarouselNavBar,h as CarouselNext,g as CarouselPrevious,b as useCarousel,c as useCarouselActiveIndex};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-NBS2A66G.mjs";import{a as T}from"./chunk-N4DS67OB.mjs";import{a as E}from"./chunk-X5GFDFAY.mjs";import{a as _,d as L,e as V}from"./chunk-QLDEJI6E.mjs";import{a as D}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as W}from"./chunk-LGSXO66U.mjs";import{k as S}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import p from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,X=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(S,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(lt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-MNQHSNHR.mjs";import{a as v}from"./chunk-KABJJOQ2.mjs";import{a as N}from"./chunk-LGSXO66U.mjs";import{a as x}from"./chunk-X6FDPQG5.mjs";import{a as y}from"./chunk-HCJQICLW.mjs";import{a as b}from"./chunk-QJ65WYAM.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-5PZS4TTS.mjs";import T from"next/image";import s from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:v.map(({title:a,href:t})=>({name:a,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:t})=>({name:a,href:`/compare/${t}`})),legal:h.map(({name:a,slug:t})=>({name:a,href:`/legal/${t}`})),tools:g.map(({name:a,slug:t})=>({name:a,href:`/tools/${t}`}))};function Y(){let{domain:a="dub.co"}=E();return e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(s,{href:o("/",a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(x,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(D,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.features.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.product.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.compare.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.legal.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.tools.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function D(){let{data:a}=A("https://status.dub.co/api/v1/summary",d),[t,l]=w("bg-gray-200"),[i,c]=w("Loading status...");return F(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),l(C)}else c("All systems operational"),l("bg-green-500")},[a]),r(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:n("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as P}from"./chunk-PZM6NPBJ.mjs";import{a as S}from"./chunk-APBWOZBO.mjs";import{a as h}from"./chunk-QGANLVES.mjs";import{j as m,k as w}from"./chunk-5PZS4TTS.mjs";import{flexRender as T,getCoreRowModel as A,useReactTable as B}from"@tanstack/react-table";import{AnimatePresence as O,motion as j}from"framer-motion";import{useEffect as N,useState as U}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var V=t=>m(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1"]);function oe(t){let{data:n,rowCount:r,columns:g,defaultColumn:x,columnPinning:b,pagination:y,onPaginationChange:f}=t,[l,p]=U(t.columnVisibility??{});N(()=>{t.columnVisibility&&!w(t.columnVisibility,l)&&p(t.columnVisibility??{})},[t.columnVisibility]),N(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let v=B({data:n,rowCount:r,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...x},getCoreRowModel:A(),onPaginationChange:f,onColumnVisibilityChange:d=>p(d),state:{pagination:y,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:v}}function le({columns:t,data:n,loading:r,error:g,emptyState:x,cellRight:b,sortBy:y,sortOrder:f,onSortChange:l,sortableColumns:p=[],className:v,scrollWrapperClassName:d,thClassName:k,tdClassName:R,table:o,pagination:s,resourceName:u,rowCount:I,children:W}){return a("div",{className:"relative border border-gray-200 bg-white sm:rounded-xl",children:[!g&&!!(n!=null&&n.length)||r?a("div",{className:m("relative min-h-[400px] overflow-x-auto rounded-[inherit]",d),children:[a("table",{className:m(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent"],v),children:[i("thead",{children:o.getHeaderGroups().map(c=>i("tr",{children:c.headers.map(e=>{let C=p.includes(e.column.id),M=C?"button":"div";return i("th",{className:m(V(e.id),"select-none font-medium",D(e.column,!o.getRowModel().rows.length),k),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:i("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(M,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:y!==e.column.id||f==="asc"?"desc":"asc"})},children:[i("span",{children:e.isPlaceholder?null:T(e.column.columnDef.header,e.getContext())}),C&&i(S,{order:y===e.column.id?f||"desc":null})]})})},e.id)})},c.id))}),i("tbody",{children:o.getRowModel().rows.map(c=>i("tr",{children:c.getVisibleCells().map(e=>i("td",{className:m(V(e.column.id),"group text-gray-600",D(e.column,c.index===o.getRowModel().rows.length-1),R),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...z(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[i("div",{className:"min-w-0 shrink grow truncate",children:T(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},c.id))})]}),W]}):i("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||x||`No ${(u==null?void 0:u(!0))||"items"} found.`}),s&&!g&&!!(n!=null&&n.length)&&!!I&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[i("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(s.pageIndex-1)*s.pageSize+1,"-",Math.min((s.pageIndex-1)*s.pageSize+s.pageSize,o.getRowCount())]})," ","of"," ",i("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(u==null?void 0:u(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[i(P,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:s.pageIndex===1}),i(P,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:s.pageIndex===o.getPageCount()})]})]}),i(O,{children:r&&i(j.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex items-center justify-center rounded-xl bg-white/50",children:i(h,{})})})]})}var D=(t,n)=>{let r=t.getIsPinned();return m(r&&!n&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},z=t=>{let n=t.getIsPinned();return{left:n==="left"?`${t.getStart("left")}px`:void 0,right:n==="right"?`${t.getAfter("right")}px`:void 0,position:n?"sticky":"relative"}};export{oe as a,le as b};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as W}from"./chunk-AS4EW4PV.mjs";import{a as E}from"./chunk-PQQKPLLW.mjs";import{a as L,e as S}from"./chunk-QFXP6OVM.mjs";import{a as H}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as V}from"./chunk-LGSXO66U.mjs";import{k as _}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import p from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as T,useState as G}from"react";function C(r){let[t,m]=G(!1),i=O(()=>{m(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),T(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as U,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as $,useContext as K,useState as Y}from"react";import{toast as D}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function I(r){try{await navigator.clipboard.writeText(r),D.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),D.error("Failed to copy to clipboard.")}}function B({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=F(),{theme:s}=K(N),[g,u]=Y(!1),b=$(l=>{l.preventDefault(),u(!0)},[]);return R(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(H,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>I(q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>I(J),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(_,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as nt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:W,childItems:L},{name:"Resources",content:E,childItems:S},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],A=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:r="light"}){let{domain:t="dub.co"}=tt(),m=C(80),i=C(40),s=et(),{data:g,isLoading:u}=rt(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&X.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(V,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(B,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(it,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:A({isActive:y}),children:l}):e("button",{className:A({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(nt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,at as c,Dt as d,B as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-IFWRAUEA.mjs";import{a as v}from"./chunk-MBWURO7N.mjs";import{a as N}from"./chunk-LGSXO66U.mjs";import{a as y}from"./chunk-HCJQICLW.mjs";import{a as x}from"./chunk-X6FDPQG5.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{a as b}from"./chunk-QJ65WYAM.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-5PZS4TTS.mjs";import T from"next/image";import s from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:v.map(({title:a,href:t})=>({name:a,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:t})=>({name:a,href:`/compare/${t}`})),legal:h.map(({name:a,slug:t})=>({name:a,href:`/legal/${t}`})),tools:g.map(({name:a,slug:t})=>({name:a,href:`/tools/${t}`}))};function Y(){let{domain:a="dub.co"}=E();return e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(s,{href:o("/",a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(x,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(D,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.features.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.product.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.compare.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.legal.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.tools.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function D(){let{data:a}=A("https://status.dub.co/api/v1/summary",d),[t,l]=w("bg-gray-200"),[i,c]=w("Loading status...");return F(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),l(C)}else c("All systems operational"),l("bg-green-500")},[a]),r(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:n("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as e}from"./chunk-KABJJOQ2.mjs";import{a as r,c as a,d as c}from"./chunk-FXJSBIND.mjs";import{b as n,j as t}from"./chunk-5PZS4TTS.mjs";import{jsx as o,jsxs as l}from"react/jsx-runtime";function g({domain:i}){return o("div",{className:"grid w-[32rem] grid-cols-[5fr_3.5fr]",children:l("div",{className:"p-5",children:[o("p",{className:t(r,"mb-2"),children:"Profiles"}),o("div",{className:"-mx-2 flex flex-col gap-0.5",children:e.map(({icon:s,title:m,description:d,href:f})=>o(a,{href:n(f,i,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:i,utm_content:m}),icon:o(c,{icon:s}),title:m,description:d}))})]})})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as l,e as u}from"./chunk-KABJJOQ2.mjs";import{a as i,c}from"./chunk-FXJSBIND.mjs";import{b as s,j as e}from"./chunk-5PZS4TTS.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function v({domain:a}){return n("div",{className:"grid w-[32rem] grid-cols-[7fr_5fr]",children:[n("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(i,"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(c,{href:s(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))})]}),n("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(i,"mb-2"),children:"Resources"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:u.map(({icon:m,title:t,href:o})=>r(c,{href:s(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{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as l,e as p}from"./chunk-QFXP6OVM.mjs";import{a as s,c as n}from"./chunk-FXJSBIND.mjs";import{b as i,j as e}from"./chunk-5PZS4TTS.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,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-OIYVPXLG.mjs";import{a as W}from"./chunk-HMHJPZMW.mjs";import{a as L,e as S}from"./chunk-DWMZ2CNB.mjs";import{a as H}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as V}from"./chunk-LGSXO66U.mjs";import{k as _}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import p from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as T,useState as G}from"react";function C(r){let[t,m]=G(!1),i=O(()=>{m(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),T(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as U,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as $,useContext as K,useState as Y}from"react";import{toast as D}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function I(r){try{await navigator.clipboard.writeText(r),D.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),D.error("Failed to copy to clipboard.")}}function B({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=F(),{theme:s}=K(N),[g,u]=Y(!1),b=$(l=>{l.preventDefault(),u(!0)},[]);return R(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(H,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>I(q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>I(J),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(_,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as nt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:W,childItems:L},{name:"Customers",href:"/customers"},{name:"Resources",content:E,childItems:S},{name:"Pricing",href:"/pricing"}],A=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:r="light"}){let{domain:t="dub.co"}=tt(),m=C(80),i=C(40),s=et(),{data:g,isLoading:u}=rt(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&X.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(V,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(B,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(it,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:A({isActive:y}),children:l}):e("button",{className:A({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(nt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,at as c,Dt as d,B as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-55YMSBH5.mjs";import{a as T}from"./chunk-EK35VQRF.mjs";import{a as E}from"./chunk-SDGAOUCH.mjs";import{a as _,d as L,e as V}from"./chunk-KABJJOQ2.mjs";import{a as D}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as W}from"./chunk-LGSXO66U.mjs";import{k as S}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import p from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,X=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(S,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(lt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-7POXTXXP.mjs";import{a as h}from"./chunk-MINTMV45.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-5PZS4TTS.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-J7YJ57SJ.mjs";import{a as H}from"./chunk-W7FEDULH.mjs";import{a as T}from"./chunk-YID3M5B6.mjs";import{a as _,d as L,e as V}from"./chunk-OM5CLOJG.mjs";import{a as D}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as W}from"./chunk-LGSXO66U.mjs";import{k as S}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import p from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,X=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(S,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(lt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-WL2WTW23.mjs";import{a as W}from"./chunk-ZAFGTF6A.mjs";import{a as L,e as S}from"./chunk-HELW5H5V.mjs";import{a as H}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as V}from"./chunk-LGSXO66U.mjs";import{k as _}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import p from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as T,useState as G}from"react";function C(r){let[t,m]=G(!1),i=O(()=>{m(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),T(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as U,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as $,useContext as K,useState as Y}from"react";import{toast as D}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function I(r){try{await navigator.clipboard.writeText(r),D.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),D.error("Failed to copy to clipboard.")}}function B({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=F(),{theme:s}=K(N),[g,u]=Y(!1),b=$(l=>{l.preventDefault(),u(!0)},[]);return R(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(H,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>I(q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>I(J),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(_,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as nt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:W,childItems:L},{name:"Customers",href:"/customers"},{name:"Resources",content:E,childItems:S},{name:"Pricing",href:"/pricing"}],A=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:r="light"}){let{domain:t="dub.co"}=tt(),m=C(80),i=C(40),s=et(),{data:g,isLoading:u}=rt(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&X.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(V,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(B,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(it,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:A({isActive:y}),children:l}):e("button",{className:A({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(nt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,at as c,Dt as d,B as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-NBS2A66G.mjs";import{a as T}from"./chunk-N4DS67OB.mjs";import{a as E}from"./chunk-X5GFDFAY.mjs";import{a as _,d as L,e as V}from"./chunk-QLDEJI6E.mjs";import{a as D}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as W}from"./chunk-LGSXO66U.mjs";import{k as S}from"./chunk-PZM6NPBJ.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as tt}from"class-variance-authority";import et from"js-cookie";import p from"next/link";import{useParams as ot,useSelectedLayoutSegment as rt}from"next/navigation";import{createContext as at}from"react";import it from"swr";import{useCallback as Z,useEffect as I,useState as U}from"react";function C(r){let[t,m]=U(!1),i=Z(()=>{m(window.scrollY>r)},[r]);return I(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),I(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as j,Home as z,LayoutGrid as F,Type as $}from"lucide-react";import{useParams as K}from"next/navigation";import{useCallback as Y,useContext as q,useState as J}from"react";import{toast as R}from"sonner";import{jsx as o,jsxs as A}from"react/jsx-runtime";var Q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,X=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function B(r){try{await navigator.clipboard.writeText(r),R.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),R.error("Failed to copy to clipboard.")}}function O({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=K(),{theme:s}=q(N),[g,u]=J(!1),b=Y(l=>{l.preventDefault(),u(!0)},[]);return A(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(D,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:A("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>B(Q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>B(X),icon:o($,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(S,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as lt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=at({theme:"light"}),nt=[{name:"Product",content:E,childItems:_},{name:"Solutions",content:T,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Resources",content:H,childItems:V}],G=tt(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Bt({theme:r="light"}){let{domain:t="dub.co"}=ot(),m=C(80),i=C(40),s=rt(),{data:g,isLoading:u}=it(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&et.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(W,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(O,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),nt.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(st,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:G({isActive:y}),children:l}):e("button",{className:G({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(lt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function st({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,nt as c,Bt as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v,b as g}from"./chunk-QFXP6OVM.mjs";import{a as c,c as u,d as N}from"./chunk-FXJSBIND.mjs";import{a as l}from"./chunk-CMPNHHII.mjs";import{b as o,j as i,n as d}from"./chunk-5PZS4TTS.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:v.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:g.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:d.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(l,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as u}from"./chunk-KABJJOQ2.mjs";import{a as m,c as g,e as k}from"./chunk-FXJSBIND.mjs";import{a as c}from"./chunk-AHM3CYPV.mjs";import{a as l}from"./chunk-CEHEOF6H.mjs";import{a as h}from"./chunk-MADKDZPF.mjs";import{a as f}from"./chunk-ILOTW3LM.mjs";import{a as d}from"./chunk-TCGFEN54.mjs";import{a as p}from"./chunk-O3KWGEBR.mjs";import{b as a,j as t}from"./chunk-5PZS4TTS.mjs";import{jsx as e,jsxs as s}from"react/jsx-runtime";var v=[{name:"Spotify Link Shortener",href:"/tools/spotify-link-shortener",icon:p},{name:"ChatGPT Link Shortener",href:"/tools/chatgpt-link-shortener",icon:l},{name:"GitHub Link Shortener",href:"/tools/github-link-shortener",icon:f},{name:"Google Link Shortener",href:"/tools/google-link-shortener",icon:d},{name:"Amazon Link Shortener",href:"/tools/amazon-link-shortener",icon:c},{name:"Figma Link Shortener",href:"/tools/figma-link-shortener",icon:h}];function _({domain:o}){return s("div",{className:"grid w-[32rem] grid-cols-[7fr_5fr]",children:[s("div",{className:"p-5",children:[e("p",{className:t(m,"mb-2"),children:"Tools"}),e("div",{className:"flex flex-col gap-2",children:v.map(({name:r,href:n,icon:i})=>e(k,{name:r,href:a(n,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:r}),icon:e(i,{})}))})]}),s("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[e("p",{className:t(m,"mb-2"),children:"Resources"}),e("div",{className:"-mx-2 flex flex-col gap-0.5",children:u.map(({icon:r,title:n,href:i})=>e(g,{href:a(i,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:n}),icon:e(r,{className:t("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:n,showArrow:!0}))})]})]})}export{_ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-IFWRAUEA.mjs";import{a as h}from"./chunk-MINTMV45.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-5PZS4TTS.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-5YTIRCO4.mjs";import{a as h}from"./chunk-MINTMV45.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-5PZS4TTS.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-NLBRQCZT.mjs";import{a as W}from"./chunk-SDGAOUCH.mjs";import{a as L,e as S}from"./chunk-KABJJOQ2.mjs";import{a as H}from"./chunk-HEH5N4QA.mjs";import{a as x}from"./chunk-QNB5PRYU.mjs";import{a as V}from"./chunk-LGSXO66U.mjs";import{k as _}from"./chunk-NFT4CZEK.mjs";import{b as k,d as P,i as M,j as n,l as w}from"./chunk-5PZS4TTS.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import p from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as T,useState as G}from"react";function C(r){let[t,m]=G(!1),i=O(()=>{m(window.scrollY>r)},[r]);return T(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),T(()=>{i()},[i]),t}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as U,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as F}from"next/navigation";import{useCallback as $,useContext as K,useState as Y}from"react";import{toast as D}from"sonner";import{jsx as o,jsxs as R}from"react/jsx-runtime";var q=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function I(r){try{await navigator.clipboard.writeText(r),D.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),D.error("Failed to copy to clipboard.")}}function B({variant:r="full",isInApp:t,className:m}){let{domain:i="dub.co"}=F(),{theme:s}=K(N),[g,u]=Y(!1),b=$(l=>{l.preventDefault(),u(!0)},[]);return R(d.Root,{open:g,onOpenChange:u,children:[o(d.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(H,{className:m}):o(x,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(d.Portal,{children:o(d.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",s==="dark"&&"dark"),onClick:l=>{l.stopPropagation(),u(!1)},children:R("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(h,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>I(q),icon:o(x,{className:"h-4 w-4"})}),o(h,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>I(J),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}),o(h,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(h,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}):o(h,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function h({className:r,...t}){return o(_,{className:n("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",r),...t})}import{Fragment as nt,jsx as e,jsxs as c}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:W,childItems:L},{name:"Customers",href:"/customers"},{name:"Resources",content:E,childItems:S},{name:"Pricing",href:"/pricing"}],A=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:r="light"}){let{domain:t="dub.co"}=tt(),m=C(80),i=C(40),s=et(),{data:g,isLoading:u}=rt(t==="dub.co"&&"/api/auth/session",M,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&X.get("dub_id"));return e(N.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&(s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-md dark:bg-black/75"))}),e(V,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(p,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(B,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",s&&w.includes(s)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",m&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:l,href:v,content:f})=>{let y=v===`/${s}`||v==="/"&&s===null;return c(a.Item,{children:[e(it,{trigger:!!f,children:v!==void 0?e(p,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:l}),className:A({isActive:y}),children:l}):e("button",{className:A({isActive:y}),children:l})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},l)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(p,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):u?null:c(nt,{children:[e(p,{href:b?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),e(p,{href:b?"https://app.dub.co/register":"https://d.to/try",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{C as a,N as b,at as c,Dt as d,B as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-JVOLGC6U.mjs";import{a as h}from"./chunk-MINTMV45.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-5PZS4TTS.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-NWME2ANF.mjs";import{b as l}from"./chunk-NFT4CZEK.mjs";import{a as v}from"./chunk-4KAIJ2PN.mjs";import{a as h}from"./chunk-U4QIRPVU.mjs";import{a as b}from"./chunk-RKUUDTHF.mjs";import{a as f}from"./chunk-GLJR2QX5.mjs";import{a as g}from"./chunk-3IVWKAUU.mjs";import{a as u}from"./chunk-GHXIGUPQ.mjs";import{j as n}from"./chunk-5PZS4TTS.mjs";import{useEffect as k,useId as C,useRef as P,useState as A}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var H=[{key:"utm_source",icon:g,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:v,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:u,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:b,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:h,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:f,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function B({values:t,onChange:a,disabled:y,autoFocus:T,disabledTooltip:c,className:N}){let{isMobile:x}=p(),d=C(),[m,R]=A(!1),r=P(null);return k(()=>{r.current&&!x&&T&&setTimeout(()=>{var o;return(o=r.current)==null?void 0:o.focus()},10)},[]),e("div",{className:n("grid gap-y-3",N),children:H.map(({key:o,icon:M,label:_,placeholder:w,description:E},S)=>e("div",{className:"group relative",children:s("div",{className:"relative z-10 flex",children:[e(l,{content:s("div",{className:"p-3 text-center text-xs",children:[e("p",{className:"text-gray-600",children:E}),e("span",{className:"font-mono text-gray-400",children:o})]}),sideOffset:4,disableHoverableContent:!0,children:s("div",{className:n("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>R(i=>!i),children:[e(M,{className:"size-4 shrink-0"}),e("label",{htmlFor:`${d}-${o}`,className:"select-none text-sm",children:m?e("span",{className:"font-mono text-xs",children:o}):_})]})}),e("div",{className:"min-w-0 grow",children:e(U,{disabledTooltip:c,children:e("input",{type:"text",id:`${d}-${o}`,ref:S===0?r:void 0,placeholder:w,disabled:y||Boolean(c),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:t[o]||"",onChange:i=>a(o,i.target.value)})})})]})},o))})}function U({children:t,disabledTooltip:a}){return a?e(l,{content:a,disableHoverableContent:!0,children:t}):t}export{H as a,B as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-5YTIRCO4.mjs";import{a as v}from"./chunk-DWMZ2CNB.mjs";import{a as N}from"./chunk-LGSXO66U.mjs";import{a as x}from"./chunk-X6FDPQG5.mjs";import{a as y}from"./chunk-HCJQICLW.mjs";import{a as b}from"./chunk-QJ65WYAM.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{b as o,i as d,j as n,m as g,n as p,o as h}from"./chunk-5PZS4TTS.mjs";import T from"next/image";import s from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:v.map(({title:a,href:t})=>({name:a,href:t})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:t})=>({name:a,href:`/compare/${t}`})),legal:h.map(({name:a,slug:t})=>({name:a,href:`/legal/${t}`})),tools:g.map(({name:a,slug:t})=>({name:a,href:`/tools/${t}`}))};function Y(){let{domain:a="dub.co"}=E();return e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(s,{href:o("/",a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{className:"h-8 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(x,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e(D,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.features.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.product.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.compare.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.legal.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:m.tools.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]})]})]}),e(T,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function D(){let{data:a}=A("https://status.dub.co/api/v1/summary",d),[t,l]=w("bg-gray-200"),[i,c]=w("Loading status...");return F(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),l(C)}else c("All systems operational"),l("bg-green-500")},[a]),r(s,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:n("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as h}from"./chunk-PZM6NPBJ.mjs";import{j as p}from"./chunk-5PZS4TTS.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{a as C}from"./chunk-32C65ISH.mjs";import{a as k}from"./chunk-6JPO26GL.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as y}from"./chunk-CZSSD6PV.mjs";import{a as m}from"./chunk-D7SRRREC.mjs";import{a as u}from"./chunk-JBURS7BX.mjs";import{a as f}from"./chunk-BOCPUR5Z.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as d}from"./chunk-DWACNU5E.mjs";import{a as p}from"./chunk-3KFNNXJ6.mjs";import{a as l}from"./chunk-2W2M7KTU.mjs";import{a as h}from"./chunk-HYPLE4VW.mjs";import{a as c}from"./chunk-KDNSFAET.mjs";import{a as i}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 n}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as s}from"./chunk-TNAH7N5Q.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var x=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:p,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:g,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:m,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:k,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:i,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"}],S=[{icon:d,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:y,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:n,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:s,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:u,title:"Help Center",href:"/help"},{icon:l,title:"Docs",href:"/docs"},{icon:c,title:"Blog",href:"/blog"},{icon:h,title:"Changelog",href:"/changelog"},{icon:f,title:"Brand",href:"/brand"}];export{x as a,R as b,S as c,v as d,T as e};
|