@dub/ui 0.1.68 → 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-4DQHSL42.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,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as E}from"./chunk-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-KQERPFET.mjs";import{b as O}from"./chunk-YIXJW3OQ.mjs";import{l as g}from"./chunk-LHRSOLFV.mjs";import{flip as G,offset as J,size as U,useDismiss as W,useFloating as Y,useInteractions as Z}from"@floating-ui/react";import{Command as i,useCommandState as ee}from"cmdk";import{Check as te,ChevronDown as ae,Search as w,X as oe}from"lucide-react";import{createContext as re,forwardRef as se,useContext as L,useEffect as C,useMemo as le,useRef as F,useState as N}from"react";import{Drawer as f}from"vaul";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=re({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function we({items:r,selectedItem:a,setSelectedItem:d,className:s,disabled:t,adjustForMobile:u,icon:b,inputAttrs:x,noItemsElement:p}){let l=F(null),[c,y]=N(!1),[n,P]=N(""),[D,M]=N(!1);C(()=>{c&&M(!1)},[c]),C(()=>M(!0),[n]),C(()=>{a&&P(a.value)},[a]);let k=le(()=>{let m=n.toLowerCase();return D?r.filter(h=>h.value.toLowerCase().includes(m)):n?r.sort((h,q)=>(q.value.toLowerCase().includes(m)?1:0)-(h.value.toLowerCase().includes(m)?1:0)):r},[D,n,r]),{refs:R,floatingStyles:z,context:j}=Y({open:c,onOpenChange:y,middleware:[J(8),U({apply({elements:{floating:m},availableHeight:h}){Object.assign(m.style,{maxHeight:`${Math.max(75,Math.min(h,290))}px`})},padding:8}),G({fallbackStrategy:"initialPlacement",padding:8})]}),B=W(j),{getReferenceProps:K,getFloatingProps:$}=Z([B]),V=F(null),{scrollProgress:Q,updateScrollProgress:X}=E(V),{isMobile:_}=A();return e(v.Provider,{value:{inputAttrs:x||{},openCommandList:c,setOpenCommandList:y,inputValue:n,setInputValue:P,disabled:Boolean(t),selectedItem:a,setSelectedItem:d},children:_&&u?o(f.Root,{open:c,onOpenChange:y,children:[e(f.Trigger,{className:"sm:hidden",asChild:!0,children:e(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:o("div",{className:(void 0)("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]})})}),e(f.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(f.Portal,{children:[e(f.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:(void 0)("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]}),c&&o(i.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),e(H,{items:k})]})]})}),e(f.Overlay,{})]})]}):o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:(void 0)("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",s),children:[e("div",{onClick:()=>y(m=>!m),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{ref:R.setReference,...K()}),e(I,{})]})]}),c&&o("div",{ref:R.setFloating,style:z,...$(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[o("div",{ref:V,onScroll:X,className:"grow overflow-y-auto p-2",children:[o(i.List,{children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),e(H,{items:k})]}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(Q,2)}})]})]})})}var S=se((r,a)=>{let d=ee(l=>l.filtered.count===0),{inputAttrs:s,openCommandList:t,setOpenCommandList:u,inputValue:b,setInputValue:x,disabled:p}=L(v);return e(i.Input,{ref:a,placeholder:(s==null?void 0:s.placeholder)||"Search...",autoFocus:t,onFocus:()=>u(!0),value:b,onValueChange:x,onKeyDown:l=>{l.key==="Escape"?(l.preventDefault(),u(!1)):l.key==="Enter"&&d?u(!1):l.key.match(/^[a-z0-9]$/i)&&!l.metaKey&&u(!0)},disabled:p,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function I(){let{setSelectedItem:r,openCommandList:a,setOpenCommandList:d,inputValue:s,setInputValue:t}=L(v);return e("button",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:(void 0)("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(T,{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full",width:16,height:16}),e("p",{className:(void 0)("whitespace-nowrap py-0.5 text-sm",t.color&&"rounded-md px-2",t.color==="red"&&"bg-red-100 text-red-600",t.color==="yellow"&&"bg-yellow-100 text-yellow-600",t.color==="green"&&"bg-green-100 text-green-600",t.color==="blue"&&"bg-blue-100 text-blue-600",t.color==="purple"&&"bg-purple-100 text-purple-600",t.color==="brown"&&"bg-brown-100 text-brown-600"),children:t.value}),t.label&&e(O,{className:"text-xs",variant:"neutral",children:t.label})]}),e(te,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},t.id))}export{we as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i}from"./chunk-HVAJT6I7.mjs";import{cva as n}from"class-variance-authority";import{LayoutGroup as c,motion as m}from"framer-motion";import{useId as f}from"react";import{jsx as a,jsxs as b}from"react/jsx-runtime";var p=n("p-4 transition-colors duration-75",{variants:{variant:{default:"text-gray-400 data-[selected=true]:text-black data-[selected=false]:hover:text-gray-500",accent:"text-neutral-500 transition-[color,font-weight] data-[selected=true]:text-blue-600 data-[selected=false]:hover:text-neutral-700 data-[selected=true]:font-medium"}},defaultVariants:{variant:"default"}}),v=n("absolute bottom-0 w-full px-1.5",{variants:{variant:{default:"text-black",accent:"text-blue-600"}},defaultVariants:{variant:"default"}});function T({variant:r,options:s,selected:e,onSelect:o,className:l}){let d=f();return a("div",{className:i("flex text-sm",l),children:a(c,{id:d,children:s.map(({id:t,label:u})=>b("div",{className:"relative",children:[a("button",{type:"button",onClick:()=>o==null?void 0:o(t),className:p({variant:r}),"data-selected":t===e,"aria-selected":t===e,children:u}),t===e&&a(m.div,{layoutId:"indicator",transition:{duration:.1},className:v({variant:r}),children:a("div",{className:"h-0.5 rounded-t-full bg-current"})})]},t))})})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as n,m as d}from"./chunk-ORQ643AR.mjs";import{Fragment as p,jsx as a,jsxs as s}from"react/jsx-runtime";var l=d("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:d("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:n(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 D}from"./chunk-2AVTXLJA.mjs";import{a as x}from"./chunk-NAHB2RQQ.mjs";import{a as N,m as t}from"./chunk-HVAJT6I7.mjs";import{cva as I}from"class-variance-authority";import{useState as P}from"react";import{toast as R}from"sonner";import{Fragment as G,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)"}},O=I("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:j,iconClassName:A,previewClassName:E,customPreview:T,accept:c="any",imageSrc:d,loading:L=!1,clickToUpload:g=!0,showHoverOverlay:M=!0,content:v,maxFileSizeMB:u=0,targetResolution:b,accessibilityLabel:V="File upload",disabled:s=!1}){let[F,l]=P(!1),[k,H]=P(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(H(a.name),u>0&&a.size/1024/1024>u){R.error(`File size too big (max ${u} MB)`);return}let w=m[c].types;if(w.length&&!w.includes(a.type)){R.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(O({variant:z}),s?"cursor-not-allowed":t(g&&"cursor-pointer"),j),children:[L&&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] border-2 border-transparent bg-white transition-all",s&&"bg-gray-50",F&&!s&&"cursor-copy border-black bg-gray-50 opacity-100",d?t("opacity-0",M&&!s&&"group-hover:opacity-100"):t(!s&&"group-hover:bg-gray-50")),children:[r(D,{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"),A)}),v!==null&&r("div",{className:t("mt-2 text-center text-sm text-gray-500",s&&"text-gray-400"),children:v??r(G,{children:y("p",{children:["Drag and drop ",g&&"or click"," to upload."]})})}),r("span",{className:"sr-only",children:V})]}),d&&(T??r("img",{src:d,alt:"Preview",className:t("h-full w-full rounded-[inherit] object-cover",E)})),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},k)})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as t}from"./chunk-LHRSOLFV.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:(void 0)("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:(void 0)(!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{m as t}from"./chunk-ORQ643AR.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function l({className:i}){return a("svg",{className:t("h-full w-full",i),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"#0D1117"}),C("path",{d:"M111.001 44C72.8976 44 42 74.7556 42 112.696C42 143.048 61.7708 168.798 89.1868 177.882C92.6352 178.518 93.9013 176.392 93.9013 174.577C93.9013 172.939 93.8373 167.528 93.8076 161.787C74.6115 165.943 70.5609 153.682 70.5609 153.682C67.4222 145.742 62.8997 143.63 62.8997 143.63C56.6393 139.367 63.3716 139.454 63.3716 139.454C70.3004 139.939 73.9488 146.534 73.9488 146.534C80.103 157.036 90.0906 154 94.0281 152.244C94.6474 147.804 96.4356 144.774 98.4089 143.058C83.0829 141.321 66.972 135.431 66.972 109.108C66.972 101.608 69.6674 95.4801 74.0814 90.6693C73.3649 88.939 71.0031 81.952 74.7498 72.4896C74.7498 72.4896 80.544 70.6433 93.7299 79.5312C99.2339 78.0091 105.137 77.2458 111.001 77.2196C116.864 77.2458 122.772 78.0091 128.286 79.5312C141.456 70.6433 147.242 72.4896 147.242 72.4896C150.998 81.952 148.635 88.939 147.919 90.6693C152.343 95.4801 155.02 101.608 155.02 109.108C155.02 135.493 138.878 141.303 123.513 143.004C125.988 145.136 128.194 149.316 128.194 155.725C128.194 164.917 128.114 172.315 128.114 174.577C128.114 176.405 129.356 178.547 132.853 177.873C160.254 168.779 180 143.038 180 112.696C180 74.7556 149.107 44 111.001 44ZM67.843 141.859C67.691 142.201 67.1517 142.303 66.6603 142.069C66.1599 141.844 65.8788 141.379 66.041 141.037C66.1896 140.685 66.73 140.587 67.2294 140.823C67.731 141.047 68.0166 141.517 67.843 141.859ZM71.237 144.874C70.9079 145.178 70.2646 145.037 69.8282 144.557C69.3768 144.078 69.2923 143.438 69.6259 143.129C69.9653 142.826 70.5892 142.968 71.0416 143.447C71.493 143.931 71.5809 144.567 71.237 144.874ZM73.5655 148.732C73.1427 149.024 72.4514 148.75 72.0241 148.139C71.6013 147.529 71.6013 146.796 72.0332 146.502C72.4617 146.209 73.1427 146.473 73.5758 147.079C73.9974 147.7 73.9974 148.433 73.5655 148.732ZM77.5034 153.2C77.1252 153.615 76.3196 153.504 75.73 152.937C75.1267 152.383 74.9588 151.597 75.3381 151.182C75.7209 150.766 76.531 150.883 77.1252 151.445C77.7239 151.998 77.9067 152.789 77.5034 153.2ZM82.5928 154.708C82.4259 155.246 81.6501 155.491 80.8685 155.262C80.0881 155.027 79.5774 154.397 79.7351 153.853C79.8973 153.311 80.6766 153.056 81.4639 153.301C82.2431 153.535 82.755 154.161 82.5928 154.708ZM88.3847 155.348C88.4041 155.915 87.7414 156.384 86.921 156.395C86.096 156.413 85.4287 155.954 85.4196 155.397C85.4196 154.825 86.0674 154.359 86.8924 154.346C87.7128 154.33 88.3847 154.785 88.3847 155.348ZM94.0746 155.131C94.1729 155.684 93.6027 156.251 92.788 156.403C91.987 156.548 91.2455 156.207 91.1438 155.659C91.0444 155.092 91.6248 154.525 92.4247 154.378C93.2405 154.237 93.9706 154.569 94.0746 155.131Z",fill:"url(#paint0_radial_39_32)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_32",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(42 44) rotate(44.1575) scale(192.354 192.312)",children:[C("stop",{stopColor:"white",stopOpacity:"0.77"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{l as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-56IGFFSK.mjs";import{a as b}from"./chunk-324RZJEK.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-7LNA6Q2P.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-NKJ6CLN6.mjs";import{a as x,f as k,g as L}from"./chunk-MKG6N7L6.mjs";import{a as C}from"./chunk-TP3T42OT.mjs";import{a as v}from"./chunk-KGHQKY4T.mjs";import{a as b}from"./chunk-64JANH7J.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{a as _}from"./chunk-NEJ2U2ZO.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-VCTQS6IH.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-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{c as C}from"./chunk-I64FUP6F.mjs";import{a as I}from"./chunk-ZWCN2SRH.mjs";import{a as U}from"./chunk-PVGXQRQY.mjs";import{a as q}from"./chunk-ABBVN54D.mjs";import{a as H}from"./chunk-O54LVCRS.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{m as T}from"./chunk-HVAJT6I7.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v}from"./chunk-NWME2ANF.mjs";import{b as l}from"./chunk-ER4DXXJA.mjs";import{a as h}from"./chunk-4KAIJ2PN.mjs";import{a as b}from"./chunk-U4QIRPVU.mjs";import{a as g}from"./chunk-RKUUDTHF.mjs";import{a as u}from"./chunk-GLJR2QX5.mjs";import{a as f}from"./chunk-3IVWKAUU.mjs";import{a as p}from"./chunk-GHXIGUPQ.mjs";import{m as n}from"./chunk-HVAJT6I7.mjs";import{useEffect as k,useId as C,useRef as P,useState as A}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var H=[{key:"utm_source",icon:f,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:h,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:p,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:g,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:b,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:u,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function B({values:t,onChange:a,disabled:y,autoFocus:T,disabledTooltip:c,className:N}){let{isMobile:x}=v(),d=C(),[m,R]=A(!1),r=P(null);return k(()=>{r.current&&!x&&T&&setTimeout(()=>{var o;return(o=r.current)==null?void 0:o.focus()},10)},[]),e("div",{className:n("grid gap-y-3",N),children:H.map(({key:o,icon:M,label:_,placeholder:w,description:E},S)=>e("div",{className:"group relative",children:s("div",{className:"relative z-10 flex",children:[e(l,{content:s("div",{className:"p-3 text-center text-xs",children:[e("p",{className:"text-gray-600",children:E}),e("span",{className:"font-mono text-gray-400",children:o})]}),sideOffset:4,disableHoverableContent:!0,children:s("div",{className:n("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>R(i=>!i),children:[e(M,{className:"size-4 shrink-0"}),e("label",{htmlFor:`${d}-${o}`,className:"select-none text-sm",children:m?e("span",{className:"font-mono text-xs",children:o}):_})]})}),e("div",{className:"min-w-0 grow",children:e(U,{disabledTooltip:c,children:e("input",{type:"text",id:`${d}-${o}`,ref:S===0?r:void 0,placeholder:w,disabled:y||Boolean(c),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:t[o]||"",onChange:i=>a(o,i.target.value)})})})]})},o))})}function U({children:t,disabledTooltip:a}){return a?e(l,{content:a,disableHoverableContent:!0,children:t}):t}export{H as a,B as b};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-5XVEBJXY.mjs";import{a as H}from"./chunk-WCLNMUC2.mjs";import{a as S,e as W}from"./chunk-3D4TSYY5.mjs";import{a as E}from"./chunk-NL5BFUDW.mjs";import{a as C}from"./chunk-5ZLK4D4J.mjs";import{a as V}from"./chunk-5ORITTGP.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-AQIV6QKZ.mjs";import{i as w,j as P,l as M,m as l}from"./chunk-7LNA6Q2P.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,K=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:W},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=Q(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r.endsWith("dub.co")&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l,b as v,f as g}from"./chunk-WI42IPI7.mjs";import{a as c,c as u,d as N}from"./chunk-5HJID3RL.mjs";import{a as d}from"./chunk-IYVNIXK5.mjs";import{i as o,m as i}from"./chunk-HVAJT6I7.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-XU2GKM2O.mjs";import{a as b}from"./chunk-324RZJEK.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-7LNA6Q2P.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-WMTXO7RT.mjs";import{m as r}from"./chunk-ORQ643AR.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as f}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as A}from"react/jsx-runtime";var y=e.Root,p=c.forwardRef(({className:t,...i},o)=>n(e.Item,{ref:o,className:r("border-b border-b-slate-200 py-3 last:border-none",t),...i}));p.displayName="AccordionItem";var l=c.forwardRef(({className:t,children:i,variant:o="chevron",...a},d)=>{let s=o==="chevron"?f:m;return n(e.Header,{className:"flex",children:A(e.Trigger,{ref:d,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg",{"[&[data-state=open]>svg]:rotate-180":o==="chevron","[&[data-state=open]>svg]:rotate-45":o==="plus"},t),...a,children:[i,n(s,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})})});l.displayName=e.Trigger.displayName;var v=c.forwardRef(({className:t,children:i,...o},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",t),...o,children:i}));v.displayName=e.Content.displayName;export{y as a,p as b,l as c,v as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-XTNQEIPG.mjs";import{a as b}from"./chunk-BS6EW2NX.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-VCTQS6IH.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({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 n}from"./chunk-IYVNIXK5.mjs";import{m as i}from"./chunk-HVAJT6I7.mjs";import s from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";var b="text-xs uppercase text-gray-500 dark:text-white/60",l="group rounded-[8px] p-2 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20";function v({icon:t,title:o,description:r,descriptionLines:d=1,className:p,showArrow:c,...m}){return e(s,{className:i(l,p),...m,children:a("div",{className:"flex items-center justify-between gap-3",children:[t,a("div",{className:"flex-1",children:[e("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:o}),r&&e("p",{className:i("text-xs text-gray-500/80 dark:text-white/60",["line-clamp-1","line-clamp-2"][d-1]),children:r})]}),c&&e(n,{className:"invisible -ml-6 h-4 w-4 text-gray-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})}function k({icon:t}){return e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-3 dark:border-white/20 dark:bg-white/10",children:e(t,{className:"h-4 w-4 text-black transition-transform group-hover:scale-110 dark:text-white/80"})})}function w({name:t,href:o,icon:r}){return a(s,{href:o,className:"group relative isolate overflow-hidden rounded-[8px] border border-gray-100 p-3 text-sm font-medium text-gray-800 transition-colors hover:border-gray-200 hover:bg-gray-100 active:bg-gray-200 dark:border-white/20 dark:text-white/80 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[e("div",{className:"absolute -bottom-5 -right-3 -z-[1] w-14",children:r}),t]})}export{b as a,l as b,v as c,k as d,w as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i}from"./chunk-ORQ643AR.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-HVAJT6I7.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:t("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{a as l,b as v,f as g}from"./chunk-3D4TSYY5.mjs";import{a as c,c as u,d as N}from"./chunk-DMPLU2GO.mjs";import{a as d}from"./chunk-GIW2RJQZ.mjs";import{i as o,m as i}from"./chunk-7LNA6Q2P.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as C}from"./chunk-GHSFG3C4.mjs";import{a as I}from"./chunk-NNGHO3FU.mjs";import{a as U}from"./chunk-BF66E7XG.mjs";import{a as q}from"./chunk-U7KEKQYA.mjs";import{a as H}from"./chunk-XRIZIRH2.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{l as T}from"./chunk-LHRSOLFV.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:(void 0)("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as n}from"./chunk-HVAJT6I7.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,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as C}from"./chunk-ORQ643AR.mjs";import{jsx as l,jsxs as f}from"react/jsx-runtime";function o({className:t}){return f("svg",{className:C("h-full w-full",t),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M110.999 0C49.6974 0 0 49.6973 0 111.001C0 172.307 49.6974 222 110.999 222C172.308 222 222 172.307 222 111.001C222 49.7012 172.308 0.00530203 110.998 0.00530203L110.999 0ZM161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.324 146.469 93.5163 142.863 54.8787 151.691C51.1554 152.539 47.4441 150.207 46.5958 146.482C45.7435 142.757 48.0671 139.046 51.7996 138.197C94.0823 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.904 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.655 135.228 163.586 132.723C133.75 114.383 88.2687 109.072 52.9779 119.785C48.4011 121.167 43.5671 118.588 42.178 114.019C40.7995 109.442 43.3802 104.617 47.9491 103.225C88.2608 90.9935 138.376 96.9185 172.639 117.974C176.708 120.479 177.994 125.808 175.489 129.872V129.871ZM176.655 98.3977C140.881 77.1485 81.8574 75.1947 47.7012 85.5615C42.2164 87.225 36.4161 84.1286 34.754 78.6437C33.0918 73.1561 36.1855 67.3596 41.6743 65.6922C80.8832 53.7891 146.063 56.0889 187.251 80.5405C192.195 83.4685 193.812 89.8403 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.655Z",fill:"#1ED760"}),l("path",{d:"M161.903 160.095C159.915 163.356 155.647 164.389 152.386 162.388C126.325 146.469 93.5164 142.863 54.8788 151.691C51.1556 152.539 47.4442 150.207 46.5959 146.482C45.7436 142.757 48.0672 139.046 51.7997 138.197C94.0824 128.537 130.351 132.697 159.61 150.578C162.871 152.579 163.905 156.834 161.903 160.095ZM175.489 129.871C172.984 133.943 167.656 135.228 163.586 132.723C133.75 114.383 88.2689 109.072 52.9781 119.785C48.4012 121.167 43.5672 118.588 42.1781 114.019C40.7996 109.442 43.3803 104.617 47.9492 103.225C88.2609 90.9934 138.376 96.9184 172.639 117.974C176.709 120.479 177.994 125.808 175.489 129.872V129.871ZM176.656 98.3977C140.881 77.1485 81.8576 75.1947 47.7014 85.5615C42.2165 87.225 36.4163 84.1286 34.7541 78.6437C33.092 73.1561 36.1856 67.3596 41.6744 65.6921C80.8833 53.7891 146.064 56.0888 187.251 80.5405C192.195 83.4685 193.813 89.8402 190.883 94.7672C187.967 99.7007 181.578 101.327 176.661 98.3977H176.656Z",fill:"white"})]})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-HVAJT6I7.mjs";import{jsx as C,jsxs as a}from"react/jsx-runtime";function r({className:L}){return a("svg",{className:t("h-full w-full",L),viewBox:"0 0 222 222",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C("circle",{cx:"111",cy:"111",r:"111",fill:"black"}),C("path",{d:"M173.607 97.7454C176.886 87.8002 175.751 76.9142 170.492 67.8719C162.584 54.0098 146.691 46.8792 131.17 50.2298C122.423 40.4311 109.151 36.0738 96.3504 38.7981C83.5497 41.5224 73.1632 50.9148 69.1005 63.4398C58.9049 65.5455 50.1051 71.9745 44.9529 81.0819C36.9593 94.9215 38.7736 112.379 49.4395 124.252C46.1479 134.192 47.2727 145.08 52.5258 154.125C60.4432 167.992 76.3466 175.122 91.8764 171.767C98.784 179.601 108.708 184.058 119.11 183.999C135.02 184.014 149.114 173.67 153.974 158.414C164.168 156.304 172.967 149.876 178.122 140.771C186.019 126.956 184.197 109.593 173.607 97.7454ZM119.11 174.444C112.76 174.454 106.609 172.213 101.735 168.112L102.593 167.623L131.456 150.844C132.917 149.981 133.818 148.406 133.827 146.7V105.717L146.03 112.826C146.152 112.889 146.237 113.006 146.258 113.143V147.103C146.227 162.19 134.091 174.412 119.11 174.444ZM60.756 149.348C57.5714 143.81 56.428 137.318 57.5268 131.015L58.3841 131.533L87.2755 148.312C88.7311 149.172 90.535 149.172 91.9907 148.312L127.283 127.82V142.009C127.277 142.158 127.203 142.296 127.083 142.383L97.849 159.363C84.8581 166.9 68.2607 162.419 60.756 149.348ZM53.1545 86.032C56.3612 80.4583 61.4227 76.207 67.443 74.0308V108.567C67.4209 110.266 68.3188 111.843 69.7863 112.682L104.907 133.087L92.7051 140.196C92.5711 140.267 92.4105 140.267 92.2764 140.196L63.0993 123.244C50.134 115.676 45.6875 98.9734 53.1545 85.8881V86.032ZM153.403 109.488L118.167 88.8812L130.341 81.8013C130.475 81.7297 130.636 81.7297 130.77 81.8013L159.947 98.7815C169.053 104.074 174.307 114.185 173.432 124.737C172.557 135.289 165.712 144.383 155.86 148.082V113.546C155.809 111.851 154.875 110.309 153.403 109.488ZM165.548 91.0973L164.691 90.5792L135.856 73.6566C134.392 72.7912 132.577 72.7912 131.113 73.6566L95.8486 94.1479V79.9594C95.8333 79.8125 95.8991 79.6689 96.02 79.5853L125.197 62.6339C134.326 57.3376 145.672 57.8319 154.312 63.9022C162.953 69.9726 167.331 80.5253 165.548 90.9821V91.0973ZM89.1901 116.251L76.9877 109.171C76.8644 109.096 76.7807 108.969 76.7591 108.826V74.9517C76.773 64.3439 82.8721 54.6994 92.4112 50.201C101.95 45.7026 113.211 47.1605 121.311 53.9424L120.453 54.4316L91.5906 71.2103C90.1293 72.0736 89.2279 73.6485 89.2187 75.3546L89.1901 116.251ZM95.82 101.861L111.537 92.7377L127.283 101.861V120.107L111.595 129.231L95.8486 120.107L95.82 101.861Z",fill:"url(#paint0_radial_39_26)"}),C("defs",{children:a("radialGradient",{id:"paint0_radial_39_26",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(40 38) rotate(45.5947) scale(204.365 204.365)",children:[C("stop",{stopColor:"white",stopOpacity:"0.85"}),C("stop",{offset:"1",stopColor:"white",stopOpacity:"0.1"})]})})]})}export{r as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l,b as v,f as g}from"./chunk-VSCITBCY.mjs";import{a as c,c as u,d as N}from"./chunk-5HJID3RL.mjs";import{a as d}from"./chunk-IYVNIXK5.mjs";import{i as o,m as i}from"./chunk-HVAJT6I7.mjs";import{ChevronRight as h}from"lucide-react";import _ from"next/link";import{jsx as t,jsxs as a}from"react/jsx-runtime";function y({domain:e}){return a("div",{className:"grid w-[40rem] grid-cols-2",children:[a("div",{className:"p-5",children:[t("p",{className:i(c,"mb-2"),children:"Features"}),t("div",{className:"-mx-2 -mb-2 grid grid-cols-1 gap-0.5",children:l.map(({icon:m,title:r,description:s,href:n})=>t(u,{href:o(n,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:r}),icon:t(N,{icon:m}),title:r,description:s},n))})]}),a("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[a(_,{href:o("/customers",e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:"Customer Stories"}),className:i(c,"group mb-2 flex items-center transition-colors hover:text-black dark:hover:text-white"),children:["Customer Stories",t(h,{className:"ml-0.5 h-2.5 w-2.5 transition-transform group-hover:translate-x-px"})]}),t("div",{className:"grid grid-cols-1",children:v.map(({icon:m,iconClassName:r,title:s,description:n,href:p})=>t(u,{href:o(p,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:s}),className:"-mx-2",icon:t(m,{className:i("h-7 w-7 shrink-0 text-gray-600 transition-colors dark:text-white/60",r)}),title:s,description:n,descriptionLines:2},p))}),t("p",{className:i(c,"my-4"),children:"Compare"}),t("div",{className:"flex flex-col gap-1.5",children:g.map(({name:m,slug:r})=>a(_,{href:o(`/compare/${r}`,e,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:e,utm_content:`Dub vs. ${m}`}),className:"group flex items-center gap-0.5 text-gray-500 transition-colors hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80",children:[a("p",{className:"text-sm font-medium",children:["Dub vs. ",m]})," ",t(d,{className:"h-3 w-3"})]},r))})]})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-TXXKECQO.mjs";import{a as x,f as k,g as L}from"./chunk-ZNH7PXDK.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 _}from"./chunk-RSJ6GSD7.mjs";import{a as N}from"./chunk-ALEYOCBW.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{l as a}from"./chunk-LHRSOLFV.mjs";import{jsx as t,jsxs as r}from"react/jsx-runtime";function n({className:i}){return r("svg",{className:(void 0)("h-full w-full",i),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_radial_8357_120)"}),t("path",{d:"M182.248 111.875C182.248 105.853 181.76 101.458 180.702 96.9003H111.931V124.083H152.298C151.484 130.838 147.089 141.011 137.323 147.848L137.186 148.758L158.93 165.603L160.437 165.753C174.272 152.975 182.248 134.175 182.248 111.875Z",fill:"url(#paint1_linear_8357_120)"}),t("path",{d:"M111.931 183.495C131.707 183.495 148.31 176.984 160.437 165.753L137.323 147.848C131.138 152.161 122.836 155.172 111.931 155.172C92.561 155.172 76.1211 142.395 70.2607 124.734L69.4017 124.807L46.7918 142.305L46.4961 143.127C58.5411 167.055 83.2826 183.495 111.931 183.495Z",fill:"url(#paint2_linear_8357_120)"}),t("path",{d:"M70.2606 124.734C68.7143 120.177 67.8194 115.293 67.8194 110.248C67.8194 105.201 68.7143 100.318 70.1793 95.7607L70.1383 94.7901L47.245 77.0109L46.496 77.3672C41.5317 87.2964 38.6831 98.4466 38.6831 110.248C38.6831 122.048 41.5317 133.198 46.496 143.127L70.2606 124.734Z",fill:"url(#paint3_linear_8357_120)"}),t("path",{d:"M111.931 65.3222C125.685 65.3222 134.963 71.2633 140.253 76.2282L160.925 56.0444C148.229 44.2434 131.707 37 111.931 37C83.2826 37 58.5411 53.4399 46.4961 77.3672L70.1794 95.7607C76.1211 78.1 92.561 65.3222 111.931 65.3222Z",fill:"url(#paint4_linear_8357_120)"}),r("defs",{children:[r("radialGradient",{id:"paint0_radial_8357_120",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[t("stop",{"stop-color":"white"}),t("stop",{offset:"0.5","stop-color":"white"}),t("stop",{offset:"1","stop-color":"#E8E8E8"})]}),r("linearGradient",{id:"paint1_linear_8357_120",x1:"176.5",y1:"148.5",x2:"112",y2:"97",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#76A7F9"}),t("stop",{offset:"1","stop-color":"#4285F4"})]}),r("linearGradient",{id:"paint2_linear_8357_120",x1:"38.5",y1:"164.5",x2:"160",y2:"175",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#34A853"}),t("stop",{offset:"1","stop-color":"#8DFBAA"})]}),r("linearGradient",{id:"paint3_linear_8357_120",x1:"81",y1:"115",x2:"35.9999",y2:"110",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FFE28F"}),t("stop",{offset:"1","stop-color":"#FBBC05"})]}),r("linearGradient",{id:"paint4_linear_8357_120",x1:"117.5",y1:"84",x2:"78",y2:"45.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FF968D"}),t("stop",{offset:"1","stop-color":"#EB4335"})]})]})]})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{k as m}from"./chunk-ER4DXXJA.mjs";import{m as i}from"./chunk-HVAJT6I7.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as n}from"./chunk-AXZJPLZ2.mjs";import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-BKZ6TNZC.mjs";import{l as t}from"./chunk-LHRSOLFV.mjs";import{cva as d}from"class-variance-authority";import{toast as y}from"sonner";import{jsx as o,jsxs as b}from"react/jsx-runtime";var f=d("relative group rounded-full p-1.5 transition-all duration-75",{variants:{variant:{default:"bg-transparent hover:bg-gray-100 active:bg-gray-200",neutral:"bg-transparent hover:bg-gray-100 active:bg-gray-200"}},defaultVariants:{variant:"default"}});function P({variant:s="default",value:i,className:e,icon:p,successMessage:c}){let[u,l]=n(),m=p||a;return b("button",{onClick:g=>{g.stopPropagation(),y.promise(l(i),{success:c||"Copied to clipboard!"})},className:(void 0)(f({variant:s}),e),type:"button",children:[o("span",{className:"sr-only",children:"Copy"}),u?o(r,{className:"h-3.5 w-3.5"}):o(m,{className:"h-3.5 w-3.5"})]})}export{P as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as a}from"./chunk-ORQ643AR.mjs";import{jsx as t,jsxs as r}from"react/jsx-runtime";function n({className:i}){return r("svg",{className:a("h-full w-full",i),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_radial_8357_120)"}),t("path",{d:"M182.248 111.875C182.248 105.853 181.76 101.458 180.702 96.9003H111.931V124.083H152.298C151.484 130.838 147.089 141.011 137.323 147.848L137.186 148.758L158.93 165.603L160.437 165.753C174.272 152.975 182.248 134.175 182.248 111.875Z",fill:"url(#paint1_linear_8357_120)"}),t("path",{d:"M111.931 183.495C131.707 183.495 148.31 176.984 160.437 165.753L137.323 147.848C131.138 152.161 122.836 155.172 111.931 155.172C92.561 155.172 76.1211 142.395 70.2607 124.734L69.4017 124.807L46.7918 142.305L46.4961 143.127C58.5411 167.055 83.2826 183.495 111.931 183.495Z",fill:"url(#paint2_linear_8357_120)"}),t("path",{d:"M70.2606 124.734C68.7143 120.177 67.8194 115.293 67.8194 110.248C67.8194 105.201 68.7143 100.318 70.1793 95.7607L70.1383 94.7901L47.245 77.0109L46.496 77.3672C41.5317 87.2964 38.6831 98.4466 38.6831 110.248C38.6831 122.048 41.5317 133.198 46.496 143.127L70.2606 124.734Z",fill:"url(#paint3_linear_8357_120)"}),t("path",{d:"M111.931 65.3222C125.685 65.3222 134.963 71.2633 140.253 76.2282L160.925 56.0444C148.229 44.2434 131.707 37 111.931 37C83.2826 37 58.5411 53.4399 46.4961 77.3672L70.1794 95.7607C76.1211 78.1 92.561 65.3222 111.931 65.3222Z",fill:"url(#paint4_linear_8357_120)"}),r("defs",{children:[r("radialGradient",{id:"paint0_radial_8357_120",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(226.5 207.5) rotate(-140.591) scale(286.681)",children:[t("stop",{"stop-color":"white"}),t("stop",{offset:"0.5","stop-color":"white"}),t("stop",{offset:"1","stop-color":"#E8E8E8"})]}),r("linearGradient",{id:"paint1_linear_8357_120",x1:"176.5",y1:"148.5",x2:"112",y2:"97",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#76A7F9"}),t("stop",{offset:"1","stop-color":"#4285F4"})]}),r("linearGradient",{id:"paint2_linear_8357_120",x1:"38.5",y1:"164.5",x2:"160",y2:"175",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#34A853"}),t("stop",{offset:"1","stop-color":"#8DFBAA"})]}),r("linearGradient",{id:"paint3_linear_8357_120",x1:"81",y1:"115",x2:"35.9999",y2:"110",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FFE28F"}),t("stop",{offset:"1","stop-color":"#FBBC05"})]}),r("linearGradient",{id:"paint4_linear_8357_120",x1:"117.5",y1:"84",x2:"78",y2:"45.5",gradientUnits:"userSpaceOnUse",children:[t("stop",{"stop-color":"#FF968D"}),t("stop",{offset:"1","stop-color":"#EB4335"})]})]})]})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as x}from"./chunk-N6LUEISO.mjs";import{a as N,m as t}from"./chunk-ORQ643AR.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{d as l,e as p}from"./chunk-H6X2YC5N.mjs";import{a as s,c as n}from"./chunk-DMPLU2GO.mjs";import{i,m as e}from"./chunk-7LNA6Q2P.mjs";import{jsx as r,jsxs as c}from"react/jsx-runtime";function N({domain:a}){return c("div",{className:"grid w-[28rem] grid-cols-2",children:[c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"SDKs"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:l.map(({icon:m,iconClassName:t,title:o,href:d})=>r(n,{href:i(d,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:o}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 transition-colors dark:text-white/60",t)}),title:o,showArrow:!0},d))})]}),c("div",{className:"border-l border-gray-200 p-5 dark:border-white/20",children:[r("p",{className:e(s,"mb-2"),children:"Content"}),r("div",{className:"-mx-2 flex flex-col gap-0.5",children:p.map(({icon:m,title:t,href:o})=>r(n,{href:i(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:t}),icon:r(m,{className:e("h-5 w-5 shrink-0 text-gray-600 dark:text-white/60")}),title:t,showArrow:!0}))})]})]})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-ER4DXXJA.mjs";import{m as n}from"./chunk-HVAJT6I7.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{j as h}from"./chunk-FK5QGBOB.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 Q(){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:(void 0)("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:(void 0)("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:(void 0)("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:(void 0)("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:(void 0)("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 "}}}),W=({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:(void 0)(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:(void 0)("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,Q as c,z as d,U as e,B as f,O as g,V as h,W as i};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as v}from"./chunk-HVAJT6I7.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{a as f}from"./chunk-NWME2ANF.mjs";import{m as l}from"./chunk-ORQ643AR.mjs";import*as e from"@radix-ui/react-dialog";import*as n from"@radix-ui/react-visually-hidden";import{useRouter as h}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as o,jsxs as r}from"react/jsx-runtime";function N({children:d,className:s,showModal:c,setShowModal:i,onClose:p,desktopOnly:m,preventDefaultClose:g,drawerRootProps:D}){let b=h(),u=({dragged:t}={})=>{g&&!t||(p&&p(),i?i(!1):b.back())},{isMobile:y}=f();return y&&!m?o(a.Root,{open:i?c:!0,onOpenChange:t=>{t||u({dragged:!0})},...D,children:r(a.Portal,{children:[o(a.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(a.Content,{className:l("fixed bottom-0 left-0 right-0 z-50 flex flex-col","rounded-t-[10px] border-t border-gray-200 bg-white",s),children:r("div",{className:"scrollbar-hide flex-1 overflow-y-auto rounded-t-[10px] bg-inherit",children:[r(n.Root,{children:[o(a.Title,{children:"Modal"}),o(a.Description,{children:"This is a modal"})]}),o(w,{}),d]})}),o(a.Overlay,{})]})}):o(e.Root,{open:i?c:!0,onOpenChange:t=>{t||u()},children:r(e.Portal,{children:[o(e.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),r(e.Content,{onOpenAutoFocus:t=>t.preventDefault(),onCloseAutoFocus:t=>t.preventDefault(),className:l("fixed inset-0 z-40 m-auto h-fit w-full max-w-md","border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl","scrollbar-hide animate-scale-in overflow-y-auto",s),children:[r(n.Root,{children:[o(e.Title,{children:"Modal"}),o(e.Description,{children:"This is a modal"})]}),d]})]})})}function w(){return o("div",{className:"sticky top-0 z-20 flex items-center justify-center rounded-t-[10px] bg-inherit",children:o("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})})}export{N as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as t}from"./chunk-ORQ643AR.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{e as w}from"./chunk-PZQ2WJI6.mjs";import{a as x,f as k,g as L}from"./chunk-I57AERIJ.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as v}from"./chunk-5UDLEOOZ.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{l as e}from"./chunk-LHRSOLFV.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as h}from"./chunk-LYRQAEES.mjs";import{b as v}from"./chunk-FF7OG7N5.mjs";import{d as f,e as y,m as l}from"./chunk-TOWKBEIR.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 E}from"./chunk-GVBIGY6N.mjs";import{a as A}from"./chunk-NWME2ANF.mjs";import{a as T}from"./chunk-ZT7NQ7HE.mjs";import{b as O}from"./chunk-KORZXM6V.mjs";import{m as g}from"./chunk-HVAJT6I7.mjs";import{flip as G,offset as J,size as U,useDismiss as W,useFloating as Y,useInteractions as Z}from"@floating-ui/react";import{Command as i,useCommandState as ee}from"cmdk";import{Check as te,ChevronDown as ae,Search as w,X as oe}from"lucide-react";import{createContext as re,forwardRef as se,useContext as L,useEffect as C,useMemo as le,useRef as F,useState as N}from"react";import{Drawer as f}from"vaul";import{jsx as e,jsxs as o}from"react/jsx-runtime";var v=re({inputAttrs:{},openCommandList:!1,setOpenCommandList:()=>{},inputValue:"",setInputValue:()=>{},disabled:!1,selectedItem:null,setSelectedItem:()=>{}});function we({items:r,selectedItem:a,setSelectedItem:d,className:s,disabled:t,adjustForMobile:u,icon:b,inputAttrs:x,noItemsElement:p}){let l=F(null),[c,y]=N(!1),[n,P]=N(""),[D,M]=N(!1);C(()=>{c&&M(!1)},[c]),C(()=>M(!0),[n]),C(()=>{a&&P(a.value)},[a]);let k=le(()=>{let m=n.toLowerCase();return D?r.filter(h=>h.value.toLowerCase().includes(m)):n?r.sort((h,q)=>(q.value.toLowerCase().includes(m)?1:0)-(h.value.toLowerCase().includes(m)?1:0)):r},[D,n,r]),{refs:R,floatingStyles:z,context:j}=Y({open:c,onOpenChange:y,middleware:[J(8),U({apply({elements:{floating:m},availableHeight:h}){Object.assign(m.style,{maxHeight:`${Math.max(75,Math.min(h,290))}px`})},padding:8}),G({fallbackStrategy:"initialPlacement",padding:8})]}),B=W(j),{getReferenceProps:K,getFloatingProps:$}=Z([B]),V=F(null),{scrollProgress:Q,updateScrollProgress:X}=E(V),{isMobile:_}=A();return e(v.Provider,{value:{inputAttrs:x||{},openCommandList:c,setOpenCommandList:y,inputValue:n,setInputValue:P,disabled:Boolean(t),selectedItem:a,setSelectedItem:d},children:_&&u?o(f.Root,{open:c,onOpenChange:y,children:[e(f.Trigger,{className:"sm:hidden",asChild:!0,children:e(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:o("div",{className:g("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]})})}),e(f.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),o(f.Portal,{children:[e(f.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",s),children:[e("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{}),e(I,{})]})]}),c&&o(i.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),e(H,{items:k})]})]})}),e(f.Overlay,{})]})]}):o(i,{ref:l,className:"relative",shouldFilter:!1,loop:!0,children:[o("div",{className:g("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",s),children:[e("div",{onClick:()=>y(m=>!m),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:a&&a.image?e("img",{src:a.image,alt:a.value,className:"h-4 w-4 rounded-full"}):b||e(w,{className:"h-4 w-4 text-gray-400"})}),o("div",{className:"flex h-10 px-8",children:[e(S,{ref:R.setReference,...K()}),e(I,{})]})]}),c&&o("div",{ref:R.setFloating,style:z,...$(),className:"z-20 flex w-full min-w-[160px] flex-col overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:[o("div",{ref:V,onScroll:X,className:"grow overflow-y-auto p-2",children:[o(i.List,{children:[r.length===0&&n===""&&(p?e("div",{children:p}):e("p",{className:"px-4 py-2 text-sm text-gray-600",children:"No items found."})),n!==""&&e(i.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."})]}),e(H,{items:k})]}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(Q,2)}})]})]})})}var S=se((r,a)=>{let d=ee(l=>l.filtered.count===0),{inputAttrs:s,openCommandList:t,setOpenCommandList:u,inputValue:b,setInputValue:x,disabled:p}=L(v);return e(i.Input,{ref:a,placeholder:(s==null?void 0:s.placeholder)||"Search...",autoFocus:t,onFocus:()=>u(!0),value:b,onValueChange:x,onKeyDown:l=>{l.key==="Escape"?(l.preventDefault(),u(!1)):l.key==="Enter"&&d?u(!1):l.key.match(/^[a-z0-9]$/i)&&!l.metaKey&&u(!0)},disabled:p,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm",autoCapitalize:"none"})});function I(){let{setSelectedItem:r,openCommandList:a,setOpenCommandList:d,inputValue:s,setInputValue:t}=L(v);return e("button",{type:"button",onClick:()=>{d(u=>!u),r(null),t("")},className:"absolute inset-y-0 right-0 my-auto pr-3",children:s.length>0?e(oe,{className:"h-4 w-4 text-gray-400 transition-all hover:text-gray-700"}):e(ae,{className:g("h-4 w-4 text-gray-400 transition-all hover:text-gray-700",{"rotate-180 transform":a})})})}function H({items:r}){let{setSelectedItem:a,setOpenCommandList:d,setInputValue:s}=L(v);return r.map(t=>o(i.Item,{value:t.value,disabled:t.disabled,onSelect:()=>{a(t),s(t.value),d(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[o("div",{className:"flex items-center space-x-2",children:[t.image&&e(T,{src:t.image,alt:t.value,className:"h-4 w-4 rounded-full",width:16,height:16}),e("p",{className:g("whitespace-nowrap py-0.5 text-sm",t.color&&"rounded-md px-2",t.color==="red"&&"bg-red-100 text-red-600",t.color==="yellow"&&"bg-yellow-100 text-yellow-600",t.color==="green"&&"bg-green-100 text-green-600",t.color==="blue"&&"bg-blue-100 text-blue-600",t.color==="purple"&&"bg-purple-100 text-purple-600",t.color==="brown"&&"bg-brown-100 text-brown-600"),children:t.value}),t.label&&e(O,{className:"text-xs",variant:"neutral",children:t.label})]}),e(te,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},t.id))}export{we as a};
|
|
@@ -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{m as s}from"./chunk-HVAJT6I7.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:s("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",r.error&&"border-red-500 focus:border-red-500 focus:ring-red-500",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:s("size-5 text-white",a==="password"&&"transition-opacity group-hover:opacity-0"),fill:"#ef4444"})}),a==="password"&&e("button",{className:s("absolute inset-y-0 right-0 flex items-center px-3",r.error&&"opacity-0 transition-opacity group-hover:opacity-100"),type:"button",onClick:()=>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{e as w}from"./chunk-NDIVMNAM.mjs";import{a as x,f as k,g as L}from"./chunk-TCVVRSYX.mjs";import{a as C}from"./chunk-5ORITTGP.mjs";import{a as v}from"./chunk-3SUGMN7W.mjs";import{a as b}from"./chunk-HXFSL4GV.mjs";import{a as _}from"./chunk-FVTULQVK.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-7LNA6Q2P.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{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
|