@dub/utils 0.0.65 → 0.0.67
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/camel-case-e6262800.d.ts +3 -0
- package/dist/chunk-2LTDVTHJ.mjs +1 -0
- package/dist/chunk-3CXXTZ4X.mjs +1 -0
- package/dist/chunk-3RHIPAIL.mjs +1 -0
- package/dist/chunk-43LEUWOU.mjs +1 -0
- package/dist/chunk-46XQRFHC.mjs +1 -0
- package/dist/chunk-5MFYHZEB.mjs +1 -0
- package/dist/chunk-6YGW3G46.mjs +1 -0
- package/dist/chunk-73FNEHMG.mjs +1 -0
- package/dist/chunk-AK2PDKXB.mjs +1 -0
- package/dist/chunk-AZK6DINZ.mjs +1 -0
- package/dist/chunk-B4UMCVOZ.mjs +1 -0
- package/dist/chunk-BO523JE6.mjs +1 -0
- package/dist/chunk-CINTCN3N.mjs +1 -0
- package/dist/chunk-CJZSK4CX.mjs +1 -0
- package/dist/chunk-D5P6S5Y5.mjs +1 -0
- package/dist/chunk-HAVXXGCL.mjs +1 -0
- package/dist/chunk-HCM6NVUF.mjs +1 -0
- package/dist/chunk-HXBUXI5G.mjs +1 -0
- package/dist/chunk-HZOYEI4O.mjs +1 -0
- package/dist/chunk-IP4XIO6V.mjs +1 -0
- package/dist/chunk-J7REM3DA.mjs +1 -0
- package/dist/chunk-JP5UUGH5.mjs +1 -0
- package/dist/chunk-KBK6N4K4.mjs +1 -0
- package/dist/chunk-KIEMFZ52.mjs +1 -0
- package/dist/chunk-L65MWAXA.mjs +1 -0
- package/dist/chunk-LZS5C7BR.mjs +1 -0
- package/dist/chunk-N64O6545.mjs +1 -0
- package/dist/chunk-OBZ5TAF7.mjs +1 -0
- package/dist/chunk-ORB6LTBV.mjs +1 -0
- package/dist/chunk-PGGTQ5BU.mjs +1 -0
- package/dist/chunk-Q3T7D4XP.mjs +1 -0
- package/dist/chunk-QINQPNS2.mjs +1 -0
- package/dist/chunk-R6WZIVL3.mjs +1 -0
- package/dist/chunk-REE6VQTB.mjs +1 -0
- package/dist/chunk-RONJDARA.mjs +1 -0
- package/dist/chunk-RTD6E2PM.mjs +1 -0
- package/dist/chunk-RUJFRQUJ.mjs +1 -0
- package/dist/chunk-S2CJXWHN.mjs +1 -0
- package/dist/chunk-SB6GFLSZ.mjs +1 -0
- package/dist/chunk-SEHFUBQZ.mjs +1 -0
- package/dist/chunk-SQ6MV2YF.mjs +1 -0
- package/dist/chunk-SRAWL6MR.mjs +1 -0
- package/dist/chunk-TGB66K45.mjs +1 -0
- package/dist/chunk-TXRAKBKN.mjs +1 -0
- package/dist/chunk-VRARE2DX.mjs +1 -0
- package/dist/chunk-WILRYFDP.mjs +1 -0
- package/dist/chunk-WWY5GQ6G.mjs +1 -0
- package/dist/chunk-X46IXCHN.mjs +1 -0
- package/dist/chunk-XCR6PKJH.mjs +1 -0
- package/dist/chunk-XKBLNDMK.mjs +1 -0
- package/dist/chunk-Y4MPW4AS.mjs +1 -0
- package/dist/chunk-YDPHIHVJ.mjs +1 -0
- package/dist/chunk-YMDNTGMG.mjs +1 -0
- package/dist/chunk-YPPXUDGA.mjs +1 -0
- package/dist/chunk-YRRD6FUW.mjs +1 -0
- package/dist/chunk-ZCNB2IR3.mjs +1 -0
- package/dist/chunk-ZCUMNBQM.mjs +1 -0
- package/dist/chunk-ZIDDDSUW.mjs +1 -0
- package/dist/chunk-ZVRQ7XB3.mjs +1 -0
- package/dist/constants/countries.d.ts +2 -1
- package/dist/constants/countries.mjs +1 -1
- package/dist/constants/dub-domains.mjs +1 -1
- package/dist/constants/index.d.ts +3 -2
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/integrations.d.ts +4 -0
- package/dist/constants/integrations.mjs +1 -0
- package/dist/constants/layout.d.ts +5 -1
- package/dist/constants/layout.mjs +1 -1
- package/dist/constants/middleware.mjs +1 -1
- package/dist/currency-formatter-497bf417.d.ts +6 -0
- package/dist/functions/camel-case.d.ts +3 -0
- package/dist/functions/camel-case.mjs +1 -0
- package/dist/functions/construct-metadata.mjs +1 -1
- package/dist/functions/currency-formatter.d.ts +3 -0
- package/dist/functions/currency-formatter.mjs +1 -0
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/index.d.ts +3 -0
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/functions/random-value.d.ts +3 -0
- package/dist/functions/random-value.mjs +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +1 -1
- package/dist/pricing-8cb7e9c1.d.ts +1282 -0
- package/dist/random-value-23a64161.d.ts +3 -0
- package/dist/random-value-85ddad15.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e,m as o}from"./chunk-TXRAKBKN.mjs";var t=[{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:["chat.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:["open.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","gist.github.com"],description:"Branded domain for GitHub links (repositories, gists, 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","docs.google.com","drive.google.com","calendar.google.com","maps.google.com","photos.google.com","googleblog.com","developers.googleblog.com","chromewebstore.google.com","play.google.com","blog.google","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}]:[]],l=t.map(i=>i.slug),d=[{id:"clqo10sum0006js08vutzfxt3",domain:"d.to",key:"try"},{id:"cltshzzpd0005126z3rd2lvo4",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"}];export{t as a,l as b,d as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={continent:"NA",country:"US",city:"San Francisco",region:"CA",latitude:"37.7695",longitude:"-122.385"},n="63.141.57.112";export{t as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-RUJFRQUJ.mjs";import{c as f}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>d.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),xe=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),fe=2,de=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,he=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),ke=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,be=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function De({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{De as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,xe as p,J as q,fe as r,de as s,he as t,ke as u,be as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",s=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",e=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,o=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),p=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",t=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_NGROK_URL||"http://localhost:8888",P=new Set(["rich-easily-kingfish.ngrok-free.app",`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${s}`,"api.localhost:8888"]),c=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",n=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),r="https://assets.dub.co/logo.png",N="https://assets.dub.co/wordmark.png",A="https://assets.dub.co/thumbnail.jpg",E="cl7pj5kq4006835rbjlt2ofka",I="clrflia0j0000vs7sqfhz9c7q",L="clqei1lgc0000vsnzi01pbf47",O=process.env.STORAGE_BASE_URL;export{_ as a,s as b,e as c,o as d,p as e,t as f,P as g,c as h,n as i,r as j,N as k,A as l,E as m,I as n,L as o,O as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-CFO3CCQQ.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),ue=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ge=2,xe=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,de=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),fe=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,he=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function Ne({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{Ne as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,ue as p,J as q,ge as r,xe as s,de as t,fe as u,he as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-KBK6N4K4.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),R=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),q=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 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},C=e=>{if(h(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}},N=e=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Event webhooks (beta)",footnote:{title:"Get notified when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Priority support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),xe=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),de=2,fe=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,he=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),ke=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,be=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function De({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{De as a,O as b,v as c,S as d,V as e,R as f,q as g,C as h,N as i,M as j,s as k,k as l,b as m,E as n,A as o,xe as p,J as q,de as r,fe as s,he as t,ke as u,be as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-CFO3CCQQ.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>f.some(t=>t.slug===e);function D({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var B=e=>e[Math.floor(Math.random()*e.length)];var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),de=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),fe=2,he=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,ke=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),be=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,ye=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{Me as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,D as j,B as k,s as l,k as m,b as n,E as o,A as p,de as q,J as r,fe as s,he as t,ke as u,be as v,ye as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I="clzu59rx9000110bm5fnlzwuj",c="clzra1ya60001wnj4a89zcg9h";export{I as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-CFO3CCQQ.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),me=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),ue=2,ge=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,xe=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),de=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,fe=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function Ce({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{Ce as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,me as p,J as q,ue as r,ge as s,xe as t,de as u,fe as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={continent:"NA",country:"US",city:"San Francisco",region:"CA",latitude:"37.7695",longitude:"-122.385"},n="63.141.57.123";export{t as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as d}from"./chunk-KIEMFZ52.mjs";import{c as f}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>d.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),xe=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),fe=2,de=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,he=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),ke=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,be=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function De({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(f),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{De as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,xe as p,J as q,fe as r,de as s,he as t,ke as u,be as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-KBK6N4K4.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),R=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),q=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 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},C=e=>{if(h(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}},N=e=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Event webhooks (beta)",footnote:{title:"Get notified when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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."},{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"}},{text:"Priority support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),xe=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),de=2,fe=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,he=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),ke=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,be=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function De({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{De as a,O as b,v as c,S as d,V as e,R as f,q as g,C as h,N as i,M as j,s as k,k as l,b as m,E as n,A as o,xe as p,J as q,de as r,fe as s,he as t,ke as u,be as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={continent:"NA",country:"US",city:"San Francisco",region:"CA",latitude:"37.7695",longitude:"-122.385"},n="63.141.57.183";export{t as a,n as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=async({url:n,requestDomain:a})=>{let t=await fetch(n,{headers:{"User-Agent":"Dub.co Bot"}}),e=t.headers.get("X-Frame-Options");if(e==="DENY"||e==="SAMEORIGIN")return!1;let r=t.headers.get("content-security-policy");if(console.log({xFrameOptions:e,cspHeader:r}),!r)return!0;let s=r.match(/frame-ancestors\s+([\s\S]+?)(?=;|$)/i);return!!(s&&(s[1]==="*"||s[1].split(/\s+/).includes(a)))};export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={home:"https://dub.co",dub:"https://dub.co",signin:"https://app.dub.co/login",login:"https://app.dub.co/login",register:"https://app.dub.co/register",signup:"https://app.dub.co/register",app:"https://app.dub.co",dashboard:"https://app.dub.co",links:"https://app.dub.co/links",settings:"https://app.dub.co/settings",welcome:"https://app.dub.co/onboarding/welcome",discord:"https://twitter.com/dubdotco"},p={"x-powered-by":"Dub.co - Link management for modern marketing teams"};export{t as a,p as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-RUJFRQUJ.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),xe=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),de=2,fe=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,he=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),ke=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,be=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function Ie({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{Ie as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,xe as p,J as q,de as r,fe as s,he as t,ke as u,be as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as m}from"./chunk-NWFCCRLG.mjs";import{a as u}from"./chunk-IHX4EDUF.mjs";import{a as h}from"./chunk-ADUDYXKU.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as g,b as x}from"./chunk-SYT2IXG6.mjs";import{a as f}from"./chunk-RUJFRQUJ.mjs";import{c as d}from"./chunk-AOG5JJD3.mjs";import P from"@sindresorhus/slugify";var O=e=>{let t=P(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((n,i)=>n.length<i.length?n:i)}.link`},v=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\/\-\p{Emoji}]*$/u),V=new RegExp(/^[a-zA-Z0-9\-]+$/),q=(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";if(t==="raw.githubusercontent.com")return"github.com";if(t.endsWith(".vercel.app"))return"vercel.app";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},N=e=>{if(h(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=>f.some(t=>t.slug===e);function M({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${u(e)}${t&&t!=="_root"?`/${u(t)}`:""}`;if(o){let i=new URLSearchParams;for(let[a,l]of Object.entries(o))i.set(a,l);n+=`?${i.toString()}`}return r?n.replace(/^https?:\/\//,""):n}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:n=15e4,domains:i=40,tags:a=150,users:l=15,ids:y=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:y},limits:{links:o,clicks:n,domains:i,tags:a,users:l,ai:1e3,api:3e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${m(o,{full:!0})} new links/mo`},{text:`${m(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${i} custom domains`},{text:`${l} users`},{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"}},{text:"Priority support"}]}),s=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"What's included:",features:[{text:"25 new links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"10 AI credits/mo"},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}},{text:"Basic support"}]},{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,ai:1e3,api:600},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 hover:bg-blue-600 hover:ring-blue-100"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 new links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{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"}},{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."},{text:"Elevated support"}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,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,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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:25e4,clicks:5e6,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-violet-600 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],k=s.find(e=>e.name==="Free"),b=s.find(e=>e.name==="Pro"),E=s.find(e=>e.name==="Business"),A=s.find(e=>e.name==="Enterprise"),ge=[k,b,E,A],J=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),xe=2,de=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,fe=e=>J.find(t=>t.name.toLowerCase()===e.toLowerCase()),he=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||k,ke=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:b;function Re({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 platform for modern marketing teams to create marketing campaigns, link sharing features, and referral programs.`,image:r="https://assets.dub.co/thumbnail.jpg",video:o,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"}],canonicalUrl:i,noIndex:a=!1}={}){return{title:e,description:t,openGraph:{title:e,description:t,...r&&{images:r},...o&&{videos:o}},twitter:{title:e,description:t,...r&&{card:"summary_large_image",images:[r]},...o&&{player:o},creator:"@dubdotco"},icons:n,metadataBase:new URL(d),...i&&{alternates:{canonical:i}},...a&&{robots:{index:!1,follow:!1}}}}export{Re as a,O as b,v as c,S as d,V as e,q as f,C as g,N as h,R as i,M as j,s as k,k as l,b as m,E as n,A as o,ge as p,J as q,xe as r,de as s,fe as t,he as u,ke as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format;export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o=async({url:n,requestDomain:a})=>{let s=await fetch(n,{headers:{"User-Agent":"Dub.co Bot"}}),e=s.headers.get("X-Frame-Options");if(console.log({xFrameOptions:e}),e==="DENY"||e==="SAMEORIGIN")return!1;let t=s.headers.get("content-security-policy");if(!t)return!0;let r=t.match(/frame-ancestors\s+([\s\S]+?)(?=;|$)/i);return!!(r&&(r[1]==="*"||r[1].split(/\s+/).includes(a)))};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-6YGW3G46.mjs";export{a as COUNTRIES,b as COUNTRY_CODES,c as EU_COUNTRY_CODES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-KBK6N4K4.mjs";import"../chunk-AOG5JJD3.mjs";export{c as DUB_DEMO_LINKS,a as DUB_DOMAINS,b as DUB_DOMAINS_ARRAY};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { ccTLDs } from './cctlds.js';
|
|
2
2
|
export { CONTINENTS, CONTINENT_CODES } from './continents.js';
|
|
3
|
-
export { COUNTRIES, COUNTRY_CODES } from './countries.js';
|
|
3
|
+
export { COUNTRIES, COUNTRY_CODES, EU_COUNTRY_CODES } from './countries.js';
|
|
4
4
|
export { SECOND_LEVEL_DOMAINS, SPECIAL_APEX_DOMAINS } from './domains.js';
|
|
5
5
|
export { DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY } from './dub-domains.js';
|
|
6
6
|
export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS } from './framer-motion.js';
|
|
7
|
-
export {
|
|
7
|
+
export { SLACK_INTEGRATION_ID, STRIPE_INTEGRATION_ID } from './integrations.js';
|
|
8
|
+
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS, LEGAL_PAGES } from './layout.js';
|
|
8
9
|
export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './localhost.js';
|
|
9
10
|
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DUB_LOGO, DUB_THUMBNAIL, DUB_WORDMARK, DUB_WORKSPACE_ID, HOME_DOMAIN, LEGAL_USER_ID, LEGAL_WORKSPACE_ID, R2_URL, SHORT_DOMAIN } from './main.js';
|
|
10
11
|
export { DEFAULT_REDIRECTS, DUB_HEADERS } from './middleware.js';
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as
|
|
1
|
+
import{k as V,l as W,m as X,n as Y,o as Z,p as _,q as $,r as aa,s as ba,t as ca,u as da,v as ea}from"../chunk-CJZSK4CX.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-ADUDYXKU.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-C4JMLACD.mjs";import"../chunk-ZOUWCTIR.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-GJYQLS6P.mjs";import"../chunk-ZECUYKGD.mjs";import{a as F,b as G}from"../chunk-X46IXCHN.mjs";import{a as H,b as I,c as J,d as K}from"../chunk-AZK6DINZ.mjs";import{a as L,b as M}from"../chunk-2OGPCKQX.mjs";import{a as N,b as O}from"../chunk-YRRD6FUW.mjs";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"../chunk-4G4IXMUK.mjs";import{a as fa}from"../chunk-PUFZASP4.mjs";import"../chunk-ORB6LTBV.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b,b as c}from"../chunk-MH5LZNIE.mjs";import{a as d,b as e,c as f}from"../chunk-6YGW3G46.mjs";import{a as g,b as h}from"../chunk-SYT2IXG6.mjs";import{a as y,b as z,c as A}from"../chunk-KBK6N4K4.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o,h as p,i as q,j as r,k as s,l as t,m as u,n as v,o as w,p as x}from"../chunk-AOG5JJD3.mjs";import{a as B,b as C,c as D,d as E}from"../chunk-2SICE2ZS.mjs";export{q as ADMIN_HOSTNAMES,I as ALL_TOOLS,p as API_DOMAIN,o as API_HOSTNAMES,m as APP_DOMAIN,n as APP_DOMAIN_WITH_NGROK,l as APP_HOSTNAMES,i as APP_NAME,Y as BUSINESS_PLAN,J as COMPARE_PAGES,b as CONTINENTS,c as CONTINENT_CODES,d as COUNTRIES,e as COUNTRY_CODES,P as DEFAULT_LINK_PROPS,N as DEFAULT_REDIRECTS,R as DICEBEAR_AVATAR_URL,A as DUB_DEMO_LINKS,y as DUB_DOMAINS,z as DUB_DOMAINS_ARRAY,U as DUB_FOUNDING_DATE,O as DUB_HEADERS,r as DUB_LOGO,t as DUB_THUMBNAIL,s as DUB_WORDMARK,u as DUB_WORKSPACE_ID,Z as ENTERPRISE_PLAN,f as EU_COUNTRY_CODES,E as FADE_IN_ANIMATION_SETTINGS,B as FRAMER_MOTION_LIST_ITEM_VARIANTS,W as FREE_PLAN,aa as FREE_WORKSPACES_LIMIT,Q as GOOGLE_FAVICON_URL,H as HIDE_BACKGROUND_SEGMENTS,k as HOME_DOMAIN,K as LEGAL_PAGES,w as LEGAL_USER_ID,v as LEGAL_WORKSPACE_ID,L as LOCALHOST_GEO_DATA,M as LOCALHOST_IP,S as PAGINATION_LIMIT,V as PLANS,X as PRO_PLAN,_ as PUBLIC_PLANS,x as R2_URL,fa as SAML_PROVIDERS,g as SECOND_LEVEL_DOMAINS,$ as SELF_SERVE_PAID_PLANS,j as SHORT_DOMAIN,F as SLACK_INTEGRATION_ID,h as SPECIAL_APEX_DOMAINS,C as STAGGER_CHILD_VARIANTS,G as STRIPE_INTEGRATION_ID,D as SWIPE_REVEAL_ANIMATION_SETTINGS,T as TWO_WEEKS_IN_SECONDS,a as ccTLDs,da as getCurrentPlan,ea as getNextPlan,ca as getPlanDetails,ba as getPlanFromPriceId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"../chunk-X46IXCHN.mjs";export{a as SLACK_INTEGRATION_ID,b as STRIPE_INTEGRATION_ID};
|
|
@@ -7,5 +7,9 @@ declare const COMPARE_PAGES: {
|
|
|
7
7
|
name: string;
|
|
8
8
|
slug: string;
|
|
9
9
|
}[];
|
|
10
|
+
declare const LEGAL_PAGES: {
|
|
11
|
+
name: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
}[];
|
|
10
14
|
|
|
11
|
-
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS };
|
|
15
|
+
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS, LEGAL_PAGES };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-AZK6DINZ.mjs";export{b as ALL_TOOLS,c as COMPARE_PAGES,a as HIDE_BACKGROUND_SEGMENTS,d as LEGAL_PAGES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-YRRD6FUW.mjs";export{a as DEFAULT_REDIRECTS,b as DUB_HEADERS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-ORB6LTBV.mjs";export{a as toCamelCase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-CJZSK4CX.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-ADUDYXKU.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-C4JMLACD.mjs";import"../chunk-ZOUWCTIR.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-GJYQLS6P.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-X46IXCHN.mjs";import"../chunk-AZK6DINZ.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-YRRD6FUW.mjs";import"../chunk-4G4IXMUK.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-KBK6N4K4.mjs";import"../chunk-AOG5JJD3.mjs";import"../chunk-2SICE2ZS.mjs";export{a as constructMetadata};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-J7REM3DA.mjs";export{a as currencyFormatter};
|
|
@@ -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-
|
|
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-CJZSK4CX.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-ADUDYXKU.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-C4JMLACD.mjs";import"../chunk-ZOUWCTIR.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-GJYQLS6P.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-X46IXCHN.mjs";import"../chunk-AZK6DINZ.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-YRRD6FUW.mjs";import"../chunk-4G4IXMUK.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-KBK6N4K4.mjs";import"../chunk-AOG5JJD3.mjs";import"../chunk-2SICE2ZS.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,8 +1,10 @@
|
|
|
1
|
+
export { toCamelCase } from './camel-case.js';
|
|
1
2
|
export { capitalize } from './capitalize.js';
|
|
2
3
|
export { chunk } from './chunk.js';
|
|
3
4
|
export { cn } from './cn.js';
|
|
4
5
|
export { combineWords } from './combine-words.js';
|
|
5
6
|
export { constructMetadata } from './construct-metadata.js';
|
|
7
|
+
export { currencyFormatter } from './currency-formatter.js';
|
|
6
8
|
export { formatDate, formatDateTime, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getDaysDifference, getFirstAndLastDay, getLastDayOfMonth, parseDateTime } from './datetime.js';
|
|
7
9
|
export { deepEqual } from './deep-equal.js';
|
|
8
10
|
export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex } from './domains.js';
|
|
@@ -16,6 +18,7 @@ export { log } from './log.js';
|
|
|
16
18
|
export { nanoid } from './nanoid.js';
|
|
17
19
|
export { nFormatter } from './nformatter.js';
|
|
18
20
|
export { punyEncode, punycode } from './punycode.js';
|
|
21
|
+
export { randomValue } from './random-value.js';
|
|
19
22
|
export { stableSort } from './stable-sort.js';
|
|
20
23
|
export { timeAgo } from './time-ago.js';
|
|
21
24
|
export { trim } from './trim.js';
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as f,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as P}from"../chunk-CJZSK4CX.mjs";import{a as Z}from"../chunk-FKLXONKR.mjs";import{a as r,b as s,c as t,d as u,e as v,f as w,g as x,h as y,i as z,j as A,k as B}from"../chunk-ADUDYXKU.mjs";import{a as Q}from"../chunk-GGIZK3EO.mjs";import{a as R}from"../chunk-OWYWG4M6.mjs";import{a as S}from"../chunk-NWFCCRLG.mjs";import{a as T,b as U}from"../chunk-IHX4EDUF.mjs";import{a as V}from"../chunk-RONJDARA.mjs";import{a as W}from"../chunk-NQP6WK7A.mjs";import{a as X}from"../chunk-MPU6JRPV.mjs";import{a as Y}from"../chunk-E3EM6ARH.mjs";import{a as K}from"../chunk-EMO4MGOU.mjs";import{a as L}from"../chunk-6XPTKHZD.mjs";import{a as M}from"../chunk-F4P6WJV7.mjs";import{a as N}from"../chunk-C4JMLACD.mjs";import{a as O}from"../chunk-ZOUWCTIR.mjs";import{a as b}from"../chunk-PMOQSSOL.mjs";import{a as c}from"../chunk-2OJAP233.mjs";import{a as d}from"../chunk-NEIHTFSW.mjs";import{a as e}from"../chunk-HJD7AJT4.mjs";import{a as g}from"../chunk-J7REM3DA.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p}from"../chunk-GJYQLS6P.mjs";import{a as q}from"../chunk-ZECUYKGD.mjs";import"../chunk-X46IXCHN.mjs";import"../chunk-AZK6DINZ.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-YRRD6FUW.mjs";import"../chunk-4G4IXMUK.mjs";import"../chunk-PUFZASP4.mjs";import{a}from"../chunk-ORB6LTBV.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-KBK6N4K4.mjs";import"../chunk-AOG5JJD3.mjs";import"../chunk-2SICE2ZS.mjs";export{w as UTMTags,b as capitalize,c as chunk,d as cn,e as combineWords,f as constructMetadata,x as constructURLFromUTMParams,B as createHref,g as currencyFormatter,q as deepEqual,K as fetchWithTimeout,L as fetcher,j as formatDate,k as formatDateTime,C as generateDomainFromName,o as getAdjustedBillingCycleStart,H as getApexDomain,p as getBillingStartDate,h as getDateTimeLocal,l as getDaysDifference,I as getDomainWithoutWWW,m as getFirstAndLastDay,n as getLastDayOfMonth,v as getParamsFromURL,A as getPrettyUrl,t as getSearchParams,u as getSearchParamsWithArray,G as getSubdomain,s as getUrlFromString,z as getUrlWithoutUTMParams,M as hashStringSHA256,J as isDubDomain,O as isIframeable,r as isValidUrl,P as linkConstructor,Q as log,S as nFormatter,R as nanoid,y as paramsMetadata,i as parseDateTime,U as punyEncode,T as punycode,V as randomValue,N as resizeImage,W as stableSort,X as timeAgo,a as toCamelCase,Y as trim,Z as truncate,D as validDomainRegex,E as validKeyRegex,F as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a}from"../chunk-
|
|
1
|
+
import{j as a}from"../chunk-CJZSK4CX.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-ADUDYXKU.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-C4JMLACD.mjs";import"../chunk-ZOUWCTIR.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-GJYQLS6P.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-X46IXCHN.mjs";import"../chunk-AZK6DINZ.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-YRRD6FUW.mjs";import"../chunk-4G4IXMUK.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-KBK6N4K4.mjs";import"../chunk-AOG5JJD3.mjs";import"../chunk-2SICE2ZS.mjs";export{a as linkConstructor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-RONJDARA.mjs";export{a as randomValue};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
export { ccTLDs } from './constants/cctlds.js';
|
|
2
2
|
export { CONTINENTS, CONTINENT_CODES } from './constants/continents.js';
|
|
3
|
-
export { COUNTRIES, COUNTRY_CODES } from './constants/countries.js';
|
|
3
|
+
export { COUNTRIES, COUNTRY_CODES, EU_COUNTRY_CODES } from './constants/countries.js';
|
|
4
4
|
export { SECOND_LEVEL_DOMAINS, SPECIAL_APEX_DOMAINS } from './constants/domains.js';
|
|
5
5
|
export { DUB_DEMO_LINKS, DUB_DOMAINS, DUB_DOMAINS_ARRAY } from './constants/dub-domains.js';
|
|
6
6
|
export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS } from './constants/framer-motion.js';
|
|
7
|
-
export {
|
|
7
|
+
export { SLACK_INTEGRATION_ID, STRIPE_INTEGRATION_ID } from './constants/integrations.js';
|
|
8
|
+
export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS, LEGAL_PAGES } from './constants/layout.js';
|
|
8
9
|
export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './constants/localhost.js';
|
|
9
10
|
export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DUB_LOGO, DUB_THUMBNAIL, DUB_WORDMARK, DUB_WORKSPACE_ID, HOME_DOMAIN, LEGAL_USER_ID, LEGAL_WORKSPACE_ID, R2_URL, SHORT_DOMAIN } from './constants/main.js';
|
|
10
11
|
export { DEFAULT_REDIRECTS, DUB_HEADERS } from './constants/middleware.js';
|
|
11
12
|
export { DEFAULT_LINK_PROPS, DICEBEAR_AVATAR_URL, DUB_FOUNDING_DATE, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
|
|
12
13
|
export { B as BUSINESS_PLAN, E as ENTERPRISE_PLAN, F as FREE_PLAN, c as FREE_WORKSPACES_LIMIT, P as PLANS, a as PRO_PLAN, b as PUBLIC_PLANS, S as SELF_SERVE_PAID_PLANS, e as getCurrentPlan, f as getNextPlan, d as getPlanDetails, g as getPlanFromPriceId } from './pricing-ad2f41cb.js';
|
|
13
14
|
export { SAML_PROVIDERS } from './constants/saml.js';
|
|
15
|
+
export { toCamelCase } from './functions/camel-case.js';
|
|
14
16
|
export { capitalize } from './functions/capitalize.js';
|
|
15
17
|
export { chunk } from './functions/chunk.js';
|
|
16
18
|
export { cn } from './functions/cn.js';
|
|
17
19
|
export { combineWords } from './functions/combine-words.js';
|
|
18
20
|
export { constructMetadata } from './functions/construct-metadata.js';
|
|
21
|
+
export { currencyFormatter } from './functions/currency-formatter.js';
|
|
19
22
|
export { formatDate, formatDateTime, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getDaysDifference, getFirstAndLastDay, getLastDayOfMonth, parseDateTime } from './functions/datetime.js';
|
|
20
23
|
export { deepEqual } from './functions/deep-equal.js';
|
|
21
24
|
export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex } from './functions/domains.js';
|
|
@@ -29,6 +32,7 @@ export { log } from './functions/log.js';
|
|
|
29
32
|
export { nanoid } from './functions/nanoid.js';
|
|
30
33
|
export { nFormatter } from './functions/nformatter.js';
|
|
31
34
|
export { punyEncode, punycode } from './functions/punycode.js';
|
|
35
|
+
export { randomValue } from './functions/random-value.js';
|
|
32
36
|
export { stableSort } from './functions/stable-sort.js';
|
|
33
37
|
export { timeAgo } from './functions/time-ago.js';
|
|
34
38
|
export { trim } from './functions/trim.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as _,b as vo,c as wo,d as yo,e as zo,f as Ao,g as Bo,h as Co,i as Do,j as Jo,k as Uo,l as Vo,m as Wo,n as Xo,o as Yo,p as Zo,q as _o,r as $o,s as or,t as rr,u as er,v as fr}from"./chunk-CJZSK4CX.mjs";import{a as To}from"./chunk-FKLXONKR.mjs";import{a as co,b as go,c as ho,d as io,e as jo,f as ko,g as lo,h as no,i as qo,j as so,k as uo}from"./chunk-ADUDYXKU.mjs";import{a as Ko}from"./chunk-GGIZK3EO.mjs";import{a as Lo}from"./chunk-OWYWG4M6.mjs";import{a as Mo}from"./chunk-NWFCCRLG.mjs";import{a as No,b as Oo}from"./chunk-IHX4EDUF.mjs";import{a as Po}from"./chunk-RONJDARA.mjs";import{a as Qo}from"./chunk-NQP6WK7A.mjs";import{a as Ro}from"./chunk-MPU6JRPV.mjs";import{a as So}from"./chunk-E3EM6ARH.mjs";import{a as Eo}from"./chunk-EMO4MGOU.mjs";import{a as Fo}from"./chunk-6XPTKHZD.mjs";import{a as Go}from"./chunk-F4P6WJV7.mjs";import{a as Ho}from"./chunk-C4JMLACD.mjs";import{a as Io}from"./chunk-ZOUWCTIR.mjs";import{a as W}from"./chunk-PMOQSSOL.mjs";import{a as X}from"./chunk-2OJAP233.mjs";import{a as Y}from"./chunk-NEIHTFSW.mjs";import{a as Z}from"./chunk-HJD7AJT4.mjs";import{a as $}from"./chunk-J7REM3DA.mjs";import{a as oo,b as ro,c as eo,d as fo,e as mo,f as po,g as to,h as xo,i as ao}from"./chunk-GJYQLS6P.mjs";import{a as bo}from"./chunk-ZECUYKGD.mjs";import{a as F,b as G}from"./chunk-X46IXCHN.mjs";import{a as H,b as I,c as J,d as K}from"./chunk-AZK6DINZ.mjs";import{a as L,b as M}from"./chunk-2OGPCKQX.mjs";import{a as N,b as O}from"./chunk-YRRD6FUW.mjs";import{a as P,b as Q,c as R,d as S,e as T,f as U}from"./chunk-4G4IXMUK.mjs";import{a as mr}from"./chunk-PUFZASP4.mjs";import{a as V}from"./chunk-ORB6LTBV.mjs";import{a as o}from"./chunk-YUMUNL66.mjs";import{a as r,b as e}from"./chunk-MH5LZNIE.mjs";import{a as f,b as m,c as p}from"./chunk-6YGW3G46.mjs";import{a as t,b as x}from"./chunk-SYT2IXG6.mjs";import{a as y,b as z,c as A}from"./chunk-KBK6N4K4.mjs";import{a,b,c,d,e as g,f as h,g as i,h as j,i as k,j as l,k as n,l as q,m as s,n as u,o as v,p as w}from"./chunk-AOG5JJD3.mjs";import{a as B,b as C,c as D,d as E}from"./chunk-2SICE2ZS.mjs";export{k as ADMIN_HOSTNAMES,I as ALL_TOOLS,j as API_DOMAIN,i as API_HOSTNAMES,g as APP_DOMAIN,h as APP_DOMAIN_WITH_NGROK,d as APP_HOSTNAMES,a as APP_NAME,Xo as BUSINESS_PLAN,J as COMPARE_PAGES,r as CONTINENTS,e as CONTINENT_CODES,f as COUNTRIES,m as COUNTRY_CODES,P as DEFAULT_LINK_PROPS,N as DEFAULT_REDIRECTS,R as DICEBEAR_AVATAR_URL,A as DUB_DEMO_LINKS,y as DUB_DOMAINS,z as DUB_DOMAINS_ARRAY,U as DUB_FOUNDING_DATE,O as DUB_HEADERS,l as DUB_LOGO,q as DUB_THUMBNAIL,n as DUB_WORDMARK,s as DUB_WORKSPACE_ID,Yo as ENTERPRISE_PLAN,p as EU_COUNTRY_CODES,E as FADE_IN_ANIMATION_SETTINGS,B as FRAMER_MOTION_LIST_ITEM_VARIANTS,Vo as FREE_PLAN,$o as FREE_WORKSPACES_LIMIT,Q as GOOGLE_FAVICON_URL,H as HIDE_BACKGROUND_SEGMENTS,c as HOME_DOMAIN,K as LEGAL_PAGES,v as LEGAL_USER_ID,u as LEGAL_WORKSPACE_ID,L as LOCALHOST_GEO_DATA,M as LOCALHOST_IP,S as PAGINATION_LIMIT,Uo as PLANS,Wo as PRO_PLAN,Zo as PUBLIC_PLANS,w as R2_URL,mr as SAML_PROVIDERS,t as SECOND_LEVEL_DOMAINS,_o as SELF_SERVE_PAID_PLANS,b as SHORT_DOMAIN,F as SLACK_INTEGRATION_ID,x as SPECIAL_APEX_DOMAINS,C as STAGGER_CHILD_VARIANTS,G as STRIPE_INTEGRATION_ID,D as SWIPE_REVEAL_ANIMATION_SETTINGS,T as TWO_WEEKS_IN_SECONDS,ko as UTMTags,W as capitalize,o as ccTLDs,X as chunk,Y as cn,Z as combineWords,_ as constructMetadata,lo as constructURLFromUTMParams,uo as createHref,$ as currencyFormatter,bo as deepEqual,Eo as fetchWithTimeout,Fo as fetcher,eo as formatDate,fo as formatDateTime,vo as generateDomainFromName,xo as getAdjustedBillingCycleStart,Bo as getApexDomain,ao as getBillingStartDate,er as getCurrentPlan,oo as getDateTimeLocal,mo as getDaysDifference,Co as getDomainWithoutWWW,po as getFirstAndLastDay,to as getLastDayOfMonth,fr as getNextPlan,jo as getParamsFromURL,rr as getPlanDetails,or as getPlanFromPriceId,so as getPrettyUrl,ho as getSearchParams,io as getSearchParamsWithArray,Ao as getSubdomain,go as getUrlFromString,qo as getUrlWithoutUTMParams,Go as hashStringSHA256,Do as isDubDomain,Io as isIframeable,co as isValidUrl,Jo as linkConstructor,Ko as log,Mo as nFormatter,Lo as nanoid,no as paramsMetadata,ro as parseDateTime,Oo as punyEncode,No as punycode,Po as randomValue,Ho as resizeImage,Qo as stableSort,Ro as timeAgo,V as toCamelCase,So as trim,To as truncate,wo as validDomainRegex,yo as validKeyRegex,zo as validSlugRegex};
|