@dub/ui 0.1.69 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +47 -47
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/card-list/card-list-card.mjs +1 -1
- package/dist/card-list/card-list.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-22YA6UTX.mjs +2 -0
- package/dist/chunk-247VLDLW.mjs +2 -0
- package/dist/chunk-26OFQBVX.mjs +2 -0
- package/dist/chunk-2ALO76DQ.mjs +6 -0
- package/dist/chunk-2BGNJ55M.mjs +2 -0
- package/dist/chunk-2C3X33M3.mjs +2 -0
- package/dist/chunk-2ERJVCRX.mjs +2 -0
- package/dist/chunk-2ISXYSSV.mjs +2 -0
- package/dist/chunk-2R2HI35U.mjs +2 -0
- package/dist/chunk-2T3IVINA.mjs +2 -0
- package/dist/chunk-2UOGGGLR.mjs +2 -0
- package/dist/chunk-3342XKCZ.mjs +2 -0
- package/dist/chunk-364FJC4C.mjs +2 -0
- package/dist/chunk-3D4TSYY5.mjs +2 -0
- package/dist/chunk-3DZZZYYD.mjs +2 -0
- package/dist/chunk-3HAJBN2K.mjs +2 -0
- package/dist/chunk-3HRSXNGL.mjs +2 -0
- package/dist/chunk-3LGCWG5E.mjs +2 -0
- package/dist/chunk-3PW5FMTB.mjs +2 -0
- package/dist/chunk-3QOUGNTX.mjs +6 -0
- package/dist/chunk-3SX2AYFB.mjs +2 -0
- package/dist/chunk-3U4AOVHR.mjs +2 -0
- package/dist/chunk-3VUUSH47.mjs +2 -0
- package/dist/chunk-3XEENINE.mjs +2 -0
- package/dist/chunk-3XKU32OM.mjs +2 -0
- package/dist/chunk-3ZTRRVV5.mjs +2 -0
- package/dist/chunk-3ZUT476A.mjs +2 -0
- package/dist/chunk-42CNPCUI.mjs +2 -0
- package/dist/chunk-42GWKFBS.mjs +2 -0
- package/dist/chunk-43M5IPYQ.mjs +2 -0
- package/dist/chunk-453I5MUI.mjs +2 -0
- package/dist/chunk-4ENPOOKY.mjs +2 -0
- package/dist/chunk-4UNIVZWK.mjs +2 -0
- package/dist/chunk-56IGFFSK.mjs +6 -0
- package/dist/chunk-5DZSZB5M.mjs +2 -0
- package/dist/chunk-5EIK4CZT.mjs +2 -0
- package/dist/chunk-5GRDU2JJ.mjs +2 -0
- package/dist/chunk-5H47SBK4.mjs +2 -0
- package/dist/chunk-5H5TZWRF.mjs +2 -0
- package/dist/chunk-5HJID3RL.mjs +2 -0
- package/dist/chunk-5K3VGRD2.mjs +2 -0
- package/dist/chunk-5UDLEOOZ.mjs +2 -0
- package/dist/chunk-5XVEBJXY.mjs +2 -0
- package/dist/chunk-66EFS2V6.mjs +2 -0
- package/dist/chunk-6DTNJ4P7.mjs +2 -0
- package/dist/chunk-6F2KGXS4.mjs +2 -0
- package/dist/chunk-6GOS2GMN.mjs +2 -0
- package/dist/chunk-6H7XIYUR.mjs +2 -0
- package/dist/chunk-6HYZCQKA.mjs +2 -0
- package/dist/chunk-6ILNPUPR.mjs +2 -0
- package/dist/chunk-6MLN43XM.mjs +2 -0
- package/dist/chunk-6RXBLLFM.mjs +2 -0
- package/dist/chunk-6TTX2ZDS.mjs +2 -0
- package/dist/chunk-6YPFXVI6.mjs +2 -0
- package/dist/chunk-6ZSJOGGO.mjs +2 -0
- package/dist/chunk-7CMQJHR4.mjs +2 -0
- package/dist/chunk-7GZ4MGXX.mjs +2 -0
- package/dist/chunk-7IBOHXWV.mjs +42 -0
- package/dist/chunk-7JS5EYPU.mjs +2 -0
- package/dist/chunk-7QQGHSGL.mjs +2 -0
- package/dist/chunk-7RKJYNTJ.mjs +2 -0
- package/dist/chunk-7TRQ6CWN.mjs +2 -0
- package/dist/chunk-7URJVZM7.mjs +2 -0
- package/dist/chunk-7Z2U6NBE.mjs +2 -0
- package/dist/chunk-7Z5HPOEV.mjs +2 -0
- package/dist/chunk-A55JQOUX.mjs +2 -0
- package/dist/chunk-ABBVN54D.mjs +2 -0
- package/dist/chunk-ABDYDCRS.mjs +2 -0
- package/dist/chunk-ACBXE77J.mjs +2 -0
- package/dist/chunk-AIVHYQG5.mjs +2 -0
- package/dist/chunk-AJROEBR6.mjs +2 -0
- package/dist/chunk-AMI5N7ZX.mjs +2 -0
- package/dist/chunk-ANKG3D2X.mjs +2 -0
- package/dist/chunk-ANS77IOP.mjs +2 -0
- package/dist/chunk-ASTQ56VM.mjs +2 -0
- package/dist/chunk-AU7VG236.mjs +2 -0
- package/dist/chunk-AWR6CXLX.mjs +2 -0
- package/dist/chunk-AXGKFR2L.mjs +2 -0
- package/dist/chunk-AXYDLQKU.mjs +2 -0
- package/dist/chunk-B3ARVU7B.mjs +2 -0
- package/dist/chunk-B4EJWWOD.mjs +2 -0
- package/dist/chunk-B7DL2KYU.mjs +2 -0
- package/dist/chunk-BDL6SWJ2.mjs +2 -0
- package/dist/chunk-BF66E7XG.mjs +2 -0
- package/dist/chunk-BFS2SK2V.mjs +2 -0
- package/dist/chunk-BL4SKYKG.mjs +2 -0
- package/dist/chunk-BLUVVIM3.mjs +2 -0
- package/dist/chunk-BQQLF4DK.mjs +2 -0
- package/dist/chunk-BR2VFDDF.mjs +2 -0
- package/dist/chunk-BSMFRXXM.mjs +2 -0
- package/dist/chunk-BTOOVMV4.mjs +2 -0
- package/dist/chunk-BVE5B54J.mjs +2 -0
- package/dist/chunk-BWXNVFPD.mjs +2 -0
- package/dist/chunk-BYDF2AZH.mjs +2 -0
- package/dist/chunk-BZYQQGJJ.mjs +2 -0
- package/dist/chunk-C6EKAGGI.mjs +2 -0
- package/dist/chunk-C75SOTIQ.mjs +2 -0
- package/dist/chunk-C7GS67U3.mjs +2 -0
- package/dist/chunk-CFOQTU4A.mjs +2 -0
- package/dist/chunk-CGLET7BA.mjs +2 -0
- package/dist/chunk-COHO5QST.mjs +2 -0
- package/dist/chunk-COI4KIWF.mjs +2 -0
- package/dist/chunk-CSS6W3MQ.mjs +2 -0
- package/dist/chunk-CSWCRIGC.mjs +2 -0
- package/dist/chunk-CV2TH3IF.mjs +2 -0
- package/dist/chunk-CXZ46GWC.mjs +2 -0
- package/dist/chunk-D3ADWNNC.mjs +2 -0
- package/dist/chunk-D477HPBE.mjs +2 -0
- package/dist/chunk-D5VPAWUW.mjs +2 -0
- package/dist/chunk-D6U2BOCJ.mjs +2 -0
- package/dist/chunk-D7JIIDIV.mjs +2 -0
- package/dist/chunk-DAL74OZ3.mjs +2 -0
- package/dist/chunk-DGX3SJB2.mjs +2 -0
- package/dist/chunk-DHBFUPCL.mjs +2 -0
- package/dist/chunk-DKE6ATB4.mjs +2 -0
- package/dist/chunk-DOWS7PF4.mjs +2 -0
- package/dist/chunk-DPFJSPCA.mjs +6 -0
- package/dist/chunk-E7P4GG42.mjs +2 -0
- package/dist/chunk-EAWPQZL4.mjs +2 -0
- package/dist/chunk-EB3SQPJW.mjs +6 -0
- package/dist/chunk-EH4PJPIC.mjs +2 -0
- package/dist/chunk-EOTJIERM.mjs +2 -0
- package/dist/chunk-ER4DXXJA.mjs +2 -0
- package/dist/chunk-ESKI43TL.mjs +2 -0
- package/dist/chunk-ETEFCQFF.mjs +2 -0
- package/dist/chunk-EVF7DE3F.mjs +2 -0
- package/dist/chunk-EYOEMHC3.mjs +2 -0
- package/dist/chunk-F6B3RUYR.mjs +2 -0
- package/dist/chunk-FEQK6SUB.mjs +2 -0
- package/dist/chunk-FK5QGBOB.mjs +2 -0
- package/dist/chunk-FKLCTJZ4.mjs +2 -0
- package/dist/chunk-FNUSVYOB.mjs +2 -0
- package/dist/chunk-FUIMLA7W.mjs +2 -0
- package/dist/chunk-G3DLVKQH.mjs +2 -0
- package/dist/chunk-G4AKE33L.mjs +2 -0
- package/dist/chunk-GDLAA4G2.mjs +2 -0
- package/dist/chunk-GHSFG3C4.mjs +2 -0
- package/dist/chunk-GLJUY3FU.mjs +6 -0
- package/dist/chunk-GLUYP2AE.mjs +2 -0
- package/dist/chunk-GOU3HDJT.mjs +2 -0
- package/dist/chunk-GT5ULDAB.mjs +2 -0
- package/dist/chunk-GXFVBU63.mjs +2 -0
- package/dist/chunk-GYZTEU67.mjs +2 -0
- package/dist/chunk-H5MWSYQZ.mjs +2 -0
- package/dist/chunk-H5UGJCG2.mjs +2 -0
- package/dist/chunk-H6X2YC5N.mjs +2 -0
- package/dist/chunk-HAPWHHBN.mjs +2 -0
- package/dist/chunk-HG2Y6D3G.mjs +42 -0
- package/dist/chunk-HHD5AOBD.mjs +2 -0
- package/dist/chunk-HHWZFF3H.mjs +2 -0
- package/dist/chunk-HLKXQ2IE.mjs +2 -0
- package/dist/chunk-HNNIZ4M2.mjs +2 -0
- package/dist/chunk-HQ7AVOGG.mjs +2 -0
- package/dist/chunk-HVAJT6I7.mjs +2 -0
- package/dist/chunk-I24GO4HL.mjs +2 -0
- package/dist/chunk-I2RSWUBW.mjs +2 -0
- package/dist/chunk-I57AERIJ.mjs +2 -0
- package/dist/chunk-I5AC2P3R.mjs +2 -0
- package/dist/chunk-I64FUP6F.mjs +2 -0
- package/dist/chunk-I6SSHGQ2.mjs +2 -0
- package/dist/chunk-IGFDGLNE.mjs +2 -0
- package/dist/chunk-IGYUB2JT.mjs +2 -0
- package/dist/chunk-IJE4HJ5C.mjs +2 -0
- package/dist/chunk-IJOFTRL3.mjs +2 -0
- package/dist/chunk-IJUAB6RK.mjs +2 -0
- package/dist/chunk-IL7K3KII.mjs +2 -0
- package/dist/chunk-INH7BHQY.mjs +2 -0
- package/dist/chunk-IR66KFXV.mjs +2 -0
- package/dist/chunk-IS5VZ4AK.mjs +2 -0
- package/dist/chunk-IUGOT2K4.mjs +2 -0
- package/dist/chunk-IYVNIXK5.mjs +2 -0
- package/dist/chunk-JD2LNIWD.mjs +2 -0
- package/dist/chunk-JDSUPUDK.mjs +2 -0
- package/dist/chunk-JETV5ZZZ.mjs +2 -0
- package/dist/chunk-JIQRFFD5.mjs +2 -0
- package/dist/chunk-JJX7GOEO.mjs +2 -0
- package/dist/chunk-JMKNLHUV.mjs +2 -0
- package/dist/chunk-JZGAA6NI.mjs +2 -0
- package/dist/chunk-K3VDAU4N.mjs +2 -0
- package/dist/chunk-KC23PSHC.mjs +2 -0
- package/dist/chunk-KDEUVPDD.mjs +2 -0
- package/dist/chunk-KHMF6NJG.mjs +2 -0
- package/dist/chunk-KM2XI5CH.mjs +2 -0
- package/dist/chunk-KORZXM6V.mjs +2 -0
- package/dist/chunk-KQERPFET.mjs +2 -0
- package/dist/chunk-KTN4WKB3.mjs +2 -0
- package/dist/chunk-KUA2CWBM.mjs +6 -0
- package/dist/chunk-KVNWMC4X.mjs +2 -0
- package/dist/chunk-KWTZUPQN.mjs +2 -0
- package/dist/chunk-KYXSUHQT.mjs +2 -0
- package/dist/chunk-KZ2IJWDL.mjs +2 -0
- package/dist/chunk-L4FA5VZW.mjs +2 -0
- package/dist/chunk-L4XZTEBS.mjs +2 -0
- package/dist/chunk-LCN5EPCR.mjs +2 -0
- package/dist/chunk-LDA2I5SK.mjs +2 -0
- package/dist/chunk-LHFNJJUQ.mjs +2 -0
- package/dist/chunk-LHFT5GDI.mjs +2 -0
- package/dist/chunk-LHRSOLFV.mjs +2 -0
- package/dist/chunk-LM3VD6TZ.mjs +2 -0
- package/dist/chunk-LSE5IPYR.mjs +2 -0
- package/dist/chunk-LUDMJ77J.mjs +2 -0
- package/dist/chunk-LWVRUH3D.mjs +2 -0
- package/dist/chunk-LXYTR7M6.mjs +2 -0
- package/dist/chunk-M2X3Q5KH.mjs +6 -0
- package/dist/chunk-MDWWZ2OB.mjs +2 -0
- package/dist/chunk-MDXINC42.mjs +2 -0
- package/dist/chunk-MENB5YDU.mjs +2 -0
- package/dist/chunk-MEQM22XP.mjs +2 -0
- package/dist/chunk-MG3JVVDV.mjs +2 -0
- package/dist/chunk-N4D5CP3Q.mjs +2 -0
- package/dist/chunk-N4JGERLH.mjs +2 -0
- package/dist/chunk-N6LUEISO.mjs +2 -0
- package/dist/chunk-N7RG36QD.mjs +2 -0
- package/dist/chunk-NAHB2RQQ.mjs +2 -0
- package/dist/chunk-NDIVMNAM.mjs +6 -0
- package/dist/chunk-NEBSVHNZ.mjs +2 -0
- package/dist/chunk-NFY7QCOD.mjs +2 -0
- package/dist/chunk-NJFZ26CN.mjs +2 -0
- package/dist/chunk-NKWU5PQQ.mjs +2 -0
- package/dist/chunk-NNGHO3FU.mjs +2 -0
- package/dist/chunk-NPBZYAER.mjs +2 -0
- package/dist/chunk-NSXDIO4Y.mjs +2 -0
- package/dist/chunk-NUDBOJPF.mjs +2 -0
- package/dist/chunk-NZRIEMXB.mjs +2 -0
- package/dist/chunk-O54LVCRS.mjs +2 -0
- package/dist/chunk-O6OI73M7.mjs +2 -0
- package/dist/chunk-OAEGUEPF.mjs +2 -0
- package/dist/chunk-OILS7HRW.mjs +6 -0
- package/dist/chunk-OQ6UDSPV.mjs +2 -0
- package/dist/chunk-OQT6PNQ7.mjs +2 -0
- package/dist/chunk-ORQ643AR.mjs +2 -0
- package/dist/chunk-OXCNIU6K.mjs +2 -0
- package/dist/chunk-P3N75JRI.mjs +2 -0
- package/dist/chunk-P4SDMVQP.mjs +2 -0
- package/dist/chunk-P7QQVOC5.mjs +2 -0
- package/dist/chunk-PIHBKBMX.mjs +2 -0
- package/dist/chunk-PQRNEMB2.mjs +2 -0
- package/dist/chunk-PU6FLF3H.mjs +2 -0
- package/dist/chunk-PVGXQRQY.mjs +2 -0
- package/dist/chunk-PXIZND6U.mjs +2 -0
- package/dist/chunk-PZQ2WJI6.mjs +6 -0
- package/dist/chunk-Q4AVTOAT.mjs +2 -0
- package/dist/chunk-QBG6YA5L.mjs +2 -0
- package/dist/chunk-QJNYTOLD.mjs +2 -0
- package/dist/chunk-QKXCLBPL.mjs +6 -0
- package/dist/chunk-QQ7XG7OJ.mjs +2 -0
- package/dist/chunk-QXSAM6DM.mjs +2 -0
- package/dist/chunk-QYOSTW3V.mjs +2 -0
- package/dist/chunk-QZFIXSZQ.mjs +2 -0
- package/dist/chunk-R37FIISH.mjs +2 -0
- package/dist/chunk-R3XSB75Y.mjs +2 -0
- package/dist/chunk-RD5ZCE2K.mjs +2 -0
- package/dist/chunk-RECBVBIQ.mjs +2 -0
- package/dist/chunk-RRG6OJ67.mjs +2 -0
- package/dist/chunk-RSJ6GSD7.mjs +2 -0
- package/dist/chunk-RTTMG5OL.mjs +2 -0
- package/dist/chunk-RZ4SFDHX.mjs +2 -0
- package/dist/chunk-RZTH773L.mjs +2 -0
- package/dist/chunk-SEAMJLIO.mjs +2 -0
- package/dist/chunk-SJYWPWXF.mjs +2 -0
- package/dist/chunk-SLLBC6SC.mjs +2 -0
- package/dist/chunk-SYVECOCA.mjs +2 -0
- package/dist/chunk-SZEN57X5.mjs +2 -0
- package/dist/chunk-SZRHA2GT.mjs +2 -0
- package/dist/chunk-T2HK3T52.mjs +2 -0
- package/dist/chunk-T32IVLSS.mjs +2 -0
- package/dist/chunk-T74GLTSL.mjs +2 -0
- package/dist/chunk-TA5HYQRQ.mjs +2 -0
- package/dist/chunk-TCVVRSYX.mjs +2 -0
- package/dist/chunk-TEY5O3RA.mjs +2 -0
- package/dist/chunk-TIC2LGTP.mjs +2 -0
- package/dist/chunk-TXSZQH5G.mjs +2 -0
- package/dist/chunk-TXXKECQO.mjs +6 -0
- package/dist/chunk-U6AD4ALY.mjs +2 -0
- package/dist/chunk-U7KEKQYA.mjs +2 -0
- package/dist/chunk-UAQZTW4U.mjs +2 -0
- package/dist/chunk-UCXYHRDP.mjs +2 -0
- package/dist/chunk-UD2UJUXG.mjs +2 -0
- package/dist/chunk-UD4VN3DH.mjs +2 -0
- package/dist/chunk-ULWDKSZK.mjs +2 -0
- package/dist/chunk-UQS2ZGYW.mjs +2 -0
- package/dist/chunk-UVFRTTO6.mjs +2 -0
- package/dist/chunk-UYBFZJ5C.mjs +2 -0
- package/dist/chunk-UZ4JJ42T.mjs +2 -0
- package/dist/chunk-UZO4XKDU.mjs +2 -0
- package/dist/chunk-VBWZTCSD.mjs +2 -0
- package/dist/chunk-VCSDWQP3.mjs +2 -0
- package/dist/chunk-VENNPUNH.mjs +2 -0
- package/dist/chunk-VLMHALMP.mjs +2 -0
- package/dist/chunk-VR4HARM3.mjs +2 -0
- package/dist/chunk-VRVMOTQV.mjs +2 -0
- package/dist/chunk-VSCITBCY.mjs +2 -0
- package/dist/chunk-W2ZJQOHS.mjs +2 -0
- package/dist/chunk-W3QIOL4G.mjs +2 -0
- package/dist/chunk-W5TBLBM6.mjs +2 -0
- package/dist/chunk-W7M34XRR.mjs +2 -0
- package/dist/chunk-WBF5HZQ6.mjs +2 -0
- package/dist/chunk-WC2KKGTK.mjs +2 -0
- package/dist/chunk-WCLNMUC2.mjs +2 -0
- package/dist/chunk-WFYWMZDG.mjs +6 -0
- package/dist/chunk-WHNZZMK2.mjs +2 -0
- package/dist/chunk-WI42IPI7.mjs +2 -0
- package/dist/chunk-WJZIVMXO.mjs +2 -0
- package/dist/chunk-WSBIRQ6W.mjs +2 -0
- package/dist/chunk-WVMZSRDG.mjs +2 -0
- package/dist/chunk-X437KEIG.mjs +2 -0
- package/dist/chunk-X6EPDS57.mjs +2 -0
- package/dist/chunk-X6LWSYKB.mjs +2 -0
- package/dist/chunk-XALOGNV6.mjs +2 -0
- package/dist/chunk-XBMLYZPP.mjs +2 -0
- package/dist/chunk-XBTTJSVQ.mjs +2 -0
- package/dist/chunk-XFLUK427.mjs +2 -0
- package/dist/chunk-XIKQPBME.mjs +2 -0
- package/dist/chunk-XIZW7FK4.mjs +2 -0
- package/dist/chunk-XOGTH3EB.mjs +6 -0
- package/dist/chunk-XRIZIRH2.mjs +2 -0
- package/dist/chunk-XTK2BTRW.mjs +2 -0
- package/dist/chunk-XTNQEIPG.mjs +6 -0
- package/dist/chunk-XU2GKM2O.mjs +6 -0
- package/dist/chunk-XXLUS5XT.mjs +2 -0
- package/dist/chunk-Y3QQVIXW.mjs +2 -0
- package/dist/chunk-Y6GXAJYP.mjs +2 -0
- package/dist/chunk-Y7VESY2F.mjs +6 -0
- package/dist/chunk-YHC4THUP.mjs +2 -0
- package/dist/chunk-YHPHBFF4.mjs +2 -0
- package/dist/chunk-YIXJW3OQ.mjs +2 -0
- package/dist/chunk-YJQJKJRB.mjs +2 -0
- package/dist/chunk-YKNEZ7JD.mjs +2 -0
- package/dist/chunk-YOK6UIBC.mjs +2 -0
- package/dist/chunk-YPYCGDOO.mjs +2 -0
- package/dist/chunk-YQFFD4BR.mjs +2 -0
- package/dist/chunk-YRILC5NG.mjs +2 -0
- package/dist/chunk-YSBJGFD5.mjs +42 -0
- package/dist/chunk-YSZCWUZW.mjs +2 -0
- package/dist/chunk-YVZXVQMV.mjs +2 -0
- package/dist/chunk-YY2VAS2K.mjs +2 -0
- package/dist/chunk-Z3N2QQM5.mjs +2 -0
- package/dist/chunk-Z45ZXUKJ.mjs +6 -0
- package/dist/chunk-ZICA3VYR.mjs +2 -0
- package/dist/chunk-ZIJSUOTQ.mjs +2 -0
- package/dist/chunk-ZKNTMKRU.mjs +6 -0
- package/dist/chunk-ZN3PNOIE.mjs +2 -0
- package/dist/chunk-ZOKWUTJH.mjs +2 -0
- package/dist/chunk-ZRLYC43B.mjs +2 -0
- package/dist/chunk-ZT7NQ7HE.mjs +2 -0
- package/dist/chunk-ZWCN2SRH.mjs +2 -0
- package/dist/chunk-ZXP6AIIM.mjs +2 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/copy-text.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-list.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/grid.mjs +1 -1
- package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/default-domains/amazon.mjs +1 -1
- package/dist/icons/default-domains/chatgpt.mjs +1 -1
- package/dist/icons/default-domains/figma.mjs +1 -1
- package/dist/icons/default-domains/github-enhanced.mjs +1 -1
- package/dist/icons/default-domains/google-enhanced.mjs +1 -1
- package/dist/icons/default-domains/spotify.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/payout-platforms/paypal.mjs +1 -1
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +1 -1
- package/dist/input-select.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/pagination-controls.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/sheet.mjs +1 -1
- package/dist/shimmer-dots.mjs +1 -1
- package/dist/status-badge.d.ts +1 -0
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/dist/wordmark.mjs +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-2ZGZWHB4.mjs";import{a as I}from"./chunk-5GJ5FKXO.mjs";import{a as _,e as T}from"./chunk-OUWBFTXV.mjs";import{a as R}from"./chunk-NL5BFUDW.mjs";import{a as P}from"./chunk-5ZLK4D4J.mjs";import{a as E}from"./chunk-5ORITTGP.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-AQIV6QKZ.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-7LNA6Q2P.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,C]=V();function c(s){X.promise(C(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:C}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t(p,{className:"grow basis-0",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:k,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:k!==void 0?t(p,{id:`nav-${k}`,href:N(k,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):C?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as m}from"./chunk-3342XKCZ.mjs";import{l as i}from"./chunk-LHRSOLFV.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:(void 0)("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-OILS7HRW.mjs";import{a as b}from"./chunk-LNAW5KVB.mjs";import{h as g,i as f,k as h,m as s}from"./chunk-TOWKBEIR.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as h}from"./chunk-AIVHYQG5.mjs";import{b as v}from"./chunk-KORZXM6V.mjs";import{d as f,f as y,m as l}from"./chunk-HVAJT6I7.mjs";import*as s from"@radix-ui/react-tooltip";import R from"linkify-react";import{HelpCircle as B}from"lucide-react";import C from"next/link";import{useState as L}from"react";import{cva as P}from"class-variance-authority";import{forwardRef as k}from"react";import{jsx as p,jsxs as T}from"react/jsx-runtime";var c=P("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:l("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-neutral-600 hover:bg-neutral-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),b=k(({text:t,variant:e="primary",className:o,textWrapperClassName:i,loading:n,icon:m,shortcut:a,disabledTooltip:x,right:N,...u},w)=>x?p(d,{content:x,children:T("div",{className:l("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},o),children:[m,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:a})]})}):T("button",{ref:w,type:u.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",u.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":c({variant:e}),o),disabled:u.disabled||n,...u,children:[n?p(h,{}):m||null,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:a}),N]}));b.displayName="Button";import{jsx as r,jsxs as g}from"react/jsx-runtime";function K({children:t}){return r(s.Provider,{delayDuration:150,children:t})}function d({children:t,content:e,side:o="top",disableHoverableContent:i,...n}){let[m,a]=L(!1);return g(s.Root,{open:m,onOpenChange:a,delayDuration:0,disableHoverableContent:i,children:[r(s.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),r(s.Portal,{children:r(s.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...n,children:typeof e=="string"?r("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:e}):typeof e=="function"?e({setOpen:a}):e})})]})}function Q({title:t,cta:e,href:o,target:i,onClick:n}){return g("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[r("p",{className:"text-sm text-gray-700",children:t}),e&&(o?r(C,{href:o,...i?{target:i}:{},className:l(c({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:e}):n?r(b,{onClick:n,text:e,variant:"primary",className:"h-9"}):null)]})}function U({title:t,cta:e,href:o}){return g("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",r("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function X({children:t}){return r("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:r(R,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function Y(t){return r(d,{...t,children:r(B,{className:"h-4 w-4 text-gray-500"})})}function Z({value:t,unit:e="total clicks",prefix:o,children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:r(d,{content:g("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[g("p",{className:"text-sm font-semibold text-gray-700",children:[o,y(t||0,{full:!0})," ",e]}),n&&g("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",f(n,{withAgo:!0})]})]}),children:i})}function $({children:t,content:e,...o}){return r(d,{content:e,...o,children:r("div",{className:"flex cursor-pointer items-center",children:r(v,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}function ee({children:t,tooltipProps:e,...o}){return r(d,{...e,children:r("button",{type:"button",...o,className:l("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",o.className),children:t})})}export{K as a,d as b,Q as c,U as d,X as e,Y as f,Z as g,$ as h,ee as i,c as j,b as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as y}from"./chunk-NWME2ANF.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as s}from"./chunk-NAHB2RQQ.mjs";import{h as g,k as f,l as b}from"./chunk-HVAJT6I7.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.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:o,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(s,{})}),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(s,{})})})]})}export{H as a,O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-IGIB6XZB.mjs";import{a as c}from"./chunk-GYE7FFDN.mjs";import{a as e}from"./chunk-UUJYTAK4.mjs";import{a as s}from"./chunk-GV2NLM3E.mjs";import{a as i}from"./chunk-CGL6YSX7.mjs";import{m as o}from"./chunk-ORQ643AR.mjs";import{cva as d}from"class-variance-authority";import{jsx as x,jsxs as b}from"react/jsx-runtime";var f=d("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),m={neutral:c,new:i,success:s,pending:l,warning:e,error:e};function v({className:g,variant:t,icon:r,onClick:n,children:u,...p}){let a=r!==null?r??m[t??"neutral"]:null;return b("span",{className:o(f({variant:t}),n&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",g),onClick:n,...p,children:[a&&x(a,{className:"h-3 w-3 shrink-0"}),u]})}export{f as a,v as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as r}from"./chunk-LHRSOLFV.mjs";import{Drawer as o}from"vaul";import{jsx as i,jsxs as w}from"react/jsx-runtime";function m({children:t,contentProps:e,nested:n=!1,...s}){let f=n?o.NestedRoot:o.Root;return i(f,{direction:"right",handleOnly:!0,...s,children:w(o.Portal,{children:[i(o.Overlay,{className:"fixed inset-0 bg-black/20"}),i(o.Content,{...e,onPointerDownOutside:l=>{var a;l.target instanceof Element&&l.target.closest("[data-sonner-toast]")&&l.preventDefault(),(a=e==null?void 0:e.onPointerDownOutside)==null||a.call(e,l)},className:(void 0)("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",e==null?void 0:e.className),style:{"--initial-transform":"calc(100% + 8px)","user-select":"auto",...e==null?void 0:e.style},children:i("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:t})})]})})}function u({className:t,...e}){return i(o.Title,{className:(void 0)("text-xl font-medium text-zinc-900",t),...e})}function d(t){return i(o.Description,{...t})}function C(t){return i(o.Close,{...t})}var x=Object.assign(m,{Title:u,Description:d,Close:C});export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as l,e as p}from"./chunk-I57AERIJ.mjs";import{a as s,c as n}from"./chunk-5HJID3RL.mjs";import{i,m as e}from"./chunk-HVAJT6I7.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-2ALO76DQ.mjs";import{a as x,f as k,g as L}from"./chunk-GXFVBU63.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-HVAJT6I7.mjs";import{motion as r}from"framer-motion";import{jsx as e,jsxs as c}from"react/jsx-runtime";var n="M6.75 8.25L4 11L1.25 8.25",s="M6.75 3.75L4 1L1.25 3.75";function i({order:o,className:a}){return c("svg",{className:t("w-2 text-gray-950",a),viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e(r.path,{className:t(!o&&"opacity-40"),animate:{d:o==="asc"?s:n},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e(r.path,{className:"opacity-40",animate:{d:o==="asc"?n:s},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as y}from"./chunk-6X5G5GUJ.mjs";import{b as h}from"./chunk-K2CGCSJN.mjs";import*as l from"@radix-ui/react-tooltip";import k from"linkify-react";import{HelpCircle as R}from"lucide-react";import B from"next/link";import{useState as C}from"react";import{cva as w}from"class-variance-authority";import{forwardRef as P}from"react";import{jsx as d,jsxs as v}from"react/jsx-runtime";var b=w("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:(void 0)("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-neutral-600 hover:bg-neutral-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),x=P(({text:t,variant:e="primary",className:o,textWrapperClassName:i,loading:n,icon:u,shortcut:a,disabledTooltip:f,right:T,...c},N)=>f?d(g,{content:f,children:v("div",{className:(void 0)("flex h-10 w-full cursor-not-allowed items-center justify-center gap-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e==null?void 0:e.endsWith("outline")},o),children:[u,t&&d("div",{className:(void 0)("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&d("kbd",{className:(void 0)("hidden rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:a})]})}):v("button",{ref:N,type:c.onClick?"button":"submit",className:(void 0)("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",c.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":b({variant:e}),o),disabled:c.disabled||n,...c,children:[n?d(y,{}):u||null,t&&d("div",{className:(void 0)("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&d("kbd",{className:(void 0)("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-600 group-hover:text-gray-300":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:a}),T]}));x.displayName="Button";import{jsx as r,jsxs as m}from"react/jsx-runtime";function q({children:t}){return r(l.Provider,{delayDuration:150,children:t})}function g({children:t,content:e,side:o="top",disableHoverableContent:i,...n}){let[u,a]=C(!1);return m(l.Root,{open:u,onOpenChange:a,delayDuration:0,disableHoverableContent:i,children:[r(l.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),r(l.Portal,{children:r(l.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...n,children:typeof e=="string"?r("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:e}):typeof e=="function"?e({setOpen:a}):e})})]})}function G({title:t,cta:e,href:o,target:i,onClick:n}){return m("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[r("p",{className:"text-sm text-gray-700",children:t}),e&&(o?r(B,{href:o,...i?{target:i}:{},className:(void 0)(b({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:e}):n?r(x,{onClick:n,text:e,variant:"primary",className:"h-9"}):null)]})}function J({title:t,cta:e,href:o}){return m("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",r("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function K({children:t}){return r("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:r(k,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function Q(t){return r(g,{...t,children:r(R,{className:"h-4 w-4 text-gray-500"})})}function U({value:t,unit:e="total clicks",prefix:o,children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:r(g,{content:m("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[m("p",{className:"text-sm font-semibold text-gray-700",children:[o,(void 0)(t||0,{full:!0})," ",e]}),n&&m("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",(void 0)(n,{withAgo:!0})]})]}),children:i})}function X({children:t,content:e,...o}){return r(g,{content:e,...o,children:r("div",{className:"flex cursor-pointer items-center",children:r(h,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}function Y({children:t,tooltipProps:e,...o}){return r(g,{...e,children:r("button",{type:"button",...o,className:(void 0)("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",o.className),children:t})})}export{q as a,g as b,G as c,J as d,K as e,Q as f,U as g,X as h,Y as i,b as j,x as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as h}from"./chunk-SZEN57X5.mjs";import{m as p}from"./chunk-ORQ643AR.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:p("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:p("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:p("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:p(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:p("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as x}from"./chunk-I64FUP6F.mjs";import{a as f}from"./chunk-XTK2BTRW.mjs";import{b as u,m as b}from"./chunk-HVAJT6I7.mjs";import{AnimatePresence as C,motion as h}from"framer-motion";import{X as L}from"lucide-react";import{isValidElement as A}from"react";import{Fragment as O,jsx as t,jsxs as i}from"react/jsx-runtime";function I({filters:p,activeFilters:a,onRemove:v,onRemoveAll:d,className:w}){return x("Escape",d,{priority:1}),t(f,{height:!0,className:"w-full",transition:{type:"tween",duration:.3},children:i("div",{className:b("flex w-full flex-wrap items-start gap-4 sm:flex-nowrap",w),children:[t("div",{className:"flex grow flex-wrap gap-x-4 gap-y-2",children:t(C,{children:a==null?void 0:a.map(({key:n,value:s})=>{if(n==="loader")return t(h.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"h-9 w-48 animate-pulse rounded-md border border-gray-200 bg-white"},`loader-${s}`);let e=p.find(r=>r.key===n);return e?(e.multiple&&Array.isArray(s)?s:[s]).map(r=>{var c,y,g;let o=(c=e.options)==null?void 0:c.find(m=>typeof m.value=="string"&&typeof r=="string"?m.value.toLowerCase()===r.toLowerCase():m.value===r),l=(o==null?void 0:o.icon)??((y=e.getOptionIcon)==null?void 0:y.call(e,r,{key:e.key,option:o}))??e.icon,k=(o==null?void 0:o.label)??((g=e.getOptionLabel)==null?void 0:g.call(e,r,{key:e.key,option:o}))??r;return i(h.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},className:"flex items-center divide-x rounded-md border border-gray-200 bg-white text-sm text-black",children:[i("div",{className:"flex items-center gap-2.5 px-3 py-2",children:[t("span",{className:"shrink-0 text-gray-600",children:N(e.icon)?e.icon:t(e.icon,{className:"h-4 w-4"})}),e.label]}),t("div",{className:"px-3 py-2 text-gray-500",children:"is"}),t("div",{className:"flex items-center gap-2.5 px-3 py-2",children:e.options?i(O,{children:[t("span",{className:"shrink-0 text-gray-600",children:N(l)?l:t(l,{className:"h-4 w-4"})}),u(k,30)]}):t("div",{className:"h-5 w-12 animate-pulse rounded-md bg-gray-200"})}),t("button",{type:"button",className:"h-full rounded-r-md p-2 text-gray-500 ring-inset ring-gray-500 hover:bg-gray-100 hover:text-gray-800 focus:outline-none focus-visible:ring-1",onClick:()=>v(n,r),children:t(L,{className:"h-3.5 w-3.5"})})]},`${n}-${r}`)}):(console.error("Filter.List received an activeFilter without a corresponding filter"),null)})})}),(a==null?void 0:a.length)!==0&&i("button",{type:"button",className:"group mt-px flex items-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 py-2 text-sm text-gray-500 ring-inset ring-gray-500 transition-colors hover:border-gray-200 hover:bg-white hover:text-black focus:outline-none",onClick:d,children:["Clear Filters",t("kbd",{className:"rounded-md border border-gray-200 px-1.5 py-0.5 text-xs text-gray-950 group-hover:bg-gray-50",children:"ESC"})]})]})})}var N=p=>A(p);export{I as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-KQERPFET.mjs";import{a as t}from"./chunk-QC6GZ7KR.mjs";import{l as m,n as o}from"./chunk-LHRSOLFV.mjs";import{jsx as s}from"react/jsx-runtime";function n({apexDomain:r,className:e,imageProps:a}){return r?s(l,{src:`${void 0}${r}`,alt:r,className:(void 0)("h-8 w-8 rounded-full sm:h-10 sm:w-10",e),width:20,height:20,draggable:!1,...a}):s("div",{className:(void 0)("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",e),children:s(t,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as t}from"./chunk-LHRSOLFV.mjs";import{jsx as r}from"react/jsx-runtime";function h({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as S}from"./chunk-7URJVZM7.mjs";import{a as V}from"./chunk-ZXN4JTFK.mjs";import{a as D}from"./chunk-LYRQAEES.mjs";import{f as T,l as N,m as s}from"./chunk-TOWKBEIR.mjs";import{flexRender as R,getCoreRowModel as j,useReactTable as E}from"@tanstack/react-table";import{AnimatePresence as _,motion as U}from"framer-motion";import{useEffect as z,useState as $}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var k=(t,i)=>s(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1",i&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function me(t){let{data:i,rowCount:u,columns:g,defaultColumn:v,columnPinning:b,pagination:f,onPaginationChange:p}=t,[l,y]=$(t.columnVisibility??{});z(()=>{t.columnVisibility&&!T(t.columnVisibility,l)&&y(t.columnVisibility??{})},[t.columnVisibility]),z(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let P=E({data:i,rowCount:u,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...v},getCoreRowModel:j(),onPaginationChange:p,onColumnVisibilityChange:d=>y(d),state:{pagination:f,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:P}}function ue({columns:t,data:i,loading:u,error:g,emptyState:v,cellRight:b,sortBy:f,sortOrder:p,onSortChange:l,sortableColumns:y=[],className:P,containerClassName:d,scrollWrapperClassName:W,thClassName:w,tdClassName:h,table:o,pagination:r,resourceName:c,onRowClick:x,rowCount:O,children:A}){return a("div",{className:s("relative border border-gray-200 bg-white sm:rounded-xl",d),children:[!g&&!!(i!=null&&i.length)||u?a("div",{className:s("relative min-h-[400px] overflow-x-auto rounded-[inherit]",W),children:[a("table",{className:s(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent"],P),children:[n("thead",{children:o.getHeaderGroups().map(m=>n("tr",{children:m.headers.map(e=>{let C=y.includes(e.column.id),B=C?"button":"div";return n("th",{className:s(k(e.id),"select-none font-medium",I(e.column,!o.getRowModel().rows.length),typeof w=="function"?w(e.column.id):w),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:n("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(B,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:f!==e.column.id||p==="asc"?"desc":"asc"})},children:[n("span",{children:e.isPlaceholder?null:R(e.column.columnDef.header,e.getContext())}),C&&n(V,{order:f===e.column.id?p||"desc":null})]})})},e.id)})},m.id))}),n("tbody",{children:o.getRowModel().rows.map(m=>n("tr",{className:s("group/row",x&&"cursor-pointer select-none",o.getRowModel().rows.length>8&&m.index===o.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:x?e=>{N(e)||x(m,e)}:void 0,children:m.getVisibleCells().map(e=>n("td",{className:s(k(e.column.id,!!x),"group text-gray-600",I(e.column,m.index===o.getRowModel().rows.length-1),typeof h=="function"?h(e.column.id):h),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[n("div",{className:"min-w-0 shrink grow truncate",children:R(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},m.id))})]}),A]}):n("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||v||`No ${(c==null?void 0:c(!0))||"items"} found.`}),r&&!g&&!!(i!=null&&i.length)&&!!O&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[n("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(r.pageIndex-1)*r.pageSize+1,"-",Math.min((r.pageIndex-1)*r.pageSize+r.pageSize,o.getRowCount())]})," ","of"," ",n("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(c==null?void 0:c(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[n(S,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:r.pageIndex===1}),n(S,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:r.pageIndex===o.getPageCount()})]})]}),n(_,{children:u&&n(U.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:n(D,{})})})]})}var I=(t,i)=>{let u=t.getIsPinned();return s(u&&!i&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},M=t=>{let i=t.getIsPinned();return{left:i==="left"?`${t.getStart("left")}px`:void 0,right:i==="right"?`${t.getAfter("right")}px`:void 0,position:i?"sticky":"relative"}};export{me as a,ue as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as r}from"./chunk-ORQ643AR.mjs";import{Drawer as o}from"vaul";import{jsx as i,jsxs as w}from"react/jsx-runtime";function m({children:t,contentProps:e,nested:n=!1,...s}){let f=n?o.NestedRoot:o.Root;return i(f,{direction:"right",handleOnly:!0,...s,children:w(o.Portal,{children:[i(o.Overlay,{className:"fixed inset-0 bg-black/20"}),i(o.Content,{...e,onPointerDownOutside:l=>{var a;l.target instanceof Element&&l.target.closest("[data-sonner-toast]")&&l.preventDefault(),(a=e==null?void 0:e.onPointerDownOutside)==null||a.call(e,l)},className:r("fixed bottom-2 right-2 top-2 z-10 flex w-[calc(100%-16px)] outline-none md:w-[540px]",e==null?void 0:e.className),style:{"--initial-transform":"calc(100% + 8px)","user-select":"auto",...e==null?void 0:e.style},children:i("div",{className:"scrollbar-hide flex size-full grow flex-col overflow-y-auto rounded-lg bg-white",children:t})})]})})}function u({className:t,...e}){return i(o.Title,{className:r("text-xl font-medium text-zinc-900",t),...e})}function d(t){return i(o.Description,{...t})}function C(t){return i(o.Close,{...t})}var x=Object.assign(m,{Title:u,Description:d,Close:C});export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as u}from"./chunk-LHRSOLFV.mjs";import{createContext as L,useCallback as f,useContext as h,useEffect as l,useId as K,useState as p}from"react";import{jsx as g}from"react/jsx-runtime";var b=L({listeners:[],setListeners:()=>{}});function C({children:t}){let[s,r]=p([]);return g(b.Provider,{value:{listeners:s,setListeners:r},children:t})}function N(t,s,r={}){let i=K(),{listeners:d,setListeners:c}=h(b),a=f(e=>{let n=e.target,S=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||!!S!=!!r.modal||(Array.isArray(t)?!t.includes(e.key):e.key!==t))return;let y=d.filter(o=>o.enabled!==!1&&(Array.isArray(o.key)?o.key.includes(e.key):o.key===e.key));!y.length||(void 0)(y,(o,m)=>(m.priority??0)-(o.priority??0)).slice(-1)[0].id!==i||(e.preventDefault(),s(e))},[t,d,i,s]);l(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[a]),l(()=>(c(e=>[...e.filter(n=>n.id!==i),{id:i,key:t,...r}]),()=>c(e=>e.filter(n=>n.id!==i))),[JSON.stringify(t),r.enabled,r.priority])}export{b as a,C as b,N as c};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as W}from"./chunk-RZ4SFDHX.mjs";import{a as V}from"./chunk-HHWZFF3H.mjs";import{a as _,e as L}from"./chunk-H6X2YC5N.mjs";import{a as T}from"./chunk-HBMPPPTL.mjs";import{a as C}from"./chunk-WEFG5NS3.mjs";import{a as S}from"./chunk-MQYMNE5N.mjs";import{a as P}from"./chunk-AXZJPLZ2.mjs";import{k as M}from"./chunk-FK5QGBOB.mjs";import*as i from"@radix-ui/react-navigation-menu";import{cva as J}from"class-variance-authority";import K from"js-cookie";import v from"next/link";import{useParams as Q,useSelectedLayoutSegment as X}from"next/navigation";import{createContext as tt}from"react";import et from"swr";import{useCallback as I,useEffect as H,useState as B}from"react";function x(n){let[o,r]=B(!1),l=I(()=>{r(window.scrollY>n)},[n]);return H(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),H(()=>{l()},[l]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as O,Home as A,LayoutGrid as Z,Type as G}from"lucide-react";import{useParams as j}from"next/navigation";import{useCallback as z,useContext as U,useState as $}from"react";import{toast as F}from"sonner";import{jsx as e,jsxs as E}from"react/jsx-runtime";var Y=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,q=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function R({variant:n="full",isInApp:o,className:r}){let{domain:l="dub.co"}=j(),{theme:f}=U(N),[h,c]=$(!1),k=z(s=>{s.preventDefault(),c(!0)},[]),[,g]=P();function m(s){F.promise(g(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return E(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:k,className:"max-w-fit",children:n==="full"?e(T,{className:r}):e(C,{className:(void 0)("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:(void 0)("z-50 -mt-1.5",!o&&"-translate-x-8",f==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),c(!1)},children:E("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(Y),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(q),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(O,{strokeWidth:2,className:"h-4 w-4"})}),o||l!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(A,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:n,...o}){return e(M,{className:(void 0)("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...o})}import{Fragment as at,jsx as t,jsxs as u}from"react/jsx-runtime";var N=tt({theme:"light"}),ot=[{name:"Product",content:W,childItems:_},{name:"Resources",content:V,childItems:L},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],D=J(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Tt({theme:n="light",staticDomain:o}){let{domain:r="dub.co"}=Q();o&&(r=o);let l=x(80),f=x(40),h=X(),{data:c,isLoading:k}=et(r.endsWith("dub.co")&&"/api/auth/session",void 0,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&K.get("dub_id"));return t(N.Provider,{value:{theme:n},children:u("div",{className:(void 0)("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:(void 0)("absolute inset-0 block transition-all lg:hidden",f&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(S,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:(void 0)("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(R,{})}),u(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(i.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:(void 0)("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",l&&"h-14 w-screen rounded-none drop-shadow-none")})}),ot.map(({name:m,href:s,content:w})=>{let y=s===`/${h}`||s==="/"&&h===null;return u(i.Item,{children:[t(rt,{trigger:!!w,children:s!==void 0?t(v,{id:`nav-${s}`,href:(void 0)(s,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:D({isActive:y}),children:m}):t("button",{className:D({isActive:y}),children:m})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:(void 0)("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:c&&Object.keys(c).length>0?t(v,{href:void 0,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):k?null:u(at,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function rt({trigger:n,children:o}){return n?t(i.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,ot as c,Tt as d,R as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-SZEN57X5.mjs";import{m as n}from"./chunk-ORQ643AR.mjs";import*as i from"@radix-ui/react-switch";import{useMemo as f}from"react";import{jsx as t}from"react/jsx-runtime";function x({fn:r,id:d,trackDimensions:u,thumbDimensions:h,thumbTranslate:s,checked:m=!0,loading:o=!1,disabled:a=!1,disabledTooltip:e}){let b=f(()=>e?!0:a||o,[e,a,o]),c=t(i.Root,{checked:o?!1:m,name:"switch",id:d,...r&&{onCheckedChange:r},disabled:b,className:n("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out","focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","data-[disabled]:cursor-not-allowed",u),children:t(i.Thumb,{className:n(`radix-state-checked:${s}`,"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",h,s)})});return e?t(l,{content:e,children:t("div",{children:c})}):c}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x}from"./chunk-NAHB2RQQ.mjs";import{a as N,m as t}from"./chunk-HVAJT6I7.mjs";import{cva as k}from"class-variance-authority";import{UploadCloud as H}from"lucide-react";import{useState as D}from"react";import{toast as P}from"sonner";import{Fragment as O,jsx as r,jsxs as y}from"react/jsx-runtime";var m={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"},csv:{types:["text/csv"],errorMessage:"File type not supported (.csv only)"}},I=k("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function X({readFile:U,onChange:o,variant:z,className:R,iconClassName:j,previewClassName:A,accept:c="any",imageSrc:d,loading:E=!1,clickToUpload:g=!0,showHoverOverlay:T=!0,content:v,maxFileSizeMB:u=0,targetResolution:b,accessibilityLabel:L="File upload",disabled:s=!1}){let[F,l]=D(!1),[M,V]=D(null),h=async e=>{let a="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!a)return;if(V(a.name),u>0&&a.size/1024/1024>u){P.error(`File size too big (max ${u} MB)`);return}let w=m[c].types;if(w.length&&!w.includes(a.type)){P.error(m[c].errorMessage??"File type not supported");return}let n=a;if(b&&a.type.startsWith("image/"))try{let i=await N(a,b),f=await fetch(i).then(p=>p.blob());n=new File([f],a.name,{type:a.type})}catch(i){console.error("Error resizing image:",i)}if(U){let i=new FileReader;i.onload=f=>{var p;return o==null?void 0:o({src:(p=f.target)==null?void 0:p.result,file:n})},i.readAsDataURL(n);return}o==null||o({file:n})};return y("label",{className:t(I({variant:z}),s?"cursor-not-allowed":t(g&&"cursor-pointer"),R),children:[E&&r("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:r(x,{})}),r("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),l(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),l(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),l(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),h(e),l(!1)}}),y("div",{className:t("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",s&&"bg-gray-50",F&&!s&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",d?t("opacity-0",T&&!s&&"group-hover:opacity-100"):t(!s&&"group-hover:bg-gray-50")),children:[r(H,{className:t("size-7 transition-all duration-75",s?"text-gray-400":t("text-gray-500 group-hover:scale-110 group-active:scale-95",F?"scale-110":"scale-100"),j)}),v!==null&&r("div",{className:t("mt-2 text-center text-sm text-gray-500",s&&"text-gray-400"),children:v??r(O,{children:y("p",{children:["Drag and drop ",g&&"or click"," to upload."]})})}),r("span",{className:"sr-only",children:L})]}),d&&r("img",{src:d,alt:"Preview",className:t("h-full w-full rounded-[inherit] object-cover",A)}),g&&r("div",{className:"sr-only mt-1 flex shadow-sm",children:r("input",{type:"file",accept:m[c].types.join(","),onChange:h,disabled:s},M)})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as t}from"./chunk-AXZJPLZ2.mjs";import{m as o}from"./chunk-ORQ643AR.mjs";import{toast as a}from"sonner";import{jsx as d}from"react/jsx-runtime";function b({value:e,children:r,className:s,successMessage:c}){let[i,p]=t();return d("button",{onClick:n=>{n.stopPropagation(),a.promise(p(e),{success:c||"Copied to clipboard!"})},type:"button",className:o("cursor-copy text-sm text-gray-700 decoration-dotted hover:underline",i&&"cursor-default",s),children:r})}export{b as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-32C65ISH.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-HRTLCZFX.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-NWME2ANF.mjs";import{a as i}from"./chunk-7M3DMJZI.mjs";import{a as f}from"./chunk-2TGXECZQ.mjs";import{Link2 as p}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as R,useMemo as k,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as y,jsx as e,jsxs as r}from"react/jsx-runtime";function $({defaultUrl:t}){let v=w(),o=L(),d=t||(o==null?void 0:o.get("url"))||"https://github.com/dubinc/dub",[l]=W((void 0)(d),500),n=k(()=>(void 0)(l||""),[l]),{data:h,isValidating:x}=P(l&&`/api/metatags?url=${encodeURIComponent(l)}`,void 0,{revalidateOnFocus:!1}),{title:u,description:c,image:m}=h||{},s=E(null);R(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:N}=b();return r(y,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(p,{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:!N,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:d,onChange:g=>v.replace(`/tools/metatags${g.target.value.length>0?`?url=${g.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[x&&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(i,{})}),m?e("img",{src:m,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(f,{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:[n?e("p",{className:"text-sm text-[#536471]",children:n}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),u?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:u}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),c?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:c}):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 D({defaultUrl:t}){return r(y,{children:[r("div",{className:"relative flex items-center",children:[e(p,{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(i,{})})})]})}export{$ as a,D as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-7NSJS37T.mjs";import{a as n}from"./chunk-TBQBNOUS.mjs";import{l as s}from"./chunk-LHRSOLFV.mjs";import{AlertCircle as u}from"lucide-react";import p,{useCallback as f,useState as x}from"react";import{jsx as e,jsxs as o}from"react/jsx-runtime";var g=p.forwardRef(({className:d,type:a,...r},c)=>{let[t,i]=x(!1),m=f(()=>i(!t),[t,i]);return o("div",{children:[o("div",{className:"relative flex",children:[e("input",{type:t?"text":a,className:(void 0)("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",d),ref:c,...r}),o("div",{className:"group",children:[r.error&&e("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex flex-none items-center px-2.5",children:e(u,{className:(void 0)("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:(void 0)("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>m(),"aria-label":t?"Hide password":"Show Password",children:t?e(n,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0}):e(l,{className:"size-4 flex-none text-gray-500 transition hover:text-gray-700","aria-hidden":!0})})]})]}),r.error&&e("span",{className:"mt-2 block text-sm text-red-500",role:"alert","aria-live":"assertive",children:r.error})]})});g.displayName="Input";export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as S}from"./chunk-3342XKCZ.mjs";import{a as V}from"./chunk-42GWKFBS.mjs";import{a as D}from"./chunk-D7JIIDIV.mjs";import{f as T,h as N,l as s}from"./chunk-LHRSOLFV.mjs";import{flexRender as R,getCoreRowModel as j,useReactTable as E}from"@tanstack/react-table";import{AnimatePresence as _,motion as U}from"framer-motion";import{useEffect as z,useState as $}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var k=(t,i)=>(void 0)(["py-2.5 text-left text-sm leading-6 whitespace-nowrap border-gray-200 px-4 relative","border-l border-b",t==="menu"&&"bg-white border-l-transparent py-0 px-1",i&&"group-hover/row:bg-neutral-50 transition-colors duration-75"]);function me(t){let{data:i,rowCount:u,columns:g,defaultColumn:v,columnPinning:b,pagination:f,onPaginationChange:p}=t,[l,y]=$(t.columnVisibility??{});z(()=>{t.columnVisibility&&!(void 0)(t.columnVisibility,l)&&y(t.columnVisibility??{})},[t.columnVisibility]),z(()=>{var d;(d=t.onColumnVisibilityChange)==null||d.call(t,l)},[l]);let P=E({data:i,rowCount:u,columns:g,defaultColumn:{minSize:120,size:0,maxSize:300,...v},getCoreRowModel:j(),onPaginationChange:p,onColumnVisibilityChange:d=>y(d),state:{pagination:f,columnVisibility:l,columnPinning:{left:[],right:[],...b}},manualPagination:!0,autoResetPageIndex:!1,manualSorting:!0});return{...t,columnVisibility:l,table:P}}function ue({columns:t,data:i,loading:u,error:g,emptyState:v,cellRight:b,sortBy:f,sortOrder:p,onSortChange:l,sortableColumns:y=[],className:P,containerClassName:d,scrollWrapperClassName:W,thClassName:w,tdClassName:h,table:o,pagination:r,resourceName:c,onRowClick:x,rowCount:O,children:A}){return a("div",{className:(void 0)("relative border border-gray-200 bg-white sm:rounded-xl",d),children:[!g&&!!(i!=null&&i.length)||u?a("div",{className:(void 0)("relative min-h-[400px] overflow-x-auto rounded-[inherit]",W),children:[a("table",{className:(void 0)(["group/table w-full border-separate border-spacing-0 transition-[border-spacing,margin-top]","[&_tr>*:first-child]:border-l-transparent","[&_tr>*:last-child]:border-r-transparent","[&_tr>*:last-child]:border-r-transparent"],P),children:[n("thead",{children:o.getHeaderGroups().map(m=>n("tr",{children:m.headers.map(e=>{let C=y.includes(e.column.id),B=C?"button":"div";return n("th",{className:(void 0)(k(e.id),"select-none font-medium",I(e.column,!o.getRowModel().rows.length),typeof w=="function"?w(e.column.id):w),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:n("div",{className:"flex items-center justify-between gap-6 !pr-0",children:a(B,{className:"flex items-center gap-2",...C&&{type:"button",disabled:!C,"aria-label":"Sort by column",onClick:()=>l==null?void 0:l({sortBy:e.column.id,sortOrder:f!==e.column.id||p==="asc"?"desc":"asc"})},children:[n("span",{children:e.isPlaceholder?null:R(e.column.columnDef.header,e.getContext())}),C&&n(V,{order:f===e.column.id?p||"desc":null})]})})},e.id)})},m.id))}),n("tbody",{children:o.getRowModel().rows.map(m=>n("tr",{className:(void 0)("group/row",x&&"cursor-pointer select-none",o.getRowModel().rows.length>8&&m.index===o.getRowModel().rows.length-1&&"[&_td]:border-b-0"),onClick:x?e=>{(void 0)(e)||x(m,e)}:void 0,children:m.getVisibleCells().map(e=>n("td",{className:(void 0)(k(e.column.id,!!x),"group text-gray-600",I(e.column,m.index===o.getRowModel().rows.length-1),typeof h=="function"?h(e.column.id):h),style:{minWidth:e.column.columnDef.minSize,maxWidth:e.column.columnDef.maxSize,width:e.column.columnDef.size||"auto",...M(e.column)},children:a("div",{className:"flex w-full items-center justify-between overflow-hidden truncate",children:[n("div",{className:"min-w-0 shrink grow truncate",children:R(e.column.columnDef.cell,e.getContext())}),b==null?void 0:b(e)]})},e.id))},m.id))})]}),A]}):n("div",{className:"flex h-96 w-full items-center justify-center text-sm text-gray-500",children:g||v||`No ${(c==null?void 0:c(!0))||"items"} found.`}),r&&!g&&!!(i!=null&&i.length)&&!!O&&a("div",{className:"sticky bottom-0 mx-auto -mt-px flex w-full max-w-full items-center justify-between rounded-b-[inherit] border-t border-gray-200 bg-white px-4 py-3.5 text-sm leading-6 text-gray-600",children:[a("div",{children:[n("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",a("span",{className:"font-medium",children:[(r.pageIndex-1)*r.pageSize+1,"-",Math.min((r.pageIndex-1)*r.pageSize+r.pageSize,o.getRowCount())]})," ","of"," ",n("span",{className:"font-medium",children:o.getRowCount().toLocaleString()})," ",(c==null?void 0:c(o.getRowCount()!==1))||"items"]}),a("div",{className:"flex items-center gap-2",children:[n(S,{variant:"secondary",text:"Previous",className:"h-7 px-2",onClick:()=>o.previousPage(),disabled:r.pageIndex===1}),n(S,{variant:"secondary",text:"Next",className:"h-7 px-2",onClick:()=>o.nextPage(),disabled:r.pageIndex===o.getPageCount()})]})]}),n(_,{children:u&&n(U.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 flex h-[50vh] items-center justify-center rounded-xl bg-white/50",children:n(D,{})})})]})}var I=(t,i)=>{let u=t.getIsPinned();return(void 0)(u&&!i&&"animate-table-pinned-shadow [animation-timeline:scroll(inline)]")},M=t=>{let i=t.getIsPinned();return{left:i==="left"?`${t.getStart("left")}px`:void 0,right:i==="right"?`${t.getAfter("right")}px`:void 0,position:i?"sticky":"relative"}};export{me as a,ue as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-32C65ISH.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-HRTLCZFX.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-ORQ643AR.mjs";import{jsx as e,jsxs as a}from"react/jsx-runtime";function h({cellSize:t=12,strokeWidth:s=1,patternOffset:r=[0,0],className:i}){return a("svg",{className:n("pointer-events-none absolute inset-0 text-black/10",i),width:"100%",height:"100%",children:[e("defs",{children:e("pattern",{id:"grid",x:r[0]-1,y:r[1]-1,width:t,height:t,patternUnits:"userSpaceOnUse",children:e("path",{d:`M ${t} 0 L 0 0 0 ${t}`,fill:"transparent",stroke:"currentColor",strokeWidth:s})})}),e("rect",{fill:"url(#grid)",width:"100%",height:"100%"})]})}export{h as a};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as v}from"./chunk-ORQ643AR.mjs";import{useEffect as U,useRef as w,useState as _}from"react";import{jsx as S}from"react/jsx-runtime";var y=`
|
|
3
|
+
attribute vec2 position;
|
|
4
|
+
|
|
5
|
+
void main()
|
|
6
|
+
{
|
|
7
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
8
|
+
}
|
|
9
|
+
`,z=`
|
|
10
|
+
precision mediump float;
|
|
11
|
+
|
|
12
|
+
uniform vec2 resolution;
|
|
13
|
+
uniform float time;
|
|
14
|
+
uniform float dotSize;
|
|
15
|
+
uniform float cellSize;
|
|
16
|
+
uniform float speed;
|
|
17
|
+
|
|
18
|
+
// Gold noise: https://stackoverflow.com/a/28095165
|
|
19
|
+
float PHI = 1.61803398874989484820459;
|
|
20
|
+
float random(in vec2 xy){
|
|
21
|
+
return fract(tan(distance(xy*PHI, xy))*xy.x);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
void main(void) {
|
|
25
|
+
vec2 uv = gl_FragCoord.xy;
|
|
26
|
+
|
|
27
|
+
vec2 cellUv = vec2(int(uv.x / cellSize), int(uv.y / cellSize));
|
|
28
|
+
float id = random(cellUv + 1.0);
|
|
29
|
+
|
|
30
|
+
float fadeEffect = (sin(time * speed + id * 20.0) + 1.0) * 0.5;
|
|
31
|
+
|
|
32
|
+
vec2 dotUv = fract(uv / cellSize);
|
|
33
|
+
float dot = step(max(dotUv.x, dotUv.y), dotSize / cellSize);
|
|
34
|
+
|
|
35
|
+
float opacity = dot * fadeEffect;
|
|
36
|
+
|
|
37
|
+
vec4 fragColor = vec4(vec3(0.0), opacity);
|
|
38
|
+
fragColor.rgb *= fragColor.a;
|
|
39
|
+
|
|
40
|
+
gl_FragColor = fragColor;
|
|
41
|
+
}
|
|
42
|
+
`,I=60,C=1e3/I;function H({dotSize:c=1,cellSize:l=3,speed:s=5,className:p}){let f=w(null),[h,A]=_(!1);return U(()=>{let o=f.current;if(!o||!o.parentElement)return;let m=o.parentElement,d=window.devicePixelRatio||1;o.width=m.clientWidth*d,o.height=m.clientHeight*d;let e=o.getContext("webgl",{powerPreference:"low-power",depth:!1,stencil:!1});if(e===null){alert("Failed to initialize WebGL");return}let t=e.createProgram();if(!t){console.error("Failed to create shader program");return}for(let r=0;r<2;++r){let T=r===0?y:z,i=e.createShader(r===0?e.VERTEX_SHADER:e.FRAGMENT_SHADER);if(!i){console.error("Failed to create shader");return}e.shaderSource(i,T),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)||console.error(e.getShaderInfoLog(i)),e.attachShader(t,i),e.linkProgram(t)}e.getProgramParameter(t,e.LINK_STATUS)||console.error(e.getProgramInfoLog(t));let u=e.getAttribLocation(t,"position"),R=e.getUniformLocation(t,"time"),F=e.getUniformLocation(t,"resolution"),E=e.getUniformLocation(t,"dotSize"),x=e.getUniformLocation(t,"cellSize"),P=e.getUniformLocation(t,"speed");e.useProgram(t);let L=[1,1,-1,1,1,-1,-1,-1],b=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,b),e.bufferData(e.ARRAY_BUFFER,new Float32Array(L),e.STATIC_DRAW),e.enableVertexAttribArray(u),e.vertexAttribPointer(u,2,e.FLOAT,!1,0,0),e.uniform1f(E,c*window.devicePixelRatio),e.uniform1f(x,l*window.devicePixelRatio),e.uniform1f(P,s);let n,g=0;function a(r){if(r-g<C){n=requestAnimationFrame(a);return}g=r,e&&o&&t&&(e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.uniform1f(R,r/1e3),e.uniform2f(F,o.width,o.height),e.drawArrays(e.TRIANGLE_STRIP,0,4)),n=requestAnimationFrame(a)}return n=requestAnimationFrame(a),o.addEventListener("webglcontextlost",r=>{r.preventDefault(),A(!0),cancelAnimationFrame(n)}),()=>{cancelAnimationFrame(n),o.removeEventListener("webglcontextlost",()=>{})}},[c,l,s]),S("div",{className:v("absolute inset-0",p,h&&"opacity-0"),children:S("canvas",{ref:f,width:"100%",height:"100%",className:"size-full"})})}export{H as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as C}from"./chunk-LHRSOLFV.mjs";import{jsx as e}from"react/jsx-runtime";function o({className:t}){return e("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-6 w-auto text-black dark:text-white",t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d,e as l}from"./chunk-H6X2YC5N.mjs";import{a as i,c as s}from"./chunk-EEOZLHXB.mjs";import{jsx as r,jsxs as n}from"react/jsx-runtime";function g({domain:a}){return n("div",{className:"grid w-[28rem] grid-cols-2",children:[n("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:(void 0)(i,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:d.map(({icon:m,iconClassName:t,title:o,href:c})=>r(s,{href:(void 0)(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:(void 0)("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},c))})]}),n("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:(void 0)(i,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,title:t,href:o})=>r(s,{href:(void 0)(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:(void 0)("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-I5AC2P3R.mjs";import{a as t}from"./chunk-QC6GZ7KR.mjs";import{m,o}from"./chunk-ORQ643AR.mjs";import{jsx as s}from"react/jsx-runtime";function n({apexDomain:r,className:e,imageProps:a}){return r?s(l,{src:`${o}${r}`,alt:r,className:m("h-8 w-8 rounded-full sm:h-10 sm:w-10",e),width:20,height:20,draggable:!1,...a}):s("div",{className:m("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",e),children:s(t,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as n,l as d}from"./chunk-LHRSOLFV.mjs";import{Fragment as p,jsx as a,jsxs as s}from"react/jsx-runtime";var l=(void 0)("flex h-7 items-center justify-center gap-2 whitespace-nowrap rounded-md border border-gray-200 bg-white px-2 text-sm text-gray-600","outline-none hover:bg-gray-50 focus-visible:border-gray-500","disabled:cursor-not-allowed disabled:border-gray-200 disabled:text-gray-400 disabled:bg-gray-100");function c({pagination:e,setPagination:i,totalCount:t,unit:r=g=>`item${g?"s":""}`,className:o,children:m}){return s("div",{className:(void 0)("flex items-center justify-between gap-2 text-sm leading-6 text-gray-600",o),children:[s("div",{className:"flex items-center gap-2",children:[s("div",{children:[a("span",{className:"hidden sm:inline-block",children:"Viewing"})," ",t>0&&s(p,{children:[s("span",{className:"font-medium",children:[(e.pageIndex-1)*e.pageSize+1,"-",Math.min((e.pageIndex-1)*e.pageSize+e.pageSize,t)]})," ","of"," "]}),a("span",{className:"font-medium",children:(void 0)(t,{full:!0})})," ",typeof r=="function"?r(t!==1):r]}),m]}),s("div",{className:"flex items-center gap-2",children:[a("button",{type:"button",className:l,onClick:()=>i({...e,pageIndex:e.pageIndex-1}),disabled:e.pageIndex===1,children:"Previous"}),a("button",{type:"button",className:l,onClick:()=>i({...e,pageIndex:e.pageIndex+1}),disabled:(e.pageIndex-1)*e.pageSize+e.pageSize>=t,children:"Next"})]})]})}export{c as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as y}from"./chunk-NWME2ANF.mjs";import{a as s}from"./chunk-NAHB2RQQ.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{h as g,k as f,l as b}from"./chunk-HVAJT6I7.mjs";import{Link2 as v}from"lucide-react";import{useRouter as R,useSearchParams as k}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as U}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function H({defaultUrl:t}){let x=R(),l=k(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=U(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${encodeURIComponent(a)}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},o=W(null);E(()=>{!t&&o.current&&o.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:o,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(s,{})}),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(s,{})})})]})}export{H as a,O as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as ye,b as we}from"./chunk-AUBFB4SI.mjs";var ae=ye((Ur,oe)=>{var P=1e3,N=P*60,T=N*60,S=T*24,Ee=S*7,_e=S*365.25;oe.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Se(e);if(t==="number"&&isFinite(e))return r.long?Pe(e):Ie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Se(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*_e;case"weeks":case"week":case"w":return t*Ee;case"days":case"day":case"d":return t*S;case"hours":case"hour":case"hrs":case"hr":case"h":return t*T;case"minutes":case"minute":case"mins":case"min":case"m":return t*N;case"seconds":case"second":case"secs":case"sec":case"s":return t*P;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Ie(e){var r=Math.abs(e);return r>=S?Math.round(e/S)+"d":r>=T?Math.round(e/T)+"h":r>=N?Math.round(e/N)+"m":r>=P?Math.round(e/P)+"s":e+"ms"}function Pe(e){var r=Math.abs(e);return r>=S?G(e,r,S,"day"):r>=T?G(e,r,T,"hour"):r>=N?G(e,r,N,"minute"):r>=P?G(e,r,P,"second"):e+" ms"}function G(e,r,t,o){var s=r>=t*1.5;return Math.round(e/t)+" "+o+(s?"s":"")}});var ve=(e,r={width:1200,height:630,quality:1})=>new Promise((t,o)=>{let s=new FileReader;s.onload=a=>{var n;let i=new Image;i.src=(n=a.target)==null?void 0:n.result,i.onload=()=>{let c=r.width,f=r.height,d=document.createElement("canvas");d.width=c,d.height=f;let g=d.getContext("2d");g.imageSmoothingQuality="high";let b=i.width,w=i.height,A=b/w,y=c/f,m,h,v=0,R=0;A>y?(h=w,m=w*y,v=(b-m)/2):(m=b,h=b/y,R=(w-h)/2),g.drawImage(i,v,R,m,h,0,0,c,f);let L=d.toDataURL("image/jpeg",r.quality);t(L)},i.onerror=c=>o(new Error("Image loading error: "+c))},s.onerror=a=>o(new Error("FileReader error: "+a)),s.readAsDataURL(e)});var Ae=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;var xe=(e,r)=>e.map((t,o)=>({item:t,index:o})).sort((t,o)=>r(t.item,o.item)||t.index-o.index).map(({item:t})=>t);var se=we(ae(),1),Ne=(e,{withAgo:r}={})=>{if(!e)return"Never";let t=Date.now()-new Date(e).getTime();return t<1e3?"Just now":t>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,se.default)(t)}${r?" ago":""}`};function Te(e){for(let r=e.target,t=0;r&&r!==e.currentTarget&&t<50;r=r.parentElement,t++)if(["button","a","input","textarea"].includes(r.tagName.toLowerCase())||["data-radix-popper-content-wrapper","data-vaul-overlay","data-vaul-drawer"].some(o=>r.getAttribute(o)!==null))return!0;return!1}function Ce(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=/\.0+$|(\.[0-9]*[1-9])0+$/;if(e<1)return e.toFixed(r.digits).replace(t,"$1");var o=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}].slice().reverse().find(function(s){return e>=s.value});return o?(e/o.value).toFixed(r.digits).replace(t,"$1")+o.symbol:"0"}var ne=(e,r)=>{if(e===r)return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null)return!1;let t=Object.keys(e),o=Object.keys(r);if(t.length!==o.length)return!1;for(let s of t)if(!o.includes(s)||!ne(e[s],r[s]))return!1;return!0};var $=e=>{try{return new URL(e),!0}catch{return!1}},Re=e=>{if($(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};var Le=(e,r,t)=>{if(r==="dub.co")return e;let o=new URL(e.startsWith("/")?`https://dub.co${e}`:e);return t&&Object.entries(t).forEach(([s,a])=>{o.searchParams.set(s,a)}),o.toString()};var Oe=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ie=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",ke=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Ue=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),Me=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",De=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_NGROK_URL||"http://localhost:8888",ze=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${ie}`,"api.localhost:8888"]),Be=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Ge=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),$e=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://partners.localhost:8888",je=new Set([`partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"partners.localhost:8888"]);var Ve=process.env.STORAGE_BASE_URL;var We=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Ye=new RegExp(/^[a-zA-Z0-9\-]+$/);var Ke=e=>{if($(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};async function Xe(e,r){let t=await fetch(e,r);if(!t.ok){let o=new Error("An error occurred while fetching the data.");throw o.info=(await t.json()).error,o.status=t.status,o}return t.json()}function le(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=le(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ce(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=le(e))&&(o&&(o+=" "),o+=r);return o}var X="-";function He(e){let r=qe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function s(n){let i=n.split(X);return i[0]===""&&i.length!==1&&i.shift(),pe(i,r)||Ze(n)}function a(n,i){let c=t[n]||[];return i&&o[n]?[...c,...o[n]]:c}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function pe(e,r){var n;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),s=o?pe(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;let a=e.join(X);return(n=r.validators.find(({validator:i})=>i(a)))==null?void 0:n.classGroupId}var ue=/^\[(.+)\]$/;function Ze(e){if(ue.test(e)){let r=ue.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function qe(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return Qe(Object.entries(e.classGroups),t).forEach(([a,n])=>{K(n,o,a,r)}),o}function K(e,r,t,o){e.forEach(s=>{if(typeof s=="string"){let a=s===""?r:de(r,s);a.classGroupId=t;return}if(typeof s=="function"){if(Je(s)){K(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,n])=>{K(n,de(r,a),t,o)})})}function de(e,r){let t=e;return r.split(X).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Je(e){return e.isThemeGetter}function Qe(e,r){return r?e.map(([t,o])=>{let s=o.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[r+n,i])):a);return[t,s]}):e}function er(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function s(a,n){t.set(a,n),r++,r>e&&(r=0,o=t,t=new Map)}return{get(a){let n=t.get(a);if(n!==void 0)return n;if((n=o.get(a))!==void 0)return s(a,n),n},set(a,n){t.has(a)?t.set(a,n):s(a,n)}}}var me="!";function rr(e){let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,s=r[0],a=r.length;function n(i){let c=[],f=0,d=0,g;for(let m=0;m<i.length;m++){let h=i[m];if(f===0){if(h===s&&(o||i.slice(m,m+a)===r)){c.push(i.slice(d,m)),d=m+a;continue}if(h==="/"){g=m;continue}}h==="["?f++:h==="]"&&f--}let b=c.length===0?i:i.substring(d),w=b.startsWith(me),A=w?b.substring(1):b,y=g&&g>d?g-d:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:A,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function tr(e){if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function or(e){return{cache:er(e.cacheSize),parseClassName:rr(e),...He(e)}}var ar=/\s+/;function sr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s}=r,a=new Set;return e.trim().split(ar).map(n=>{let{modifiers:i,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:d}=t(n),g=Boolean(d),b=o(g?f.substring(0,d):f);if(!b){if(!g)return{isTailwindClass:!1,originalClassName:n};if(b=o(f),!b)return{isTailwindClass:!1,originalClassName:n};g=!1}let w=tr(i).join(":"),A=c?w+me:w;return{isTailwindClass:!0,modifierId:A,classGroupId:b,originalClassName:n,hasPostfixModifier:g}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:i,classGroupId:c,hasPostfixModifier:f}=n,d=i+c;return a.has(d)?!1:(a.add(d),s(c,f).forEach(g=>a.add(i+g)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function nr(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=fe(r))&&(o&&(o+=" "),o+=t);return o}function fe(e){if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=fe(e[o]))&&(t&&(t+=" "),t+=r);return t}function ir(e,...r){let t,o,s,a=n;function n(c){let f=r.reduce((d,g)=>g(d),e());return t=or(f),o=t.cache.get,s=t.cache.set,a=i,i(c)}function i(c){let f=o(c);if(f)return f;let d=sr(c,t);return s(c,d),d}return function(){return a(nr.apply(null,arguments))}}function u(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,lr=/^\d+\/\d+$/,cr=new Set(["px","full","screen"]),ur=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return I(e)||cr.has(e)||lr.test(e)}function E(e){return C(e,"length",xr)}function I(e){return Boolean(e)&&!Number.isNaN(Number(e))}function j(e){return C(e,"number",I)}function U(e){return Boolean(e)&&Number.isInteger(Number(e))}function gr(e){return e.endsWith("%")&&I(e.slice(0,-1))}function l(e){return ge.test(e)}function _(e){return ur.test(e)}var hr=new Set(["length","size","percentage"]);function br(e){return C(e,hr,he)}function yr(e){return C(e,"position",he)}var wr=new Set(["image","url"]);function vr(e){return C(e,wr,_r)}function Ar(e){return C(e,"",Er)}function M(){return!0}function C(e,r,t){let o=ge.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function xr(e){return dr.test(e)&&!pr.test(e)}function he(){return!1}function Er(e){return mr.test(e)}function _r(e){return fr.test(e)}function Sr(){let e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),s=u("borderColor"),a=u("borderRadius"),n=u("borderSpacing"),i=u("borderWidth"),c=u("contrast"),f=u("grayscale"),d=u("hueRotate"),g=u("invert"),b=u("gap"),w=u("gradientColorStops"),A=u("gradientColorStopPositions"),y=u("inset"),m=u("margin"),h=u("opacity"),v=u("padding"),R=u("saturate"),L=u("scale"),H=u("sepia"),Z=u("skew"),q=u("space"),J=u("translate"),V=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",l,r],p=()=>[l,r],Q=()=>["",x,E],D=()=>["auto",I,l],ee=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",l],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[I,j],B=()=>[I,l];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[x,E],blur:["none","",_,l],brightness:k(),borderColor:[e],borderRadius:["none","","full",_,l],borderSpacing:p(),borderWidth:Q(),contrast:k(),grayscale:O(),hueRotate:B(),invert:O(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[gr,E],inset:W(),margin:W(),opacity:k(),padding:p(),saturate:k(),scale:k(),sepia:O(),skew:B(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ee(),l]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",U,l]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",U,l]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",U,l]},l]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[U,l]},l]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"auto","min","max","fit"]}],"font-size":[{text:["base",_,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[M]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",I,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,E]}],"underline-offset":[{"underline-offset":["auto",x,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ee(),yr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",br]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[x,l]}],"outline-w":[{outline:[x,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[x,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,Ar]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",_,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[R]}],sepia:[{sepia:[H]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[H]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[U,l]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,E,j]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var be=ir(Sr);function Ir(...e){return be(ce(e))}var Pr=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"GitHub Link Shortener",slug:"github-link-shortener"},{name:"Calendar Link Shortener",slug:"cal-link-shortener"},{name:"Google Link Shortener",slug:"google-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Figma Link Shortener",slug:"figma-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"Link Inspector",slug:"inspector"},{name:"QR Code API",slug:"qr-code"},{name:"UTM Builder",slug:"utm-builder"}];var Nr="https://www.google.com/s2/favicons?sz=64&domain_url=";var Tr=100,Cr=60*60*24*14,Rr=new Date("2022-09-22T00:00:00.000Z");export{ve as a,Ae as b,xe as c,Ne as d,Te as e,Ce as f,ne as g,Re as h,Le as i,Me as j,Ke as k,Xe as l,Ir as m,Pr as n,Nr as o,Tr as p};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as e}from"./chunk-LHRSOLFV.mjs";import{jsx as t,jsxs as o}from"react/jsx-runtime";function i({className:r}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"256",height:"256",viewBox:"0 0 256 256",className:(void 0)("text-[#ff0000]",r),children:[t("defs",{}),t("g",{style:{stroke:"none",strokeWidth:0,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"#ff0000",fillRule:"nonzero",opacity:1},transform:"translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)",children:t("path",{d:"M 88.119 23.338 c -1.035 -3.872 -4.085 -6.922 -7.957 -7.957 C 73.144 13.5 45 13.5 45 13.5 s -28.144 0 -35.162 1.881 c -3.872 1.035 -6.922 4.085 -7.957 7.957 C 0 30.356 0 45 0 45 s 0 14.644 1.881 21.662 c 1.035 3.872 4.085 6.922 7.957 7.957 C 16.856 76.5 45 76.5 45 76.5 s 28.144 0 35.162 -1.881 c 3.872 -1.035 6.922 -4.085 7.957 -7.957 C 90 59.644 90 45 90 45 S 90 30.356 88.119 23.338 z M 36 58.5 v -27 L 59.382 45 L 36 58.5 z",style:{stroke:"none",strokeWidth:1,strokeDasharray:"none",strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:10,fill:"currentColor",fillRule:"nonzero",opacity:1},transform:" matrix(1 0 0 1 0 0) ",strokeLinecap:"round"})})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as e}from"./chunk-ORQ643AR.mjs";import{jsx as t,jsxs as C}from"react/jsx-runtime";function o({className:a}){return C("svg",{className:e("h-full w-full",a),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t("circle",{cx:"111",cy:"111",r:"111",fill:"url(#paint0_linear_39_35)"}),t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M167.627 151.288C165.868 148.976 155.967 150.187 151.538 150.74C150.176 150.91 149.967 149.698 151.198 148.825C159.073 143.144 172.023 144.772 173.515 146.687C175.032 148.602 173.137 161.895 165.718 168.236C164.584 169.22 163.503 168.692 164.012 167.402C165.66 163.141 169.406 153.595 167.627 151.288ZM161.889 158.017C148.087 168.43 128.096 174 110.873 174C86.7384 174 65.0031 164.852 48.5549 149.615C47.2658 148.423 48.424 146.794 49.9749 147.72C67.7121 158.308 89.6704 164.668 112.331 164.668C127.607 164.668 144.438 161.43 159.888 154.686C162.233 153.683 164.186 156.257 161.894 158.002M120.018 102.131C120.018 108.758 120.187 114.27 116.989 120.141C114.415 124.911 110.325 127.849 105.765 127.849C99.5374 127.849 95.9221 122.889 95.9221 115.559C95.9221 101.093 108.304 98.4611 120.022 98.4611L120.022 102.136M136.379 143.493C135.317 144.496 133.766 144.574 132.555 143.91C127.18 139.231 126.211 137.055 123.24 132.585C114.343 142.092 108.057 144.932 96.5085 144.932C82.8614 144.932 72.2288 136.129 72.2288 118.497C72.2288 104.729 79.3673 95.3391 89.5105 90.753C98.2967 86.7002 110.601 85.9828 120.008 84.863L120.008 82.6669C120.008 78.6335 120.313 73.8632 118.06 70.3776C116.073 67.2508 112.288 65.9661 108.954 65.9661C102.765 65.9661 97.2548 69.2819 95.9124 76.1562C95.6265 77.6881 94.57 79.1861 93.0919 79.2637L77.361 77.5039C76.0379 77.1839 74.5792 76.0641 74.9379 73.9456C78.5725 54.0258 95.8009 48 111.207 48C119.102 48 129.419 50.1961 135.632 56.4449C143.527 64.153 142.771 74.4352 142.771 85.6289L142.771 112.064C142.771 120.019 145.911 123.5 148.887 127.8C149.929 129.318 150.156 131.169 148.848 132.309C145.533 135.227 139.65 140.564 136.412 143.575L136.354 143.517",fill:"url(#paint1_radial_39_35)"}),C("defs",{children:[C("linearGradient",{id:"paint0_linear_39_35",x1:"0",y1:"0",x2:"222",y2:"222",gradientUnits:"userSpaceOnUse",children:[t("stop",{stopColor:"#FF9900"}),t("stop",{offset:"0.5",stopColor:"#FF9900"}),t("stop",{offset:"1",stopColor:"#EA580C"})]}),C("radialGradient",{id:"paint1_radial_39_35",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(48 48) rotate(45) scale(178.191 178.229)",children:[t("stop",{stopColor:"white"}),t("stop",{offset:"1",stopColor:"white",stopOpacity:"0.5"})]})]})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-6JPO26GL.mjs";import{a as C}from"./chunk-32C65ISH.mjs";import{a as b}from"./chunk-LFGWL3ID.mjs";import{a as m}from"./chunk-CZSSD6PV.mjs";import{a as y}from"./chunk-D7SRRREC.mjs";import{a as g}from"./chunk-BOCPUR5Z.mjs";import{a as f}from"./chunk-SBK5CRMY.mjs";import{a as d}from"./chunk-JBURS7BX.mjs";import{a as h}from"./chunk-DWACNU5E.mjs";import{a as u}from"./chunk-HRTLCZFX.mjs";import{a as l}from"./chunk-KDNSFAET.mjs";import{a as c}from"./chunk-2W2M7KTU.mjs";import{a as p}from"./chunk-HYPLE4VW.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as o}from"./chunk-DMUERTF2.mjs";import{a}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-NPWONPKN.mjs";import{a as s}from"./chunk-KYMBX7DZ.mjs";import{a as i}from"./chunk-ZJICX3BL.mjs";var S=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:u,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:f,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:b,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:y,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:C,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:P,href:"/docs/api-reference/introduction"}],R=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"How Raycast added link-sharing features to Ray.so with Dub.co's link infrastructure",href:"/customers/raycast"},{icon:o,iconClassName:"group-hover:text-[#268472]",title:"Tinybird",description:"How Tinybird uses Dub.co to enhance their digital marketing strategies",href:"/customers/tinybird"},{icon:e,iconClassName:"group-hover:text-[#4C51BF]",title:"Prisma",description:"How Prisma uses Dub.co to improve insights for pris.ly links",href:"/customers/prisma"}],x=[{icon:h,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:m,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:a,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:s,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:i,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],T=[{icon:l,title:"Blog",href:"/blog"},{icon:p,title:"Changelog",href:"/changelog"},{icon:c,title:"Docs",href:"/docs"},{icon:d,title:"Help Center",href:"/help"},{icon:g,title:"Brand",href:"/brand"}],A=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],E=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{S as a,R as b,x as c,v as d,T as e,A as f,E as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-ORQ643AR.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<=16&&a.naturalHeight<=16&&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{c as u}from"./chunk-HVAJT6I7.mjs";import{createContext as L,useCallback as f,useContext as h,useEffect as l,useId as K,useState as p}from"react";import{jsx as g}from"react/jsx-runtime";var b=L({listeners:[],setListeners:()=>{}});function C({children:t}){let[s,r]=p([]);return g(b.Provider,{value:{listeners:s,setListeners:r},children:t})}function N(t,s,r={}){let i=K(),{listeners:d,setListeners:c}=h(b),a=f(e=>{let n=e.target,S=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||!!S!=!!r.modal||(Array.isArray(t)?!t.includes(e.key):e.key!==t))return;let y=d.filter(o=>o.enabled!==!1&&(Array.isArray(o.key)?o.key.includes(e.key):o.key===e.key));!y.length||u(y,(o,m)=>(m.priority??0)-(o.priority??0)).slice(-1)[0].id!==i||(e.preventDefault(),s(e))},[t,d,i,s]);l(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[a]),l(()=>(c(e=>[...e.filter(n=>n.id!==i),{id:i,key:t,...r}]),()=>c(e=>e.filter(n=>n.id!==i))),[JSON.stringify(t),r.enabled,r.priority])}export{b as a,C as b,N as c};
|