@dub/utils 0.1.20 → 0.1.22
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/chunk-2J3222ZP.mjs +1 -0
- package/dist/chunk-53SZZ2QK.mjs +1 -0
- package/dist/chunk-A7R7WCTE.mjs +1 -0
- package/dist/chunk-AQPTJK67.mjs +1 -0
- package/dist/chunk-BH2ZEP2D.mjs +1 -0
- package/dist/chunk-CP4WO7MM.mjs +1 -0
- package/dist/chunk-DOLEV26Y.mjs +1 -0
- package/dist/chunk-DXXNBMLQ.mjs +1 -0
- package/dist/chunk-EACRDJYD.mjs +1 -0
- package/dist/chunk-GKEXV4FT.mjs +1 -0
- package/dist/chunk-GUMSQXVY.mjs +1 -0
- package/dist/chunk-HR4YFT2T.mjs +1 -0
- package/dist/chunk-JYUTK2AF.mjs +1 -0
- package/dist/chunk-KIDNKMJ2.mjs +1 -0
- package/dist/chunk-LNKK4S5Y.mjs +1 -0
- package/dist/chunk-MJFOXBXO.mjs +1 -0
- package/dist/chunk-MP5IS4V2.mjs +1 -0
- package/dist/chunk-QSMPU6JE.mjs +1 -0
- package/dist/chunk-QUNCYYY6.mjs +1 -0
- package/dist/chunk-QZ5Q74ZF.mjs +1 -0
- package/dist/chunk-RCOH25PA.mjs +1 -0
- package/dist/chunk-SYBLFZ7Q.mjs +1 -0
- package/dist/chunk-T65LX3N5.mjs +1 -0
- package/dist/chunk-TOPVR7JX.mjs +1 -0
- package/dist/chunk-UWXN5NEH.mjs +1 -0
- package/dist/chunk-V56LWQJL.mjs +1 -0
- package/dist/chunk-VH3JANSU.mjs +1 -0
- package/dist/chunk-VXBAEBCQ.mjs +1 -0
- package/dist/chunk-XB7RPAE5.mjs +1 -0
- package/dist/chunk-ZOACWKR7.mjs +1 -0
- package/dist/constants/dub-domains.mjs +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/functions/construct-metadata.d.ts +2 -1
- package/dist/functions/construct-metadata.mjs +1 -1
- package/dist/functions/datetime/billing-utils.d.ts +5 -0
- package/dist/functions/datetime/billing-utils.mjs +1 -0
- package/dist/functions/datetime/format-date.d.ts +3 -0
- package/dist/functions/datetime/format-date.mjs +1 -0
- package/dist/functions/datetime/format-datetime.d.ts +3 -0
- package/dist/functions/datetime/format-datetime.mjs +1 -0
- package/dist/functions/datetime/format-period.d.ts +6 -0
- package/dist/functions/datetime/format-period.mjs +1 -0
- package/dist/functions/datetime/get-datetime-local.d.ts +3 -0
- package/dist/functions/datetime/get-datetime-local.mjs +1 -0
- package/dist/functions/datetime/get-days-difference.d.ts +3 -0
- package/dist/functions/datetime/get-days-difference.mjs +1 -0
- package/dist/functions/datetime/get-first-and-last-day.d.ts +6 -0
- package/dist/functions/datetime/get-first-and-last-day.mjs +1 -0
- package/dist/functions/datetime/index.d.ts +8 -0
- package/dist/functions/datetime/index.mjs +1 -0
- package/dist/functions/datetime/parse-datetime.d.ts +3 -0
- package/dist/functions/datetime/parse-datetime.mjs +1 -0
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/index.d.ts +8 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/functions/urls.mjs +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -1
- package/dist/pricing-6b876d80.d.ts +1079 -0
- package/dist/pricing-6e639634.d.ts +1049 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-MJFOXBXO.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=(t,e)=>t.toString()==="Invalid Date"?"":new Date(t).toLocaleTimeString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",hour12:!0,...e});export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as x}from"./chunk-L43FE253.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as b}from"./chunk-E2ABVYOV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as r from"chrono-node";var o=e=>e instanceof Date?e:r.parseDate(e);export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-TOPVR7JX.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(t,n)=>t.toString()==="Invalid Date"?"":new Date(t).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric",...n});export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-E2ABVYOV.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as d,b as g}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";var L=["bot","metatags","chatgpt","bluesky","facebookexternalhit","WhatsApp","google","baidu","bing","msn","duckduckbot","teoma","slurp","yandex","MetaInspector","Go-http-client","iframely","ia_archiver","Sogou","SkypeUriPreview","vkShare","Slackbot","Tumblr","python","FeedBurner","upptime","Hyperping","cron-job","InternetMeasurement","HostTracker"],v=["127.0.0.1","52.112.74.60","52.112.125.8","52.112.49.104","52.112.49.112","52.112.39.132","52.123.190.36","52.123.190.60","52.112.95.132","52.123.190.88","52.112.95.133","52.123.190.124","52.112.39.133","52.112.49.156","195.211.23.206","172.69.34.226","52.112.49.196","172.69.34.225","52.112.125.9","172.69.34.17","172.69.34.18","195.211.23.207","52.112.49.157","172.69.22.217","162.158.167.225","162.158.167.226","52.112.74.61","172.69.34.194","27.124.32.71","172.69.22.216","172.69.34.193","195.211.23.208","195.211.23.210","110.40.20.105","134.122.196.16"];import E from"@sindresorhus/slugify";var q=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,i)=>o.length<i.length?o:i)}.link`},N=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),C=new RegExp(/^[a-zA-Z0-9\-]+$/),R=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),D=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?d.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},F=e=>{if(b(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}},$=e=>x.some(t=>t.slug===e);function z({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let o=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[a,l]of Object.entries(n))i.set(a,l);o+=`?${i.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function T({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:n=5e3,clicks:o=15e4,sales:i=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:n,clicks:o,sales:i,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(n)} new links/mo`},{id:"sales",text:`${k(i/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),_=s.find(e=>e.name==="Enterprise"),we=[P,A,J,_],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Le=2,ve=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,Se=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),Oe=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,Ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Ye({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:n="https://assets.dub.co/thumbnail.jpg",video:o,icons:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...n&&{images:n},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...n&&{card:"summary_large_image",images:[n]},...o&&{player:o},creator:"@dubdotco"},icons:i,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{L as a,v as b,Ye as c,q as d,N as e,C as f,R as g,D as h,F as i,$ as j,z as k,T as l,s as m,P as n,A as o,J as p,_ as q,we as r,w as s,Le as t,ve as u,Se as v,Oe as w,Ve as x};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u}from"./chunk-CP4WO7MM.mjs";import{g as b}from"./chunk-Q4LGL37L.mjs";import{a as P}from"./chunk-TOPVR7JX.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as k}from"./chunk-RCOH25PA.mjs";import{c as h}from"./chunk-2WKZENUE.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as E}from"./chunk-NWFCCRLG.mjs";import{a as y}from"./chunk-J7REM3DA.mjs";var q=e=>!e.periodStart||!e.periodEnd?"-":`${u(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${u(e.periodEnd,{month:"short",timeZone:"utc"})}`;import w from"@sindresorhus/slugify";var G=e=>{let t=w(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,i)=>o.length<i.length?o:i)}.link`},j=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),X=new RegExp(/^[a-zA-Z0-9\-]+$/),Y=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),H=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?g.has(r[r.length-2])&&c.has(r[r.length-1])||x.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},K=e=>{if(P(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}},Q=e=>k.some(t=>t.slug===e);function re({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[a,l]of Object.entries(n))i.set(a,l);o+=`?${i.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function oe({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:n=5e3,clicks:o=15e4,sales:i=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:n,clicks:o,sales:i,domains:a,tags:b,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${E(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(n)} new links/mo`},{id:"sales",text:`${y(i/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],A=s.find(e=>e.name==="Free"),J=s.find(e=>e.name==="Pro"),L=s.find(e=>e.name==="Business"),_=s.find(e=>e.name==="Enterprise"),ze=[A,J,L,_],S=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Me=2,Be=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,Te=e=>S.find(t=>t.name.toLowerCase()===e.toLowerCase()),Ue=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||A,We=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:J;function ut({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:n="https://assets.dub.co/thumbnail.jpg",video:o,icons:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1,manifest:f}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...n&&{images:n},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...n&&{card:"summary_large_image",images:[n]},...o&&{player:o},creator:"@dubdotco"},icons:i,metadataBase:new URL(h),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}},...f&&{manifest:f}}}export{ut as a,q as b,G as c,j as d,X as e,Y as f,H as g,K as h,Q as i,re as j,oe as k,s as l,A as m,J as n,L as o,_ as p,ze as q,S as r,Me as s,Be as t,Te as u,Ue as v,We as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y}from"./chunk-TOPVR7JX.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as P}from"./chunk-NWFCCRLG.mjs";import{a as b}from"./chunk-J7REM3DA.mjs";import{g as k}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as f}from"./chunk-SYT2IXG6.mjs";import{a as h}from"./chunk-RCOH25PA.mjs";import{c as x}from"./chunk-2WKZENUE.mjs";import J from"@sindresorhus/slugify";var V=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},q=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),N=new RegExp(/^[a-zA-Z0-9\-]+$/),C=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),I=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?g.has(r[r.length-2])&&c.has(r[r.length-1])||f.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},R=e=>{if(y(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}},D=e=>h.some(t=>t.slug===e);function z({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function M({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:k,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${P(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${b(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],A=s.find(e=>e.name==="Free"),E=s.find(e=>e.name==="Pro"),L=s.find(e=>e.name==="Business"),w=s.find(e=>e.name==="Enterprise"),Je=[A,E,L,w],_=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Le=2,we=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,_e=e=>_.find(t=>t.name.toLowerCase()===e.toLowerCase()),ve=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||A,Oe=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:E;function He({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1,manifest:d}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(x),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}},...d&&{manifest:d}}}export{He as a,V as b,q as c,N as d,C as e,I as f,R as g,D as h,z as i,M as j,s as k,A as l,E as m,L as n,w as o,Je as p,_ as q,Le as r,we as s,_e as t,ve as u,Oe as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as b}from"./chunk-TOPVR7JX.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as h}from"./chunk-XB7RPAE5.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as b}from"./chunk-E2ABVYOV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var D=e=>{let r=new Date,a=r.getDate(),t=r.getMonth(),n=r.getFullYear();if(a>=e)return{firstDay:new Date(n,t,e),lastDay:new Date(n,t+1,e-1)};{let s=t===0?n-1:n,o=t===0?11:t-1;return{firstDay:new Date(s,o,e),lastDay:new Date(n,t,e-1)}}};export{D as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-E2ABVYOV.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},u=t=>{let e=l();return t>e?e:t},D=t=>{let e=new Date,o=e.getDate(),n=e.getMonth(),a=e.getFullYear(),r=u(t);if(o<=r){let s=n===0?11:n-1,c=n===0?a-1:a;return new Date(c,s,r)}else return new Date(a,n,r)};export{l as a,u as b,D as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-E2ABVYOV.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as b}from"./chunk-NWFCCRLG.mjs";import{a as h}from"./chunk-J7REM3DA.mjs";import{g as m}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as f}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-L43FE253.mjs";import{c as g}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||f.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(k(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:A=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:A},limits:{links:i,clicks:o,sales:n,domains:a,tags:m,folders:m,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${b(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${h(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,folders:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,folders:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,folders:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],y=s.find(e=>e.name==="Free"),P=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[y,P,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||y,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:P;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],canonicalUrl:a,noIndex:l=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(g),...a&&{alternates:{canonical:a}},...l&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,y as l,P as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=t=>{try{return new URL(t),!0}catch{return!1}},i=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},m=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){r[n]=e}),r},g=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){if(n in r){let s=r[n];Array.isArray(s)?s.push(e):r[n]=[s,e]}else r[n]=e}),r},l=t=>{if(!t)return{};try{let r=new URL(t).searchParams,e={};for(let[n,s]of r.entries())s&&s!==""&&(e[n]=s);return e}catch{return{}}},p=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],f=(t,r)=>{if(!t)return"";try{let e=new URL(t);for(let[n,s]of Object.entries(r))s===""?e.searchParams.delete(n):e.searchParams.set(n,s);return e.toString()}catch{return""}},c=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],U=t=>{try{let r=new URL(t);return c.forEach(e=>r.searchParams.delete(e.key)),r.toString()}catch{return t}},d=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",h=(t,r,e)=>{if(r==="dub.co")return t;let n=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return e&&Object.entries(e).forEach(([s,o])=>{n.searchParams.set(s,o)}),n.toString()};export{a,i as b,u as c,m as d,g as e,l as f,p as g,f as h,c as i,U as j,d as k,h as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=(e,t)=>{let a=Math.abs(t.getTime()-e.getTime());return Math.ceil(a/864e5)};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as P}from"./chunk-TOPVR7JX.mjs";import{a as u}from"./chunk-CP4WO7MM.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as E}from"./chunk-NWFCCRLG.mjs";import{a as y}from"./chunk-J7REM3DA.mjs";import{g as b}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as k}from"./chunk-RCOH25PA.mjs";import{c as h}from"./chunk-2WKZENUE.mjs";var q=e=>!e.periodStart||!e.periodEnd?"-":`${u(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${u(e.periodEnd,{month:"short",timeZone:"utc"})}`;import w from"@sindresorhus/slugify";var G=e=>{let t=w(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,i)=>o.length<i.length?o:i)}.link`},j=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),X=new RegExp(/^[a-zA-Z0-9\-]+$/),Y=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),H=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?g.has(r[r.length-2])&&c.has(r[r.length-1])||x.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},K=e=>{if(P(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}},Q=e=>k.some(t=>t.slug===e);function re({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[a,l]of Object.entries(n))i.set(a,l);o+=`?${i.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function oe({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:n=5e3,clicks:o=15e4,sales:i=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:n,clicks:o,sales:i,domains:a,tags:b,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${E(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(n)} new links/mo`},{id:"sales",text:`${y(i/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],A=s.find(e=>e.name==="Free"),J=s.find(e=>e.name==="Pro"),L=s.find(e=>e.name==="Business"),_=s.find(e=>e.name==="Enterprise"),ze=[A,J,L,_],S=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Me=2,Be=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,Te=e=>S.find(t=>t.name.toLowerCase()===e.toLowerCase()),Ue=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||A,We=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:J;function ut({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:n="https://assets.dub.co/thumbnail.jpg",video:o,icons:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1,manifest:f}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...n&&{images:n},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...n&&{card:"summary_large_image",images:[n]},...o&&{player:o},creator:"@dubdotco"},icons:i,metadataBase:new URL(h),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}},...f&&{manifest:f}}}export{ut as a,q as b,G as c,j as d,X as e,Y as f,H as g,K as h,Q as i,re as j,oe as k,s as l,A as m,J as n,L as o,_ as p,ze as q,S as r,Me as s,Be as t,Te as u,Ue as v,We as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=t=>{try{return new URL(t),!0}catch{return!1}},i=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},m=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){r[n]=e}),r},l=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){if(n in r){let s=r[n];Array.isArray(s)?s.push(e):r[n]=[s,e]}else r[n]=e}),r},g=t=>{if(!t)return{};try{let r=new URL(t).searchParams,e={};for(let[n,s]of r.entries())s&&s!==""&&(e[n]=s);return e}catch{return{}}},p=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],f=(t,r)=>{if(!t)return"";try{let e=new URL(t);for(let[n,s]of Object.entries(r))s===""?e.searchParams.delete(n):e.searchParams.set(n,s);return e.toString()}catch{return""}},o=[{display:"UTM Source",key:"utm_source",examples:"twitter, facebook"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"twitter, facebook"}],U=t=>{try{let r=new URL(t);return o.forEach(e=>r.searchParams.delete(e.key)),r.toString()}catch{return t}},d=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",h=(t,r,e)=>{if(r==="dub.co")return t;let n=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return e&&Object.entries(e).forEach(([s,c])=>{n.searchParams.set(s,c)}),n.toString()};export{a,i as b,u as c,m as d,l as e,g as f,p as g,f as h,o as i,U as j,d as k,h as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-VH3JANSU.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e,p as o}from"./chunk-2WKZENUE.mjs";var d=[{id:"clce1z7ch00j0rbstbjufva4j",slug:e,verified:!0,primary:!0,archived:!1,placeholder:"https://dub.co/help/article/what-is-dub",allowedHostnames:[],description:"The default domain for all new accounts.",projectId:o},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clxp3lfsb00011na8tfs7t0lx",slug:"dub.link",verified:!0,primary:!0,archived:!1,placeholder:"https://dub.co/help/article/what-is-dub",allowedHostnames:[],description:"Premium short domain on Dub \u2013 only available on our Pro plan and above.",projectId:o},{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",allowedHostnames:["openai.com","chatgpt.com"],description:"Branded domain for ChatGPT links (convos, custom GPTs).",projectId:o},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",allowedHostnames:["spotify.com"],description:"Branded domain for Spotify links (songs, playlists, etc.).",projectId:o},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,placeholder:"https://github.com/dubinc/dub",allowedHostnames:["github.com"],description:"Branded domain for GitHub links (repositories, gists, etc.).",projectId:o},{id:"cm23qevp4000412mqwvtkthzw",slug:"cal.link",verified:!0,primary:!1,archived:!1,placeholder:"https://cal.com/steven",allowedHostnames:["cal.com","calendly.com","calendar.app.google","chillipiper.com","hubspot.com","savvycal.com","tidycal.com","you.ashbyhq.com","zcal.co"],description:"Branded domain for your scheduling links (Cal.com, Calendly, etc.).",projectId:o},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es","amazon.fr"],description:"Branded domain for Amazon links (products, wishlists, etc.).",projectId:o},{id:"clymd6zkc0001elilr1215tj9",slug:"ggl.link",verified:!0,primary:!1,archived:!1,placeholder:"https://docs.google.com/document/d/15-GOZA12SXGEh8lNwU5QI1jBi04TCPgY2-LChTbXVpA",allowedHostnames:["google.com","google.co.uk","google.co.id","google.ca","google.es","google.fr","googleblog.com","blog.google","g.co","g.page","youtube.com","youtu.be"],description:"Branded domain for Google links (Search, Docs, Sheets, Slides, Drive, Maps, etc.).",projectId:o},{id:"clymczttm0001jgkore3ltr37",slug:"fig.page",verified:!0,primary:!1,archived:!1,placeholder:"https://www.figma.com/design/YAfTk6SGV2HcSvL2415oED/Dub.co-Brand-Assets-(Public)?node-id=1-36593&t=QMKQNtUzxSSzG3hX-1",allowedHostnames:["figma.com"],description:"Branded domain for Figma links (portfolios, prototypes, presentations, etc.).",projectId:o},{id:"clugy7euh000a11h6ignmj42o",slug:"loooooooo.ng",verified:!0,primary:!1,archived:!0,placeholder:"https://d.to/long",description:"Branded domain for lengthening links instead of shortening them (April Fool's Prank).",projectId:o}]:[]],s=d.map(a=>a.slug),l=[{id:"clqo10sum0006js08vutzfxt3",domain:"d.to",key:"try",dashboardId:"dash_Rqy6tVEO5Ib4iVFvmYYTK4kO"},{id:"cltshzzpd0005126z3rd2lvo4",domain:"dub.sh",key:"try",dashboardId:"dash_bUNOfMQVcKS0VMDa2HaYhOjg"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains",dashboardId:"dash_lX4or5Yj6ZrPk3qW4SwgrQ5t"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans",dashboardId:"dash_v2Ygwn3hZNYx6kFYfBT4IApM"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub",dashboardId:"dash_FX5HKOKhtQ6uoIeSDxWM8eIb"},{id:"clymd5vqj0005jgkorsopklsk",domain:"fig.page",key:"dub",dashboardId:"dash_no9BFlfSjHDG6K7XIAuwLt5p"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv",dashboardId:"dash_fKwai9V9nsLcC0IaY0rTF1yA"},{id:"clymd73o50001ulmzzxjumr8l",domain:"ggl.link",key:"dub",dashboardId:"dash_rx5c7pQPnx2MUCX3cL4t1Zpn"},{id:"cm24785ki0001ainw2qks4uq5",domain:"cal.link",key:"demo",dashboardId:"dash_zbzP2UVvTrv5SkIEPP2pV5pC"}];export{d as a,s as b,l as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-TOPVR7JX.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import{g as d}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as f,b as g}from"./chunk-SYT2IXG6.mjs";import{a as h}from"./chunk-RCOH25PA.mjs";import{c as x}from"./chunk-2WKZENUE.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?f.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>h.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:d,folders:d,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,folders:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,folders:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,folders:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(x),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as y}from"./chunk-TOPVR7JX.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as P}from"./chunk-NWFCCRLG.mjs";import{a as b}from"./chunk-J7REM3DA.mjs";import{g as k}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as f}from"./chunk-SYT2IXG6.mjs";import{a as h}from"./chunk-RCOH25PA.mjs";import{c as x}from"./chunk-2WKZENUE.mjs";import J from"@sindresorhus/slugify";var V=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},q=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),N=new RegExp(/^[a-zA-Z0-9\-]+$/),R=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?g.has(r[r.length-2])&&c.has(r[r.length-1])||f.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(y(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}},D=e=>h.some(t=>t.slug===e);function z({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function M({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:k,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${P(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${b(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],A=s.find(e=>e.name==="Free"),E=s.find(e=>e.name==="Pro"),L=s.find(e=>e.name==="Business"),w=s.find(e=>e.name==="Enterprise"),Je=[A,E,L,w],_=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Le=2,we=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,_e=e=>_.find(t=>t.name.toLowerCase()===e.toLowerCase()),ve=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||A,Oe=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:E;function He({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1,manifest:d}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(x),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}},...d&&{manifest:d}}}export{He as a,V as b,q as c,N as d,R as e,C as f,I as g,D as h,z as i,M as j,s as k,A as l,E as m,L as n,w as o,Je as p,_ as q,Le as r,we as s,_e as t,ve as u,Oe as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=e=>{try{return new URL(e),!0}catch{return!1}},i=e=>{if(a(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e},u=e=>{if(a(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return null},m=e=>{let r={};return new URL(e).searchParams.forEach(function(t,n){r[n]=t}),r},g=e=>{let r={};return new URL(e).searchParams.forEach(function(t,n){if(n in r){let s=r[n];Array.isArray(s)?s.push(t):r[n]=[s,t]}else r[n]=t}),r},l=e=>{if(!e)return{};try{let r=new URL(e).searchParams,t={};for(let[n,s]of r.entries())s&&s!==""&&(t[n]=s);return t}catch{return{}}},p=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],f=(e,r)=>{if(!e)return"";try{let t=new URL(e);for(let[n,s]of Object.entries(r))s===""?t.searchParams.delete(n):t.searchParams.set(n,s.replace("+"," "));return t.toString()}catch{return""}},o=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],U=e=>{try{let r=new URL(e);return o.forEach(t=>r.searchParams.delete(t.key)),r.toString()}catch{return e}},d=e=>e?e.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",h=(e,r,t)=>{if(r==="dub.co")return e;let n=new URL(e.startsWith("/")?`https://dub.co${e}`:e);return t&&Object.entries(t).forEach(([s,c])=>{n.searchParams.set(s,c)}),n.toString()};export{a,i as b,u as c,m as d,g as e,l as f,p as g,f as h,o as i,U as j,d as k,h as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=t=>{let e=t?new Date(t):new Date;return e.toString()==="Invalid Date"?"":new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split(":").slice(0,2).join(":")};export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u}from"./chunk-CP4WO7MM.mjs";import{g as d}from"./chunk-Q4LGL37L.mjs";import{a as P}from"./chunk-TOPVR7JX.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as x,b as h}from"./chunk-SYT2IXG6.mjs";import{a as b}from"./chunk-RCOH25PA.mjs";import{c as k}from"./chunk-2WKZENUE.mjs";import{a as f}from"./chunk-IHX4EDUF.mjs";import{a as E}from"./chunk-NWFCCRLG.mjs";import{a as y}from"./chunk-J7REM3DA.mjs";var q=e=>!e.periodStart||!e.periodEnd?"-":`${u(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${u(e.periodEnd,{month:"short",timeZone:"utc"})}`;import w from"@sindresorhus/slugify";var G=e=>{let t=w(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,i)=>o.length<i.length?o:i)}.link`},j=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),X=new RegExp(/^[a-zA-Z0-9\-]+$/),Y=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),H=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?x.has(r[r.length-2])&&c.has(r[r.length-1])||h.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},K=e=>{if(P(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}},Q=e=>b.some(t=>t.slug===e);function re({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let o=`https://${f(e)}${t&&t!=="_root"?`/${f(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[a,l]of Object.entries(n))i.set(a,l);o+=`?${i.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function oe({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:n=5e3,clicks:o=15e4,sales:i=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:n,clicks:o,sales:i,domains:a,tags:d,folders:d,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${E(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(n)} new links/mo`},{id:"sales",text:`${y(i/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,folders:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,folders:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,folders:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],A=s.find(e=>e.name==="Free"),J=s.find(e=>e.name==="Pro"),L=s.find(e=>e.name==="Business"),_=s.find(e=>e.name==="Enterprise"),ze=[A,J,L,_],S=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Me=2,Be=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,Te=e=>S.find(t=>t.name.toLowerCase()===e.toLowerCase()),Ue=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||A,We=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:J;function dt({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:n="https://assets.dub.co/thumbnail.jpg",video:o,icons:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1,manifest:g}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...n&&{images:n},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...n&&{card:"summary_large_image",images:[n]},...o&&{player:o},creator:"@dubdotco"},icons:i,metadataBase:new URL(k),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}},...g&&{manifest:g}}}export{dt as a,q as b,G as c,j as d,X as e,Y as f,H as g,K as h,Q as i,re as j,oe as k,s as l,A as m,J as n,L as o,_ as p,ze as q,S as r,Me as s,Be as t,Te as u,Ue as v,We as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=t=>{try{return new URL(t),!0}catch{return!1}},i=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},m=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){r[n]=e}),r},g=t=>{let r={};return new URL(t).searchParams.forEach(function(e,n){if(n in r){let s=r[n];Array.isArray(s)?s.push(e):r[n]=[s,e]}else r[n]=e}),r},l=t=>{if(!t)return{};try{let r=new URL(t).searchParams,e={};for(let[n,s]of r.entries())s&&s!==""&&(e[n]=s);return e}catch{return{}}},p=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],f=(t,r)=>{if(!t)return"";try{let e=new URL(t);for(let[n,s]of Object.entries(r))s===""?e.searchParams.delete(n):e.searchParams.set(n,s);return e.toString()}catch{return""}},o=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"twitter, facebook"}],U=t=>{try{let r=new URL(t);return o.forEach(e=>r.searchParams.delete(e.key)),r.toString()}catch{return t}},d=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",h=(t,r,e)=>{if(r==="dub.co")return t;let n=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return e&&Object.entries(e).forEach(([s,c])=>{n.searchParams.set(s,c)}),n.toString()};export{a,i as b,u as c,m as d,g as e,l as f,p as g,f as h,o as i,U as j,d as k,h as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as h}from"./chunk-Q4LGL37L.mjs";import{a as x}from"./chunk-RCOH25PA.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as b}from"./chunk-E2ABVYOV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as u,b as g}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-IHX4EDUF.mjs";import{a as y}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-J7REM3DA.mjs";import E from"@sindresorhus/slugify";var S=e=>{let t=E(e,{separator:""});if(t.length<3)return"";if(c.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&c.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((o,n)=>o.length<n.length?o:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?u.has(r[r.length-2])&&c.has(r[r.length-1])||g.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(b(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}},R=e=>x.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:i}){if(!e)return"";let o=`https://${d(e)}${t&&t!=="_root"?`/${d(t)}`:""}`;if(i){let n=new URLSearchParams;for(let[a,l]of Object.entries(i))n.set(a,l);o+=`?${n.toString()}`}return r?o.replace(/^https?:\/\//,""):o}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:i=5e3,clicks:o=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:m=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:m},limits:{links:i,clicks:o,sales:n,domains:a,tags:h,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${y(o)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(i)} new links/mo`},{id:"sales",text:`${k(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://d.to/conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"Real-time webhooks",footnote:{title:"Use webhooks to connect Dub with your data stack and workflows \u2013 with native integrations for Segment, Zapier, Slack, and more.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobbyists and individuals looking to manage their links",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,sales:0,domains:3,tags:5,users:1,ai:10,api:60},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,sales:0,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,sales:1e8,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],P=s.find(e=>e.name==="Free"),A=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ee=[P,A,J,L],w=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,we=e=>w.find(t=>t.name.toLowerCase()===e.toLowerCase()),_e=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||P,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:A;function Xe({title:e,fullTitle:t,description:r="Dub.co is the open-source link management platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.",image:i="https://assets.dub.co/thumbnail.jpg",video:o,icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],url:a,canonicalUrl:l,noIndex:m=!1}={}){return{title:t||(e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams"),description:r,openGraph:{title:e,description:r,...i&&{images:i},url:a,...o&&{videos:o}},twitter:{title:e,description:r,...i&&{card:"summary_large_image",images:[i]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...(a||l)&&{alternates:{canonical:a||l}},...m&&{robots:{index:!1,follow:!1}}}}export{Xe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,P as l,A as m,J as n,L as o,Ee as p,w as q,Je as r,Le as s,we as t,_e as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={key:"",url:"",domain:"",archived:!1,tags:[],webhookIds:[],title:null,description:null,image:null,video:null,trackConversion:!1,proxy:!1,rewrite:!1,expiresAt:null,password:null,ios:null,android:null,doIndex:!1,clicks:0,userId:""},o="https://logo.clearbit.com/",t="https://api.dicebear.com/7.x/initials/svg?backgroundType=gradientLinear&fontFamily=Helvetica&fontSize=40&seed=",l=100,n=60*60*24*14,s=new Date("2022-09-22T00:00:00.000Z"),i=1e9;export{e as a,o as b,t as c,l as d,n as e,s as f,i as g};
|