@dub/utils 0.0.38 → 0.0.39

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.
@@ -0,0 +1 @@
1
+ var e={key:"",url:"",domain:"",archived:!1,expiresAt:null,password:null,title:null,description:null,image:null,rewrite:!1,ios:null,android:null,clicks:0,userId:"",proxy:!1,tags:[]},l="https://www.google.com/s2/favicons?sz=64&domain_url=",o="https://api.dicebear.com/7.x/initials/svg?backgroundType=gradientLinear&fontFamily=Helvetica&fontSize=40&seed=",t=100,n=60*60*24*14;export{e as a,l as b,o as c,t as d,n as e};
@@ -0,0 +1 @@
1
+ async function c(t){let r=new TextEncoder().encode(t),a=await crypto.subtle.digest("MD5",r);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")}async function h(t){let r=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")}function i(t=64){let n=new Uint8Array(10);return crypto.getRandomValues(n),Array.from(n).map(r=>r.toString(16).padStart(2,"0")).join("")}export{c as a,h as b,i as c};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-I5Y5DKPK.mjs";import{a as x}from"./chunk-5LVKLKIV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as h}from"./chunk-SYT2IXG6.mjs";import E from"@sindresorhus/slugify";var O=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 o=t.replace(/[aeiou]/g,"");return o.length>=3&&c.has(o.slice(-2))?`${o.slice(0,-2)}.${o.slice(-2)}`:`${[t,o].reduce((s,i)=>s.length<i.length?s:i)}.to`},S=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),w=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),C=new RegExp(/^[a-zA-Z0-9\-]+$/),B=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";let o=t.split(".");return o.length>2?g.has(o[o.length-2])&&c.has(o[o.length-1])||h.has(o.slice(-2).join("."))?o.slice(-3).join("."):o.slice(-2).join("."):t},J=e=>{if(x(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}},M=e=>u.some(t=>t.slug===e);var p=({name:e="Business",monthly:t=49,yearly:o=39,links:n=5e3,clicks:s=15e4,domains:i=40,tags:m=150,users:d=15,ids:P=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:o,ids:P},limits:{links:n,clicks:s,domains:i,tags:m,users:d},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:`${l(n,{full:!0})} links/mo`},{text:`${l(s)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${d} users`},{text:`${l(m,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}}]}),r=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",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,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."}]},p({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],A=r.find(e=>e.name==="Free"),k=r.find(e=>e.name==="Pro"),b=r.find(e=>e.name==="Business"),L=r.find(e=>e.name==="Enterprise"),ne=[A,k,b,L],N=r.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ie=2,ae=e=>r.find(t=>{var o;return(o=t.price.ids)==null?void 0:o.includes(e)})||null,ce=e=>N.find(t=>t.name.toLowerCase()===e.toLowerCase()),le=e=>r[r.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1];var ue=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",_=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",f=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,me=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),de=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",ge=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",he=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${_}`,"api.localhost:8888"]),xe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",_e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),fe="https://assets.dub.co/logo.png",Pe="https://assets.dub.co/thumbnail.jpg",a="cl7pj5kq4006835rbjlt2ofka",Ee="clrflia0j0000vs7sqfhz9c7q",Ae="clqei1lgc0000vsnzi01pbf47",u=[{id:"clce1z7ch00j0rbstbjufva4j",slug:_,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:a},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:a},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:a},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:a},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:a}]:[]],ke=u.map(e=>e.slug),be=[{id:"clqo10sum0006js08vutzfxt3",domain:"dub.sh",key:"try"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv"}];function Me({title:e=`${process.env.NEXT_PUBLIC_APP_NAME} - Link Management for Modern Marketing Teams`,description:t=`${process.env.NEXT_PUBLIC_APP_NAME} is the open-source link management infrastructure for modern marketing teams to create, share, and track short links.`,image:o="https://assets.dub.co/thumbnail.jpg",icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"/favicon-16x16.png"}],noIndex:s=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,images:[{url:o}]},twitter:{card:"summary_large_image",title:e,description:t,images:[o],creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...s&&{robots:{index:!1,follow:!1}}}}export{Me as a,O as b,S as c,w as d,C as e,B as f,D as g,J as h,M as i,r as j,A as k,k as l,b as m,L as n,ne as o,N as p,ie as q,ae as r,ce as s,le as t,ue as u,_ as v,f as w,me as x,de as y,ge as z,he as A,xe as B,_e as C,fe as D,Pe as E,a as F,Ee as G,Ae as H,u as I,ke as J,be as K};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-I5Y5DKPK.mjs";import{a as x}from"./chunk-5LVKLKIV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as h}from"./chunk-SYT2IXG6.mjs";import E from"@sindresorhus/slugify";var O=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 o=t.replace(/[aeiou]/g,"");return o.length>=3&&c.has(o.slice(-2))?`${o.slice(0,-2)}.${o.slice(-2)}`:`${[t,o].reduce((s,i)=>s.length<i.length?s:i)}.to`},S=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),w=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),C=new RegExp(/^[a-zA-Z0-9\-]+$/),B=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";let o=t.split(".");return o.length>2?g.has(o[o.length-2])&&c.has(o[o.length-1])||h.has(o.slice(-2).join("."))?o.slice(-3).join("."):o.slice(-2).join("."):t},J=e=>{if(x(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}},M=e=>u.some(t=>t.slug===e);var p=({name:e="Business",monthly:t=49,yearly:o=39,links:n=5e3,clicks:s=15e4,domains:i=40,tags:m=150,users:d=15,ids:P=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:o,ids:P},limits:{links:n,clicks:s,domains:i,tags:m,users:d},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:`${l(n,{full:!0})} links/mo`},{text:`${l(s)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${d} users`},{text:`${l(m,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}}]}),r=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",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,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."}]},p({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],A=r.find(e=>e.name==="Free"),k=r.find(e=>e.name==="Pro"),b=r.find(e=>e.name==="Business"),L=r.find(e=>e.name==="Enterprise"),ne=[A,k,b,L],N=r.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ie=2,ae=e=>r.find(t=>{var o;return(o=t.price.ids)==null?void 0:o.includes(e)})||null,ce=e=>N.find(t=>t.name.toLowerCase()===e.toLowerCase()),le=e=>r[r.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1];var ue=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",_=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",f=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,me=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),de=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",ge=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",he=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${_}`,"api.localhost:8888"]),xe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",_e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),fe="https://assets.dub.co/logo.png",Pe="https://assets.dub.co/thumbnail.png",a="cl7pj5kq4006835rbjlt2ofka",Ee="clrflia0j0000vs7sqfhz9c7q",Ae="clqei1lgc0000vsnzi01pbf47",u=[{id:"clce1z7ch00j0rbstbjufva4j",slug:_,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:a},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:a},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:a},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:a},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:a}]:[]],ke=u.map(e=>e.slug),be=[{id:"clqo10sum0006js08vutzfxt3",domain:"dub.sh",key:"try"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv"}];function Me({title:e=`${process.env.NEXT_PUBLIC_APP_NAME} - Link Management for Modern Marketing Teams`,description:t=`${process.env.NEXT_PUBLIC_APP_NAME} is the open-source link management infrastructure for modern marketing teams to create, share, and track short links.`,image:o="https://assets.dub.co/thumbnail.png",icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"/favicon-16x16.png"}],noIndex:s=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,images:[{url:o}]},twitter:{card:"summary_large_image",title:e,description:t,images:[o],creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...s&&{robots:{index:!1,follow:!1}}}}export{Me as a,O as b,S as c,w as d,C as e,B as f,D as g,J as h,M as i,r as j,A as k,k as l,b as m,L as n,ne as o,N as p,ie as q,ae as r,ce as s,le as t,ue as u,_ as v,f as w,me as x,de as y,ge as z,he as A,xe as B,_e as C,fe as D,Pe as E,a as F,Ee as G,Ae as H,u as I,ke as J,be as K};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-I5Y5DKPK.mjs";import{a as x}from"./chunk-5LVKLKIV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as h}from"./chunk-SYT2IXG6.mjs";import E from"@sindresorhus/slugify";var O=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 o=t.replace(/[aeiou]/g,"");return o.length>=3&&c.has(o.slice(-2))?`${o.slice(0,-2)}.${o.slice(-2)}`:`${[t,o].reduce((s,i)=>s.length<i.length?s:i)}.to`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),C=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),S=new RegExp(/^[a-zA-Z0-9\-]+$/),J=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),B=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";let o=t.split(".");return o.length>2?g.has(o[o.length-2])&&c.has(o[o.length-1])||h.has(o.slice(-2).join("."))?o.slice(-3).join("."):o.slice(-2).join("."):t},D=e=>{if(x(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}},M=e=>u.some(t=>t.slug===e);var p=({name:e="Business",monthly:t=49,yearly:o=39,links:n=5e3,clicks:s=15e4,domains:i=40,tags:m=150,users:d=15,ids:P=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:o,ids:P},limits:{links:n,clicks:s,domains:i,tags:m,users:d},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:`${l(n,{full:!0})} links/mo`},{text:`${l(s)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${d} users`},{text:`${l(m,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}}]}),r=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",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,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."}]},p({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],A=r.find(e=>e.name==="Free"),k=r.find(e=>e.name==="Pro"),b=r.find(e=>e.name==="Business"),L=r.find(e=>e.name==="Enterprise"),ne=[A,k,b,L],N=r.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ie=2,ae=e=>r.find(t=>{var o;return(o=t.price.ids)==null?void 0:o.includes(e)})||null,ce=e=>N.find(t=>t.name.toLowerCase()===e.toLowerCase()),le=e=>r[r.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1];var ue=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",_=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",f=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,me=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),de=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",ge=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",he=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${_}`,"api.localhost:8888"]),xe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",_e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),fe="https://assets.dub.co/logo.png",Pe="https://assets.dub.co/thumbnail.png",a="cl7pj5kq4006835rbjlt2ofka",Ee="clrflia0j0000vs7sqfhz9c7q",Ae="clqei1lgc0000vsnzi01pbf47",u=[{id:"clce1z7ch00j0rbstbjufva4j",slug:_,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:a},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:a},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:a},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:a},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:a}]:[]],ke=u.map(e=>e.slug),be=[{id:"clqo10sum0006js08vutzfxt3",domain:"dub.sh",key:"try"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv"}];function Me({title:e=`${process.env.NEXT_PUBLIC_APP_NAME} - Link Management for Modern Marketing Teams`,description:t=`${process.env.NEXT_PUBLIC_APP_NAME} is the open-source link management infrastructure for modern marketing teams to create, share, and track short links.`,image:o="https://assets.dub.co/thumbnail.png",icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"/favicon-16x16.png"}],noIndex:s=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,images:[{url:o}]},twitter:{card:"summary_large_image",title:e,description:t,images:[o],creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...s&&{robots:{index:!1,follow:!1}}}}export{Me as a,O as b,w as c,C as d,S as e,J as f,B as g,D as h,M as i,r as j,A as k,k as l,b as m,L as n,ne as o,N as p,ie as q,ae as r,ce as s,le as t,ue as u,_ as v,f as w,me as x,de as y,ge as z,he as A,xe as B,_e as C,fe as D,Pe as E,a as F,Ee as G,Ae as H,u as I,ke as J,be as K};
@@ -0,0 +1 @@
1
+ async function c(t){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("MD5",r);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")}async function h(t){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")}function i(t=64){let a=Math.ceil(t/2),r=new Uint8Array(a);return crypto.getRandomValues(r),Array.from(r).map(n=>n.toString(16).padStart(2,"0")).join("").substring(0,t)}export{c as a,h as b,i as c};
@@ -0,0 +1 @@
1
+ import{a as l}from"./chunk-I5Y5DKPK.mjs";import{a as x}from"./chunk-5LVKLKIV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as h}from"./chunk-SYT2IXG6.mjs";import E from"@sindresorhus/slugify";var O=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 o=t.replace(/[aeiou]/g,"");return o.length>=3&&c.has(o.slice(-2))?`${o.slice(0,-2)}.${o.slice(-2)}`:`${[t,o].reduce((s,i)=>s.length<i.length?s:i)}.to`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),S=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),C=new RegExp(/^[a-zA-Z0-9\-]+$/),J=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),B=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";let o=t.split(".");return o.length>2?g.has(o[o.length-2])&&c.has(o[o.length-1])||h.has(o.slice(-2).join("."))?o.slice(-3).join("."):o.slice(-2).join("."):t},D=e=>{if(x(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}},M=e=>u.some(t=>t.slug===e);var p=({name:e="Business",monthly:t=49,yearly:o=39,links:n=5e3,clicks:s=15e4,domains:i=40,tags:m=150,users:d=15,ids:P=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:o,ids:P},limits:{links:n,clicks:s,domains:i,tags:m,users:d},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:`${l(n,{full:!0})} links/mo`},{text:`${l(s)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${d} users`},{text:`${l(m,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}}]}),r=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",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,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."}]},p({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],A=r.find(e=>e.name==="Free"),k=r.find(e=>e.name==="Pro"),b=r.find(e=>e.name==="Business"),L=r.find(e=>e.name==="Enterprise"),ne=[A,k,b,L],N=r.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ie=2,ae=e=>r.find(t=>{var o;return(o=t.price.ids)==null?void 0:o.includes(e)})||null,ce=e=>N.find(t=>t.name.toLowerCase()===e.toLowerCase()),le=e=>r[r.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1];var ue=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",_=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",f=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,me=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),de=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",ge=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",he=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${_}`,"api.localhost:8888"]),xe=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",_e=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),fe="https://assets.dub.co/logo.png",Pe="https://assets.dub.co/thumbnail.png",a="cl7pj5kq4006835rbjlt2ofka",Ee="clrflia0j0000vs7sqfhz9c7q",Ae="clqei1lgc0000vsnzi01pbf47",u=[{id:"clce1z7ch00j0rbstbjufva4j",slug:_,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:a},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"],projectId:a},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:a},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:a},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es"],projectId:a}]:[]],ke=u.map(e=>e.slug),be=[{id:"clqo10sum0006js08vutzfxt3",domain:"dub.sh",key:"try"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv"}];function Me({title:e=`${process.env.NEXT_PUBLIC_APP_NAME} - Link Management for Modern Marketing Teams`,description:t=`${process.env.NEXT_PUBLIC_APP_NAME} is the open-source link management infrastructure for modern marketing teams to create, share, and track short links.`,image:o="https://assets.dub.co/thumbnail.png",icons:n=[{rel:"apple-touch-icon",sizes:"32x32",url:"/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"/favicon-16x16.png"}],noIndex:s=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,images:[{url:o}]},twitter:{card:"summary_large_image",title:e,description:t,images:[o],creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...s&&{robots:{index:!1,follow:!1}}}}export{Me as a,O as b,w as c,S as d,C as e,J as f,B as g,D as h,M as i,r as j,A as k,k as l,b as m,L as n,ne as o,N as p,ie as q,ae as r,ce as s,le as t,ue as u,_ as v,f as w,me as x,de as y,ge as z,he as A,xe as B,_e as C,fe as D,Pe as E,a as F,Ee as G,Ae as H,u as I,ke as J,be as K};
@@ -5,7 +5,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
5
5
  export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './layout.js';
