@dub/ui 0.0.48 → 0.0.49
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/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-224SHC3J.mjs +2 -0
- package/dist/chunk-22YLPLRH.mjs +2 -0
- package/dist/chunk-233KTWN5.mjs +2 -0
- package/dist/chunk-25UNJGST.mjs +2 -0
- package/dist/chunk-2C3EI2AE.mjs +2 -0
- package/dist/chunk-2CVU6NWY.mjs +2 -0
- package/dist/chunk-2KULYQGK.mjs +2 -0
- package/dist/chunk-2MMY7UEP.mjs +2 -0
- package/dist/chunk-2MZXRK27.mjs +2 -0
- package/dist/chunk-2SQUU2JC.mjs +2 -0
- package/dist/chunk-2TIMZ56O.mjs +2 -0
- package/dist/chunk-2U67LZ3G.mjs +2 -0
- package/dist/chunk-2XJ4RNKD.mjs +2 -0
- package/dist/chunk-34M6EPZS.mjs +2 -0
- package/dist/chunk-34VCRD7R.mjs +2 -0
- package/dist/chunk-35BWJ5C4.mjs +2 -0
- package/dist/chunk-36WAMUSA.mjs +2 -0
- package/dist/chunk-3BMAJDIQ.mjs +2 -0
- package/dist/chunk-3D6LN5S3.mjs +2 -0
- package/dist/chunk-3EIASELW.mjs +2 -0
- package/dist/chunk-3GTQGQKT.mjs +2 -0
- package/dist/chunk-3INB3FW4.mjs +2 -0
- package/dist/chunk-3MNVZNRB.mjs +2 -0
- package/dist/chunk-3MYEELGW.mjs +2 -0
- package/dist/chunk-3N3MHQJO.mjs +2 -0
- package/dist/chunk-3P7PCUGH.mjs +2 -0
- package/dist/chunk-3RYKLR2H.mjs +2 -0
- package/dist/chunk-3S63RUZR.mjs +2 -0
- package/dist/chunk-3SANPOMJ.mjs +2 -0
- package/dist/chunk-3WZ26A4R.mjs +2 -0
- package/dist/chunk-3XCWTJXT.mjs +2 -0
- package/dist/chunk-44DIFY3Z.mjs +2 -0
- package/dist/chunk-4S7O6FRQ.mjs +2 -0
- package/dist/chunk-4VCI2F4C.mjs +2 -0
- package/dist/chunk-4VM6PWQB.mjs +2 -0
- package/dist/chunk-54HR33Y7.mjs +2 -0
- package/dist/chunk-57U5I7DS.mjs +2 -0
- package/dist/chunk-5EFAN45A.mjs +2 -0
- package/dist/chunk-5MBM36TS.mjs +2 -0
- package/dist/chunk-5MJ2VTGU.mjs +2 -0
- package/dist/chunk-5NNIELBC.mjs +2 -0
- package/dist/chunk-5RLHKDBX.mjs +2 -0
- package/dist/chunk-5S5YRWQA.mjs +2 -0
- package/dist/chunk-5UKS5L4E.mjs +2 -0
- package/dist/chunk-5Y4F2ZDI.mjs +2 -0
- package/dist/chunk-62CQF3ZT.mjs +2 -0
- package/dist/chunk-6BJSCJVB.mjs +2 -0
- package/dist/chunk-6LBA6FC5.mjs +2 -0
- package/dist/chunk-6MWXNM2W.mjs +2 -0
- package/dist/chunk-6PHDPUJR.mjs +2 -0
- package/dist/chunk-6PVSMLW2.mjs +2 -0
- package/dist/chunk-6QMC4G56.mjs +2 -0
- package/dist/chunk-72E6GER5.mjs +2 -0
- package/dist/chunk-75VRO7QR.mjs +2 -0
- package/dist/chunk-775G67W7.mjs +2 -0
- package/dist/chunk-7BA4PILG.mjs +2 -0
- package/dist/chunk-7F7CTHZR.mjs +2 -0
- package/dist/chunk-7IA42JDR.mjs +2 -0
- package/dist/chunk-7IRDKLR4.mjs +2 -0
- package/dist/chunk-7OCNL7MU.mjs +2 -0
- package/dist/chunk-7PZZTFDI.mjs +2 -0
- package/dist/chunk-7RHACSYZ.mjs +2 -0
- package/dist/chunk-7UJHQ55S.mjs +2 -0
- package/dist/chunk-7XHIFNHP.mjs +2 -0
- package/dist/chunk-A25RBGOJ.mjs +2 -0
- package/dist/chunk-A2YQG7C3.mjs +2 -0
- package/dist/chunk-A4M62ZMS.mjs +2 -0
- package/dist/chunk-A7MUVXDY.mjs +2 -0
- package/dist/chunk-AFOZBRIE.mjs +2 -0
- package/dist/chunk-AGUQHF5C.mjs +2 -0
- package/dist/chunk-AIDNDZYW.mjs +2 -0
- package/dist/chunk-AJKJGBKI.mjs +2 -0
- package/dist/chunk-AKL3TYDT.mjs +2 -0
- package/dist/chunk-ALEG5DBQ.mjs +2 -0
- package/dist/chunk-AMCITGNJ.mjs +2 -0
- package/dist/chunk-AMNZQAZX.mjs +2 -0
- package/dist/chunk-AMROGKCT.mjs +2 -0
- package/dist/chunk-AQPZ6WUL.mjs +2 -0
- package/dist/chunk-ARRLZU6R.mjs +2 -0
- package/dist/chunk-ATH45VDQ.mjs +2 -0
- package/dist/chunk-B2JHRFTS.mjs +2 -0
- package/dist/chunk-B4USKWBW.mjs +2 -0
- package/dist/chunk-B732HAPF.mjs +2 -0
- package/dist/chunk-BA7IJY2G.mjs +2 -0
- package/dist/chunk-BG3OKCJ7.mjs +2 -0
- package/dist/chunk-BIQQK644.mjs +2 -0
- package/dist/chunk-BJH622GN.mjs +2 -0
- package/dist/chunk-BNMAOMNP.mjs +2 -0
- package/dist/chunk-BW4HBEGO.mjs +2 -0
- package/dist/chunk-C5KAFTZ3.mjs +2 -0
- package/dist/chunk-CASW56TW.mjs +2 -0
- package/dist/chunk-CD7KMIGU.mjs +2 -0
- package/dist/chunk-CJSF5JKB.mjs +2 -0
- package/dist/chunk-CMGC4ZLV.mjs +2 -0
- package/dist/chunk-CN2LBNLO.mjs +2 -0
- package/dist/chunk-CQASPV6D.mjs +2 -0
- package/dist/chunk-CQO4PUDE.mjs +2 -0
- package/dist/chunk-CSUQCPF2.mjs +2 -0
- package/dist/chunk-CVDSPNQS.mjs +2 -0
- package/dist/chunk-CWGTYGDX.mjs +2 -0
- package/dist/chunk-D2KVSXPQ.mjs +2 -0
- package/dist/chunk-D5JEIHHZ.mjs +2 -0
- package/dist/chunk-D5SYZGBZ.mjs +2 -0
- package/dist/chunk-DBWJABJM.mjs +2 -0
- package/dist/chunk-DCUKGXD3.mjs +2 -0
- package/dist/chunk-DE6QALY5.mjs +2 -0
- package/dist/chunk-DECBVMLY.mjs +2 -0
- package/dist/chunk-DFGP6SNR.mjs +2 -0
- package/dist/chunk-DH5MZTCP.mjs +2 -0
- package/dist/chunk-DNW3EED7.mjs +2 -0
- package/dist/chunk-DOL5OGDP.mjs +2 -0
- package/dist/chunk-DOVYO5J7.mjs +2 -0
- package/dist/chunk-DXN64R3I.mjs +2 -0
- package/dist/chunk-DYDHBPIJ.mjs +2 -0
- package/dist/chunk-EG66X7WY.mjs +2 -0
- package/dist/chunk-ENBAJKTB.mjs +2 -0
- package/dist/chunk-EOQUFY6S.mjs +2 -0
- package/dist/chunk-EPG5O752.mjs +2 -0
- package/dist/chunk-EPN3RSS5.mjs +2 -0
- package/dist/chunk-EQQEXT2L.mjs +2 -0
- package/dist/chunk-EQWFZXMI.mjs +2 -0
- package/dist/chunk-ERFUN7GL.mjs +2 -0
- package/dist/chunk-EYLLNGWB.mjs +2 -0
- package/dist/chunk-F2A3GVKY.mjs +2 -0
- package/dist/chunk-FIE3HRMW.mjs +2 -0
- package/dist/chunk-FMBU2VLG.mjs +2 -0
- package/dist/chunk-FZNNPIKD.mjs +2 -0
- package/dist/chunk-G2CECZIR.mjs +2 -0
- package/dist/chunk-G2HRCBNX.mjs +2 -0
- package/dist/chunk-G5RVZUAJ.mjs +2 -0
- package/dist/chunk-G6YR6FU7.mjs +2 -0
- package/dist/chunk-GCCNHU3Z.mjs +2 -0
- package/dist/chunk-GDT7ZODA.mjs +2 -0
- package/dist/chunk-GEQPIAGW.mjs +2 -0
- package/dist/chunk-GFVQVHJX.mjs +2 -0
- package/dist/chunk-GIEF7U5E.mjs +2 -0
- package/dist/chunk-GM3UACTG.mjs +2 -0
- package/dist/chunk-GMJO6PLC.mjs +2 -0
- package/dist/chunk-GPB7K4RS.mjs +2 -0
- package/dist/chunk-GQWTWJNH.mjs +2 -0
- package/dist/chunk-GTMXLZMW.mjs +2 -0
- package/dist/chunk-GVN4TGXD.mjs +2 -0
- package/dist/chunk-GXMZSBQV.mjs +2 -0
- package/dist/chunk-H5MM5WLQ.mjs +2 -0
- package/dist/chunk-HA47VK7T.mjs +2 -0
- package/dist/chunk-HAP7G4FA.mjs +2 -0
- package/dist/chunk-HE3JFFYP.mjs +2 -0
- package/dist/chunk-HFMR6JRU.mjs +2 -0
- package/dist/chunk-HJZQ5DDP.mjs +2 -0
- package/dist/chunk-HLVPKHVZ.mjs +2 -0
- package/dist/chunk-HTMY7TR4.mjs +2 -0
- package/dist/chunk-I255GCBU.mjs +2 -0
- package/dist/chunk-I4E437WM.mjs +2 -0
- package/dist/chunk-I6YPM7IO.mjs +2 -0
- package/dist/chunk-I7RRMDG2.mjs +2 -0
- package/dist/chunk-IA7AQQGJ.mjs +2 -0
- package/dist/chunk-IL32B3RZ.mjs +2 -0
- package/dist/chunk-IMTRC5ZF.mjs +2 -0
- package/dist/chunk-IP2X5PFJ.mjs +2 -0
- package/dist/chunk-IU7HY7MN.mjs +2 -0
- package/dist/chunk-IXWR5GAH.mjs +2 -0
- package/dist/chunk-IYS4S73L.mjs +2 -0
- package/dist/chunk-J2SBXZHQ.mjs +2 -0
- package/dist/chunk-J2TG2JDS.mjs +2 -0
- package/dist/chunk-J3MYRI2M.mjs +2 -0
- package/dist/chunk-J7IIKGHP.mjs +2 -0
- package/dist/chunk-J7LN5H5P.mjs +2 -0
- package/dist/chunk-J7T2QKO4.mjs +2 -0
- package/dist/chunk-JC2TXBKK.mjs +2 -0
- package/dist/chunk-JCLOELUH.mjs +2 -0
- package/dist/chunk-JLKFTYDD.mjs +2 -0
- package/dist/chunk-JWWJERTS.mjs +2 -0
- package/dist/chunk-JXBUA62Q.mjs +2 -0
- package/dist/chunk-K3EM6OJH.mjs +2 -0
- package/dist/chunk-KHEOXSFF.mjs +2 -0
- package/dist/chunk-KJTVSAUQ.mjs +2 -0
- package/dist/chunk-KRH3QQAE.mjs +2 -0
- package/dist/chunk-KTTXNMKM.mjs +2 -0
- package/dist/chunk-KU4OQJM4.mjs +2 -0
- package/dist/chunk-KUTKWXV3.mjs +2 -0
- package/dist/chunk-KWLD4ZNV.mjs +2 -0
- package/dist/chunk-L26PITXF.mjs +2 -0
- package/dist/chunk-L2U3TR7V.mjs +2 -0
- package/dist/chunk-LBMZOP3M.mjs +2 -0
- package/dist/chunk-LCFJ3DYH.mjs +2 -0
- package/dist/chunk-LCXXPL3V.mjs +2 -0
- package/dist/chunk-LDSROKCO.mjs +2 -0
- package/dist/chunk-LEB5YIXB.mjs +2 -0
- package/dist/chunk-LL36TYBL.mjs +2 -0
- package/dist/chunk-LNXUR52J.mjs +2 -0
- package/dist/chunk-LO7VOXZ4.mjs +2 -0
- package/dist/chunk-LRMU47PH.mjs +2 -0
- package/dist/chunk-LV5IDCA3.mjs +2 -0
- package/dist/chunk-LVKRKVKV.mjs +2 -0
- package/dist/chunk-LXZZ2JA4.mjs +2 -0
- package/dist/chunk-M3NOZMIF.mjs +2 -0
- package/dist/chunk-MGLRU5CB.mjs +2 -0
- package/dist/chunk-MJ3XKHS7.mjs +2 -0
- package/dist/chunk-MJEXCPK2.mjs +2 -0
- package/dist/chunk-MJN7LUJB.mjs +2 -0
- package/dist/chunk-MLBU67KY.mjs +2 -0
- package/dist/chunk-MM4F3YID.mjs +2 -0
- package/dist/chunk-MMEUMF5C.mjs +2 -0
- package/dist/chunk-MZO2IB2M.mjs +2 -0
- package/dist/chunk-N6MNPNRK.mjs +2 -0
- package/dist/chunk-NBR3GORO.mjs +2 -0
- package/dist/chunk-NND2G4FX.mjs +2 -0
- package/dist/chunk-NYFNH4UE.mjs +2 -0
- package/dist/chunk-NZLIVJKJ.mjs +2 -0
- package/dist/chunk-O23EHKWQ.mjs +2 -0
- package/dist/chunk-OA4RYNES.mjs +2 -0
- package/dist/chunk-ODDMIV5P.mjs +2 -0
- package/dist/chunk-OIMQXISC.mjs +2 -0
- package/dist/chunk-OPZEOYD3.mjs +2 -0
- package/dist/chunk-OUSBZ5TZ.mjs +2 -0
- package/dist/chunk-OWIGLX27.mjs +2 -0
- package/dist/chunk-OZCRMEIJ.mjs +2 -0
- package/dist/chunk-P3D4SL7F.mjs +2 -0
- package/dist/chunk-P7DTAVDI.mjs +2 -0
- package/dist/chunk-P7FKTSMI.mjs +2 -0
- package/dist/chunk-PCZGNPJ6.mjs +2 -0
- package/dist/chunk-PHIIXCXK.mjs +2 -0
- package/dist/chunk-PIFUJ555.mjs +2 -0
- package/dist/chunk-Q5UJYPDZ.mjs +2 -0
- package/dist/chunk-Q7B2OIJ4.mjs +2 -0
- package/dist/chunk-QEYTOWOU.mjs +2 -0
- package/dist/chunk-QHOQ6I6F.mjs +2 -0
- package/dist/chunk-QIMCD7FN.mjs +2 -0
- package/dist/chunk-QOXGWKS5.mjs +2 -0
- package/dist/chunk-QQ65LXCR.mjs +2 -0
- package/dist/chunk-QS6NTDA7.mjs +2 -0
- package/dist/chunk-QTUV7653.mjs +2 -0
- package/dist/chunk-QVEXKY6D.mjs +2 -0
- package/dist/chunk-QXELNHSQ.mjs +2 -0
- package/dist/chunk-QZ4P4LK6.mjs +2 -0
- package/dist/chunk-R4RWNOZZ.mjs +2 -0
- package/dist/chunk-R54ZOFCL.mjs +2 -0
- package/dist/chunk-R5EWFXZO.mjs +2 -0
- package/dist/chunk-R6B47RBR.mjs +2 -0
- package/dist/chunk-RB5P26XP.mjs +2 -0
- package/dist/chunk-RDD7MTCK.mjs +2 -0
- package/dist/chunk-RETGZ2QO.mjs +2 -0
- package/dist/chunk-RLMZGMBL.mjs +2 -0
- package/dist/chunk-S2PRHCD7.mjs +2 -0
- package/dist/chunk-S2VUV5MF.mjs +2 -0
- package/dist/chunk-S3IQAJUR.mjs +2 -0
- package/dist/chunk-S4TCVIUE.mjs +2 -0
- package/dist/chunk-S55GTXL6.mjs +2 -0
- package/dist/chunk-SK7XJ5YO.mjs +2 -0
- package/dist/chunk-SKC5JSK6.mjs +2 -0
- package/dist/chunk-SOI5IZGA.mjs +2 -0
- package/dist/chunk-SWHMD642.mjs +2 -0
- package/dist/chunk-SXG6HDDT.mjs +2 -0
- package/dist/chunk-T2MBQNUO.mjs +2 -0
- package/dist/chunk-T3XKVMHK.mjs +2 -0
- package/dist/chunk-T4DP7LRI.mjs +2 -0
- package/dist/chunk-TCISB4N7.mjs +2 -0
- package/dist/chunk-TITYJ7WN.mjs +2 -0
- package/dist/chunk-TKDY32WG.mjs +2 -0
- package/dist/chunk-TLUIMB3T.mjs +2 -0
- package/dist/chunk-TM2PZOZZ.mjs +2 -0
- package/dist/chunk-TR5D3NED.mjs +2 -0
- package/dist/chunk-TUZHI2ST.mjs +2 -0
- package/dist/chunk-TWOAKFYU.mjs +2 -0
- package/dist/chunk-U2JYVGSL.mjs +2 -0
- package/dist/chunk-U2VKN3NW.mjs +2 -0
- package/dist/chunk-UDFXNGVB.mjs +2 -0
- package/dist/chunk-UE6H2EFB.mjs +2 -0
- package/dist/chunk-UGH3VJA7.mjs +2 -0
- package/dist/chunk-UH5A6WI2.mjs +2 -0
- package/dist/chunk-UMSPBX47.mjs +2 -0
- package/dist/chunk-UQUPKK7H.mjs +2 -0
- package/dist/chunk-UUG44EJ6.mjs +2 -0
- package/dist/chunk-UUIZQAYB.mjs +2 -0
- package/dist/chunk-UXTIF4SE.mjs +2 -0
- package/dist/chunk-V3DDMG4T.mjs +2 -0
- package/dist/chunk-V5IMNCOW.mjs +2 -0
- package/dist/chunk-VAZ436R5.mjs +2 -0
- package/dist/chunk-VBQEM7UE.mjs +2 -0
- package/dist/chunk-VBQWRNCG.mjs +2 -0
- package/dist/chunk-VC4DTOYN.mjs +2 -0
- package/dist/chunk-VFGWEEF6.mjs +2 -0
- package/dist/chunk-VL7TB2BS.mjs +2 -0
- package/dist/chunk-VMKCACIX.mjs +2 -0
- package/dist/chunk-VOSXOVFJ.mjs +2 -0
- package/dist/chunk-VOYI3FUP.mjs +2 -0
- package/dist/chunk-VXX5PSJL.mjs +2 -0
- package/dist/chunk-W2BV2MJK.mjs +2 -0
- package/dist/chunk-W5NKN47F.mjs +2 -0
- package/dist/chunk-WAGQ66N7.mjs +2 -0
- package/dist/chunk-WCIYTZ4W.mjs +2 -0
- package/dist/chunk-WICZSZX3.mjs +2 -0
- package/dist/chunk-WIOVAFMS.mjs +2 -0
- package/dist/chunk-WK42L2U3.mjs +2 -0
- package/dist/chunk-WOFU7COZ.mjs +2 -0
- package/dist/chunk-WP4MKG7B.mjs +2 -0
- package/dist/chunk-WSAODKH7.mjs +2 -0
- package/dist/chunk-WSDRZRAF.mjs +2 -0
- package/dist/chunk-WUONXWR3.mjs +2 -0
- package/dist/chunk-X4TIH3XR.mjs +2 -0
- package/dist/chunk-XQTV34US.mjs +2 -0
- package/dist/chunk-XRDP6V4G.mjs +2 -0
- package/dist/chunk-XTEKXVOW.mjs +2 -0
- package/dist/chunk-Y22T3LN4.mjs +2 -0
- package/dist/chunk-Y455LP2X.mjs +2 -0
- package/dist/chunk-YBXO3SQM.mjs +2 -0
- package/dist/chunk-YEY6M2RR.mjs +2 -0
- package/dist/chunk-YGDT3IYH.mjs +2 -0
- package/dist/chunk-YJGCLKYZ.mjs +2 -0
- package/dist/chunk-YMALJ2Z5.mjs +2 -0
- package/dist/chunk-YN2ZGKC2.mjs +2 -0
- package/dist/chunk-YTBJB5BL.mjs +2 -0
- package/dist/chunk-YXPK3OOV.mjs +2 -0
- package/dist/chunk-YY2OR33B.mjs +2 -0
- package/dist/chunk-YY6JPJQ7.mjs +2 -0
- package/dist/chunk-ZDV2WLZP.mjs +2 -0
- package/dist/chunk-ZEQXSOR4.mjs +2 -0
- package/dist/chunk-ZJDIWK7J.mjs +2 -0
- package/dist/chunk-ZKFWQ5MW.mjs +2 -0
- package/dist/chunk-ZOCWWNZ2.mjs +2 -0
- package/dist/chunk-ZOPEDC5C.mjs +2 -0
- package/dist/chunk-ZUUNBO7D.mjs +2 -0
- package/dist/chunk-ZZDDTVTP.mjs +2 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.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/index.css +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.mjs +1 -1
- package/dist/input-select.d.ts +17 -0
- package/dist/input-select.mjs +2 -0
- 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.d.ts +3 -2
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-AGUQHF5C.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as l}from"./chunk-34VCRD7R.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{Command as r,useCommandState as y}from"cmdk";import{useEffect as v,useRef as x,useState as p}from"react";import{Check as w,ChevronDown as b,Search as N,X as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({items:f,selectedItem:i,setSelectedItem:d,icon:g,inputData:o}){let l=x(null),[c,n]=p(!1),[u,m]=p("");v(()=>{let e=a=>{l.current&&!l.current.contains(a.target)&&n(!1)};if(c)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[l,c]);let h=()=>{let e=y(a=>a.filtered.count===0);return t(r.Input,{placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:(o==null?void 0:o.autoFocus)||c,onFocus:()=>n(!0),value:u,onValueChange:m,onKeyDown:a=>{a.key==="Escape"?(a.preventDefault(),n(!1)):a.key==="Enter"&&e?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})};return s(r,{ref:l,className:"relative w-full",loop:!0,children:[s("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[t("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:i?t("img",{src:i.image,alt:i.value,className:"h-4 w-4 rounded-full"}):g||t(N,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[t(h,{}),u?t("button",{onClick:()=>{d(null),m("")},className:"absolute inset-y-0 right-0 my-auto",children:t(I,{className:"h-7 w-7 pr-3 text-gray-400"})}):t(b,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),c&&s(r.List,{className:"z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(r.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),f.map(e=>s(r.Item,{value:e.value,onSelect:()=>{d(e),m(e.value),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[s("div",{className:"flex items-center space-x-2",children:[t("img",{src:e.image,alt:e.value,className:"h-4 w-4 rounded-full"}),t("p",{children:e.value})]}),t(w,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{H 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{i as e}from"./chunk-J7T2QKO4.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{e as g}from"./chunk-HTMY7TR4.mjs";import{i}from"./chunk-IMTRC5ZF.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 i}from"./chunk-OUSBZ5TZ.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-7PZZTFDI.mjs";import{i}from"./chunk-5RLHKDBX.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function b({fn:r,trackDimensions:c,thumbDimensions:l,thumbTranslate:o,checked:d=!0,disabled:n=!1,disabledTooltip:a}){return a?e(s,{content:a,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",...r&&{onCheckedChange:r},disabled:n,className:i(n?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:i(`radix-state-checked:${o}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,o)})})}export{b 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{i as e}from"./chunk-GTMXLZMW.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 l}from"./chunk-7PZZTFDI.mjs";import{a as b}from"./chunk-OPZEOYD3.mjs";import{i as a}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as s}from"react/jsx-runtime";function p({text:n,variant:e="primary",className:u,loading:i,icon:d,shortcut:r,disabledTooltip:g,...o}){return g?t(l,{content:g,children:s("div",{className:"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",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):s("button",{type:o.onClick?"button":"submit",className:a("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||i?"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-500 hover:text-white":e==="danger-outline"},u),disabled:o.disabled||i,...o,children:[i?t(b,{}):d||null,n&&t("p",{className:"flex-1 text-left",children:n}),r&&t("kbd",{className:a("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"}),children:r})]})}export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-IMTRC5ZF.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{g as i}from"./chunk-VFGWEEF6.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as n}from"./chunk-GTMXLZMW.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{a as i}from"./chunk-EYLLNGWB.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as y}from"./chunk-HYYV36TO.mjs";import{a as o}from"./chunk-GDT7ZODA.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{f as g,g as f,h as b}from"./chunk-J7T2QKO4.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-DE6QALY5.mjs";import{a as g}from"./chunk-ENBAJKTB.mjs";import{i as a}from"./chunk-J7T2QKO4.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function x({text:n,variant:e="primary",loading:i,icon:d,shortcut:o,disabledTooltip:b,...r}){return b?t(s,{content:b,children:l("div",{className:"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",children:[t("p",{children:n}),o&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):l("button",{type:r.onClick?"button":"submit",className:a("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",r.className,r.disabled||i?"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 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"}),disabled:r.disabled||i,...r,children:[i?t(g,{}):d||null,n&&t("p",{children:n}),o&&t("kbd",{className:a("hidden rounded px-2 py-0.5 text-xs font-light 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"}),children:o})]})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as e}from"./chunk-ERFUN7GL.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{h as a}from"./chunk-ERFUN7GL.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-IMTRC5ZF.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-SKC5JSK6.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-J7T2QKO4.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-QS6NTDA7.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as i}from"./chunk-VFGWEEF6.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-5RLHKDBX.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{i as l}from"./chunk-J7T2QKO4.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{b}from"./chunk-DE6QALY5.mjs";import{a as s}from"./chunk-ENBAJKTB.mjs";import{i as l}from"./chunk-J7T2QKO4.mjs";import{jsx as e,jsxs as g}from"react/jsx-runtime";function x({text:n,variant:t="primary",loading:i,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:g("div",{className:"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",children:[e("p",{children:n}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):g("button",{type:r.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",r.disabled||i?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},r.className),disabled:r.disabled||i,...r,children:[i?e(s,{}):a||null,n&&e("p",{children:n}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as l}from"./chunk-ERFUN7GL.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{b as l}from"./chunk-7PZZTFDI.mjs";import{a as b}from"./chunk-OPZEOYD3.mjs";import{i as a}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as s}from"react/jsx-runtime";function p({text:n,variant:e="primary",className:u,loading:i,icon:g,shortcut:r,disabledTooltip:d,...o}){return d?t(l,{content:d,children:s("div",{className:"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",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):s("button",{type:o.onClick?"button":"submit",className:a("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||i?"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"},u),disabled:o.disabled||i,...o,children:[i?t(b,{}):g||null,n&&t("p",{className:"align-left flex-1",children:n}),r&&t("kbd",{className:a("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"}),children:r})]})}export{p 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{i as e}from"./chunk-5RLHKDBX.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{c as b}from"./chunk-VFGWEEF6.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{a as i}from"./chunk-G5RVZUAJ.mjs";import{i as d}from"./chunk-IMTRC5ZF.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as r}from"./chunk-VFGWEEF6.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-DE6QALY5.mjs";import{a as g}from"./chunk-ENBAJKTB.mjs";import{i as a}from"./chunk-J7T2QKO4.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function x({text:n,variant:e="primary",loading:i,icon:d,shortcut:o,disabledTooltip:b,...r}){return b?t(s,{content:b,children:l("div",{className:"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",children:[t("p",{children:n}),o&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):l("button",{type:r.onClick?"button":"submit",className:a("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",r.disabled||i?"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 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"},r.className),disabled:r.disabled||i,...r,children:[i?t(g,{}):d||null,n&&t("p",{children:n}),o&&t("kbd",{className:a("hidden rounded px-2 py-0.5 text-xs font-light 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"}),children:o})]})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as r}from"./chunk-5RLHKDBX.mjs";import g from"next/image";import{useEffect as i,useState as n}from"react";import{jsx as u}from"react/jsx-runtime";function E(t){let[c,l]=n(!0),[s,a]=n(t.src);i(()=>a(t.src),[t.src]);let m=o=>{l(!1);let e=o.target;e.naturalWidth<20&&e.naturalHeight<20&&a(`https://avatar.vercel.sh/${t.alt}`)};return u(g,{...t,src:s,alt:t.alt,className:r(c?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{a(`https://avatar.vercel.sh/${t.alt}`)},unoptimized:!0})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as i}from"./chunk-ERFUN7GL.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-T4DP7LRI.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-3P7PCUGH.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{c as i}from"./chunk-GTMXLZMW.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),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:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"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:s("/"),...t!=="dub.co"&&{onClick:()=>{o.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-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as r}from"./chunk-VFGWEEF6.mjs";import g from"next/image";import{useEffect as i,useState as n}from"react";import{jsx as u}from"react/jsx-runtime";function E(t){let[c,l]=n(!0),[s,a]=n(t.src);i(()=>a(t.src),[t.src]);let m=o=>{l(!1);let e=o.target;e.naturalWidth<20&&e.naturalHeight<20&&a(`https://avatar.vercel.sh/${t.alt}`)};return u(g,{...t,src:s,alt:t.alt,className:r(c?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{a(`https://avatar.vercel.sh/${t.alt}`)},unoptimized:!0})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as l}from"./chunk-5RLHKDBX.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{Command as r,useCommandState as y}from"cmdk";import{useEffect as v,useRef as x,useState as p}from"react";import{Check as w,ChevronDown as b,Search as N,X as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({items:f,selectedItem:c,setSelectedItem:d,icon:g,inputData:o}){let l=x(null),[u,n]=p(!1),[i,m]=p("");v(()=>{let e=a=>{l.current&&!l.current.contains(a.target)&&n(!1)};if(u)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[l,u]);let h=()=>{let e=y(a=>a.filtered.count===0);return t(r.Input,{placeholder:(o==null?void 0:o.placeholder)||"Search...",autoFocus:o==null?void 0:o.autoFocus,onFocus:()=>n(!0),value:i,onValueChange:m,onKeyDown:a=>{a.key==="Escape"?(a.preventDefault(),n(!1)):a.key==="Enter"&&e?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})};return s(r,{ref:l,className:"relative w-full",loop:!0,children:[s("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[t("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:c?t("img",{src:c.image,alt:c.value,className:"h-4 w-4 rounded-full"}):g||t(N,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[t(h,{}),i?t("button",{onClick:()=>{d(null),m("")},className:"absolute inset-y-0 right-0 my-auto",children:t(I,{className:"h-7 w-7 pr-3 text-gray-400"})}):t(b,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),u&&s(r.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(r.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),f.map(e=>s(r.Item,{value:e.value,onSelect:()=>{d(e),m(e.value),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[s("div",{className:"flex items-center space-x-2",children:[t("img",{src:e.image,alt:e.value,className:"h-4 w-4 rounded-full"}),t("p",{children:e.value})]}),t(w,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-5RLHKDBX.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{Command as s,useCommandState as h}from"cmdk";import{useEffect as y,useRef as g,useState as c}from"react";import{Check as v,ChevronDown as x,Search as w,X as b}from"lucide-react";import{jsx as a,jsxs as n}from"react/jsx-runtime";function N({items:m,handleSelect:d,placeholder:p,icon:f}){let r=g(null),[l,o]=c(!1),[i,u]=c("");return y(()=>{let e=t=>{r.current&&!r.current.contains(t.target)&&o(!1)};if(l)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[r,l]),n(s,{ref:r,className:"relative w-full",loop:!0,children:[n("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:f||a(w,{className:"h-4 w-4 text-gray-400"})}),n("div",{className:"flex h-9 px-8",children:[a(()=>{let e=h(t=>t.filtered.count===0);return a(s.Input,{placeholder:p||"Search...",autoFocus:l,onFocus:()=>o(!0),value:i,onValueChange:u,onKeyDown:t=>{t.key==="Escape"?(t.preventDefault(),o(!1)):t.key==="Enter"&&e?o(!1):t.key.match(/^[a-z0-9]$/i)&&!t.metaKey&&o(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),i?a("button",{onClick:()=>u(""),className:"absolute inset-y-0 right-0 my-auto",children:a(b,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(x,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&n(s.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[n(s.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),m.map(e=>n(s.Item,{value:e.value,onSelect:()=>{d(e),u(e.value),o(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[e.value,a(v,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i}from"./chunk-IMTRC5ZF.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-5RLHKDBX.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{b as s}from"./chunk-WIOVAFMS.mjs";import{a as l}from"./chunk-233KTWN5.mjs";import{i as n}from"./chunk-IMTRC5ZF.mjs";import{jsx as t,jsxs as u}from"react/jsx-runtime";function x({text:d,variant:e="primary",className:i,loading:g,icon:b,shortcut:r,disabledTooltip:a,...o}){return a?t(s,{content:a,children:u("div",{className:n("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")},i),children:[t("p",{children:d}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):u("button",{type:o.onClick?"button":"submit",className:n("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.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"},i),disabled:o.disabled||g,...o,children:[g?t(l,{}):b||null,d&&t("p",{children:d}),r&&t("kbd",{className:n("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{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as g}from"./chunk-HYYV36TO.mjs";import{i}from"./chunk-5RLHKDBX.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{b as c}from"./chunk-3EIASELW.mjs";import{g as i}from"./chunk-VFGWEEF6.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:d,thumbTranslate:r,checked:h=!0,loading:n=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:h,name:"switch",...o&&{onCheckedChange:o},disabled:a,className:i(n?"bg-gray-200":a?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!n&&e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,r)})})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{Command as n,useCommandState as y}from"cmdk";import{useEffect as g,useRef as v,useState as i}from"react";import{Check as w,ChevronDown as x,Search as b,X as C}from"lucide-react";import{jsx as a,jsxs as s}from"react/jsx-runtime";function N({items:d,placeholder:p,icon:h}){let r=v(null),[l,o]=i(!1),[c,u]=i(""),[f,m]=i(null);return g(()=>{let e=t=>{r.current&&!r.current.contains(t.target)&&o(!1)};if(l)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[r,l]),s(n,{ref:r,className:"relative",loop:!0,children:[s("div",{className:"group mt-1 rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[h||a(b,{className:"h-5 w-5 text-gray-400"}),s("div",{className:"flex h-9 px-8",children:[a(()=>{let e=y(t=>t.filtered.count===0);return a(n.Input,{placeholder:p||"Search...",autoFocus:l,onFocus:()=>o(!0),value:c,onValueChange:u,onKeyDown:t=>{t.key==="Escape"||t.key==="Enter"&&e?o(!1):t.key.match(/^[a-z0-9]$/i)&&!t.metaKey&&o(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),f?a("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(C,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(x,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(n.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(n.Empty,{className:"text-sm text-gray-600",children:['No results found for "',c,'"']}),d.map(e=>a(n.Item,{value:e.value,onSelect:()=>{m(e),o(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:a(w,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},e.id))]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-IMTRC5ZF.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{i}from"./chunk-5RLHKDBX.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{Command as o,useCommandState as y}from"cmdk";import{useEffect as g,useRef as v,useState as i}from"react";import{Check as x,ChevronDown as b,Search as w,X as N}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function C({items:d,placeholder:f,icon:p}){let r=v(null),[l,n]=i(!1),[u,c]=i(""),[h,m]=i(null);return g(()=>{let t=a=>{r.current&&!r.current.contains(a.target)&&n(!1)};if(l)return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r,l]),s(o,{ref:r,className:"relative w-full",loop:!0,children:[s("div",{className:"group mt-1 rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[e("div",{className:"absolute inset-y-0 left-0 flex h-full items-center justify-center bg-red-200 pl-3 text-gray-400",children:p||e(w,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[e(()=>{let t=y(a=>a.filtered.count===0);return e(o.Input,{placeholder:f||"Search...",autoFocus:l,onFocus:()=>n(!0),value:u,onValueChange:c,onKeyDown:a=>{a.key==="Escape"||a.key==="Enter"&&t?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),h?e("button",{onClick:()=>{m(null),c("")},className:"absolute inset-y-0 right-0 my-auto",children:e(N,{className:"h-7 w-7 pr-3 text-gray-400"})}):e(b,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(o.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(o.Empty,{className:"text-sm text-gray-600",children:['No results found for "',u,'"']}),d.map(t=>e(o.Item,{value:t.value,onSelect:()=>{m(t),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:e(x,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},t.id))]})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{Command as o,useCommandState as h}from"cmdk";import{useEffect as g,useRef as v,useState as i}from"react";import{Check as x,ChevronDown as w,Search as b,X as N}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function C({items:d,placeholder:f,icon:p}){let r=v(null),[l,n]=i(!1),[c,u]=i(""),[y,m]=i(null);return g(()=>{let t=a=>{r.current&&!r.current.contains(a.target)&&n(!1)};if(l)return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r,l]),s(o,{ref:r,className:"relative w-full",loop:!0,children:[s("div",{className:"group mt-1 rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:p||e(b,{className:"h-5 w-5 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[e(()=>{let t=h(a=>a.filtered.count===0);return e(o.Input,{placeholder:f||"Search...",autoFocus:l,onFocus:()=>n(!0),value:c,onValueChange:u,onKeyDown:a=>{a.key==="Escape"||a.key==="Enter"&&t?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),y?e("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:e(N,{className:"h-7 w-7 pr-3 text-gray-400"})}):e(w,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(o.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(o.Empty,{className:"text-sm text-gray-600",children:['No results found for "',c,'"']}),d.map(t=>e(o.Item,{value:t.value,onSelect:()=>{m(t),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:e(x,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},t.id))]})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-J7T2QKO4.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-MGLRU5CB.mjs";import{i as d}from"./chunk-J7T2QKO4.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-WIOVAFMS.mjs";import{i as t}from"./chunk-IMTRC5ZF.mjs";import*as i from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:c,thumbTranslate:r,checked:d=!0,loading:h=!1,disabled:n=!1,disabledTooltip:a}){return a?e(s,{content:a,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(i.Root,{checked:d,name:"switch",...o&&{onCheckedChange:o},disabled:n,className:t(n?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!h&&e(i.Thumb,{className:t(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",c,r)})})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as s,e as p}from"./chunk-34VCRD7R.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 i}from"./chunk-WAGQ66N7.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{useMemo as b,useState as m}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:u,description:g,inputData:t,helpText:c,buttonText:f="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=m(t.defaultValue),[l,n]=m(!1),x=b(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:u}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("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":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("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:[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:c||""}}),e("div",{className:"shrink-0",children:e(i,{text:f,loading:l,disabled:x,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-7PZZTFDI.mjs";import{a as l}from"./chunk-OPZEOYD3.mjs";import{i as t}from"./chunk-5RLHKDBX.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{Command as o,useCommandState as h}from"cmdk";import{useEffect as g,useRef as v,useState as i}from"react";import{Check as x,ChevronDown as w,Search as b,X as N}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";function C({items:d,placeholder:f,icon:p}){let r=v(null),[l,n]=i(!1),[c,u]=i(""),[y,m]=i(null);return g(()=>{let t=a=>{r.current&&!r.current.contains(a.target)&&n(!1)};if(l)return document.addEventListener("click",t),()=>document.removeEventListener("click",t)},[r,l]),s(o,{ref:r,className:"relative w-full",loop:!0,children:[s("div",{className:"group mt-1 rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:p||e(b,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[e(()=>{let t=h(a=>a.filtered.count===0);return e(o.Input,{placeholder:f||"Search...",autoFocus:l,onFocus:()=>n(!0),value:c,onValueChange:u,onKeyDown:a=>{a.key==="Escape"||a.key==="Enter"&&t?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})},{}),y?e("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:e(N,{className:"h-7 w-7 pr-3 text-gray-400"})}):e(w,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(o.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(o.Empty,{className:"text-sm text-gray-600",children:['No results found for "',c,'"']}),d.map(t=>e(o.Item,{value:t.value,onSelect:()=>{m(t),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:e(x,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})},t.id))]})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-J7T2QKO4.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{b as l}from"./chunk-7PZZTFDI.mjs";import{a as b}from"./chunk-OPZEOYD3.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as s}from"react/jsx-runtime";function h({text:n,variant:e="primary",className:u,loading:i,icon:g,shortcut:r,disabledTooltip:a,...o}){return a?t(l,{content:a,children:s("div",{className:"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",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):s("button",{type:o.onClick?"button":"submit",className:d("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||i?"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-white bg-white text-red-500 hover:bg-red-500 hover:text-white":e==="danger-outline"},u),disabled:o.disabled||i,...o,children:[i?t(b,{}):g||null,n&&t("p",{className:"flex-1 text-left",children:n}),r&&t("kbd",{className:d("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"}),children:r})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as y}from"./chunk-MLBU67KY.mjs";import{a as o}from"./chunk-AIDNDZYW.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{c as g,h as f,i as b}from"./chunk-VFGWEEF6.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j(f(i),500),d=P(()=>b(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,g,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as r}from"./chunk-IMTRC5ZF.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as b}from"./chunk-IMTRC5ZF.mjs";import h from"js-cookie";import{useEffect as P,useState as L}from"react";function w(e,n,t){let[r,u]=L(()=>{let i=h.get(e);return i?JSON.parse(i):n});return P(()=>{let i=()=>{let o=h.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}},[e]),[r,i=>{u(i),h.set(e,JSON.stringify(i),t)}]}import{useEffect as R,useState as A}from"react";function S(){let[e,n]=A(null);return R(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let r=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,m;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+r;for(let g=1;g<o.length;g++){let p=o[g];if(!p)break;(p.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<r)&&(c=p)}let s=c.target;for(;s&&s.getBoundingClientRect().bottom<r;)s=(d=a.get(s))==null?void 0:d.next;for(;s&&s.getBoundingClientRect().top>l;)s=(m=a.get(s))==null?void 0:m.prev;s&&n(s.getAttribute("href"))},{threshold:1,rootMargin:`-${r}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 V,useState as k}from"react";function v(e,{threshold:n=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:u=!1}){let[a,i]=k(),o=(a==null?void 0:a.isIntersecting)&&u,c=([l])=>{i(l)};return V(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:n,root:t,rootMargin:r},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(n),t,r,o]),a}import{useEffect as M,useState as N}from"react";function x(e,n){let[t,r]=N(n);return M(()=>{let a=window.localStorage.getItem(e);a&&r(JSON.parse(a))},[e]),[t,a=>{r(a),window.localStorage.setItem(e,JSON.stringify(a))}]}import{useEffect as j,useState as E}from"react";function O(){let[e,n]=E(null),[t,r]=E(null);return j(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?n("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?n("tablet"):n("desktop"),r({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 q from"swr";import{toast as J}from"sonner";function T(e){let{data:n,isLoading:t,mutate:r}=q(e,b);return{data:n,isLoading:t,update:(u,a)=>i=>{J.promise(r(u(i),{optimisticData:a,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:"Updating...",success:"Successfully updated",error:"Failed to update"})}}}import{usePathname as U,useRouter as $,useSearchParams as z}from"next/navigation";function y(){let e=U(),n=$(),t=z(),r=Object.fromEntries(t);return{pathname:e,router:n,searchParams:t,searchParamsObj:r,queryParams:({set:i,del:o,replace:c,getNewPath:l})=>{let s=new URLSearchParams(t);i&&Object.entries(i).forEach(([m,g])=>s.set(m,g)),o&&(Array.isArray(o)?o.forEach(m=>s.delete(m)):s.delete(o));let f=s.toString(),d=`${e}${f.length>0?`?${f}`:""}`;if(l)return d;c?n.replace(d):n.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 B,useEffect as C,useState as D}from"react";function I(e){let[n,t]=D(!1),r=B(()=>{t(window.scrollY>e)},[e]);return C(()=>(window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)),[r]),C(()=>{r()},[r]),n}export{w as a,S as b,v as c,x as d,O as e,T as f,y as g,I as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-A75RGEGE.mjs";import{a as f}from"./chunk-GM3UACTG.mjs";import{a as g}from"./chunk-VWVFVW4E.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{a as n}from"./chunk-RDD7MTCK.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{c as i}from"./chunk-J7T2QKO4.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as h}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),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:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=h(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(f,{className:"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:s("/"),...t!=="dub.co"&&{onClick:()=>{o.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-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubinc/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.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("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME,", Inc."]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-7PZZTFDI.mjs";import{a as b}from"./chunk-OPZEOYD3.mjs";import{i as d}from"./chunk-5RLHKDBX.mjs";import{jsx as t,jsxs as s}from"react/jsx-runtime";function h({text:n,variant:e="primary",className:u,loading:i,icon:g,shortcut:r,disabledTooltip:a,...o}){return a?t(l,{content:a,children:s("div",{className:"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",children:[t("p",{children:n}),r&&t("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):s("button",{type:o.onClick?"button":"submit",className:d("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",o.disabled||i?"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","hover:text-white-500 border-white bg-white text-red-500 hover:bg-red-500":e==="danger-outline"},u),disabled:o.disabled||i,...o,children:[i?t(b,{}):g||null,n&&t("p",{className:"flex-1 text-left",children:n}),r&&t("kbd",{className:d("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"}),children:r})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as b}from"./chunk-GTMXLZMW.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{Command as o,useCommandState as y}from"cmdk";import{useEffect as v,useRef as x,useState as p}from"react";import{Check as w,ChevronDown as b,Search as N,X as I}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function H({items:f,selectedItem:i,setSelectedItem:d,icon:g,inputData:u}){let r=x(null),[l,n]=p(!1),[c,m]=p("");v(()=>{let e=a=>{r.current&&!r.current.contains(a.target)&&n(!1)};if(l)return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[r,l]);let h=()=>{let e=y(a=>a.filtered.count===0);return t(o.Input,{placeholder:(u==null?void 0:u.placeholder)||"Search...",autoFocus:l,onFocus:()=>n(!0),value:c,onValueChange:m,onKeyDown:a=>{a.key==="Escape"?(a.preventDefault(),n(!1)):a.key==="Enter"&&e?n(!1):a.key.match(/^[a-z0-9]$/i)&&!a.metaKey&&n(!0)},className:"block w-full rounded-md border-none px-0 text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0 sm:text-sm"})};return s(o,{ref:r,className:"relative w-full",loop:!0,children:[s("div",{className:"group rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",children:[t("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:i?t("img",{src:i.image,alt:i.value,className:"h-4 w-4 rounded-full"}):g||t(N,{className:"h-4 w-4 text-gray-400"})}),s("div",{className:"flex h-9 px-8",children:[t(h,{}),c?t("button",{onClick:()=>{d(null),m("")},className:"absolute inset-y-0 right-0 my-auto",children:t(I,{className:"h-7 w-7 pr-3 text-gray-400"})}):t(b,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]}),l&&s(o.List,{className:"absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[s(o.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',c,'"']}),f.map(e=>s(o.Item,{value:e.value,onSelect:()=>{d(e),m(e.value),n(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[s("div",{className:"flex items-center space-x-2",children:[t("img",{src:e.image,alt:e.value,className:"h-4 w-4 rounded-full"}),t("p",{children:e.value})]}),t(w,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},e.id))]})]})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-QEYTOWOU.mjs";import{i}from"./chunk-34VCRD7R.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:d,thumbTranslate:r,checked:h=!0,loading:n=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:h,name:"switch",...o&&{onCheckedChange:o},disabled:a,className:i(n?"bg-gray-200":a?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!n&&e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,r)})})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as y}from"./chunk-ATH45VDQ.mjs";import{a as o}from"./chunk-D2KVSXPQ.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{f as g,g as f,h as b}from"./chunk-34VCRD7R.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
|