@dub/ui 0.0.49 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/background.mjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-25JVFB6M.mjs +2 -0
- package/dist/chunk-25MINI24.mjs +2 -0
- package/dist/chunk-2656CFAA.mjs +2 -0
- package/dist/chunk-266HDYTY.mjs +2 -0
- package/dist/chunk-2L6DK6QG.mjs +2 -0
- package/dist/chunk-2MOWMDVD.mjs +2 -0
- package/dist/chunk-2MZJAYX6.mjs +2 -0
- package/dist/chunk-2RLBVFS6.mjs +2 -0
- package/dist/chunk-2WVBREXF.mjs +2 -0
- package/dist/chunk-2ZSVZS2J.mjs +2 -0
- package/dist/chunk-3C3TZRUG.mjs +2 -0
- package/dist/chunk-3CAR7XUT.mjs +2 -0
- package/dist/chunk-3F4RG52W.mjs +2 -0
- package/dist/chunk-3JGOK6O2.mjs +2 -0
- package/dist/chunk-3KI3I7AD.mjs +2 -0
- package/dist/chunk-3N3IOMZL.mjs +2 -0
- package/dist/chunk-3RNXDEXX.mjs +2 -0
- package/dist/chunk-3UYT52KE.mjs +2 -0
- package/dist/chunk-3WGL63PT.mjs +2 -0
- package/dist/chunk-3XJFQHHJ.mjs +2 -0
- package/dist/chunk-44OPR3V2.mjs +2 -0
- package/dist/chunk-45GSFNWN.mjs +2 -0
- package/dist/chunk-4D2H4NUV.mjs +2 -0
- package/dist/chunk-4EFYUGCK.mjs +2 -0
- package/dist/chunk-4J5NYWPF.mjs +2 -0
- package/dist/chunk-4JBVCADS.mjs +2 -0
- package/dist/chunk-4N7EIKHO.mjs +2 -0
- package/dist/chunk-4Q6QJK4O.mjs +2 -0
- package/dist/chunk-4S5OB7RH.mjs +2 -0
- package/dist/chunk-4UQ5GU47.mjs +2 -0
- package/dist/chunk-556KO2TO.mjs +2 -0
- package/dist/chunk-5ACBROXM.mjs +2 -0
- package/dist/chunk-5B3S5OJK.mjs +8 -0
- package/dist/chunk-5KTU27AS.mjs +2 -0
- package/dist/chunk-5MARGBWQ.mjs +2 -0
- package/dist/chunk-5VFAVKA3.mjs +2 -0
- package/dist/chunk-5VGMASCQ.mjs +2 -0
- package/dist/chunk-5YHJGJZE.mjs +2 -0
- package/dist/chunk-5ZUF4XV2.mjs +2 -0
- package/dist/chunk-655V6IPO.mjs +2 -0
- package/dist/chunk-67LSHV4F.mjs +2 -0
- package/dist/chunk-67WF5VAC.mjs +2 -0
- package/dist/chunk-6BXQHEHB.mjs +2 -0
- package/dist/chunk-6IBBMNOW.mjs +2 -0
- package/dist/chunk-6SFO3RYP.mjs +2 -0
- package/dist/chunk-6U5PUN57.mjs +2 -0
- package/dist/chunk-6WKPM2GA.mjs +2 -0
- package/dist/chunk-6Y2EDRAF.mjs +2 -0
- package/dist/chunk-7EMNJ6EF.mjs +2 -0
- package/dist/chunk-7KPHCYJR.mjs +2 -0
- package/dist/chunk-7MEGTDIA.mjs +2 -0
- package/dist/chunk-7SQOSZ4A.mjs +2 -0
- package/dist/chunk-7TBPYNN7.mjs +2 -0
- package/dist/chunk-7TIDFD7G.mjs +2 -0
- package/dist/chunk-7TQFXQUD.mjs +2 -0
- package/dist/chunk-7ZIOUTAG.mjs +2 -0
- package/dist/chunk-A3WD2X3K.mjs +2 -0
- package/dist/chunk-AFDCANRW.mjs +2 -0
- package/dist/chunk-AMHMX5SH.mjs +2 -0
- package/dist/chunk-APDGJLUW.mjs +2 -0
- package/dist/chunk-AQES35UF.mjs +2 -0
- package/dist/chunk-ATF2TZ7W.mjs +2 -0
- package/dist/chunk-AYQONBCH.mjs +2 -0
- package/dist/chunk-B5QYWKCW.mjs +2 -0
- package/dist/chunk-B7GYESAW.mjs +2 -0
- package/dist/chunk-BAREOXNL.mjs +2 -0
- package/dist/chunk-BBLFNTGR.mjs +2 -0
- package/dist/chunk-BBZ5GY6B.mjs +2 -0
- package/dist/chunk-BCAZAPAJ.mjs +2 -0
- package/dist/chunk-BDMXJXHH.mjs +2 -0
- package/dist/chunk-BL36JUSP.mjs +2 -0
- package/dist/chunk-BL74B4DR.mjs +2 -0
- package/dist/chunk-BM2DAFHN.mjs +2 -0
- package/dist/chunk-BQP6XQEF.mjs +2 -0
- package/dist/chunk-BU56DKJD.mjs +2 -0
- package/dist/chunk-C3HS6JES.mjs +2 -0
- package/dist/chunk-CAD55VM2.mjs +2 -0
- package/dist/chunk-CCJUE3TX.mjs +2 -0
- package/dist/chunk-CDYB7JJI.mjs +2 -0
- package/dist/chunk-CEJMBQKN.mjs +2 -0
- package/dist/chunk-CO2SCHDJ.mjs +2 -0
- package/dist/chunk-COWYL3VO.mjs +2 -0
- package/dist/chunk-CRYQHHP2.mjs +2 -0
- package/dist/chunk-CYQEO4MI.mjs +2 -0
- package/dist/chunk-D2PA3TQK.mjs +2 -0
- package/dist/chunk-D6U6BSZH.mjs +2 -0
- package/dist/chunk-DDI3XR6W.mjs +2 -0
- package/dist/chunk-DJB7XNRZ.mjs +2 -0
- package/dist/chunk-DK3BZ5EA.mjs +2 -0
- package/dist/chunk-DQNQGCXX.mjs +2 -0
- package/dist/chunk-DSI3EE7Q.mjs +2 -0
- package/dist/chunk-DTONJK2E.mjs +2 -0
- package/dist/chunk-DUMA6YAH.mjs +2 -0
- package/dist/chunk-DYYOYCRJ.mjs +2 -0
- package/dist/chunk-E2YUZAMD.mjs +2 -0
- package/dist/chunk-E3QU4MRJ.mjs +2 -0
- package/dist/chunk-E5232LG6.mjs +2 -0
- package/dist/chunk-E5CU623S.mjs +2 -0
- package/dist/chunk-EDQNXWWM.mjs +2 -0
- package/dist/chunk-EECDDLBO.mjs +2 -0
- package/dist/chunk-EFKWYO2J.mjs +2 -0
- package/dist/chunk-EHVC4T3B.mjs +2 -0
- package/dist/chunk-EJA6OJQ7.mjs +2 -0
- package/dist/chunk-EL4XCC2P.mjs +2 -0
- package/dist/chunk-ELPJO7HM.mjs +2 -0
- package/dist/chunk-EONUHGTC.mjs +2 -0
- package/dist/chunk-EQIDALH3.mjs +2 -0
- package/dist/chunk-EWCDNRBG.mjs +2 -0
- package/dist/chunk-F5CGBYPC.mjs +2 -0
- package/dist/chunk-FA55S5KI.mjs +2 -0
- package/dist/chunk-FAH7EPRJ.mjs +2 -0
- package/dist/chunk-FEIIGMIE.mjs +2 -0
- package/dist/chunk-FEMOLTCU.mjs +2 -0
- package/dist/chunk-FEN65MUL.mjs +2 -0
- package/dist/chunk-FGLJDK2V.mjs +2 -0
- package/dist/chunk-FHZ4T7RZ.mjs +2 -0
- package/dist/chunk-FNMIMW4L.mjs +2 -0
- package/dist/chunk-FO4Z23F2.mjs +2 -0
- package/dist/chunk-FPBD2IMD.mjs +2 -0
- package/dist/chunk-FPFUR2VQ.mjs +2 -0
- package/dist/chunk-FQAAQAU5.mjs +2 -0
- package/dist/chunk-FQLMTN4O.mjs +2 -0
- package/dist/chunk-FUC3JCYT.mjs +2 -0
- package/dist/chunk-FW46HNG4.mjs +2 -0
- package/dist/chunk-G4KVLIWF.mjs +2 -0
- package/dist/chunk-GA6RCSAC.mjs +2 -0
- package/dist/chunk-GFYQXNMU.mjs +2 -0
- package/dist/chunk-GG6DA7YR.mjs +2 -0
- package/dist/chunk-GIOSSM6G.mjs +2 -0
- package/dist/chunk-GIQ5X6YY.mjs +2 -0
- package/dist/chunk-GKKSSKT5.mjs +2 -0
- package/dist/chunk-GMF4BLAG.mjs +2 -0
- package/dist/chunk-GOGATJZD.mjs +2 -0
- package/dist/chunk-GVPDDKI3.mjs +2 -0
- package/dist/chunk-H5APJRBY.mjs +2 -0
- package/dist/chunk-H6QAIRZV.mjs +2 -0
- package/dist/chunk-HB6QOCEZ.mjs +2 -0
- package/dist/chunk-HCALTG5S.mjs +2 -0
- package/dist/chunk-HEVVBB3H.mjs +2 -0
- package/dist/chunk-HM3EGBK7.mjs +2 -0
- package/dist/chunk-HVZXBCX3.mjs +2 -0
- package/dist/chunk-ID3BQ7SF.mjs +2 -0
- package/dist/chunk-IDVTIN2P.mjs +2 -0
- package/dist/chunk-IFLYMCSV.mjs +2 -0
- package/dist/chunk-II5AMWFU.mjs +2 -0
- package/dist/chunk-IMRBDWKT.mjs +2 -0
- package/dist/chunk-INJAUWSL.mjs +2 -0
- package/dist/chunk-IW5Y2KZ6.mjs +2 -0
- package/dist/chunk-IWD7BTAE.mjs +2 -0
- package/dist/chunk-J3JJNAVT.mjs +2 -0
- package/dist/chunk-J5JRWS7Y.mjs +2 -0
- package/dist/chunk-JC5GUBYQ.mjs +2 -0
- package/dist/chunk-JHFUUJYH.mjs +2 -0
- package/dist/chunk-JM6WAEEC.mjs +2 -0
- package/dist/chunk-JSRGV5QW.mjs +2 -0
- package/dist/chunk-JXH7ILZF.mjs +2 -0
- package/dist/chunk-K3MSXABZ.mjs +2 -0
- package/dist/chunk-K6M6WIVV.mjs +2 -0
- package/dist/chunk-KAIDNAHL.mjs +2 -0
- package/dist/chunk-KB3TJI44.mjs +2 -0
- package/dist/chunk-KDUEHVZX.mjs +2 -0
- package/dist/chunk-KER7VD3U.mjs +2 -0
- package/dist/chunk-KIF2TIWV.mjs +2 -0
- package/dist/chunk-KMBDL3XB.mjs +2 -0
- package/dist/chunk-KS3KIPHT.mjs +2 -0
- package/dist/chunk-KUCBJLZW.mjs +2 -0
- package/dist/chunk-KXA2HMMO.mjs +2 -0
- package/dist/chunk-KXWTJTQV.mjs +2 -0
- package/dist/chunk-KY6LTV2B.mjs +2 -0
- package/dist/chunk-KYLUC4PL.mjs +2 -0
- package/dist/chunk-L6L66VLI.mjs +2 -0
- package/dist/chunk-LAEJL4RU.mjs +2 -0
- package/dist/chunk-LDBTUUZF.mjs +2 -0
- package/dist/chunk-LFAHI7P6.mjs +2 -0
- package/dist/chunk-LFT7TA4T.mjs +2 -0
- package/dist/chunk-LKM3MYXR.mjs +2 -0
- package/dist/chunk-LLJ272NH.mjs +2 -0
- package/dist/chunk-LLZZTI7S.mjs +2 -0
- package/dist/chunk-LPNAGSKE.mjs +2 -0
- package/dist/chunk-LSKK47Z5.mjs +2 -0
- package/dist/chunk-LVQJYLBG.mjs +2 -0
- package/dist/chunk-MHZDVKGD.mjs +2 -0
- package/dist/chunk-MOL6LAVO.mjs +2 -0
- package/dist/chunk-MZLPSQBW.mjs +2 -0
- package/dist/chunk-N3MXUANH.mjs +2 -0
- package/dist/chunk-NHL76POS.mjs +2 -0
- package/dist/chunk-NLZZJJYD.mjs +2 -0
- package/dist/chunk-NN7D6HK6.mjs +2 -0
- package/dist/chunk-NQ7WVG5N.mjs +2 -0
- package/dist/chunk-NZUK2JUG.mjs +2 -0
- package/dist/chunk-O55GNWFL.mjs +2 -0
- package/dist/chunk-O5BD46RM.mjs +2 -0
- package/dist/chunk-OA3O5SLZ.mjs +2 -0
- package/dist/chunk-OJGDEUQU.mjs +2 -0
- package/dist/chunk-OY65Y573.mjs +2 -0
- package/dist/chunk-OYZFLTUY.mjs +2 -0
- package/dist/chunk-PADVU2IE.mjs +2 -0
- package/dist/chunk-PBBI7NPW.mjs +2 -0
- package/dist/chunk-PC54DQBS.mjs +2 -0
- package/dist/chunk-PDCZ5M2S.mjs +2 -0
- package/dist/chunk-PE54PYIV.mjs +2 -0
- package/dist/chunk-PKK5HTEC.mjs +2 -0
- package/dist/chunk-PKQ2JTJV.mjs +2 -0
- package/dist/chunk-PLNPX4SE.mjs +2 -0
- package/dist/chunk-PW6CFXZP.mjs +2 -0
- package/dist/chunk-PX6VS5KT.mjs +2 -0
- package/dist/chunk-PXCGELHD.mjs +2 -0
- package/dist/chunk-PYH6CEQ7.mjs +2 -0
- package/dist/chunk-Q2MS37RX.mjs +2 -0
- package/dist/chunk-Q3MTSARM.mjs +2 -0
- package/dist/chunk-QDUVZAS2.mjs +2 -0
- package/dist/chunk-QHHNQNL5.mjs +2 -0
- package/dist/chunk-QJNHYOHP.mjs +2 -0
- package/dist/chunk-QK2KTBNT.mjs +2 -0
- package/dist/chunk-QPVNR3K6.mjs +2 -0
- package/dist/chunk-QTI4YOLP.mjs +2 -0
- package/dist/chunk-QTLM3WNR.mjs +2 -0
- package/dist/chunk-QUTWU52F.mjs +2 -0
- package/dist/chunk-R5NU4CCM.mjs +2 -0
- package/dist/chunk-RAPT5RL7.mjs +2 -0
- package/dist/chunk-RBYCUESO.mjs +2 -0
- package/dist/chunk-RH7ZBC46.mjs +2 -0
- package/dist/chunk-RIUIAQWJ.mjs +2 -0
- package/dist/chunk-RJYOJUXU.mjs +2 -0
- package/dist/chunk-RKEZ74AY.mjs +2 -0
- package/dist/chunk-RKSSNROD.mjs +2 -0
- package/dist/chunk-RSMN6RUA.mjs +2 -0
- package/dist/chunk-RUNHNSSE.mjs +2 -0
- package/dist/chunk-RUOYFMSF.mjs +2 -0
- package/dist/chunk-S4OBOHIP.mjs +2 -0
- package/dist/chunk-S7CAHH3E.mjs +2 -0
- package/dist/chunk-SCZC3XCX.mjs +2 -0
- package/dist/chunk-SJP2P7EM.mjs +2 -0
- package/dist/chunk-SKWZRBRF.mjs +2 -0
- package/dist/chunk-STV2NZX3.mjs +2 -0
- package/dist/chunk-SWRFK2A2.mjs +2 -0
- package/dist/chunk-SXWGZ2C6.mjs +2 -0
- package/dist/chunk-SY4GONA5.mjs +2 -0
- package/dist/chunk-SZ2A5JNW.mjs +2 -0
- package/dist/chunk-T6KKPRWS.mjs +2 -0
- package/dist/chunk-TCKL6LQJ.mjs +2 -0
- package/dist/chunk-TF6GP2TN.mjs +2 -0
- package/dist/chunk-THJFX6UC.mjs +2 -0
- package/dist/chunk-TIXK7ZBX.mjs +2 -0
- package/dist/chunk-TJKIB2HI.mjs +2 -0
- package/dist/chunk-TMYRSGQ5.mjs +2 -0
- package/dist/chunk-TO3ZP3XF.mjs +2 -0
- package/dist/chunk-TSLZQNO5.mjs +2 -0
- package/dist/chunk-TVGZJNZN.mjs +2 -0
- package/dist/chunk-TYUD5JVB.mjs +2 -0
- package/dist/chunk-TYUFGYBC.mjs +2 -0
- package/dist/chunk-U3KU5VW6.mjs +2 -0
- package/dist/chunk-UA2UW4VZ.mjs +2 -0
- package/dist/chunk-UA6RJSOQ.mjs +2 -0
- package/dist/chunk-UF4E6BCA.mjs +2 -0
- package/dist/chunk-UGY7FR3R.mjs +2 -0
- package/dist/chunk-USVGGO7Y.mjs +2 -0
- package/dist/chunk-UTI3QXLC.mjs +2 -0
- package/dist/chunk-UTXFZBXT.mjs +2 -0
- package/dist/chunk-UULCDAJJ.mjs +2 -0
- package/dist/chunk-UYCUZYWW.mjs +2 -0
- package/dist/chunk-V3AMH2ZK.mjs +2 -0
- package/dist/chunk-V53OEVBD.mjs +2 -0
- package/dist/chunk-V5WAMDV5.mjs +2 -0
- package/dist/chunk-VEXMHZ7W.mjs +2 -0
- package/dist/chunk-VJXV6ZFX.mjs +2 -0
- package/dist/chunk-VNMY74WO.mjs +2 -0
- package/dist/chunk-VT6D7JQP.mjs +2 -0
- package/dist/chunk-W3AFQKT6.mjs +2 -0
- package/dist/chunk-W4IUPBEU.mjs +2 -0
- package/dist/chunk-W62THP75.mjs +2 -0
- package/dist/chunk-WEDKDUIU.mjs +2 -0
- package/dist/chunk-WEO54AEG.mjs +2 -0
- package/dist/chunk-WHYUDO5G.mjs +2 -0
- package/dist/chunk-WI33NEHE.mjs +2 -0
- package/dist/chunk-WJNRQXDX.mjs +2 -0
- package/dist/chunk-WSUUOQAT.mjs +2 -0
- package/dist/chunk-X5XIAIZA.mjs +2 -0
- package/dist/chunk-X6AJIHTM.mjs +2 -0
- package/dist/chunk-XCAFYI4V.mjs +2 -0
- package/dist/chunk-XFHCVHEZ.mjs +2 -0
- package/dist/chunk-XJHPYNZI.mjs +2 -0
- package/dist/chunk-XOA2RFCW.mjs +2 -0
- package/dist/chunk-XPCX6RWC.mjs +2 -0
- package/dist/chunk-XXWR7RVP.mjs +2 -0
- package/dist/chunk-Y4JMWFGX.mjs +2 -0
- package/dist/chunk-YHCDQRYR.mjs +2 -0
- package/dist/chunk-YK6DH7V6.mjs +2 -0
- package/dist/chunk-YPE32NUI.mjs +1 -0
- package/dist/chunk-YPNXFKLK.mjs +2 -0
- package/dist/chunk-YVWWOPTY.mjs +2 -0
- package/dist/chunk-YVX2PWFA.mjs +2 -0
- package/dist/chunk-YWLTLNUC.mjs +2 -0
- package/dist/chunk-YZZKAGKB.mjs +2 -0
- package/dist/chunk-Z5ES47QR.mjs +2 -0
- package/dist/chunk-Z76RJFVG.mjs +2 -0
- package/dist/chunk-ZCCBP33P.mjs +2 -0
- package/dist/chunk-ZGLOKKOT.mjs +2 -0
- package/dist/chunk-ZGZX6BGZ.mjs +2 -0
- package/dist/chunk-ZHM3PB4G.mjs +2 -0
- package/dist/chunk-ZJOL5CKP.mjs +2 -0
- package/dist/chunk-ZLE7YB4A.mjs +2 -0
- package/dist/chunk-ZTMR3SEY.mjs +2 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.d.ts +1 -2
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/logo.mjs +1 -1
- package/dist/icons/logotype.mjs +1 -1
- package/dist/icons/youtube.d.ts +7 -0
- package/dist/icons/youtube.mjs +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/youtube-15056a14.d.ts +7 -0
- package/package.json +1 -1
package/dist/accordion.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-WEDKDUIU.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger};
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-XXWR7RVP.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Avatar,b as TokenAvatar};
|
package/dist/background.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-5B3S5OJK.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Background};
|
package/dist/badge.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-AMHMX5SH.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Badge,a as badgeVariants};
|
package/dist/blur-image.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-7TQFXQUD.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{a as BlurImage};
|
package/dist/button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-3UYT52KE.mjs";import"./chunk-Y4JMWFGX.mjs";import"./chunk-YPE32NUI.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-VWVFVW4E.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-B5QYWKCW.mjs";import"./chunk-BDMXJXHH.mjs";import"./chunk-HEVVBB3H.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-QJNHYOHP.mjs";import"./chunk-7TIDFD7G.mjs";import"./chunk-V53OEVBD.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-Z5P2KHPP.mjs";import"./chunk-ZJOL5CKP.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Button};
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-FNMIMW4L.mjs";import"./chunk-WEO54AEG.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Checkbox};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as t}from"./chunk-FPBD2IMD.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-IFLYMCSV.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{a as t,h as d,i as n}from"./chunk-3XJFQHHJ.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("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",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as s,b as p}from"./chunk-WI33NEHE.mjs";import*as i from"@radix-ui/react-tooltip";import c from"linkify-react";import{HelpCircle as x}from"lucide-react";import d from"next/link";import{useState as f}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function N({children:t}){return e(i.Provider,{delayDuration:100,children:t})}function m({children:t,content:o,side:n="top"}){let[r,l]=f(!1);return a(i.Root,{open:r,onOpenChange:l,children:[e(i.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(i.Portal,{children:e(i.Content,{sideOffset:8,side:n,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function T({title:t,cta:o,href:n,target:r,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(n?e(d,{href:n,...r?{target:r}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function k({title:t,cta:o,href:n}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function w({children:t}){return e("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:e(c,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function P({content:t}){return e(m,{content:t,children:e(x,{className:"h-4 w-4 text-gray-500"})})}function C({value:t,unit:o="total clicks",children:n,lastClicked:r}){return(!t||t<1e3)&&!r?n:e(m,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(t||0,{full:!0})," ",o]}),r&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",p(r,{withAgo:!0})]})]}),children:n})}export{N as a,m as b,T as c,k as d,w as e,P as f,C as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as l}from"./chunk-O55GNWFL.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-3C3TZRUG.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-A75RGEGE.mjs";import{a as h}from"./chunk-JM6WAEEC.mjs";import{a as f}from"./chunk-EWCDNRBG.mjs";import{a as p}from"./chunk-VWVFVW4E.mjs";import{a as g}from"./chunk-BDMXJXHH.mjs";import{a as c}from"./chunk-V53OEVBD.mjs";import{a as d}from"./chunk-T4YFARK5.mjs";import{i,j as n}from"./chunk-WEO54AEG.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as b}from"next/navigation";import y from"next/image";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:u.map(({shortTitle:t,slug:o})=>({name:t,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:n.map(({name:t,slug:o})=>({name:t,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:o})=>({name:t,href:`/tools/${o}`}))};function _(){let{domain:t="dub.co"}=b(),o=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:r(h,{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-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:o("/"),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(c,{className:"h-7 text-gray-600"})]}),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 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(p,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(d,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"YouTube"}),e(f,{className:"h-4 w-4 text-gray-600"})]})]})]}),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-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e(y,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}export{_ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-IW5Y2KZ6.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-O55GNWFL.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as l}from"./chunk-WI33NEHE.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{g as e}from"./chunk-WI33NEHE.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:s,className:i,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{f as b}from"./chunk-FPBD2IMD.mjs";import p from"js-cookie";import{useEffect as R,useState as A}from"react";function w(e,r,t){let[n,u]=A(()=>{let i=p.get(e);return i?JSON.parse(i):r});return R(()=>{let i=()=>{let o=p.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e]),[n,i=>{u(i),p.set(e,JSON.stringify(i),t)}]}import{useEffect as V,useState as k}from"react";function S(){let[e,r]=k(null);return V(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let n=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,g;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+n;for(let m=1;m<o.length;m++){let h=o[m];if(!h)break;(h.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<n)&&(c=h)}let s=c.target;for(;s&&s.getBoundingClientRect().bottom<n;)s=(d=a.get(s))==null?void 0:d.next;for(;s&&s.getBoundingClientRect().top>l;)s=(g=a.get(s))==null?void 0:g.prev;s&&r(s.getAttribute("href"))},{threshold:1,rootMargin:`-${n}px 0px 0px 0px`}),a=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as M,useState as N}from"react";function v(e,{threshold:r=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:u=!1}){let[a,i]=N(),o=(a==null?void 0:a.isIntersecting)&&u,c=([l])=>{i(l)};return M(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:r,root:t,rootMargin:n},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(r),t,n,o]),a}import{useEffect as j,useState as q}from"react";function x(e,r){let[t,n]=q(r);return j(()=>{let a=window.localStorage.getItem(e);a&&n(JSON.parse(a))},[e]),[t,a=>{n(a),window.localStorage.setItem(e,JSON.stringify(a))}]}import{useEffect as J,useState as E}from"react";function O(){let[e,r]=E(null),[t,n]=E(null);return J(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?r("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?r("tablet"):r("desktop"),n({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import U from"swr";import{toast as $}from"sonner";function T(e,r){let{data:t,isLoading:n,mutate:u}=U(e,b);return{data:t,isLoading:n,update:async(a,i)=>$.promise(u(a(t),{optimisticData:i,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(r==null?void 0:r.loading)||"Updating...",success:(r==null?void 0:r.success)||"Successfully updated",error:(r==null?void 0:r.error)||"Failed to update"})}}import{usePathname as y,useRouter as z,useSearchParams as B}from"next/navigation";function I(){let e=y(),r=z(),t=B(),n=Object.fromEntries(t);return{pathname:e,router:r,searchParams:t,searchParamsObj:n,queryParams:({set:i,del:o,replace:c,getNewPath:l})=>{let s=new URLSearchParams(t);i&&Object.entries(i).forEach(([g,m])=>s.set(g,m)),o&&(Array.isArray(o)?o.forEach(g=>s.delete(g)):s.delete(o));let f=s.toString(),d=`${e}${f.length>0?`?${f}`:""}`;if(l)return d;c?r.replace(d):r.push(d)},getQueryString:(i,o)=>{let c=new URLSearchParams(t);i&&Object.entries(i).forEach(([s,f])=>c.set(s,f)),o!=null&&o.ignore&&o.ignore.forEach(s=>c.delete(s));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as D,useEffect as P,useState as Q}from"react";function L(e){let[r,t]=Q(!1),n=D(()=>{t(window.scrollY>e)},[e]);return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),P(()=>{n()},[n]),r}export{w as a,S as b,v as c,x as d,O as e,T as f,I as g,L as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as g}from"./chunk-5YHJGJZE.mjs";import{h as i}from"./chunk-GIQ5X6YY.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function w({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:u,preventDefaultClose:f}){let p=D(),m=({dragged:e}={})=>{f&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=g();return b&&!u?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-RH7ZBC46.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-NLZZJJYD.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{i}from"./chunk-GA6RCSAC.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import u from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:o})=>({name:t,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:o})=>({name:t,href:`/tools/${o}`}))};function T(){let{domain:t="dub.co"}=h(),o=r=>t==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:a(f,{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-2xl",children:[a("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[a("div",{className:"space-y-8",children:[a(m,{href:o("/"),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[a("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),a("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),a("div",{className:"flex items-center space-x-2",children:[a("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 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),a("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-4 w-4 text-gray-600"})]}),a("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-4 w-4",fill:"#52525B"})]})]})]}),a("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[a("div",{className:"md:grid md:grid-cols-2",children:[a("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]}),a("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]})]}),a("div",{className:"md:grid md:grid-cols-2",children:[a("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]}),a("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]})]})]})]}),e(u,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as n}from"./chunk-IW5Y2KZ6.mjs";import g from"next/image";import{useEffect as i,useState as r}from"react";import{jsx as u}from"react/jsx-runtime";function v(t){let[o,c]=r(!0),[l,e]=r(t.src);i(()=>e(t.src),[t.src]);let m=s=>{c(!1);let a=s.target;a.naturalWidth<20&&a.naturalHeight<20&&e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)};return u(g,{...t,src:l,alt:t.alt,className:n(o?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)},unoptimized:!0})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as f}from"./chunk-T6KKPRWS.mjs";import{g as i}from"./chunk-WEO54AEG.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as e}from"./chunk-GIQ5X6YY.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-Z5P2KHPP.mjs";import{g as e}from"./chunk-FPBD2IMD.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:s,className:i,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-Y4JMWFGX.mjs";import{a as l}from"./chunk-QJNHYOHP.mjs";import{g as t}from"./chunk-WEO54AEG.mjs";import{jsx as o,jsxs as u}from"react/jsx-runtime";function h({text:i,variant:e="primary",className:a,loading:g,icon:d,shortcut:r,disabledTooltip:b,...n}){return b?o(s,{content:b,children:u("div",{className:t("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e.endsWith("outline")},a),children:[d,o("p",{className:t(r&&"flex-1 text-left"),children:i}),r&&o("kbd",{className:t("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e.endsWith("outline")}),children:r})]})}):u("button",{type:n.onClick?"button":"submit",className:t("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",n.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 duration-75 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger","border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":e==="danger-outline"},a),disabled:n.disabled||g,...n,children:[g?o(l,{}):d||null,o("p",{className:t(r&&"flex-1 text-left"),children:i}),r&&o("kbd",{className:t("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:r})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f}from"./chunk-A75RGEGE.mjs";import{a as h}from"./chunk-5VFAVKA3.mjs";import{a as u}from"./chunk-EWCDNRBG.mjs";import{a as p}from"./chunk-VWVFVW4E.mjs";import{a as g}from"./chunk-BDMXJXHH.mjs";import{a as c}from"./chunk-W62THP75.mjs";import{a as d}from"./chunk-T4YFARK5.mjs";import{i,j as n}from"./chunk-FPBD2IMD.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as b}from"next/navigation";import y from"next/image";import{jsx as e,jsxs as a}from"react/jsx-runtime";var l={features:f.map(({shortTitle:t,slug:o})=>({name:t,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:n.map(({name:t,slug:o})=>({name:t,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:o})=>({name:t,href:`/tools/${o}`}))};function _(){let{domain:t="dub.co"}=b(),o=r=>t==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:a(h,{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-2xl",children:[a("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[a("div",{className:"space-y-8",children:[a(m,{href:o("/"),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[a("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(c,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),a("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),a("div",{className:"flex items-center space-x-3",children:[a("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 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(p,{className:"h-4 w-4 text-gray-600"})]}),a("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(d,{className:"h-4 w-4 text-gray-600"})]}),a("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),a("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"YouTube"}),e(u,{className:"h-4 w-4 text-gray-600"})]})]})]}),a("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[a("div",{className:"md:grid md:grid-cols-2",children:[a("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]}),a("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]})]}),a("div",{className:"md:grid md:grid-cols-2",children:[a("div",{children:[a("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]}),a("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]})]}),a("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(r=>e("li",{children:e(m,{href:o(r.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:r.name})},r.name))})]})]})]})]}),e(y,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}export{_ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as we,b as xe}from"./chunk-AUBFB4SI.mjs";var ie=we((Tt,ne)=>{var I=1e3,T=I*60,_=T*60,S=_*24,Re=S*7,Ne=S*365.25;ne.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Ue(e);if(r==="number"&&isFinite(e))return t.long?Be(e):De(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ue(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*Ne;case"weeks":case"week":case"w":return r*Re;case"days":case"day":case"d":return r*S;case"hours":case"hour":case"hrs":case"hr":case"h":return r*_;case"minutes":case"minute":case"mins":case"min":case"m":return r*T;case"seconds":case"second":case"secs":case"sec":case"s":return r*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function De(e){var t=Math.abs(e);return t>=S?Math.round(e/S)+"d":t>=_?Math.round(e/_)+"h":t>=T?Math.round(e/T)+"m":t>=I?Math.round(e/I)+"s":e+"ms"}function Be(e){var t=Math.abs(e);return t>=S?B(e,t,S,"day"):t>=_?B(e,t,_,"hour"):t>=T?B(e,t,T,"minute"):t>=I?B(e,t,I,"second"):e+" ms"}function B(e,t,r,o){var a=t>=r*1.5;return Math.round(e/r)+" "+o+(a?"s":"")}});var H=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:49,yearly:39,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]},limits:{links:5e3,clicks:25e4,domains:20,tags:150,users:15},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:"5,000 links/mo"},{text:"250K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}},{text:"Event callbacks (Beta)",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],ve=H.find(e=>e.name==="Free"),Ae=H.filter(e=>e.name==="Pro"||e.name==="Business");var ke=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",K=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Ee=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Se=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),Pe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",Ie=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",Te=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${K}`,"api.localhost:8888"]),_e=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Le=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var O="cl7pj5kq4006835rbjlt2ofka";var Ce=["stats","changelog","terms","privacy","abuse"],Me=[{id:"clce1z7ch00j0rbstbjufva4j",slug:K,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:O},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:O},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:O},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:O}]:[]],Oe=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code API",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}];function ze(e,t={digits:1}){if(!e)return"0";if(t.full)return Intl.NumberFormat("en-US").format(e);let r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var a=r.slice().reverse().find(function(s){return e>=s.value});return a?(e/a.value).toFixed(t.digits).replace(o,"$1")+a.symbol:"0"}var le=xe(ie(),1),Ge=(e,{withAgo:t}={})=>{if(!e)return"Never";let r=Date.now()-new Date(e).getTime();return r<1e3?"Just now":r>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,le.default)(r)}${t?" ago":""}`};var G=e=>{try{return new URL(e),!0}catch{return!1}},je=e=>{if(G(e))return new URL(e).toString();try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{return null}};var Fe=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),$e=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),Je=new RegExp(/^[a-zA-Z0-9\-]+$/);var Ye=e=>{if(G(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};async function He(e,t){let r=await fetch(e,t);if(!r.ok){let o=await r.text(),a=new Error(o);throw a.status=r.status,a}return r.json()}function ce(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ce(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function de(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ce(e))&&(o&&(o+=" "),o+=t);return o}var Z="-";function Ke(e){let t=Ze(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function a(n){let l=n.split(Z);return l[0]===""&&l.length!==1&&l.shift(),me(l,t)||qe(n)}function s(n,l){let u=r[n]||[];return l&&o[n]?[...u,...o[n]]:u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function me(e,t){var n;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?me(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Z);return(n=t.validators.find(({validator:l})=>l(s)))==null?void 0:n.classGroupId}var ue=/^\[(.+)\]$/;function qe(e){if(ue.test(e)){let t=ue.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Ze(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Xe(Object.entries(e.classGroups),r).forEach(([s,n])=>{q(n,o,s,t)}),o}function q(e,t,r,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:pe(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(We(a)){q(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,n])=>{q(n,pe(t,s),r,o)})})}function pe(e,t){let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function We(e){return e.isThemeGetter}function Xe(e,t){return t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,l])=>[t+n,l])):s);return[r,a]}):e}function Qe(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function a(s,n){r.set(s,n),t++,t>e&&(t=0,o=r,r=new Map)}return{get(s){let n=r.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){r.has(s)?r.set(s,n):a(s,n)}}}var fe="!";function et(e){let t=e.separator,r=t.length===1,o=t[0],a=t.length;return function(n){let l=[],u=0,m=0,p;for(let f=0;f<n.length;f++){let g=n[f];if(u===0){if(g===o&&(r||n.slice(f,f+a)===t)){l.push(n.slice(m,f)),m=f+a;continue}if(g==="/"){p=f;continue}}g==="["?u++:g==="]"&&u--}let h=l.length===0?n:n.substring(m),b=h.startsWith(fe),x=b?h.substring(1):h,E=p&&p>m?p-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:E}}}function tt(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t}function rt(e){return{cache:Qe(e.cacheSize),splitModifiers:et(e),...Ke(e)}}var ot=/\s+/;function st(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=new Set;return e.trim().split(ot).map(n=>{let{modifiers:l,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=r(n),h=o(p?m.substring(0,p):m),b=Boolean(p);if(!h){if(!p)return{isTailwindClass:!1,originalClassName:n};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:n};b=!1}let x=tt(l).join(":"),E=u?x+fe:x;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:n,hasPostfixModifier:b}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:l,classGroupId:u,hasPostfixModifier:m}=n,p=l+u;return s.has(p)?!1:(s.add(p),a(u,m).forEach(h=>s.add(l+h)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function at(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=he(t))&&(o&&(o+=" "),o+=r);return o}function he(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=he(e[o]))&&(r&&(r+=" "),r+=t);return r}function nt(e,...t){let r,o,a,s=n;function n(u){let m=t.reduce((p,h)=>h(p),e());return r=rt(m),o=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){let m=o(u);if(m)return m;let p=st(u,r);return a(u,p),p}return function(){return s(at.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,it=/^\d+\/\d+$/,lt=new Set(["px","full","screen"]),ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return P(e)||lt.has(e)||it.test(e)}function A(e){return L(e,"length",vt)}function P(e){return Boolean(e)&&!Number.isNaN(Number(e))}function j(e){return L(e,"number",P)}function z(e){return Boolean(e)&&Number.isInteger(Number(e))}function ft(e){return e.endsWith("%")&&P(e.slice(0,-1))}function i(e){return ge.test(e)}function k(e){return ct.test(e)}var ht=new Set(["length","size","percentage"]);function gt(e){return L(e,ht,be)}function bt(e){return L(e,"position",be)}var yt=new Set(["image","url"]);function wt(e){return L(e,yt,kt)}function xt(e){return L(e,"",At)}function R(){return!0}function L(e,t,r){let o=ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1}function vt(e){return dt.test(e)&&!ut.test(e)}function be(){return!1}function At(e){return pt.test(e)}function kt(e){return mt.test(e)}function Et(){let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),n=c("borderSpacing"),l=c("borderWidth"),u=c("contrast"),m=c("grayscale"),p=c("hueRotate"),h=c("invert"),b=c("gap"),x=c("gradientColorStops"),E=c("gradientColorStopPositions"),f=c("inset"),g=c("margin"),v=c("opacity"),y=c("padding"),W=c("saturate"),V=c("scale"),X=c("sepia"),Q=c("skew"),ee=c("space"),te=c("translate"),F=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",i,t],d=()=>[i,t],re=()=>["",w,A],N=()=>["auto",P,i],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],Y=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",i],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,j],D=()=>[P,i];return{cacheSize:500,separator:":",theme:{colors:[R],spacing:[w,A],blur:["none","",k,i],brightness:M(),borderColor:[e],borderRadius:["none","","full",k,i],borderSpacing:d(),borderWidth:re(),contrast:M(),grayscale:C(),hueRotate:D(),invert:C(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[ft,A],inset:J(),margin:J(),opacity:M(),padding:d(),saturate:M(),scale:M(),sepia:C(),skew:D(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),i]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",z,i]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",z,i]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",z,i]},i]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[z,i]},i]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[R]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",P,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,A]}],"underline-offset":[{"underline-offset":["auto",w,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),bt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:U()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[w,i]}],"outline-w":[{outline:[w,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[w,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,xt]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[W]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[z,i]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,A,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ye=nt(Et);function St(...e){return ye(de(e))}export{Pe as a,Ce as b,Oe as c,ze as d,Ge as e,je as f,Ye as g,He as h,St as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-FQAAQAU5.mjs";import{g as i}from"./chunk-GA6RCSAC.mjs";import{useMemo as x,useState as u}from"react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:a,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:p}){let[t,y]=u(a.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===a.defaultValue,[l,t,a.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await p({[a.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:g}),e("p",{className:"text-sm text-gray-500",children:c})]}),typeof a.defaultValue=="string"?e("input",{...a,type:"text",required:!0,disabled:!!o,onChange:n=>y(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,e("div",{className:"shrink-0",children:e(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as g}from"./chunk-Z76RJFVG.mjs";import{i}from"./chunk-3XJFQHHJ.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function w({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:u,preventDefaultClose:f}){let p=D(),m=({dragged:e}={})=>{f&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=g();return b&&!u?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as g}from"./chunk-OY65Y573.mjs";import{g as i}from"./chunk-WI33NEHE.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function w({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:u,preventDefaultClose:f}){let p=D(),m=({dragged:e}={})=>{f&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=g();return b&&!u?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-T6KKPRWS.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as e}from"./chunk-WI33NEHE.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-OY65Y573.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as l}from"./chunk-O55GNWFL.mjs";import{motion as n}from"framer-motion";import{jsx as e,jsxs as o}from"react/jsx-runtime";function m({options:i,selected:r,selectAction:a}){return e("div",{className:"relative inline-flex items-center space-x-1",children:i.map(t=>o("button",{className:l("relative z-10 px-3 py-1 text-sm font-medium capitalize",{"transition-all hover:text-gray-500":t!==r}),onClick:()=>a(t),children:[e("p",{children:t}),t===r&&e(n.div,{layoutId:i.join("-"),className:"absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50",style:{zIndex:-1},transition:{duration:.25}})]},t))})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-Z76RJFVG.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-655V6IPO.mjs";import{a as p}from"./chunk-A75RGEGE.mjs";import{c as t,h as d,i as n}from"./chunk-O55GNWFL.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("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",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-3XJFQHHJ.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as e}from"./chunk-GA6RCSAC.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-RH7ZBC46.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-NLZZJJYD.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{i}from"./chunk-GA6RCSAC.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import u from"next/image";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:o})=>({name:t,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:o})=>({name:t,href:`/tools/${o}`}))};function T(){let{domain:t="dub.co"}=h(),o=a=>t==="dub.co"?a:`https://dub.co${a}`;return r("footer",{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-20 pt-10 backdrop-blur-lg",children:[e(f,{className:"pb-20 pt-10",children:r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:o("/"),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",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 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-4 w-4",fill:"#52525B"})]})]}),r("p",{className:"align-bottom text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]}),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-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]})}),e(u,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})}export{T as a};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as t,jsxs as n}from"react/jsx-runtime";function r(){return n("div",{style:a.backgroundMain,children:[t("div",{style:a.backgroundMainBefore}),t("div",{style:a.backgroundMainAfter}),t("div",{style:a.backgroundContent})]})}var a={backgroundMain:{width:"100vw",minHeight:"100vh",position:"fixed",zIndex:1,display:"flex",justifyContent:"center",padding:"120px 24px 160px 24px",pointerEvents:"none"},backgroundMainBefore:{background:"radial-gradient(circle, rgba(2, 0, 36, 0) 0, #fafafa 100%)",position:"absolute",content:'""',zIndex:2,width:"100%",height:"100%",top:0},backgroundMainAfter:{content:'""',backgroundImage:"url(https://d2vwwcvoksz7ty.cloudfront.net/grid.svg)",zIndex:1,position:"absolute",width:"100%",height:"100%",top:0,opacity:.4,filter:"invert(1)"},backgroundContent:{zIndex:3,width:"100%",maxWidth:"640px",backgroundImage:`radial-gradient(at 27% 37%, hsla(215, 98%, 61%, 1) 0px, transparent 0%),
|
|
3
|
+
radial-gradient(at 97% 21%, hsla(125, 98%, 72%, 1) 0px, transparent 50%),
|
|
4
|
+
radial-gradient(at 52% 99%, hsla(354, 98%, 61%, 1) 0px, transparent 50%),
|
|
5
|
+
radial-gradient(at 10% 29%, hsla(256, 96%, 67%, 1) 0px, transparent 50%),
|
|
6
|
+
radial-gradient(at 97% 96%, hsla(38, 60%, 74%, 1) 0px, transparent 50%),
|
|
7
|
+
radial-gradient(at 33% 50%, hsla(222, 67%, 73%, 1) 0px, transparent 50%),
|
|
8
|
+
radial-gradient(at 79% 53%, hsla(343, 68%, 79%, 1) 0px, transparent 50%)`,position:"absolute",height:"100%",filter:"blur(100px) saturate(150%)",top:"80px",opacity:.15}};export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as b}from"./chunk-IW5Y2KZ6.mjs";import p from"js-cookie";import{useEffect as A,useState as R}from"react";function w(e,r,t){let[n,u]=R(()=>{let s=p.get(e);return s?JSON.parse(s):r});return A(()=>{let s=()=>{let o=p.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[n,s=>{u(s),p.set(e,JSON.stringify(s),t)}]}import{useEffect as V,useState as j}from"react";function S(){let[e,r]=j(null);return V(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let n=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,h;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+n;for(let g=1;g<o.length;g++){let m=o[g];if(!m)break;(m.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<n)&&(c=m)}let a=c.target;for(;a&&a.getBoundingClientRect().bottom<n;)a=(d=i.get(a))==null?void 0:d.next;for(;a&&a.getBoundingClientRect().top>l;)a=(h=i.get(a))==null?void 0:h.prev;a&&r(a.getAttribute("href"))},{threshold:1,rootMargin:`-${n}px 0px 0px 0px`}),i=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as k,useState as y}from"react";function x(e,{threshold:r=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:u=!1}){let[i,s]=y(),o=(i==null?void 0:i.isIntersecting)&&u,c=([l])=>{s(l)};return k(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:r,root:t,rootMargin:n},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(r),t,n,o]),i}import{useEffect as M,useState as N}from"react";function v(e,r){let[t,n]=N(r);return M(()=>{let i=window.localStorage.getItem(e);i&&n(JSON.parse(i))},[e]),[t,i=>{n(i),window.localStorage.setItem(e,JSON.stringify(i))}]}import{useEffect as q,useState as E}from"react";function O(){let[e,r]=E(null),[t,n]=E(null);return q(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?r("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?r("tablet"):r("desktop"),n({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import J from"swr";import{toast as U}from"sonner";function T(e,r){let{data:t,isLoading:n,mutate:u}=J(e,b);return{data:t,isLoading:n,update:async(i,s)=>U.promise(u(i(t),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(r==null?void 0:r.loading)||"Updating...",success:(r==null?void 0:r.success)||"Successfully updated",error:(r==null?void 0:r.error)||"Failed to update"})}}import{usePathname as D,useRouter as $,useSearchParams as z}from"next/navigation";function I(){let e=D(),r=$(),t=z(),n=Object.fromEntries(t);return{pathname:e,router:r,searchParams:t,searchParamsObj:n,queryParams:({set:s,del:o,replace:c,getNewPath:l,arrayDelimiter:a=","})=>{let f=new URLSearchParams(t);s&&Object.entries(s).forEach(([g,m])=>f.set(g,Array.isArray(m)?m.join(a):m)),o&&(Array.isArray(o)?o.forEach(g=>f.delete(g)):f.delete(o));let d=f.toString(),h=`${e}${d.length>0?`?${d}`:""}`;if(l)return h;c?r.replace(h):r.push(h)},getQueryString:(s,o)=>{let c=new URLSearchParams(t);s&&Object.entries(s).forEach(([a,f])=>c.set(a,f)),o!=null&&o.ignore&&o.ignore.forEach(a=>c.delete(a));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as B,useEffect as P,useState as Q}from"react";function L(e){let[r,t]=Q(!1),n=B(()=>{t(window.scrollY>e)},[e]);return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),P(()=>{n()},[n]),r}export{w as a,S as b,x as c,v as d,O as e,T as f,I as g,L as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as s,e as p}from"./chunk-IW5Y2KZ6.mjs";import*as i from"@radix-ui/react-tooltip";import c from"linkify-react";import{HelpCircle as x}from"lucide-react";import d from"next/link";import{useState as f}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function N({children:t}){return e(i.Provider,{delayDuration:100,children:t})}function m({children:t,content:o,side:n="top"}){let[r,l]=f(!1);return a(i.Root,{open:r,onOpenChange:l,children:[e(i.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(i.Portal,{children:e(i.Content,{sideOffset:8,side:n,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function T({title:t,cta:o,href:n,target:r,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(n?e(d,{href:n,...r?{target:r}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function k({title:t,cta:o,href:n}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:n,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function w({children:t}){return e("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:e(c,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function P({content:t}){return e(m,{content:t,children:e(x,{className:"h-4 w-4 text-gray-500"})})}function C({value:t,unit:o="total clicks",children:n,lastClicked:r}){return(!t||t<1e3)&&!r?n:e(m,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[s(t||0,{full:!0})," ",o]}),r&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",p(r,{withAgo:!0})]})]}),children:n})}export{N as a,m as b,T as c,k as d,w as e,P as f,C as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-RH7ZBC46.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-NLZZJJYD.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{i}from"./chunk-GA6RCSAC.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import u from"next/image";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:o})=>({name:t,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:o})=>({name:t,href:`/tools/${o}`}))};function T(){let{domain:t="dub.co"}=h(),o=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"bg-gray-50",children:r(f,{className:"relative z-10 overflow-hidden rounded-2xl border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:o("/"),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",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 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-4 w-4 text-gray-600"})]}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-4 w-4",fill:"#52525B"})]})]}),r("p",{className:"align-bottom text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]}),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-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:o(a.href),...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e(u,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as b}from"./chunk-GIQ5X6YY.mjs";import p from"js-cookie";import{useEffect as A,useState as R}from"react";function w(e,r,t){let[n,u]=R(()=>{let s=p.get(e);return s?JSON.parse(s):r});return A(()=>{let s=()=>{let o=p.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[n,s=>{u(s),p.set(e,JSON.stringify(s),t)}]}import{useEffect as V,useState as j}from"react";function S(){let[e,r]=j(null);return V(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let n=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,h;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+n;for(let g=1;g<o.length;g++){let m=o[g];if(!m)break;(m.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<n)&&(c=m)}let a=c.target;for(;a&&a.getBoundingClientRect().bottom<n;)a=(d=i.get(a))==null?void 0:d.next;for(;a&&a.getBoundingClientRect().top>l;)a=(h=i.get(a))==null?void 0:h.prev;a&&r(a.getAttribute("href"))},{threshold:1,rootMargin:`-${n}px 0px 0px 0px`}),i=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as k,useState as y}from"react";function x(e,{threshold:r=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:u=!1}){let[i,s]=y(),o=(i==null?void 0:i.isIntersecting)&&u,c=([l])=>{s(l)};return k(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:r,root:t,rootMargin:n},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(r),t,n,o]),i}import{useEffect as M,useState as N}from"react";function v(e,r){let[t,n]=N(r);return M(()=>{let i=window.localStorage.getItem(e);i&&n(JSON.parse(i))},[e]),[t,i=>{n(i),window.localStorage.setItem(e,JSON.stringify(i))}]}import{useEffect as q,useState as E}from"react";function O(){let[e,r]=E(null),[t,n]=E(null);return q(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?r("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?r("tablet"):r("desktop"),n({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import J from"swr";import{toast as U}from"sonner";function T(e,r){let{data:t,isLoading:n,mutate:u}=J(e,b);return{data:t,isLoading:n,update:async(i,s)=>U.promise(u(i(t),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(r==null?void 0:r.loading)||"Updating...",success:(r==null?void 0:r.success)||"Successfully updated",error:(r==null?void 0:r.error)||"Failed to update"})}}import{usePathname as D,useRouter as $,useSearchParams as z}from"next/navigation";function I(){let e=D(),r=$(),t=z(),n=Object.fromEntries(t);return{pathname:e,router:r,searchParams:t,searchParamsObj:n,queryParams:({set:s,del:o,replace:c,getNewPath:l,arrayDelimiter:a=","})=>{let f=new URLSearchParams(t);s&&Object.entries(s).forEach(([g,m])=>f.set(g,Array.isArray(m)?m.join(a):m)),o&&(Array.isArray(o)?o.forEach(g=>f.delete(g)):f.delete(o));let d=f.toString(),h=`${e}${d.length>0?`?${d}`:""}`;if(l)return h;c?r.replace(h):r.push(h)},getQueryString:(s,o)=>{let c=new URLSearchParams(t);s&&Object.entries(s).forEach(([a,f])=>c.set(a,f)),o!=null&&o.ignore&&o.ignore.forEach(a=>c.delete(a));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as B,useEffect as P,useState as Q}from"react";function L(e){let[r,t]=Q(!1),n=B(()=>{t(window.scrollY>e)},[e]);return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),P(()=>{n()},[n]),r}export{w as a,S as b,x as c,v as d,O as e,T as f,I as g,L as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-TJKIB2HI.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-LLJ272NH.mjs";import{h as x}from"./chunk-LSKK47Z5.mjs";import{a as v}from"./chunk-BL36JUSP.mjs";import{a as g,c as l,h as p,i as c}from"./chunk-O55GNWFL.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-IW5Y2KZ6.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as s}from"./chunk-5YHJGJZE.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-RJYOJUXU.mjs";import{h as x}from"./chunk-OY65Y573.mjs";import{a as v}from"./chunk-E5CU623S.mjs";import{c as g,d as l,e as p,g as c}from"./chunk-WI33NEHE.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&p.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f}from"./chunk-A75RGEGE.mjs";import{a as h}from"./chunk-5VFAVKA3.mjs";import{a as u}from"./chunk-EWCDNRBG.mjs";import{a as p}from"./chunk-VWVFVW4E.mjs";import{a as g}from"./chunk-BDMXJXHH.mjs";import{a as c}from"./chunk-W62THP75.mjs";import{a as d}from"./chunk-T4YFARK5.mjs";import{i as n,j as i}from"./chunk-FPBD2IMD.mjs";import s from"@vercel/analytics";import m from"next/link";import{useParams as b}from"next/navigation";import y from"next/image";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:f.map(({shortTitle:r,slug:o})=>({name:r,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:i.map(({name:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:n.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))};function _(){let{domain:r="dub.co"}=b(),o=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(h,{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-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-8",children:[t(m,{href:o("/"),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(c,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(p,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(d,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(g,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"YouTube"}),e(u,{className:"h-4 w-4 text-gray-600"})]})]})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))}),e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e(y,{src:"/_static/footer-bg.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}export{_ as a};
|