@dub/utils 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-7MIMHYUV.mjs +1 -0
- package/dist/chunk-IZOSIVBI.mjs +1 -0
- package/dist/chunk-J6UIKRXJ.mjs +1 -0
- package/dist/chunk-JQUX7DJ7.mjs +1 -0
- package/dist/chunk-KH4AGJP4.mjs +1 -0
- package/dist/chunk-NAKQAPNQ.mjs +1 -0
- package/dist/chunk-QR4M7ZRI.mjs +1 -0
- package/dist/chunk-VKIZDLUW.mjs +1 -0
- package/dist/chunk-YZE2SX6J.mjs +1 -0
- package/dist/constants/index.mjs +1 -1
- package/dist/functions/construct-metadata.mjs +1 -1
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/fetcher.mjs +1 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as x}from"./chunk-Q4LGL37L.mjs";import{a as g}from"./chunk-L43FE253.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as k}from"./chunk-E2ABVYOV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as d,b as u}from"./chunk-SYT2IXG6.mjs";import{a as m}from"./chunk-IHX4EDUF.mjs";import{a as b}from"./chunk-NWFCCRLG.mjs";import{a as h}from"./chunk-J7REM3DA.mjs";import A from"@sindresorhus/slugify";var S=e=>{let t=A(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((i,n)=>i.length<n.length?i:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?d.has(r[r.length-2])&&c.has(r[r.length-1])||u.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(k(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},R=e=>g.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let i=`https://${m(e)}${t&&t!=="_root"?`/${m(t)}`:""}`;if(o){let n=new URLSearchParams;for(let[a,l]of Object.entries(o))n.set(a,l);i+=`?${n.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:i=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:E=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:E},limits:{links:o,clicks:i,sales:n,domains:a,tags:x,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${b(i)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(o)} new links/mo`},{id:"sales",text:`${h(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://dub.co/help/article/dub-conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"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 hobbyists and individuals looking to manage their links",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-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],y=s.find(e=>e.name==="Free"),P=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ae=[y,P,J,L],_=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,_e=e=>_.find(t=>t.name.toLowerCase()===e.toLowerCase()),we=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||y,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:P;function Qe({title:e,description:t="Dub.co 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:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],canonicalUrl:n,noIndex:a=!1}={}){return{title:e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams",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:i,metadataBase:new URL(f),...n&&{alternates:{canonical:n}},...a&&{robots:{index:!1,follow:!1}}}}export{Qe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,y as l,P as m,J as n,L as o,Ae as p,_ as q,Je as r,Le as s,_e as t,we as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-E2ABVYOV.mjs";import{a as m}from"./chunk-IHX4EDUF.mjs";import{a as b}from"./chunk-NWFCCRLG.mjs";import{a as h}from"./chunk-J7REM3DA.mjs";import{g as x}from"./chunk-Q4LGL37L.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as d,b as u}from"./chunk-SYT2IXG6.mjs";import{a as g}from"./chunk-L43FE253.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import A from"@sindresorhus/slugify";var S=e=>{let t=A(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((i,n)=>i.length<n.length?i:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?d.has(r[r.length-2])&&c.has(r[r.length-1])||u.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(k(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},R=e=>g.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let i=`https://${m(e)}${t&&t!=="_root"?`/${m(t)}`:""}`;if(o){let n=new URLSearchParams;for(let[a,l]of Object.entries(o))n.set(a,l);i+=`?${n.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:i=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:E=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:E},limits:{links:o,clicks:i,sales:n,domains:a,tags:x,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${b(i)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(o)} new links/mo`},{id:"sales",text:`${h(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://dub.co/help/article/dub-conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"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 hobbyists and individuals looking to manage their links",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-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],y=s.find(e=>e.name==="Free"),P=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ae=[y,P,J,L],_=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,_e=e=>_.find(t=>t.name.toLowerCase()===e.toLowerCase()),we=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||y,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:P;function Qe({title:e,description:t="Dub.co 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:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],canonicalUrl:n,noIndex:a=!1}={}){return{title:e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams",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:i,metadataBase:new URL(f),...n&&{alternates:{canonical:n}},...a&&{robots:{index:!1,follow:!1}}}}export{Qe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,y as l,P as m,J as n,L as o,Ae as p,_ as q,Je as r,Le as s,_e as t,we as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function s(n,o){let r=await fetch(n,o);if(!r.ok){let t=(await r.json()).error||"An error occurred while fetching the data.",e=new Error(t);throw e.info=t,e.status=r.status,e}return r.json()}export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as x}from"./chunk-Q4LGL37L.mjs";import{a as g}from"./chunk-L43FE253.mjs";import{c as f}from"./chunk-2WKZENUE.mjs";import{a as k}from"./chunk-E2ABVYOV.mjs";import{a as c}from"./chunk-YUMUNL66.mjs";import{a as d,b as u}from"./chunk-SYT2IXG6.mjs";import{a as m}from"./chunk-IHX4EDUF.mjs";import{a as b}from"./chunk-NWFCCRLG.mjs";import{a as h}from"./chunk-J7REM3DA.mjs";import A from"@sindresorhus/slugify";var S=e=>{let t=A(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((i,n)=>i.length<n.length?i:n)}.link`},V=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),q=new RegExp(/^[a-zA-Z0-9\-]+$/),N=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),C=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?d.has(r[r.length-2])&&c.has(r[r.length-1])||u.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},I=e=>{if(k(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},R=e=>g.some(t=>t.slug===e);function $({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let i=`https://${m(e)}${t&&t!=="_root"?`/${m(t)}`:""}`;if(o){let n=new URLSearchParams;for(let[a,l]of Object.entries(o))n.set(a,l);i+=`?${n.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function z({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var p=({name:e="Business",monthly:t=59,yearly:r=49,links:o=5e3,clicks:i=15e4,sales:n=5e5,domains:a=40,users:l=15,ids:E=[]})=>({name:e,tagline:"For fast-growing startups and businesses looking to scale",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:E},limits:{links:o,clicks:i,sales:n,domains:a,tags:x,users:l,ai:1e3,api:3e3},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:`Get started with ${e}`,shortText:`Get ${e}`,href:"https://app.dub.co/register",color:"bg-sky-900 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:`${b(i)} tracked clicks/mo`},{id:"links",text:`${Intl.NumberFormat("en-US").format(o)} new links/mo`},{id:"sales",text:`${h(n/100)} tracked sales/mo`,footnote:{title:"Use Dub Conversions to track how your link clicks are converting to signups and sales. Limits are based on the total sale amount tracked within a given month.",cta:"Learn more.",href:"https://dub.co/help/article/dub-conversions"}},{id:"retention",text:"3-year analytics retention"},{id:"domains",text:`${a} domains`},{id:"users",text:`${l} users`},{id:"events",text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{id:"webhooks",text:"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 hobbyists and individuals looking to manage their links",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-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"What's included:",features:[{id:"clicks",text:"1K tracked clicks/mo"},{id:"links",text:"25 new links/mo"},{id:"retention",text:"30-day analytics retention"},{id:"domains",text:"3 domains"},{id:"user",text:"1 user"},{id:"analytics",text:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/help/article/dub-analytics"}},{id:"ai",text:"10 AI credits/mo"},{id:"basic-support",text:"Basic support"},{id:"api",text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For content creators or small teams needing advanced features",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5,ai:1e3,api:600},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get Pro",href:"https://app.dub.co/register",color:"bg-black hover:bg-neutral-800 hover:ring-gray-200"},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1,000 new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"5 users"},{id:"link-features",text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{id:"ai",text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"priority-support",text:"Priority support"},{id:"dublink",text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{id:"dotlink",text:"Free custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},p({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,sales:5e5,domains:40,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),p({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,sales:15e5,domains:100,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),p({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,sales:4e6,domains:250,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),p({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,sales:1e7,domains:500,users:100,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{name:"Enterprise",tagline:"For large organizations and governments with custom needs",link:"https://dub.co/enterprise",price:{monthly:null,yearly:null},limits:{links:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-white hover:bg-gray-50 border border-gray-200 hover:ring-gray-100 text-neutral-800"},featureTitle:"Everything in Business, plus:",features:[{id:"sso",text:"SSO/SAML"},{id:"roles",text:"Role-based controls"},{id:"volume",text:"Volume discounts"},{id:"sla",text:"Custom SLA"},{id:"logs",text:"Audit logs"},{id:"success",text:"Dedicated success manager"}]}],y=s.find(e=>e.name==="Free"),P=s.find(e=>e.name==="Pro"),J=s.find(e=>e.name==="Business"),L=s.find(e=>e.name==="Enterprise"),Ae=[y,P,J,L],_=s.filter(e=>e.name!=="Free"&&e.name!=="Enterprise"),Je=2,Le=e=>s.find(t=>{var r;return(r=t.price.ids)==null?void 0:r.includes(e)})||null,_e=e=>_.find(t=>t.name.toLowerCase()===e.toLowerCase()),we=e=>s.find(t=>t.name.toLowerCase()===e.toLowerCase())||y,ve=e=>e?s[s.findIndex(t=>t.name.toLowerCase()===e.toLowerCase())+1]:P;function Qe({title:e,description:t="Dub.co 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:i=[{rel:"apple-touch-icon",sizes:"32x32",url:"https://assets.dub.co/favicons/apple-touch-icon.png"},{rel:"icon",type:"image/png",sizes:"32x32",url:"https://assets.dub.co/favicons/favicon-32x32.png"},{rel:"icon",type:"image/png",sizes:"16x16",url:"https://assets.dub.co/favicons/favicon-16x16.png"}],canonicalUrl:n,noIndex:a=!1}={}){return{title:e?`${e} | Dub.co`:"Dub.co - Link Management for Modern Marketing Teams",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:i,metadataBase:new URL(f),...n&&{alternates:{canonical:n}},...a&&{robots:{index:!1,follow:!1}}}}export{Qe as a,S as b,V as c,q as d,N as e,C as f,I as g,R as h,$ as i,z as j,s as k,y as l,P as m,J as n,L as o,Ae as p,_ as q,Je as r,Le as s,_e as t,we as u,ve as v};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function o(s,n){let r=await fetch(s,n);if(!r.ok){let t=(await r.json()).error.message||"An error occurred while fetching the data.",e=new Error(t);throw e.info=t,e.status=r.status,e}return r.json()}export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function o(e,n){let r=await fetch(e,n);if(!r.ok){let t=new Error((await r.json()).error);throw t.status=r.status,t}return r.json()}export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function c(o,a){var t,s;let r=await fetch(o,a);if(!r.ok){let n=((s=(t=await r.json())==null?void 0:t.error)==null?void 0:s.message)||"An error occurred while fetching the data.",e=new Error(n);throw e.info=n,e.status=r.status,e}return r.json()}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function c(n,a){var t,o;let r=await fetch(n,a);if(!r.ok){let e=((o=(t=await r.json())==null?void 0:t.error)==null?void 0:o.message)||"An error occurred while fetching the data.";console.log("message",e);let s=new Error(e);throw s.info=e,s.status=r.status,s}return r.json()}export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function a(e,n){let r=await fetch(e,n);if(!r.ok){let t=new Error("An error occurred while fetching the data.");try{t.info=(await r.json()).error}catch{t.info=await r.text()}throw t.status=r.status,t}return r.json()}export{a};
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as aa,l as ba,m as ca,n as da,o as ea,p as fa,q as ga,r as ha,s as ia,t as ja,u as ka,v as la}from"../chunk-
|
|
1
|
+
import{k as aa,l as ba,m as ca,n as da,o as ea,p as fa,q as ga,r as ha,s as ia,t as ja,u as ka,v as la}from"../chunk-IZOSIVBI.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-E2ABVYOV.mjs";import"../chunk-GRUKVCIY.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-A4HY7E7C.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-AO4D6N4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-MJIUYLFC.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-QR4M7ZRI.mjs";import"../chunk-E5KCWRHJ.mjs";import"../chunk-F4P6WJV7.mjs";import{a as ma,b as na}from"../chunk-KQ4NF54J.mjs";import{a as oa}from"../chunk-NJFS24XJ.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import{a as H,b as I,c as J}from"../chunk-L3IOBXLP.mjs";import{a as K,b as L,c as M,d as N,e as O}from"../chunk-YICE6QF7.mjs";import{a as P}from"../chunk-DEYKYCG4.mjs";import{a as Q,b as R}from"../chunk-2OGPCKQX.mjs";import{a as S,b as T,c as U}from"../chunk-NZI3GX7M.mjs";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $}from"../chunk-Q4LGL37L.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-VSPMXVQS.mjs";import{a as c,b as d}from"../chunk-MH5LZNIE.mjs";import{a as e,b as f,c as g}from"../chunk-6YGW3G46.mjs";import{a as h}from"../chunk-CELI6EJU.mjs";import{a as i,b as j}from"../chunk-SYT2IXG6.mjs";import{a as E,b as F,c as G}from"../chunk-L43FE253.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y,p as z,q as A,r as B,s as C,t as D}from"../chunk-2WKZENUE.mjs";export{A as ACME_WORKSPACE_ID,s as ADMIN_HOSTNAMES,P as ALL_TOOLS,r as API_DOMAIN,q as API_HOSTNAMES,o as APP_DOMAIN,p as APP_DOMAIN_WITH_NGROK,n as APP_HOSTNAMES,k as APP_NAME,da as BUSINESS_PLAN,b as CONNECT_SUPPORTED_COUNTRIES,c as CONTINENTS,d as CONTINENT_CODES,e as COUNTRIES,f as COUNTRY_CODES,h as COUNTRY_PHONE_CODES,V as DEFAULT_LINK_PROPS,S as DEFAULT_REDIRECTS,X as DICEBEAR_AVATAR_URL,G as DUB_DEMO_LINKS,E as DUB_DOMAINS,F as DUB_DOMAINS_ARRAY,_ as DUB_FOUNDING_DATE,T as DUB_HEADERS,v as DUB_LOGO,w as DUB_QR_LOGO,y as DUB_THUMBNAIL,x as DUB_WORDMARK,z as DUB_WORKSPACE_ID,ea as ENTERPRISE_PLAN,g as EU_COUNTRY_CODES,H as FRAMER_MOTION_LIST_ITEM_VARIANTS,ba as FREE_PLAN,ha as FREE_WORKSPACES_LIMIT,W as GOOGLE_FAVICON_URL,m as HOME_DOMAIN,$ as INFINITY_NUMBER,C as LEGAL_USER_ID,B as LEGAL_WORKSPACE_ID,Q as LOCALHOST_GEO_DATA,R as LOCALHOST_IP,Y as PAGINATION_LIMIT,t as PARTNERS_DOMAIN,u as PARTNERS_HOSTNAMES,aa as PLANS,ca as PRO_PLAN,fa as PUBLIC_PLANS,D as R2_URL,U as REDIRECTION_QUERY_PARAM,ma as REGIONS,na as REGION_CODES,oa as SAML_PROVIDERS,i as SECOND_LEVEL_DOMAINS,M as SEGMENT_INTEGRATION_ID,ga as SELF_SERVE_PAID_PLANS,O as SHOPIFY_INTEGRATION_ID,l as SHORT_DOMAIN,K as SLACK_INTEGRATION_ID,j as SPECIAL_APEX_DOMAINS,I as STAGGER_CHILD_VARIANTS,L as STRIPE_INTEGRATION_ID,J as TAB_ITEM_ANIMATION_SETTINGS,Z as TWO_WEEKS_IN_SECONDS,N as ZAPIER_INTEGRATION_ID,a as ccTLDs,ka as getCurrentPlan,la as getNextPlan,ja as getPlanDetails,ia as getPlanFromPriceId};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-IZOSIVBI.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-E2ABVYOV.mjs";import"../chunk-GRUKVCIY.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-A4HY7E7C.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-AO4D6N4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-MJIUYLFC.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-QR4M7ZRI.mjs";import"../chunk-E5KCWRHJ.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-NJFS24XJ.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-L3IOBXLP.mjs";import"../chunk-YICE6QF7.mjs";import"../chunk-DEYKYCG4.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-NZI3GX7M.mjs";import"../chunk-Q4LGL37L.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-VSPMXVQS.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-L43FE253.mjs";import"../chunk-2WKZENUE.mjs";export{a as constructMetadata};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g}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}from"../chunk-IZOSIVBI.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-E2ABVYOV.mjs";import"../chunk-GRUKVCIY.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-A4HY7E7C.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-AO4D6N4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-MJIUYLFC.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-QR4M7ZRI.mjs";import"../chunk-E5KCWRHJ.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-NJFS24XJ.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-L3IOBXLP.mjs";import"../chunk-YICE6QF7.mjs";import"../chunk-DEYKYCG4.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-NZI3GX7M.mjs";import"../chunk-Q4LGL37L.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-VSPMXVQS.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-L43FE253.mjs";import"../chunk-2WKZENUE.mjs";export{a as generateDomainFromName,e as getApexDomain,f as getDomainWithoutWWW,d as getSubdomain,g as isDubDomain,b as validDomainRegex,c as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-QR4M7ZRI.mjs";export{a as fetcher};
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f,b as D,c as E,d as F,e as G,f as H,g as I,h as J,i as T,j as U}from"../chunk-
|
|
1
|
+
import{a as f,b as D,c as E,d as F,e as G,f as H,g as I,h as J,i as T,j as U}from"../chunk-IZOSIVBI.mjs";import{a as ga}from"../chunk-E3EM6ARH.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,l as C}from"../chunk-E2ABVYOV.mjs";import{a as Y}from"../chunk-GRUKVCIY.mjs";import{a as Z}from"../chunk-EHUYHMHD.mjs";import{a as _,b as $}from"../chunk-IHX4EDUF.mjs";import{a as aa}from"../chunk-RONJDARA.mjs";import{a as ba}from"../chunk-Y37NQHZ4.mjs";import{a as da}from"../chunk-PPEZOXLP.mjs";import{a as ca}from"../chunk-FKLXONKR.mjs";import{a as ea}from"../chunk-NQP6WK7A.mjs";import{a as fa}from"../chunk-MPU6JRPV.mjs";import{a as O}from"../chunk-A4HY7E7C.mjs";import{a as P}from"../chunk-NZ4UYKAT.mjs";import{a as Q,b as R,c as S}from"../chunk-AO4D6N4P.mjs";import{a as V}from"../chunk-GGIZK3EO.mjs";import{a as W}from"../chunk-OWYWG4M6.mjs";import{a as X}from"../chunk-NWFCCRLG.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-MJIUYLFC.mjs";import{a as q}from"../chunk-ZECUYKGD.mjs";import{a as K}from"../chunk-EMO4MGOU.mjs";import{a as L}from"../chunk-QR4M7ZRI.mjs";import{a as M}from"../chunk-E5KCWRHJ.mjs";import{a as N}from"../chunk-F4P6WJV7.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-NJFS24XJ.mjs";import{a}from"../chunk-ORB6LTBV.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"../chunk-L3IOBXLP.mjs";import"../chunk-YICE6QF7.mjs";import"../chunk-DEYKYCG4.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-NZI3GX7M.mjs";import"../chunk-Q4LGL37L.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-VSPMXVQS.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-L43FE253.mjs";import"../chunk-2WKZENUE.mjs";export{x as UTMTags,b as capitalize,c as chunk,d as cn,e as combineWords,f as constructMetadata,y as constructURLFromUTMParams,C as createHref,g as currencyFormatter,q as deepEqual,K as fetchWithTimeout,L as fetcher,j as formatDate,k as formatDateTime,D as generateDomainFromName,M as generateRandomString,o as getAdjustedBillingCycleStart,H as getApexDomain,p as getBillingStartDate,h as getDateTimeLocal,l as getDaysDifference,I as getDomainWithoutWWW,m as getFirstAndLastDay,n as getLastDayOfMonth,w as getParamsFromURL,B as getPrettyUrl,u as getSearchParams,v as getSearchParamsWithArray,G as getSubdomain,s as getUrlFromString,t as getUrlFromStringIfValid,A as getUrlWithoutUTMParams,N as hashStringSHA256,O as isClickOnInteractiveChild,J as isDubDomain,P as isIframeable,S as isReservedKeyGlobal,R as isUnsupportedKey,r as isValidUrl,T as linkConstructor,U as linkConstructorSimple,V as log,X as nFormatter,W as nanoid,Y as normalizeString,z as paramsMetadata,i as parseDateTime,Z as pluralize,$ as punyEncode,_ as punycode,aa as randomValue,ba as resizeImage,da as smartTruncate,ea as stableSort,fa as timeAgo,a as toCamelCase,ga as trim,ca as truncate,E as validDomainRegex,Q as validKeyRegex,F as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a,j as b}from"../chunk-
|
|
1
|
+
import{i as a,j as b}from"../chunk-IZOSIVBI.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-E2ABVYOV.mjs";import"../chunk-GRUKVCIY.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-A4HY7E7C.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-AO4D6N4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-J7REM3DA.mjs";import"../chunk-MJIUYLFC.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-QR4M7ZRI.mjs";import"../chunk-E5KCWRHJ.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-NJFS24XJ.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-L3IOBXLP.mjs";import"../chunk-YICE6QF7.mjs";import"../chunk-DEYKYCG4.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-NZI3GX7M.mjs";import"../chunk-Q4LGL37L.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-VSPMXVQS.mjs";import"../chunk-MH5LZNIE.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-L43FE253.mjs";import"../chunk-2WKZENUE.mjs";export{a as linkConstructor,b as linkConstructorSimple};
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as po,b as Eo,c as Fo,d as Go,e as Ho,f as Io,g as Jo,h as Ko,i as Uo,j as Vo,k as ar,l as br,m as cr,n as dr,o as gr,p as hr,q as ir,r as jr,s as kr,t as lr,u as nr,v as qr}from"./chunk-
|
|
1
|
+
import{a as po,b as Eo,c as Fo,d as Go,e as Ho,f as Io,g as Jo,h as Ko,i as Uo,j as Vo,k as ar,l as br,m as cr,n as dr,o as gr,p as hr,q as ir,r as jr,s as kr,t as lr,u as nr,v as qr}from"./chunk-IZOSIVBI.mjs";import{a as xr}from"./chunk-E3EM6ARH.mjs";import{a as no,b as qo,c as so,d as uo,e as vo,f as wo,g as yo,h as zo,i as Ao,j as Bo,k as Co,l as Do}from"./chunk-E2ABVYOV.mjs";import{a as Zo}from"./chunk-GRUKVCIY.mjs";import{a as _o}from"./chunk-EHUYHMHD.mjs";import{a as $o,b as or}from"./chunk-IHX4EDUF.mjs";import{a as rr}from"./chunk-RONJDARA.mjs";import{a as er}from"./chunk-Y37NQHZ4.mjs";import{a as mr}from"./chunk-PPEZOXLP.mjs";import{a as fr}from"./chunk-FKLXONKR.mjs";import{a as pr}from"./chunk-NQP6WK7A.mjs";import{a as tr}from"./chunk-MPU6JRPV.mjs";import{a as Po}from"./chunk-A4HY7E7C.mjs";import{a as Qo}from"./chunk-NZ4UYKAT.mjs";import{a as Ro,b as So,c as To}from"./chunk-AO4D6N4P.mjs";import{a as Wo}from"./chunk-GGIZK3EO.mjs";import{a as Xo}from"./chunk-OWYWG4M6.mjs";import{a as Yo}from"./chunk-NWFCCRLG.mjs";import{a as to}from"./chunk-J7REM3DA.mjs";import{a as xo,b as ao,c as bo,d as co,e as go,f as ho,g as io,h as jo,i as ko}from"./chunk-MJIUYLFC.mjs";import{a as lo}from"./chunk-ZECUYKGD.mjs";import{a as Lo}from"./chunk-EMO4MGOU.mjs";import{a as Mo}from"./chunk-QR4M7ZRI.mjs";import{a as No}from"./chunk-E5KCWRHJ.mjs";import{a as Oo}from"./chunk-F4P6WJV7.mjs";import{a as sr,b as ur}from"./chunk-KQ4NF54J.mjs";import{a as vr}from"./chunk-NJFS24XJ.mjs";import{a as oo}from"./chunk-ORB6LTBV.mjs";import{a as ro}from"./chunk-PMOQSSOL.mjs";import{a as eo}from"./chunk-2OJAP233.mjs";import{a as fo}from"./chunk-NEIHTFSW.mjs";import{a as mo}from"./chunk-HJD7AJT4.mjs";import{a as H,b as I,c as J}from"./chunk-L3IOBXLP.mjs";import{a as K,b as L,c as M,d as N,e as O}from"./chunk-YICE6QF7.mjs";import{a as P}from"./chunk-DEYKYCG4.mjs";import{a as Q,b as R}from"./chunk-2OGPCKQX.mjs";import{a as S,b as T,c as U}from"./chunk-NZI3GX7M.mjs";import{a as V,b as W,c as X,d as Y,e as Z,f as _,g as $}from"./chunk-Q4LGL37L.mjs";import{a as o}from"./chunk-YUMUNL66.mjs";import{a as r}from"./chunk-VSPMXVQS.mjs";import{a as e,b as f}from"./chunk-MH5LZNIE.mjs";import{a as m,b as p,c as t}from"./chunk-6YGW3G46.mjs";import{a as x}from"./chunk-CELI6EJU.mjs";import{a,b}from"./chunk-SYT2IXG6.mjs";import{a as E,b as F,c as G}from"./chunk-L43FE253.mjs";import{a as c,b as d,c as g,d as h,e as i,f as j,g as k,h as l,i as n,j as q,k as s,l as u,m as v,n as w,o as y,p as z,q as A,r as B,s as C,t as D}from"./chunk-2WKZENUE.mjs";export{A as ACME_WORKSPACE_ID,n as ADMIN_HOSTNAMES,P as ALL_TOOLS,l as API_DOMAIN,k as API_HOSTNAMES,i as APP_DOMAIN,j as APP_DOMAIN_WITH_NGROK,h as APP_HOSTNAMES,c as APP_NAME,dr as BUSINESS_PLAN,r as CONNECT_SUPPORTED_COUNTRIES,e as CONTINENTS,f as CONTINENT_CODES,m as COUNTRIES,p as COUNTRY_CODES,x as COUNTRY_PHONE_CODES,V as DEFAULT_LINK_PROPS,S as DEFAULT_REDIRECTS,X as DICEBEAR_AVATAR_URL,G as DUB_DEMO_LINKS,E as DUB_DOMAINS,F as DUB_DOMAINS_ARRAY,_ as DUB_FOUNDING_DATE,T as DUB_HEADERS,u as DUB_LOGO,v as DUB_QR_LOGO,y as DUB_THUMBNAIL,w as DUB_WORDMARK,z as DUB_WORKSPACE_ID,gr as ENTERPRISE_PLAN,t as EU_COUNTRY_CODES,H as FRAMER_MOTION_LIST_ITEM_VARIANTS,br as FREE_PLAN,jr as FREE_WORKSPACES_LIMIT,W as GOOGLE_FAVICON_URL,g as HOME_DOMAIN,$ as INFINITY_NUMBER,C as LEGAL_USER_ID,B as LEGAL_WORKSPACE_ID,Q as LOCALHOST_GEO_DATA,R as LOCALHOST_IP,Y as PAGINATION_LIMIT,q as PARTNERS_DOMAIN,s as PARTNERS_HOSTNAMES,ar as PLANS,cr as PRO_PLAN,hr as PUBLIC_PLANS,D as R2_URL,U as REDIRECTION_QUERY_PARAM,sr as REGIONS,ur as REGION_CODES,vr as SAML_PROVIDERS,a as SECOND_LEVEL_DOMAINS,M as SEGMENT_INTEGRATION_ID,ir as SELF_SERVE_PAID_PLANS,O as SHOPIFY_INTEGRATION_ID,d as SHORT_DOMAIN,K as SLACK_INTEGRATION_ID,b as SPECIAL_APEX_DOMAINS,I as STAGGER_CHILD_VARIANTS,L as STRIPE_INTEGRATION_ID,J as TAB_ITEM_ANIMATION_SETTINGS,Z as TWO_WEEKS_IN_SECONDS,yo as UTMTags,N as ZAPIER_INTEGRATION_ID,ro as capitalize,o as ccTLDs,eo as chunk,fo as cn,mo as combineWords,po as constructMetadata,zo as constructURLFromUTMParams,Do as createHref,to as currencyFormatter,lo as deepEqual,Lo as fetchWithTimeout,Mo as fetcher,bo as formatDate,co as formatDateTime,Eo as generateDomainFromName,No as generateRandomString,jo as getAdjustedBillingCycleStart,Io as getApexDomain,ko as getBillingStartDate,nr as getCurrentPlan,xo as getDateTimeLocal,go as getDaysDifference,Jo as getDomainWithoutWWW,ho as getFirstAndLastDay,io as getLastDayOfMonth,qr as getNextPlan,wo as getParamsFromURL,lr as getPlanDetails,kr as getPlanFromPriceId,Co as getPrettyUrl,uo as getSearchParams,vo as getSearchParamsWithArray,Ho as getSubdomain,qo as getUrlFromString,so as getUrlFromStringIfValid,Bo as getUrlWithoutUTMParams,Oo as hashStringSHA256,Po as isClickOnInteractiveChild,Ko as isDubDomain,Qo as isIframeable,To as isReservedKeyGlobal,So as isUnsupportedKey,no as isValidUrl,Uo as linkConstructor,Vo as linkConstructorSimple,Wo as log,Yo as nFormatter,Xo as nanoid,Zo as normalizeString,Ao as paramsMetadata,ao as parseDateTime,_o as pluralize,or as punyEncode,$o as punycode,rr as randomValue,er as resizeImage,mr as smartTruncate,pr as stableSort,tr as timeAgo,oo as toCamelCase,xr as trim,fr as truncate,Fo as validDomainRegex,Ro as validKeyRegex,Go as validSlugRegex};
|