@dub/ui 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/button.d.ts +3 -2
- package/dist/button.mjs +1 -1
- package/dist/chunk-24PAGHMV.mjs +2 -0
- package/dist/chunk-26HRSWA5.mjs +2 -0
- package/dist/chunk-2BXHBOG2.mjs +2 -0
- package/dist/chunk-2DRQY6EG.mjs +2 -0
- package/dist/chunk-2IQQ3XKR.mjs +2 -0
- package/dist/chunk-2KJPKFVD.mjs +2 -0
- package/dist/chunk-2TD5EH4B.mjs +2 -0
- package/dist/chunk-2UYIXCTC.mjs +2 -0
- package/dist/chunk-3HF5F33I.mjs +2 -0
- package/dist/chunk-3HFCTHE7.mjs +2 -0
- package/dist/chunk-3RRHLKFM.mjs +2 -0
- package/dist/chunk-42IORCE7.mjs +2 -0
- package/dist/chunk-4BC2ALPY.mjs +2 -0
- package/dist/chunk-4CVKIBJ4.mjs +2 -0
- package/dist/chunk-4CZKQMZL.mjs +2 -0
- package/dist/chunk-4GSFBYXU.mjs +2 -0
- package/dist/chunk-4KQNE3VG.mjs +2 -0
- package/dist/chunk-4LECDE25.mjs +2 -0
- package/dist/chunk-4NQZFSHV.mjs +2 -0
- package/dist/chunk-4NX3Y4F2.mjs +3 -0
- package/dist/chunk-4SAS5QE3.mjs +2 -0
- package/dist/chunk-4XIZKBNO.mjs +2 -0
- package/dist/chunk-5AK5DIBT.mjs +2 -0
- package/dist/chunk-5GMIR3JV.mjs +2 -0
- package/dist/chunk-5IRT2GC4.mjs +2 -0
- package/dist/chunk-5JQTK7YH.mjs +2 -0
- package/dist/chunk-5JVK66OQ.mjs +2 -0
- package/dist/chunk-5KRQD37L.mjs +2 -0
- package/dist/chunk-5PRET4AC.mjs +2 -0
- package/dist/chunk-5XFADCCC.mjs +2 -0
- package/dist/chunk-5XTOIJZZ.mjs +2 -0
- package/dist/chunk-62W7HX5B.mjs +2 -0
- package/dist/chunk-62XHJYO7.mjs +2 -0
- package/dist/chunk-65PKFJBS.mjs +2 -0
- package/dist/chunk-6FKD5KON.mjs +2 -0
- package/dist/chunk-6FZUNJXF.mjs +2 -0
- package/dist/chunk-6G6SN7B6.mjs +2 -0
- package/dist/chunk-6H4T34IV.mjs +2 -0
- package/dist/chunk-6HWRYRXN.mjs +2 -0
- package/dist/chunk-6S7Q3CUV.mjs +2 -0
- package/dist/chunk-6VVGY7NG.mjs +2 -0
- package/dist/chunk-75RBATIC.mjs +2 -0
- package/dist/chunk-76MAMAS3.mjs +2 -0
- package/dist/chunk-7ATLPISA.mjs +2 -0
- package/dist/chunk-7NJZMHKF.mjs +2 -0
- package/dist/chunk-7OOMBYTM.mjs +2 -0
- package/dist/chunk-7XCR4PCA.mjs +2 -0
- package/dist/chunk-A74OTGJU.mjs +2 -0
- package/dist/chunk-AFKX5LKA.mjs +2 -0
- package/dist/chunk-ALDV73YU.mjs +2 -0
- package/dist/chunk-AMQP7UNR.mjs +2 -0
- package/dist/chunk-AWHZUS3M.mjs +2 -0
- package/dist/chunk-AZUYAA3B.mjs +2 -0
- package/dist/chunk-B3J3UYNN.mjs +2 -0
- package/dist/chunk-B4EMBXKM.mjs +2 -0
- package/dist/chunk-B6N2PPDN.mjs +2 -0
- package/dist/chunk-BEMWT6T4.mjs +2 -0
- package/dist/chunk-BFSEMV7O.mjs +2 -0
- package/dist/chunk-BICOPU62.mjs +2 -0
- package/dist/chunk-BJOLGTZU.mjs +2 -0
- package/dist/chunk-BSDHLZPJ.mjs +2 -0
- package/dist/chunk-BTRSTVVT.mjs +2 -0
- package/dist/chunk-BWCR2WNK.mjs +2 -0
- package/dist/chunk-C3UGHYZ3.mjs +2 -0
- package/dist/chunk-C443UJNF.mjs +2 -0
- package/dist/chunk-C4OHOKU7.mjs +2 -0
- package/dist/chunk-CCIYSB2I.mjs +2 -0
- package/dist/chunk-CD3OKRJP.mjs +2 -0
- package/dist/chunk-CWIZXTAG.mjs +2 -0
- package/dist/chunk-CZRFCCWW.mjs +2 -0
- package/dist/chunk-D4X7AZCW.mjs +2 -0
- package/dist/chunk-D6AYNZOU.mjs +2 -0
- package/dist/chunk-DC6H4U5E.mjs +2 -0
- package/dist/chunk-DJ7IDGAR.mjs +2 -0
- package/dist/chunk-DP43XRKA.mjs +2 -0
- package/dist/chunk-EAO2WB3F.mjs +2 -0
- package/dist/chunk-EDPW6EZU.mjs +3 -0
- package/dist/chunk-EIC5VJ6H.mjs +2 -0
- package/dist/chunk-EMHVXQOI.mjs +2 -0
- package/dist/chunk-ERPGZHFM.mjs +2 -0
- package/dist/chunk-F3INNWG3.mjs +2 -0
- package/dist/chunk-FFRM5EK7.mjs +2 -0
- package/dist/chunk-FPLVU76V.mjs +2 -0
- package/dist/chunk-FRPBQUAZ.mjs +2 -0
- package/dist/chunk-FSUOBN3E.mjs +2 -0
- package/dist/chunk-FXCJIIOI.mjs +2 -0
- package/dist/chunk-FZ7ASTMY.mjs +2 -0
- package/dist/chunk-GFFV3VJA.mjs +2 -0
- package/dist/chunk-GGPHRDL4.mjs +2 -0
- package/dist/chunk-GMOVVATN.mjs +2 -0
- package/dist/chunk-GPKJJ7XD.mjs +2 -0
- package/dist/chunk-GTRL5HDZ.mjs +2 -0
- package/dist/chunk-H5MT2JBD.mjs +2 -0
- package/dist/chunk-HDQRU53L.mjs +2 -0
- package/dist/chunk-HIGQKO3L.mjs +2 -0
- package/dist/chunk-HMAKVDR4.mjs +2 -0
- package/dist/chunk-HQAELNGO.mjs +2 -0
- package/dist/chunk-HS4HCMFA.mjs +2 -0
- package/dist/chunk-HSZWODU2.mjs +2 -0
- package/dist/chunk-HT2JIO4U.mjs +2 -0
- package/dist/chunk-HT3VFPLG.mjs +2 -0
- package/dist/chunk-HWGZKJVC.mjs +2 -0
- package/dist/chunk-HX7ZH2KT.mjs +2 -0
- package/dist/chunk-HYYV36TO.mjs +2 -0
- package/dist/chunk-I6UHGQ25.mjs +2 -0
- package/dist/chunk-IATDXU7N.mjs +2 -0
- package/dist/chunk-IJGFHGSK.mjs +2 -0
- package/dist/chunk-INA66ACI.mjs +2 -0
- package/dist/chunk-IWRMBZIF.mjs +2 -0
- package/dist/chunk-IYXT5R5H.mjs +2 -0
- package/dist/chunk-J5L3W2OW.mjs +2 -0
- package/dist/chunk-JAK7PHAN.mjs +2 -0
- package/dist/chunk-JBE5T3K4.mjs +2 -0
- package/dist/chunk-JBR5MV47.mjs +2 -0
- package/dist/chunk-JDQXBMPM.mjs +2 -0
- package/dist/chunk-JO2LRC23.mjs +2 -0
- package/dist/chunk-JTP242BW.mjs +2 -0
- package/dist/chunk-JWLLC5PL.mjs +2 -0
- package/dist/chunk-JYBTR2QH.mjs +2 -0
- package/dist/chunk-K3QGSPJG.mjs +2 -0
- package/dist/chunk-KARIJ6M2.mjs +2 -0
- package/dist/chunk-KGSMDGU2.mjs +2 -0
- package/dist/chunk-KJSV4RHK.mjs +2 -0
- package/dist/chunk-KLOXRVVO.mjs +2 -0
- package/dist/chunk-KMV52HOV.mjs +2 -0
- package/dist/chunk-KPDDXI7P.mjs +2 -0
- package/dist/chunk-KSXT7EIK.mjs +2 -0
- package/dist/chunk-KWIQABLU.mjs +2 -0
- package/dist/chunk-KXGOTS2X.mjs +2 -0
- package/dist/chunk-KYWPTXHU.mjs +2 -0
- package/dist/chunk-KZMAHZKM.mjs +2 -0
- package/dist/chunk-LAYZ2RJY.mjs +2 -0
- package/dist/chunk-LDVRA5VV.mjs +2 -0
- package/dist/chunk-LEZGKPYJ.mjs +2 -0
- package/dist/chunk-LLGJPXPT.mjs +2 -0
- package/dist/chunk-LMZCNLX3.mjs +2 -0
- package/dist/chunk-LO2G2CT2.mjs +2 -0
- package/dist/chunk-LSBH27T3.mjs +2 -0
- package/dist/chunk-LSK5LUWJ.mjs +2 -0
- package/dist/chunk-LUNK3QMB.mjs +2 -0
- package/dist/chunk-M3M5XZTO.mjs +2 -0
- package/dist/chunk-M4ZFFUSZ.mjs +2 -0
- package/dist/chunk-MH3JM7O5.mjs +2 -0
- package/dist/chunk-MMDCIEAW.mjs +2 -0
- package/dist/chunk-MMHS6SHX.mjs +2 -0
- package/dist/chunk-N4ZND7OJ.mjs +2 -0
- package/dist/chunk-N5F4S7ZO.mjs +2 -0
- package/dist/chunk-N6K3ZZIV.mjs +2 -0
- package/dist/chunk-N6OAVHFS.mjs +2 -0
- package/dist/chunk-ND6PJTSK.mjs +2 -0
- package/dist/chunk-NFUA7GFA.mjs +2 -0
- package/dist/chunk-NIU7CST6.mjs +2 -0
- package/dist/chunk-NQK57TFV.mjs +2 -0
- package/dist/chunk-NUWKQJQR.mjs +2 -0
- package/dist/chunk-O4ZS3TSV.mjs +2 -0
- package/dist/chunk-O5BD2D5C.mjs +2 -0
- package/dist/chunk-OAQWV3JF.mjs +2 -0
- package/dist/chunk-ODN3IBJZ.mjs +2 -0
- package/dist/chunk-ONNNCEIW.mjs +2 -0
- package/dist/chunk-OQSVXLPX.mjs +2 -0
- package/dist/chunk-OTYKWGDZ.mjs +2 -0
- package/dist/chunk-OW654EHD.mjs +2 -0
- package/dist/chunk-OWWK4NHD.mjs +2 -0
- package/dist/chunk-P53WXK44.mjs +2 -0
- package/dist/chunk-PJDE5LVX.mjs +2 -0
- package/dist/chunk-PL6MNWQG.mjs +2 -0
- package/dist/chunk-PLC23K7F.mjs +2 -0
- package/dist/chunk-PQADOHCB.mjs +2 -0
- package/dist/chunk-PV4J3KVC.mjs +2 -0
- package/dist/chunk-PXETRMCY.mjs +2 -0
- package/dist/chunk-PZEGTSYT.mjs +3 -0
- package/dist/chunk-Q4A24LMX.mjs +2 -0
- package/dist/chunk-Q5O6MA3F.mjs +2 -0
- package/dist/chunk-QFTJYHQ6.mjs +2 -0
- package/dist/chunk-QKZPNR57.mjs +2 -0
- package/dist/chunk-QLOZVLJC.mjs +2 -0
- package/dist/chunk-QO2BE6CX.mjs +2 -0
- package/dist/chunk-QUDIB7EW.mjs +2 -0
- package/dist/chunk-R2ZBJKQQ.mjs +2 -0
- package/dist/chunk-R75JQ3VJ.mjs +2 -0
- package/dist/chunk-RAM4I74Z.mjs +2 -0
- package/dist/chunk-RG764VDD.mjs +2 -0
- package/dist/chunk-RMWBUZYO.mjs +2 -0
- package/dist/chunk-RSHSBZIF.mjs +2 -0
- package/dist/chunk-RVOEGBJ3.mjs +2 -0
- package/dist/chunk-RVSMI6NV.mjs +2 -0
- package/dist/chunk-SFA53BM3.mjs +2 -0
- package/dist/chunk-SJG4BZQW.mjs +2 -0
- package/dist/chunk-SJTRMSUR.mjs +2 -0
- package/dist/chunk-SU4M6NKQ.mjs +2 -0
- package/dist/chunk-SWCB7V5F.mjs +2 -0
- package/dist/chunk-T4HGBMZ3.mjs +2 -0
- package/dist/chunk-T6Y5HC43.mjs +2 -0
- package/dist/chunk-TA7VE2DQ.mjs +2 -0
- package/dist/chunk-THAP36OP.mjs +2 -0
- package/dist/chunk-TPXNF32U.mjs +2 -0
- package/dist/chunk-TQ3LJN6V.mjs +2 -0
- package/dist/chunk-TWRGLURC.mjs +2 -0
- package/dist/chunk-TZL6BDHU.mjs +2 -0
- package/dist/chunk-U24AFZK2.mjs +2 -0
- package/dist/chunk-U2CFN46G.mjs +2 -0
- package/dist/chunk-UQE2MGLF.mjs +2 -0
- package/dist/chunk-UYMKRSMU.mjs +2 -0
- package/dist/chunk-V237HDPM.mjs +3 -0
- package/dist/chunk-V7R3F5IR.mjs +2 -0
- package/dist/chunk-VAV22I4N.mjs +2 -0
- package/dist/chunk-VFBAJNKE.mjs +3 -0
- package/dist/chunk-VG65BRKB.mjs +2 -0
- package/dist/chunk-VPWXUFYF.mjs +2 -0
- package/dist/chunk-W2JGCDMS.mjs +2 -0
- package/dist/chunk-WCUJTLDF.mjs +3 -0
- package/dist/chunk-WI4MJ6IC.mjs +2 -0
- package/dist/chunk-WIM34PET.mjs +2 -0
- package/dist/chunk-WKIIPCKT.mjs +2 -0
- package/dist/chunk-WR6BW3HR.mjs +2 -0
- package/dist/chunk-WUAXFVJN.mjs +3 -0
- package/dist/chunk-X5TH2EGG.mjs +2 -0
- package/dist/chunk-X7LO7T6H.mjs +2 -0
- package/dist/chunk-XBOZTYGG.mjs +2 -0
- package/dist/chunk-XDWKSCLD.mjs +2 -0
- package/dist/chunk-XFRMHFRM.mjs +2 -0
- package/dist/chunk-XH74EZRK.mjs +2 -0
- package/dist/chunk-XOZQVI63.mjs +2 -0
- package/dist/chunk-XSHUG7TX.mjs +2 -0
- package/dist/chunk-XYR2S75Q.mjs +2 -0
- package/dist/chunk-XZCONRW4.mjs +2 -0
- package/dist/chunk-Y35L2KMZ.mjs +2 -0
- package/dist/chunk-YDIHNJ5E.mjs +2 -0
- package/dist/chunk-YDNYXZSV.mjs +2 -0
- package/dist/chunk-YPQFWHJL.mjs +2 -0
- package/dist/chunk-YX2CGHVX.mjs +2 -0
- package/dist/chunk-ZDU2AK75.mjs +2 -0
- package/dist/chunk-ZHWIHWAO.mjs +2 -0
- package/dist/chunk-ZJ2J5CLK.mjs +2 -0
- package/dist/chunk-ZJLCEY6S.mjs +2 -0
- package/dist/chunk-ZLFNQ5YG.mjs +2 -0
- package/dist/chunk-ZRSIB2XP.mjs +2 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/logo.mjs +1 -1
- package/dist/icons/logotype.mjs +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress.d.ts +6 -0
- package/dist/progress.mjs +2 -0
- package/dist/switch.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as ze,b as Ge}from"./chunk-AUBFB4SI.mjs";var pe=ze((_r,de)=>{var M=1e3,P=M*60,L=P*60,I=L*24,Xe=I*7,qe=I*365.25;de.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return Je(e);if(t==="number"&&isFinite(e))return r.long?er(e):Qe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Je(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*qe;case"weeks":case"week":case"w":return t*Xe;case"days":case"day":case"d":return t*I;case"hours":case"hour":case"hrs":case"hr":case"h":return t*L;case"minutes":case"minute":case"mins":case"min":case"m":return t*P;case"seconds":case"second":case"secs":case"sec":case"s":return t*M;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function Qe(e){var r=Math.abs(e);return r>=I?Math.round(e/I)+"d":r>=L?Math.round(e/L)+"h":r>=P?Math.round(e/P)+"m":r>=M?Math.round(e/M)+"s":e+"ms"}function er(e){var r=Math.abs(e);return r>=I?j(e,r,I,"day"):r>=L?j(e,r,L,"hour"):r>=P?j(e,r,P,"minute"):r>=M?j(e,r,M,"second"):e+" ms"}function j(e,r,t,o){var n=r>=t*1.5;return Math.round(e/t)+" "+o+(n?"s":"")}});var Be=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:{amount:0},yearly:{amount:0}},limits:{links:25,clicks:1e3},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:F,color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:" 25 links/mo"},{text:" 1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"1 custom domain"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:`${$}/docs/api-reference/introduction`}}]},{name:"Pro",tagline:"For startups & small businesses",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ"]},limits:{links:250,clicks:25e3},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:F,color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:" 250 links/mo"},{text:" 25K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:`${$}/help/article/how-to-redirect-root-domain`}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",price:{monthly:49,yearly:39,ids:[]},limits:{links:1e3,clicks:1e5},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:F,color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:" 1,000 links/mo"},{text:" 100K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:`${$}/help/article/custom-qr-codes`}},{text:"Event callbacks",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",price:{monthly:{amount:null},yearly:{amount:null}},limits:{links:null,clicks:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}];var Z=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",$=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,$e=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),F=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",Fe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",je=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${Z}`,"api.localhost:8888"]),Ve=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Ke=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var Ye=["stats","changelog","terms","privacy","abuse"],He=[{slug:Z,verified:!0,primary:!0,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[]},...process.env.NEXT_PUBLIC_IS_DUB?[{slug:"chatg.pt",verified:!0,primary:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"]},{slug:"amzn.id",verified:!0,primary:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca"]},{slug:"spti.fi",verified:!0,primary:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"]}]:[]],We=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code Generator",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}];function ce(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=ce(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ue(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=ce(e))&&(o&&(o+=" "),o+=r);return o}var De=Ge(pe(),1);import fe from"crypto";var rr=128,C,O;function tr(e){!C||C.length<e?(C=Buffer.allocUnsafe(e*rr),fe.getRandomValues(C),O=0):O+e>C.length&&(fe.getRandomValues(C),O=0),O+=e}function or(e){return tr(e-=0),C.subarray(O-e,O)}function ar(e,r,t){let o=(2<<31-Math.clz32(e.length-1|1))-1,n=Math.ceil(1.6*o*r/e.length);return(i=r)=>{let a="";for(;;){let s=t(n),l=n;for(;l--;)if(a+=e[s[l]&o]||"",a.length===i)return a}}}function me(e,r=21){return ar(e,r,or)}function ge(){for(var e=0,r,t,o="";e<arguments.length;)(r=arguments[e++])&&(t=he(r))&&(o&&(o+=" "),o+=t);return o}function he(e){if(typeof e=="string")return e;for(var r,t="",o=0;o<e.length;o++)e[o]&&(r=he(e[o]))&&(t&&(t+=" "),t+=r);return t}var q="-";function ye(e){var r=sr(e),t=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,n=o===void 0?{}:o;function i(s){var l=s.split(q);return l[0]===""&&l.length!==1&&l.shift(),we(l,r)||nr(s)}function a(s,l){var u=t[s]||[];return l&&n[s]?[].concat(u,n[s]):u}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function we(e,r){var a;if(e.length===0)return r.classGroupId;var t=e[0],o=r.nextPart.get(t),n=o?we(e.slice(1),o):void 0;if(n)return n;if(r.validators.length!==0){var i=e.join(q);return(a=r.validators.find(function(s){var l=s.validator;return l(i)}))==null?void 0:a.classGroupId}}var be=/^\[(.+)\]$/;function nr(e){if(be.test(e)){var r=be.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function sr(e){var r=e.theme,t=e.prefix,o={nextPart:new Map,validators:[]},n=lr(Object.entries(e.classGroups),t);return n.forEach(function(i){var a=i[0],s=i[1];X(s,o,a,r)}),o}function X(e,r,t,o){e.forEach(function(n){if(typeof n=="string"){var i=n===""?r:ve(r,n);i.classGroupId=t;return}if(typeof n=="function"){if(ir(n)){X(n(o),r,t,o);return}r.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(a){var s=a[0],l=a[1];X(l,ve(r,s),t,o)})})}function ve(e,r){var t=e;return r.split(q).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function ir(e){return e.isThemeGetter}function lr(e,r){return r?e.map(function(t){var o=t[0],n=t[1],i=n.map(function(a){return typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(s){var l=s[0],u=s[1];return[r+l,u]})):a});return[o,i]}):e}function xe(e){if(e<1)return{get:function(){},set:function(){}};var r=0,t=new Map,o=new Map;function n(i,a){t.set(i,a),r++,r>e&&(r=0,o=t,t=new Map)}return{get:function(a){var s=t.get(a);if(s!==void 0)return s;if((s=o.get(a))!==void 0)return n(a,s),s},set:function(a,s){t.has(a)?t.set(a,s):n(a,s)}}}var J="!";function Ae(e){var r=e.separator||":",t=r.length===1,o=r[0],n=r.length;return function(a){for(var s=[],l=0,u=0,f,d=0;d<a.length;d++){var m=a[d];if(l===0){if(m===o&&(t||a.slice(d,d+n)===r)){s.push(a.slice(u,d)),u=d+n;continue}if(m==="/"){f=d;continue}}m==="["?l++:m==="]"&&l--}var h=s.length===0?a:a.substring(u),y=h.startsWith(J),g=y?h.substring(1):h,w=f&&f>u?f-u:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:w}}}function ke(e){if(e.length<=1)return e;var r=[],t=[];return e.forEach(function(o){var n=o[0]==="[";n?(r.push.apply(r,t.sort().concat([o])),t=[]):t.push(o)}),r.push.apply(r,t.sort()),r}function Se(e){return{cache:xe(e.cacheSize),splitModifiers:Ae(e),...ye(e)}}var cr=/\s+/;function Ee(e,r){var t=r.splitModifiers,o=r.getClassGroupId,n=r.getConflictingClassGroupIds,i=new Set;return e.trim().split(cr).map(function(a){var s=t(a),l=s.modifiers,u=s.hasImportantModifier,f=s.baseClassName,d=s.maybePostfixModifierPosition,m=o(d?f.substring(0,d):f),h=Boolean(d);if(!m){if(!d)return{isTailwindClass:!1,originalClassName:a};if(m=o(f),!m)return{isTailwindClass:!1,originalClassName:a};h=!1}var y=ke(l).join(":"),g=u?y+J:y;return{isTailwindClass:!0,modifierId:g,classGroupId:m,originalClassName:a,hasPostfixModifier:h}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var s=a.modifierId,l=a.classGroupId,u=a.hasPostfixModifier,f=s+l;return i.has(f)?!1:(i.add(f),n(l,u).forEach(function(d){return i.add(s+d)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Ie(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var o,n,i,a=s;function s(u){var f=r[0],d=r.slice(1),m=d.reduce(function(h,y){return y(h)},f());return o=Se(m),n=o.cache.get,i=o.cache.set,a=l,l(u)}function l(u){var f=n(u);if(f)return f;var d=Ee(u,o);return i(u,d),d}return function(){return a(ge.apply(null,arguments))}}function c(e){var r=function(o){return o[e]||[]};return r.isThemeGetter=!0,r}var Te=/^\[(?:([a-z-]+):)?(.+)\]$/i,ur=/^\d+\/\d+$/,dr=new Set(["px","full","screen"]),pr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|^0$/,mr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function v(e){return E(e)||dr.has(e)||ur.test(e)||A(e)}function A(e){return T(e,"length",gr)}function Me(e){return T(e,"size",Ne)}function Pe(e){return T(e,"position",Ne)}function Le(e){return T(e,"url",hr)}function R(e){return T(e,"number",E)}function E(e){return!Number.isNaN(Number(e))}function Oe(e){return e.endsWith("%")&&E(e.slice(0,-1))}function _(e){return Ce(e)||T(e,"number",Ce)}function p(e){return Te.test(e)}function N(){return!0}function k(e){return pr.test(e)}function _e(e){return T(e,"",br)}function T(e,r,t){var o=Te.exec(e);return o?o[1]?o[1]===r:t(o[2]):!1}function gr(e){return fr.test(e)}function Ne(){return!1}function hr(e){return e.startsWith("url(")}function Ce(e){return Number.isInteger(Number(e))}function br(e){return mr.test(e)}function Ue(){var e=c("colors"),r=c("spacing"),t=c("blur"),o=c("brightness"),n=c("borderColor"),i=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),l=c("contrast"),u=c("grayscale"),f=c("hueRotate"),d=c("invert"),m=c("gap"),h=c("gradientColorStops"),y=c("gradientColorStopPositions"),g=c("inset"),w=c("margin"),S=c("opacity"),x=c("padding"),ee=c("saturate"),V=c("scale"),re=c("sepia"),te=c("skew"),oe=c("space"),ae=c("translate"),K=function(){return["auto","contain","none"]},Y=function(){return["auto","hidden","clip","visible","scroll"]},H=function(){return["auto",r]},ne=function(){return["",v]},z=function(){return["auto",E,p]},se=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},ie=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},U=function(){return["","0",p]},le=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},D=function(){return[E,R]},B=function(){return[E,p]};return{cacheSize:500,theme:{colors:[N],spacing:[v],blur:["none","",k,A],brightness:D(),borderColor:[e],borderRadius:["none","","full",k,A],borderSpacing:[r],borderWidth:ne(),contrast:D(),grayscale:U(),hueRotate:B(),invert:U(),gap:[r],gradientColorStops:[e],gradientColorStopPositions:[Oe,A],inset:H(),margin:H(),opacity:D(),padding:[r],saturate:D(),scale:D(),sepia:U(),skew:B(),space:[r],translate:[r]},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(se(),[p])}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",_]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:[_]},p]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[_]},p]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",r]}],"min-w":[{"min-w":["min","max","fit",v]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[k]},k,A]}],h:[{h:[r,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",v]}],"max-h":[{"max-h":[r,"min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",R]}],"font-family":[{font:[N]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",A]}],"line-clamp":[{"line-clamp":["none",E,R]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",v]}],"underline-offset":[{"underline-offset":["auto",v]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[r]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(se(),[Pe])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Me]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Le]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:G()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[v]}],"outline-w":[{outline:[v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[v]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,_e]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":ie()}],"bg-blend":[{"bg-blend":ie()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",k,p]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[_,p]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[r]}],"scroll-mx":[{"scroll-mx":[r]}],"scroll-my":[{"scroll-my":[r]}],"scroll-ms":[{"scroll-ms":[r]}],"scroll-me":[{"scroll-me":[r]}],"scroll-mt":[{"scroll-mt":[r]}],"scroll-mr":[{"scroll-mr":[r]}],"scroll-mb":[{"scroll-mb":[r]}],"scroll-ml":[{"scroll-ml":[r]}],"scroll-p":[{"scroll-p":[r]}],"scroll-px":[{"scroll-px":[r]}],"scroll-py":[{"scroll-py":[r]}],"scroll-ps":[{"scroll-ps":[r]}],"scroll-pe":[{"scroll-pe":[r]}],"scroll-pt":[{"scroll-pt":[r]}],"scroll-pr":[{"scroll-pr":[r]}],"scroll-pb":[{"scroll-pb":[r]}],"scroll-pl":[{"scroll-pl":[r]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[v,R]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Q=Ie(Ue);function Pt(...e){return Q(ue(e))}var Lt=me("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",7);async function Ot(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),n=new Error(o);throw n.status=t.status,n}return t.json()}function _t(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var n=t.slice().reverse().find(function(i){return e>=i.value});return n?(e/n.value).toFixed(r.digits).replace(o,"$1")+n.symbol:"0"}var Nt=(e,{withAgo:r}={})=>{if(!e)return"Never";let t=Date.now()-new Date(e).getTime();return t<1e3?"Just now":t>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,De.default)(t)}${r?" ago":""}`};var Ut=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Dt=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),Rt=new RegExp(/^[a-zA-Z0-9\-]+$/);var Re=e=>{try{return new URL(e),!0}catch{return!1}},zt=e=>{if(Re(e))return new URL(e).toString();try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{return null}},Gt=e=>{if(Re(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};var Bt={cron:process.env.DUB_SLACK_HOOK_CRON,links:process.env.DUB_SLACK_HOOK_LINKS};export{F as a,Ye as b,We as c,Pt as d,Ot as e,_t as f,Nt as g,zt as h,Gt as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as r}from"./chunk-HDQRU53L.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b}from"./chunk-2TD5EH4B.mjs";import{a as s}from"./chunk-26HRSWA5.mjs";import{d as l}from"./chunk-N4ZND7OJ.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function m({text:i,variant:t="primary",loading:n,icon:a,shortcut:o,disabledTooltip:d,...r}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:o})]})}):u("button",{type:r.onClick?"button":"submit",className:l(r.className,"group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",r.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"}),disabled:r.disabled||n,...r,children:[n?e(s,{}):a||null,e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-ZJLCEY6S.mjs";import{d}from"./chunk-N4ZND7OJ.mjs";import{useMemo as x,useState as u}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:m,description:g,inputData:t,helpText:f,buttonText:c="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=u(t.defaultValue),[l,n]=u(!1),b=x(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:m}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:f||""}}),e("div",{children:e(i,{text:c,loading:l,disabled:b,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as t}from"./chunk-5AK5DIBT.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-200 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as e}from"./chunk-HDQRU53L.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as C}from"./chunk-EAO2WB3F.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as h}from"./chunk-QLOZVLJC.mjs";import{a as n}from"./chunk-5PRET4AC.mjs";import{a as g}from"./chunk-V237HDPM.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-HDQRU53L.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Help Center",href:"/help"},{name:"Pricing",href:"/pricing"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as d}from"./chunk-6VVGY7NG.mjs";import{useMemo as x,useState as i}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function S({title:m,description:g,inputData:t,helpText:f,buttonText:c="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=i(t.defaultValue),[l,n]=i(!1),b=x(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:m}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:(void 0)("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:f||""}}),e("div",{children:e(d,{text:c,loading:l,disabled:b,disabledTooltip:s})})]})]})}export{S as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-Q5O6MA3F.mjs";import{e as g,h as f,i as b}from"./chunk-ALDV73YU.mjs";import{Link2 as y}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as k,useMemo as R,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as v,jsx as e,jsxs as r}from"react/jsx-runtime";function D({defaultUrl:t}){let h=w(),l=L(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=W(f(i),500),d=R(()=>b(a||""),[a]),{data:x,isValidating:N}=P(a&&`/api/edge/metatags?url=${a}`,g,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=x||{},s=E(null);return k(()=>{!t&&s.current&&s.current.select()},[t]),r(v,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>h.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[N&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function M({defaultUrl:t}){return r(v,{children:[r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{D as a,M as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as h}from"./chunk-HMAKVDR4.mjs";import{a as n}from"./chunk-6H4T34IV.mjs";import{a as g}from"./chunk-VFBAJNKE.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-5AK5DIBT.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as a}from"./chunk-ZRSIB2XP.mjs";import{d as i}from"./chunk-SFA53BM3.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:r,checked:d=!0,disabled:o=!1,disabledTooltip:n}){return n?e(a,{content:n,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:o,className:i(o?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,r)})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as d}from"./chunk-3HF5F33I.mjs";import{a as b}from"./chunk-NFUA7GFA.mjs";import{d as a}from"./chunk-HDQRU53L.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function g({text:n,variant:r="primary",loading:o,icon:i,disabledTooltip:s,...e}){return s?t(d,{content:s,children:t("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:t("p",{children:n})})}):l("button",{type:e.onClick?"button":"submit",className:a("flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",e.disabled||o?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":r==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":r==="secondary","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":r==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":r==="danger"},e.className),disabled:e.disabled||o,...e,children:[o?t(b,{}):i||null,t("p",{children:n})]})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as h}from"./chunk-4QUZYUFC.mjs";import{a as n}from"./chunk-WKHVHPMP.mjs";import{a as g}from"./chunk-34IUXLD6.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-YQZMCRMA.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as x}from"./chunk-HYYV36TO.mjs";import{a as b}from"./chunk-ZWEN5DP4.mjs";import{a as f}from"./chunk-OWWK4NHD.mjs";import{a as v}from"./chunk-ZHWIHWAO.mjs";import{a as l,b as g,d as c,e as p}from"./chunk-EAO2WB3F.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as h}from"./chunk-KMV52HOV.mjs";import{a as n}from"./chunk-HT3VFPLG.mjs";import{a as g}from"./chunk-WUAXFVJN.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-ALDV73YU.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Help Center",href:"/help"},{name:"Pricing",href:"/pricing"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as a}from"./chunk-HX7ZH2KT.mjs";import{d as i}from"./chunk-N4ZND7OJ.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:s,trackDimensions:c,thumbDimensions:l,thumbTranslate:r,checked:d=!0,disabled:o=!1,disabledTooltip:n}){return n?e(a,{content:n,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:d,name:"switch",onCheckedChange:u=>s(u),disabled:o,className:i(o?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",c),children:e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",l,r)})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b}from"./chunk-XDWKSCLD.mjs";import{a}from"./chunk-TWGYWX44.mjs";import{jsx as t,jsxs as l}from"react/jsx-runtime";function m({text:n,variant:r="primary",loading:o,icon:i,disabledTooltip:s,...e}){return s?t(b,{content:s,children:t("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:t("p",{children:n})})}):l("button",{type:e.onClick?"button":"submit",className:(void 0)("flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",e.disabled||o?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":r==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":r==="secondary","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":r==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":r==="danger"},e.className),disabled:e.disabled||o,...e,children:[o?t(a,{}):i||null,t("p",{children:n})]})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as t}from"./chunk-HDQRU53L.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-200 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as h}from"./chunk-TWRGLURC.mjs";import{a as n}from"./chunk-TQ3LJN6V.mjs";import{a as g}from"./chunk-4NX3Y4F2.mjs";import{a as c}from"./chunk-T4YFARK5.mjs";import{a as d}from"./chunk-5EWSH7PD.mjs";import{c as i}from"./chunk-SFA53BM3.mjs";import o from"@vercel/analytics";import m from"next/link";import{useParams as f}from"next/navigation";import{jsx as e,jsxs as r}from"react/jsx-runtime";var l={features:p.map(({shortTitle:t,slug:s})=>({name:t,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customer Stories",href:"/customers"},{name:"Help Center",href:"/help"},{name:"Pricing",href:"/pricing"}],legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:i.map(({name:t,slug:s})=>({name:t,href:`/tools/${s}`}))};function L(){let{domain:t="dub.co"}=f(),s=a=>t==="dub.co"?a:`https://dub.co${a}`;return e("footer",{className:"z-10 border-t border-gray-200 bg-white/50 py-8 backdrop-blur-lg",children:r(h,{className:"pt-10",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-8",children:[r(m,{href:s("/"),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:"footer item (logo)"})}},children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(n,{className:"h-7 text-gray-600"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),r("div",{className:"flex items-center space-x-2",children:[r("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Twitter"}),e(g,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"Github"}),e(c,{className:"h-5 w-5 text-gray-600"})]}),e("div",{className:"h-8 border-l border-gray-200"}),r("a",{href:"https://www.linkedin.com/company/dubhq/",target:"_blank",rel:"noreferrer",className:"rounded-md p-2 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(d,{className:"h-5 w-5",fill:"#52525B"})]})]})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-900",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]}),r("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-600",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(m,{href:s(a.href),...t!=="dub.co"&&{onClick:()=>{o.track("Referred from custom domain",{domain:t,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-900",children:a.name})},a.name))})]})]})]})]}),e("div",{className:"mt-16 border-t border-gray-900/10 pt-8 sm:mt-20 lg:mt-24",children:r("p",{className:"text-sm leading-5 text-gray-500",children:["\xA9 ",new Date().getFullYear()," ",process.env.NEXT_PUBLIC_APP_NAME]})})]})})}export{L as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-HT2JIO4U.mjs";import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as t,d as n,e as d}from"./chunk-YQZMCRMA.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as f}from"./chunk-UJKRGIPQ.mjs";import{d as i}from"./chunk-ALDV73YU.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl md:rounded-2xl",d),children:l})]})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-YDIHNJ5E.mjs";import{e as g,h as f,i as b}from"./chunk-5AK5DIBT.mjs";import{Link2 as y}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as k,useMemo as R,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as v,jsx as e,jsxs as r}from"react/jsx-runtime";function D({defaultUrl:t}){let h=w(),l=L(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=W(f(i),500),d=R(()=>b(a||""),[a]),{data:x,isValidating:N}=P(a&&`/api/edge/metatags?url=${a}`,g,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=x||{},s=E(null);return k(()=>{!t&&s.current&&s.current.select()},[t]),r(v,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>h.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[N&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function M({defaultUrl:t}){return r(v,{children:[r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{D as a,M as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as r}from"./chunk-YX2CGHVX.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as r}from"./chunk-YX2CGHVX.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function s({className:o}){return t("div",{className:"group",children:[l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 248 204",className:r("group-hover:hidden",o),children:l("path",{fill:"currentColor",d:"M221.95 51.29c.15 2.17.15 4.34.15 6.53 0 66.73-50.8 143.69-143.69 143.69v-.04c-27.44.04-54.31-7.82-77.41-22.64 3.99.48 8 .72 12.02.73 22.74.02 44.83-7.61 62.72-21.66-21.61-.41-40.56-14.5-47.18-35.07 7.57 1.46 15.37 1.16 22.8-.87-23.56-4.76-40.51-25.46-40.51-49.5v-.64c7.02 3.91 14.88 6.08 22.92 6.32C11.58 63.31 4.74 33.79 18.14 10.71c25.64 31.55 63.47 50.73 104.08 52.76-4.07-17.54 1.49-35.92 14.61-48.25 20.34-19.12 52.33-18.14 71.45 2.19 11.31-2.23 22.15-6.38 32.07-12.26-3.77 11.69-11.66 21.62-22.2 27.93 10.01-1.18 19.79-3.86 29-7.95-6.78 10.16-15.32 19.01-25.2 26.16z"})}),l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1668.56 1221.19",className:r("hidden scale-150 group-hover:block",o),children:l("g",{transform:"translate(52.390088,-25.058597)",children:l("path",{fill:"currentColor",d:`M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99
|
|
3
|
+
h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z`})})})]})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-XFRMHFRM.mjs";import{d}from"./chunk-N4ZND7OJ.mjs";import{useMemo as x,useState as u}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:m,description:g,inputData:t,helpText:f,buttonText:c="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=u(t.defaultValue),[l,n]=u(!1),b=x(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:m}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:f||""}}),e("div",{children:e(i,{text:c,loading:l,disabled:b,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as C}from"./chunk-ALDV73YU.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-QKZPNR57.mjs";import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as t,d as n,e as d}from"./chunk-5AK5DIBT.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as x}from"./chunk-HYYV36TO.mjs";import{a as b}from"./chunk-ZWEN5DP4.mjs";import{a as f}from"./chunk-HMAKVDR4.mjs";import{a as v}from"./chunk-6H4T34IV.mjs";import{a as l,b as g,d as c,e as p}from"./chunk-5AK5DIBT.mjs";import*as i from"@radix-ui/react-navigation-menu";import s from"@vercel/analytics";import{ChevronDown as w}from"lucide-react";import r from"next/link";import{useParams as M,useSelectedLayoutSegment as P}from"next/navigation";import L from"swr";import{Fragment as R,jsx as e,jsxs as a}from"react/jsx-runtime";var C=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Enterprise",slug:"enterprise"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"}];function U(){let{domain:t="dub.co"}=M(),h=x(80),m=P(),d=m==="help",{data:u,isLoading:N}=L(t==="dub.co"&&"/api/auth/session",p,{dedupingInterval:6e4});return e("div",{className:c("sticky inset-x-0 top-0 z-30 w-full transition-all",{"border-b border-gray-200 bg-white/75 backdrop-blur-lg":h,"border-b border-gray-200 bg-white":m&&g.includes(m)}),children:e(f,{...d&&{className:"max-w-screen-lg"},children:a("div",{className:"flex h-14 items-center justify-between",children:[a("div",{className:"flex items-center space-x-4",children:[e(r,{href:t==="dub.co"?"/":"https://dub.co",...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"logo"})}},children:e(v,{})}),d?a("div",{className:"flex items-center",children:[e("div",{className:"mr-3 h-5 border-l-2 border-gray-400"}),e(r,{href:"/help",className:"font-display text-lg font-bold text-gray-700",children:"Help Center"})]}):a(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[a(i.List,{className:"flex flex-row space-x-2 p-4",children:[a(i.Item,{children:[a(i.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none",children:[e("p",{className:c("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black",{"text-black":m==="features"}),children:"Features"}),e(w,{className:"h-4 w-4 transition-all group-data-[state=open]:rotate-180"})]}),e(i.Content,{children:e("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:b.map(({slug:n,icon:o,title:k,shortTitle:y})=>a(r,{href:t==="dub.co"?`/${n}`:`https://dub.co/${n}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200",children:[a("div",{className:"flex items-center space-x-2",children:[e(o,{className:"h-4 w-4 text-gray-700"}),e("p",{className:"text-sm font-medium text-gray-700",children:y})]}),e("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500",children:k})]},n))})})]}),C.map(({name:n,slug:o})=>e(i.Item,{asChild:!0,children:e(r,{id:`nav-${o}`,href:t==="dub.co"?`/${o}`:`https://dub.co/${o}`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:`navbar item (${o})`})}},className:c("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",{"text-black":m===o}),children:n},o)},o))]}),e(i.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg"})]})]}),e("div",{className:"hidden lg:block",children:u&&Object.keys(u).length>0?e(r,{href:l,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Dashboard"}):N?null:a(R,{children:[e(r,{href:`${l}/login`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black",children:"Log in"}),e(r,{href:`${l}/register`,...t!=="dub.co"&&{onClick:()=>{s.track("Referred from custom domain",{domain:t,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-white hover:text-black",children:"Sign Up"})]})})]})})})}export{C as a,U as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as d}from"./chunk-HYYV36TO.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as i}from"vaul";import{jsx as e,jsxs as r}from"react/jsx-runtime";function g({children:t,content:a,align:s="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=d();return m||p?r(i.Root,{open:n,onOpenChange:l,children:[e("div",{className:"sm:hidden",children:t}),e(i.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),r(i.Portal,{children:[r(i.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(i.Overlay,{})]})]}):r(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:s,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-NIU7CST6.mjs";import{e as g,h as f,i as b}from"./chunk-EAO2WB3F.mjs";import{Link2 as y}from"lucide-react";import{useRouter as w,useSearchParams as L}from"next/navigation";import{useEffect as k,useMemo as R,useRef as E}from"react";import P from"swr";import{useDebounce as W}from"use-debounce";import{Fragment as v,jsx as e,jsxs as r}from"react/jsx-runtime";function D({defaultUrl:t}){let h=w(),l=L(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=W(f(i),500),d=R(()=>b(a||""),[a]),{data:x,isValidating:N}=P(a&&`/api/edge/metatags?url=${a}`,g,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=x||{},s=E(null);return k(()=>{!t&&s.current&&s.current.select()},[t]),r(v,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>h.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[N&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function M({defaultUrl:t}){return r(v,{children:[r("div",{className:"relative flex items-center",children:[e(y,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{D as a,M as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import*as r from"@radix-ui/react-tooltip";import{HelpCircle as m}from"lucide-react";import c from"next/link";import{useState as x}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function b({children:t}){return e(r.Provider,{delayDuration:0,children:t})}function p({children:t,content:o,side:i="top"}){let[n,l]=x(!1);return a(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{asChild:!0,onClick:()=>{l(!0)},onBlur:()=>{l(!1)},children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,side:i,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function v({title:t,cta:o,href:i,target:n,onClick:l}){return a("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(i?e(c,{href:i,...n?{target:n}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):l?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:l,children:o}):null)]})}function h({title:t,cta:o,href:i}){return a("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function T({content:t}){return e(p,{content:t,children:e(m,{className:"h-4 w-4 text-gray-500"})})}function y({value:t,unit:o="total clicks",children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:e(p,{content:a("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[a("p",{className:"text-sm font-semibold text-gray-700",children:[(void 0)(t||0,{full:!0})," ",o]}),n&&a("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",(void 0)(n,{withAgo:!0})]})]}),children:i})}export{b as a,p as b,v as c,h as d,T as e,y as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-2TD5EH4B.mjs";import{a as b}from"./chunk-26HRSWA5.mjs";import{d as l}from"./chunk-N4ZND7OJ.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function m({text:i,variant:t="primary",loading:n,icon:a,shortcut:r,disabledTooltip:d,...o}){return d?e(s,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),r&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):u("button",{type:o.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",o.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"}),disabled:o.disabled||n,...o,children:[n?e(b,{}):a||null,e("p",{children:i}),r&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:r})]})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-N6K3ZZIV.mjs";import{d}from"./chunk-N4ZND7OJ.mjs";import{useMemo as x,useState as u}from"react";import{jsx as e,jsxs as a}from"react/jsx-runtime";function T({title:m,description:g,inputData:t,helpText:f,buttonText:c="Save Changes",disabledTooltip:s,handleSubmit:p}){let[r,y]=u(t.defaultValue),[l,n]=u(!1),b=x(()=>l||!r||r===t.defaultValue,[l,r,t.defaultValue]);return a("form",{onSubmit:async o=>{o.preventDefault(),n(!0),await p({[t.name]:r}),n(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[a("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[a("div",{className:"flex flex-col space-y-3",children:[e("h2",{className:"text-xl font-medium",children:m}),e("p",{className:"text-sm text-gray-500",children:g})]}),typeof t.defaultValue=="string"?e("input",{...t,type:"text",required:!0,disabled:!!s,onChange:o=>y(o.target.value),className:d("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":s})}):e("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),a("div",{className:"flex items-center justify-between rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[e("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:f||""}}),e("div",{children:e(i,{text:c,loading:l,disabled:b,disabledTooltip:s})})]})]})}export{T as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as e}from"./chunk-EAO2WB3F.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as u}from"./chunk-4CZKQMZL.mjs";import{a as p}from"./chunk-ZWEN5DP4.mjs";import{a as t,d as n,e as d}from"./chunk-EAO2WB3F.mjs";import{ChevronDown as N,Menu as v,X as w}from"lucide-react";import o from"next/link";import{useParams as x}from"next/navigation";import{useEffect as k,useState as b}from"react";import L from"swr";import{Fragment as h,jsx as e,jsxs as s}from"react/jsx-runtime";function E(){let{domain:r="dub.co"}=x(),[a,c]=b(!1),[m,y]=b(!1);k(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:f,isLoading:z}=L(r==="dub.co"&&"/api/auth/session",d,{dedupingInterval:6e4});return s(h,{children:[e("button",{onClick:()=>c(!a),className:n("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600"}):e(v,{className:"h-5 w-5 text-gray-600"})}),e("nav",{className:n("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200",children:[s("li",{className:"py-3",children:[s("button",{className:"flex w-full justify-between",onClick:()=>y(!m),children:[e("p",{className:"font-semibold",children:"Features"}),e(N,{className:n("h-5 w-5 text-gray-500 transition-all",m&&"rotate-180")})]}),m&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:l,icon:i,shortTitle:g})=>s(o,{href:r==="dub.co"?`/${l}`:`https://dub.co/${l}`,onClick:()=>c(!1),className:"flex w-full space-x-2",children:[e(i,{className:"h-5 w-5 text-gray-500"}),e("span",{className:"text-sm",children:g})]},l))})]}),u.map(({name:l,slug:i})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>c(!1),className:"flex w-full font-semibold capitalize",children:l})},i)),f&&Object.keys(f).length>0?e("li",{className:"py-3",children:e(o,{href:t,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(h,{children:[e("li",{className:"py-3",children:e(o,{href:`${t}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${t}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b}from"./chunk-2TD5EH4B.mjs";import{a as s}from"./chunk-26HRSWA5.mjs";import{d as l}from"./chunk-N4ZND7OJ.mjs";import{jsx as e,jsxs as c}from"react/jsx-runtime";function m({text:i,variant:r="primary",loading:n,icon:d,shortcut:o,disabledTooltip:a,...t}){return a?e(b,{content:a,children:c("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),o&&e("kbd",{className:"text-gray-400md:inline-block hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light",children:o})]})}):c("button",{type:t.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",t.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":r==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":r==="secondary","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":r==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":r==="danger"},t.className),disabled:t.disabled||n,...t,children:[n?e(s,{}):d||null,e("p",{children:i}),o&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:o})]})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b}from"./chunk-2TD5EH4B.mjs";import{a as s}from"./chunk-26HRSWA5.mjs";import{d as l}from"./chunk-N4ZND7OJ.mjs";import{jsx as e,jsxs as u}from"react/jsx-runtime";function p({text:i,variant:t="primary",loading:n,icon:a,shortcut:r,disabledTooltip:d,...o}){return d?e(b,{content:d,children:u("div",{className:"flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",children:[e("p",{children:i}),r&&e("kbd",{className:"hidden rounded bg-zinc-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",children:r})]})}):u("button",{type:o.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all focus:outline-none",o.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":t==="primary","border-gray-200 bg-white text-gray-500 hover:border-black hover:text-black":t==="secondary","border-transparent text-gray-500 transition-all duration-75 hover:bg-gray-100":t==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":t==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":t==="danger"},"justify-start px-2"),disabled:o.disabled||n,...o,children:[n?e(s,{}):a||null,e("p",{children:i}),r&&e("kbd",{className:"hidden rounded bg-zinc-700 px-2 py-0.5 text-xs font-light text-gray-400 transition-all duration-75 group-hover:bg-gray-100 group-hover:text-gray-500 md:inline-block",children:r})]})}export{p as a};
|