6
6
  export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './localhost.js';
7
7
  export { DEFAULT_REDIRECTS, DUB_HEADERS } from './middleware.js';
8
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './misc.js';
8
+ export { DEFAULT_LINK_PROPS, DICEBEAR_AVATAR_URL, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './misc.js';
9
9
  export { SAML_PROVIDERS } from './saml.js';
10
10
 
11
11
  declare const PLANS: ({
@@ -799,7 +799,7 @@ declare const SELF_SERVE_PAID_PLANS: ({
799
799
  text: string;
800
800
  }[];
801
801
  })[];
802
- declare const FREE_PROJECTS_LIMIT = 2;
802
+ declare const FREE_WORKSPACES_LIMIT = 2;
803
803
  declare const getPlanFromPriceId: (priceId: string) => {
804
804
  name: string;
805
805
  tagline: string;
@@ -1150,9 +1150,9 @@ declare const API_HOSTNAMES: Set<string>;
1150
1150
  declare const API_DOMAIN: string;
1151
1151
  declare const ADMIN_HOSTNAMES: Set<string>;
1152
1152
  declare const DUB_LOGO = "https://assets.dub.co/logo.png";
1153
- declare const DUB_THUMBNAIL = "https://assets.dub.co/thumbnail.png";
1154
- declare const DUB_PROJECT_ID = "cl7pj5kq4006835rbjlt2ofka";
1155
- declare const LEGAL_PROJECT_ID = "clrflia0j0000vs7sqfhz9c7q";
1153
+ declare const DUB_THUMBNAIL = "https://assets.dub.co/thumbnail.jpg";
1154
+ declare const DUB_WORKSPACE_ID = "cl7pj5kq4006835rbjlt2ofka";
1155
+ declare const LEGAL_WORKSPACE_ID = "clrflia0j0000vs7sqfhz9c7q";
1156
1156
  declare const LEGAL_USER_ID = "clqei1lgc0000vsnzi01pbf47";
1157
1157
  declare const DUB_DOMAINS: {
1158
1158
  id: string;
@@ -1175,4 +1175,4 @@ declare const DUB_DEMO_LINKS: {
1175
1175
  key: string;
1176
1176
  }[];
1177
1177
 
1178
- export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, BUSINESS_PLAN, DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, ENTERPRISE_PLAN, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, PUBLIC_PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId };
1178
+ export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, BUSINESS_PLAN, DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY, DUB_LOGO, DUB_THUMBNAIL, DUB_WORKSPACE_ID, ENTERPRISE_PLAN, FREE_PLAN, FREE_WORKSPACES_LIMIT, HOME_DOMAIN, LEGAL_USER_ID, LEGAL_WORKSPACE_ID, PLANS, PRO_PLAN, PUBLIC_PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId };
@@ -1 +1 @@
1
- import{A as M,B as N,C as O,D as P,E as Q,F as R,G as S,H as T,I as U,J as V,K as W,j as u,k as v,l as w,m as x,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as G,v as H,w as I,x as J,y as K,z as L}from"../chunk-ZGH4YH7K.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import{a as o,b as p}from"../chunk-5VUO5P2B.mjs";import{a as q,b as r,c as s,d as t}from"../chunk-LP6ZANSI.mjs";import{a as F}from"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b,b as c}from"../chunk-5NKPICDX.mjs";import{a as d,b as e}from"../chunk-SYT2IXG6.mjs";import{a as f,b as g,c as h,d as i}from"../chunk-2SICE2ZS.mjs";import{a as j,b as k,c as l}from"../chunk-IAODNORF.mjs";import{a as m,b as n}from"../chunk-FYXE2IZT.mjs";export{O as ADMIN_HOSTNAMES,k as ALL_TOOLS,N as API_DOMAIN,M as API_HOSTNAMES,K as APP_DOMAIN,L as APP_DOMAIN_WITH_NGROK,J as APP_HOSTNAMES,G as APP_NAME,x as BUSINESS_PLAN,l as COMPARE_PAGES,b as COUNTRIES,c as COUNTRY_CODES,q as DEFAULT_LINK_PROPS,o as DEFAULT_REDIRECTS,W as DUB_DEMO_LINKS,U as DUB_DOMAINS,V as DUB_DOMAINS_ARRAY,p as DUB_HEADERS,P as DUB_LOGO,R as DUB_PROJECT_ID,Q as DUB_THUMBNAIL,y as ENTERPRISE_PLAN,i as FADE_IN_ANIMATION_SETTINGS,f as FRAMER_MOTION_LIST_ITEM_VARIANTS,v as FREE_PLAN,B as FREE_PROJECTS_LIMIT,r as GOOGLE_FAVICON_URL,j as HIDE_BACKGROUND_SEGMENTS,I as HOME_DOMAIN,S as LEGAL_PROJECT_ID,T as LEGAL_USER_ID,m as LOCALHOST_GEO_DATA,n as LOCALHOST_IP,s as PAGINATION_LIMIT,u as PLANS,w as PRO_PLAN,z as PUBLIC_PLANS,F as SAML_PROVIDERS,d as SECOND_LEVEL_DOMAINS,A as SELF_SERVE_PAID_PLANS,H as SHORT_DOMAIN,e as SPECIAL_APEX_DOMAINS,g as STAGGER_CHILD_VARIANTS,h as SWIPE_REVEAL_ANIMATION_SETTINGS,t as TWO_WEEKS_IN_SECONDS,a as ccTLDs,E as getNextPlan,D as getPlanDetails,C as getPlanFromPriceId};
1
+ import{A as N,B as O,C as P,D as Q,E as R,F as S,G as T,H as U,I as V,J as W,K as X,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as H,v as I,w as J,x as K,y as L,z as M}from"../chunk-EKROEMNY.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import{a as o,b as p}from"../chunk-5VUO5P2B.mjs";import{a as q,b as r,c as s,d as t,e as u}from"../chunk-5XTNLJRY.mjs";import{a as G}from"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b,b as c}from"../chunk-5NKPICDX.mjs";import{a as d,b as e}from"../chunk-SYT2IXG6.mjs";import{a as f,b as g,c as h,d as i}from"../chunk-2SICE2ZS.mjs";import{a as j,b as k,c as l}from"../chunk-IAODNORF.mjs";import{a as m,b as n}from"../chunk-FYXE2IZT.mjs";export{P as ADMIN_HOSTNAMES,k as ALL_TOOLS,O as API_DOMAIN,N as API_HOSTNAMES,L as APP_DOMAIN,M as APP_DOMAIN_WITH_NGROK,K as APP_HOSTNAMES,H as APP_NAME,y as BUSINESS_PLAN,l as COMPARE_PAGES,b as COUNTRIES,c as COUNTRY_CODES,q as DEFAULT_LINK_PROPS,o as DEFAULT_REDIRECTS,s as DICEBEAR_AVATAR_URL,X as DUB_DEMO_LINKS,V as DUB_DOMAINS,W as DUB_DOMAINS_ARRAY,p as DUB_HEADERS,Q as DUB_LOGO,R as DUB_THUMBNAIL,S as DUB_WORKSPACE_ID,z as ENTERPRISE_PLAN,i as FADE_IN_ANIMATION_SETTINGS,f as FRAMER_MOTION_LIST_ITEM_VARIANTS,w as FREE_PLAN,C as FREE_WORKSPACES_LIMIT,r as GOOGLE_FAVICON_URL,j as HIDE_BACKGROUND_SEGMENTS,J as HOME_DOMAIN,U as LEGAL_USER_ID,T as LEGAL_WORKSPACE_ID,m as LOCALHOST_GEO_DATA,n as LOCALHOST_IP,t as PAGINATION_LIMIT,v as PLANS,x as PRO_PLAN,A as PUBLIC_PLANS,G as SAML_PROVIDERS,d as SECOND_LEVEL_DOMAINS,B as SELF_SERVE_PAID_PLANS,I as SHORT_DOMAIN,e as SPECIAL_APEX_DOMAINS,g as STAGGER_CHILD_VARIANTS,h as SWIPE_REVEAL_ANIMATION_SETTINGS,u as TWO_WEEKS_IN_SECONDS,a as ccTLDs,F as getNextPlan,E as getPlanDetails,D as getPlanFromPriceId};
@@ -1,6 +1,7 @@
1
1
  declare const DEFAULT_LINK_PROPS: any;
2
2
  declare const GOOGLE_FAVICON_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=";
3
+ declare const DICEBEAR_AVATAR_URL = "https://api.dicebear.com/7.x/initials/svg?backgroundType=gradientLinear&fontFamily=Helvetica&fontSize=40&seed=";
3
4
  declare const PAGINATION_LIMIT = 100;
4
5
  declare const TWO_WEEKS_IN_SECONDS: number;
5
6
 
6
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS };
7
+ export { DEFAULT_LINK_PROPS, DICEBEAR_AVATAR_URL, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS };
@@ -1 +1 @@
1
- import{a,b,c,d}from"../chunk-LP6ZANSI.mjs";export{a as DEFAULT_LINK_PROPS,b as GOOGLE_FAVICON_URL,c as PAGINATION_LIMIT,d as TWO_WEEKS_IN_SECONDS};
1
+ import{a,b,c,d,e}from"../chunk-5XTNLJRY.mjs";export{a as DEFAULT_LINK_PROPS,c as DICEBEAR_AVATAR_URL,b as GOOGLE_FAVICON_URL,d as PAGINATION_LIMIT,e as TWO_WEEKS_IN_SECONDS};
@@ -1 +1 @@
1
- import{a}from"../chunk-ZGH4YH7K.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-LP6ZANSI.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as constructMetadata};
1
+ import{a}from"../chunk-EKROEMNY.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5XTNLJRY.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as constructMetadata};
@@ -1 +1 @@
1
- import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"../chunk-ZGH4YH7K.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-LP6ZANSI.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as generateDomainFromName,f as getApexDomain,g as getDomainWithoutWWW,e as getSubdomain,h as isDubDomain,b as validDomainRegex,c as validKeyRegex,d as validSlugRegex};
1
+ import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"../chunk-EKROEMNY.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-5LVKLKIV.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-AHSNWOXV.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5XTNLJRY.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as generateDomainFromName,f as getApexDomain,g as getDomainWithoutWWW,e as getSubdomain,h as isDubDomain,b as validDomainRegex,c as validKeyRegex,d as validSlugRegex};
@@ -1 +1 @@
1
- import{a as d,b as s,c as t,d as u,e as v,f as w,g as x,h as y,i as z}from"../chunk-ZGH4YH7K.mjs";import{a as G}from"../chunk-GGIZK3EO.mjs";import{a as H}from"../chunk-OWYWG4M6.mjs";import{a as I}from"../chunk-I5Y5DKPK.mjs";import{a as J}from"../chunk-MPU6JRPV.mjs";import{a as K}from"../chunk-E3EM6ARH.mjs";import{a as L}from"../chunk-ZJKRLIJQ.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r}from"../chunk-5LVKLKIV.mjs";import{a as k}from"../chunk-ZECUYKGD.mjs";import{a as A}from"../chunk-EMO4MGOU.mjs";import{a as B}from"../chunk-6XPTKHZD.mjs";import{a as C,b as D}from"../chunk-AHSNWOXV.mjs";import{a as E}from"../chunk-3BUV2ANI.mjs";import{a as F}from"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-LP6ZANSI.mjs";import"../chunk-PUFZASP4.mjs";import{a}from"../chunk-GTQBILTE.mjs";import{a as b}from"../chunk-2OJAP233.mjs";import{a as c}from"../chunk-NEIHTFSW.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j}from"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as capitalize,b as chunk,c as cn,d as constructMetadata,p as constructURLFromUTMParams,k as deepEqual,A as fetchWithTimeout,B as fetcher,f as formatDate,s as generateDomainFromName,C as generateMD5Hash,i as getAdjustedBillingCycleStart,x as getApexDomain,j as getBillingStartDate,e as getDateTimeLocal,y as getDomainWithoutWWW,g as getFirstAndLastDay,h as getLastDayOfMonth,o as getParamsFromURL,n as getSearchParams,w as getSubdomain,m as getUrlFromString,r as getUrlWithoutUTMParams,D as hashStringSHA256,z as isDubDomain,E as isIframeable,l as isValidUrl,F as linkConstructor,G as log,I as nFormatter,H as nanoid,q as paramsMetadata,J as timeAgo,K as trim,L as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
1
+ import{a as d,b as s,c as t,d as u,e as v,f as w,g as x,h as y,i as z}from"../chunk-EKROEMNY.mjs";import{a as G}from"../chunk-GGIZK3EO.mjs";import{a as H}from"../chunk-OWYWG4M6.mjs";import{a as I}from"../chunk-I5Y5DKPK.mjs";import{a as J}from"../chunk-MPU6JRPV.mjs";import{a as K}from"../chunk-E3EM6ARH.mjs";import{a as L}from"../chunk-ZJKRLIJQ.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r}from"../chunk-5LVKLKIV.mjs";import{a as k}from"../chunk-ZECUYKGD.mjs";import{a as A}from"../chunk-EMO4MGOU.mjs";import{a as B}from"../chunk-6XPTKHZD.mjs";import{a as C,b as D}from"../chunk-AHSNWOXV.mjs";import{a as E}from"../chunk-3BUV2ANI.mjs";import{a as F}from"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5XTNLJRY.mjs";import"../chunk-PUFZASP4.mjs";import{a}from"../chunk-GTQBILTE.mjs";import{a as b}from"../chunk-2OJAP233.mjs";import{a as c}from"../chunk-NEIHTFSW.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j}from"../chunk-RGJGS4AZ.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-5NKPICDX.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-IAODNORF.mjs";import"../chunk-FYXE2IZT.mjs";export{a as capitalize,b as chunk,c as cn,d as constructMetadata,p as constructURLFromUTMParams,k as deepEqual,A as fetchWithTimeout,B as fetcher,f as formatDate,s as generateDomainFromName,C as generateMD5Hash,i as getAdjustedBillingCycleStart,x as getApexDomain,j as getBillingStartDate,e as getDateTimeLocal,y as getDomainWithoutWWW,g as getFirstAndLastDay,h as getLastDayOfMonth,o as getParamsFromURL,n as getSearchParams,w as getSubdomain,m as getUrlFromString,r as getUrlWithoutUTMParams,D as hashStringSHA256,z as isDubDomain,E as isIframeable,l as isValidUrl,F as linkConstructor,G as log,I as nFormatter,H as nanoid,q as paramsMetadata,J as timeAgo,K as trim,L as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, BUSINESS_PLAN, DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, ENTERPRISE_PLAN, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, PUBLIC_PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId } from './constants/index.js';
1
+ export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, BUSINESS_PLAN, DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY, DUB_LOGO, DUB_THUMBNAIL, DUB_WORKSPACE_ID, ENTERPRISE_PLAN, FREE_PLAN, FREE_WORKSPACES_LIMIT, HOME_DOMAIN, LEGAL_USER_ID, LEGAL_WORKSPACE_ID, PLANS, PRO_PLAN, PUBLIC_PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId } from './constants/index.js';
2
2
  export { capitalize } from './functions/capitalize.js';
3
3
  export { chunk } from './functions/chunk.js';
4
4
  export { cn } from './functions/cn.js';
@@ -25,7 +25,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
25
25
  export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './constants/layout.js';
26
26
  export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './constants/localhost.js';
27
27
  export { DEFAULT_REDIRECTS, DUB_HEADERS } from './constants/middleware.js';
28
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
28
+ export { DEFAULT_LINK_PROPS, DICEBEAR_AVATAR_URL, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
29
29
  export { SAML_PROVIDERS } from './constants/saml.js';
30
30
  import 'clsx';
31
31
  import 'next';
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{A as wo,B as yo,C as zo,D as Ao,E as Bo,F as Co,G as Do,H as Eo,I as Fo,J as Go,K as Ho,a as w,b as M,c as N,d as O,e as P,f as Q,g as R,h as S,i as T,j as mo,k as po,l as to,m as xo,n as ao,o as bo,p as co,q as go,r as ho,s as io,t as jo,u as lo,v as no,w as qo,x as so,y as uo,z as vo}from"./chunk-ZGH4YH7K.mjs";import{a as _}from"./chunk-GGIZK3EO.mjs";import{a as $}from"./chunk-OWYWG4M6.mjs";import{a as oo}from"./chunk-I5Y5DKPK.mjs";import{a as ro}from"./chunk-MPU6JRPV.mjs";import{a as eo}from"./chunk-E3EM6ARH.mjs";import{a as fo}from"./chunk-ZJKRLIJQ.mjs";import{a as F,b as G,c as H,d as I,e as J,f as K,g as L}from"./chunk-5LVKLKIV.mjs";import{a as E}from"./chunk-ZECUYKGD.mjs";import{a as U}from"./chunk-EMO4MGOU.mjs";import{a as V}from"./chunk-6XPTKHZD.mjs";import{a as W,b as X}from"./chunk-AHSNWOXV.mjs";import{a as Y}from"./chunk-3BUV2ANI.mjs";import{a as Z}from"./chunk-5PD4TPH7.mjs";import{a as i,b as j}from"./chunk-5VUO5P2B.mjs";import{a as k,b as l,c as n,d as q}from"./chunk-LP6ZANSI.mjs";import{a as ko}from"./chunk-PUFZASP4.mjs";import{a as s}from"./chunk-GTQBILTE.mjs";import{a as u}from"./chunk-2OJAP233.mjs";import{a as v}from"./chunk-NEIHTFSW.mjs";import{a as y,b as z,c as A,d as B,e as C,f as D}from"./chunk-RGJGS4AZ.mjs";import{a as o}from"./chunk-YUMUNL66.mjs";import{a as r,b as e}from"./chunk-5NKPICDX.mjs";import{a as f,b as m}from"./chunk-SYT2IXG6.mjs";import{a as p,b as t,c as x,d as a}from"./chunk-2SICE2ZS.mjs";import{a as b,b as c,c as d}from"./chunk-IAODNORF.mjs";import{a as g,b as h}from"./chunk-FYXE2IZT.mjs";export{zo as ADMIN_HOSTNAMES,c as ALL_TOOLS,yo as API_DOMAIN,wo as API_HOSTNAMES,uo as APP_DOMAIN,vo as APP_DOMAIN_WITH_NGROK,so as APP_HOSTNAMES,lo as APP_NAME,xo as BUSINESS_PLAN,d as COMPARE_PAGES,r as COUNTRIES,e as COUNTRY_CODES,k as DEFAULT_LINK_PROPS,i as DEFAULT_REDIRECTS,Ho as DUB_DEMO_LINKS,Fo as DUB_DOMAINS,Go as DUB_DOMAINS_ARRAY,j as DUB_HEADERS,Ao as DUB_LOGO,Co as DUB_PROJECT_ID,Bo as DUB_THUMBNAIL,ao as ENTERPRISE_PLAN,a as FADE_IN_ANIMATION_SETTINGS,p as FRAMER_MOTION_LIST_ITEM_VARIANTS,po as FREE_PLAN,go as FREE_PROJECTS_LIMIT,l as GOOGLE_FAVICON_URL,b as HIDE_BACKGROUND_SEGMENTS,qo as HOME_DOMAIN,Do as LEGAL_PROJECT_ID,Eo as LEGAL_USER_ID,g as LOCALHOST_GEO_DATA,h as LOCALHOST_IP,n as PAGINATION_LIMIT,mo as PLANS,to as PRO_PLAN,bo as PUBLIC_PLANS,ko as SAML_PROVIDERS,f as SECOND_LEVEL_DOMAINS,co as SELF_SERVE_PAID_PLANS,no as SHORT_DOMAIN,m as SPECIAL_APEX_DOMAINS,t as STAGGER_CHILD_VARIANTS,x as SWIPE_REVEAL_ANIMATION_SETTINGS,q as TWO_WEEKS_IN_SECONDS,s as capitalize,o as ccTLDs,u as chunk,v as cn,w as constructMetadata,J as constructURLFromUTMParams,E as deepEqual,U as fetchWithTimeout,V as fetcher,z as formatDate,M as generateDomainFromName,W as generateMD5Hash,C as getAdjustedBillingCycleStart,R as getApexDomain,D as getBillingStartDate,y as getDateTimeLocal,S as getDomainWithoutWWW,A as getFirstAndLastDay,B as getLastDayOfMonth,jo as getNextPlan,I as getParamsFromURL,io as getPlanDetails,ho as getPlanFromPriceId,H as getSearchParams,Q as getSubdomain,G as getUrlFromString,L as getUrlWithoutUTMParams,X as hashStringSHA256,T as isDubDomain,Y as isIframeable,F as isValidUrl,Z as linkConstructor,_ as log,oo as nFormatter,$ as nanoid,K as paramsMetadata,ro as timeAgo,eo as trim,fo as truncate,N as validDomainRegex,O as validKeyRegex,P as validSlugRegex};
1
+ import{A as yo,B as zo,C as Ao,D as Bo,E as Co,F as Do,G as Eo,H as Fo,I as Go,J as Ho,K as Io,a as y,b as N,c as O,d as P,e as Q,f as R,g as S,h as T,i as U,j as po,k as to,l as xo,m as ao,n as bo,o as co,p as go,q as ho,r as io,s as jo,t as ko,u as no,v as qo,w as so,x as uo,y as vo,z as wo}from"./chunk-EKROEMNY.mjs";import{a as $}from"./chunk-GGIZK3EO.mjs";import{a as oo}from"./chunk-OWYWG4M6.mjs";import{a as ro}from"./chunk-I5Y5DKPK.mjs";import{a as eo}from"./chunk-MPU6JRPV.mjs";import{a as fo}from"./chunk-E3EM6ARH.mjs";import{a as mo}from"./chunk-ZJKRLIJQ.mjs";import{a as G,b as H,c as I,d as J,e as K,f as L,g as M}from"./chunk-5LVKLKIV.mjs";import{a as F}from"./chunk-ZECUYKGD.mjs";import{a as V}from"./chunk-EMO4MGOU.mjs";import{a as W}from"./chunk-6XPTKHZD.mjs";import{a as X,b as Y}from"./chunk-AHSNWOXV.mjs";import{a as Z}from"./chunk-3BUV2ANI.mjs";import{a as _}from"./chunk-5PD4TPH7.mjs";import{a as i,b as j}from"./chunk-5VUO5P2B.mjs";import{a as k,b as l,c as n,d as q,e as s}from"./chunk-5XTNLJRY.mjs";import{a as lo}from"./chunk-PUFZASP4.mjs";import{a as u}from"./chunk-GTQBILTE.mjs";import{a as v}from"./chunk-2OJAP233.mjs";import{a as w}from"./chunk-NEIHTFSW.mjs";import{a as z,b as A,c as B,d as C,e as D,f as E}from"./chunk-RGJGS4AZ.mjs";import{a as o}from"./chunk-YUMUNL66.mjs";import{a as r,b as e}from"./chunk-5NKPICDX.mjs";import{a as f,b as m}from"./chunk-SYT2IXG6.mjs";import{a as p,b as t,c as x,d as a}from"./chunk-2SICE2ZS.mjs";import{a as b,b as c,c as d}from"./chunk-IAODNORF.mjs";import{a as g,b as h}from"./chunk-FYXE2IZT.mjs";export{Ao as ADMIN_HOSTNAMES,c as ALL_TOOLS,zo as API_DOMAIN,yo as API_HOSTNAMES,vo as APP_DOMAIN,wo as APP_DOMAIN_WITH_NGROK,uo as APP_HOSTNAMES,no as APP_NAME,ao as BUSINESS_PLAN,d as COMPARE_PAGES,r as COUNTRIES,e as COUNTRY_CODES,k as DEFAULT_LINK_PROPS,i as DEFAULT_REDIRECTS,n as DICEBEAR_AVATAR_URL,Io as DUB_DEMO_LINKS,Go as DUB_DOMAINS,Ho as DUB_DOMAINS_ARRAY,j as DUB_HEADERS,Bo as DUB_LOGO,Co as DUB_THUMBNAIL,Do as DUB_WORKSPACE_ID,bo as ENTERPRISE_PLAN,a as FADE_IN_ANIMATION_SETTINGS,p as FRAMER_MOTION_LIST_ITEM_VARIANTS,to as FREE_PLAN,ho as FREE_WORKSPACES_LIMIT,l as GOOGLE_FAVICON_URL,b as HIDE_BACKGROUND_SEGMENTS,so as HOME_DOMAIN,Fo as LEGAL_USER_ID,Eo as LEGAL_WORKSPACE_ID,g as LOCALHOST_GEO_DATA,h as LOCALHOST_IP,q as PAGINATION_LIMIT,po as PLANS,xo as PRO_PLAN,co as PUBLIC_PLANS,lo as SAML_PROVIDERS,f as SECOND_LEVEL_DOMAINS,go as SELF_SERVE_PAID_PLANS,qo as SHORT_DOMAIN,m as SPECIAL_APEX_DOMAINS,t as STAGGER_CHILD_VARIANTS,x as SWIPE_REVEAL_ANIMATION_SETTINGS,s as TWO_WEEKS_IN_SECONDS,u as capitalize,o as ccTLDs,v as chunk,w as cn,y as constructMetadata,K as constructURLFromUTMParams,F as deepEqual,V as fetchWithTimeout,W as fetcher,A as formatDate,N as generateDomainFromName,X as generateMD5Hash,D as getAdjustedBillingCycleStart,S as getApexDomain,E as getBillingStartDate,z as getDateTimeLocal,T as getDomainWithoutWWW,B as getFirstAndLastDay,C as getLastDayOfMonth,ko as getNextPlan,J as getParamsFromURL,jo as getPlanDetails,io as getPlanFromPriceId,I as getSearchParams,R as getSubdomain,H as getUrlFromString,M as getUrlWithoutUTMParams,Y as hashStringSHA256,U as isDubDomain,Z as isIframeable,G as isValidUrl,_ as linkConstructor,$ as log,ro as nFormatter,oo as nanoid,L as paramsMetadata,eo as timeAgo,fo as trim,mo as truncate,O as validDomainRegex,P as validKeyRegex,Q as validSlugRegex};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dub/utils",
3
3
  "description": "Utility functions and constants for Dub.co",
4
- "version": "0.0.38",
4
+ "version": "0.0.39",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",