@dub/utils 0.1.49 → 0.1.50
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-6P7TFBVI.mjs +1 -0
- package/dist/chunk-D2EWHUD3.mjs +1 -0
- package/dist/chunk-LNXAG74J.mjs +1 -0
- package/dist/chunk-NI27TPGK.mjs +1 -0
- package/dist/chunk-PCR57VI4.mjs +1 -0
- package/dist/chunk-WQV764AR.mjs +1 -0
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/pricing/pricing-plan-main-features.mjs +1 -1
- package/dist/functions/datetime/format-period.mjs +1 -1
- package/dist/functions/datetime/index.mjs +1 -1
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/functions/urls.d.ts +4 -1
- package/dist/functions/urls.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as d}from"./chunk-2YQGBO42.mjs";import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as A,b as _}from"./chunk-SYT2IXG6.mjs";import{a as w}from"./chunk-MWDHT2QR.mjs";import{a as S}from"./chunk-BMESPBRA.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as l}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-IHX4EDUF.mjs";import{Fragment as c,jsx as a,jsxs as p}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.tags===d?"Unlimited":l(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.folders===d?"Unlimited":l(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:t.name==="Enterprise"?"Unlimited":`$${l(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":p(c,{children:[a("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":l(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>a(c,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>p(c,{children:["Premium ",a("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>p(c,{children:["Free ",a("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>p(c,{children:[a("strong",{children:e==="enterprise"?"Custom":l(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Role-based access control",href:"https://dub.co/help/article/folders-rbac"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>a(c,{children:a("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>p(c,{children:[a("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=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?A.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(S(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}},ae=e=>w.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let i=`https://${k(e)}${t&&t!=="_root"?`/${k(t)}`:""}`;if(n){let s=new URLSearchParams;for(let[u,m]of Object.entries(n))s.set(u,m);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var R=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],v={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},I=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(v).flat()],N=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],L={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(L).flat()],x={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(x).flat()],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:0,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...R,...I]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:v[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{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:"dotlink",text:"Free .link domain",tooltip:{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"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...N,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:L[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{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://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:x[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:x[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],it=o.find(e=>e.name==="Free"),V=o.find(e=>e.name==="Pro"),st=o.find(e=>e.name==="Business"),ot=o.find(e=>e.name==="Advanced"),C=o.find(e=>e.name==="Enterprise"),nt=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),at=2,b=(e,t)=>{var i;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(i=e.features)==null?void 0:i.map(s=>({...s,text:s.id==="clicks"?`${l(n.clicks)} tracked clicks/mo`:s.id==="links"?`${l(n.links)} new links/mo`:s.text}))}},lt=({priceId:e})=>{var n;let t=o.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:n[0])||1;return{plan:b(t,r),planTier:r}},ct=({plan:e,planTier:t=1})=>{let r=o.find(n=>n.name.toLowerCase()===e.toLowerCase());return b(r,t)},pt=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(r=>r.name.toLowerCase()===t)+1,o.length-1)]},dt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let i=o.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=o.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(n??1)},ut=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let i of o){if(!r&&i.price.monthly===0)continue;let s=[1,...Object.keys(i.tiers??{}).map(Number).filter(u=>u>=2)].find(u=>{var E,P;let m=u===1?i.limits:((P=(E=i.tiers)==null?void 0:E[u])==null?void 0:P.limits)??i.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(s!==void 0){n={plan:b(i,s),planTier:s};break}}return n??{plan:C,planTier:1}},mt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var h=e=>[{id:"clicks",text:e.name==="Enterprise"?"Unlimited tracked clicks":`${l(e.limits.clicks)} tracked clicks/mo`},{id:"links",text:e.name==="Enterprise"?"Unlimited new links":`${l(e.limits.links)} new links/mo`},{id:"retention",text:`${e.limits.retention} analytics retention`}],y=e=>[{id:"payouts",text:e.name==="Enterprise"?"Unlimited partner payouts":`$${l(e.limits.payouts/100)} partner payouts/mo`,tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}}],kt={links:{Pro:[{features:[...h(o.find(e=>e.name==="Pro")),{id:"advanced",text:"Advanced link features"},{id:"dotlink",text:"Free .link domain",tooltip:{title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]}],Business:[{features:[...h(o.find(e=>e.name==="Business")),{id:"conversions",text:"Conversion tracking"},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]}],Advanced:[{features:[...h(o.find(e=>e.name==="Advanced")),{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...h(o.find(e=>e.name==="Enterprise")),{id:"sso",text:"SSO/SAML"},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"}]}]},partners:{Business:[{features:[...y(o.find(e=>e.name==="Business")),{id:"basicrewards",text:"Basic reward structures",tooltip:{title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"conversions",text:"Dual-sided incentives",tooltip:{title:"Offer dual-sided incentives to your partners and the users they refer.",cta:"Learn more.",href:"https://dub.co/help/article/dual-sided-incentives"}},{id:"ailandingpage",text:"AI landing page generator",tooltip:{title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",cta:"Learn more.",href:"https://dub.co/help/article/program-landing-page"}},{id:"webhooks",text:"Real-time event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"customerinsights",text:"Basic email support"}]}],Advanced:[{features:[...y(o.find(e=>e.name==="Advanced")),{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...y(o.find(e=>e.name==="Enterprise")),{id:"partners",text:"Partner Network",tooltip:{title:"Get access to our network of 5,000+ active affiliate partners."}},{id:"sso",text:"SSO/SAML",tooltip:{title:"Enable single sign-on (SSO) for your entire organization using SAML.",cta:"Learn more.",href:"https://dub.co/help/category/saml-sso"}},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"},{id:"success",text:"Dedicated success manager"}]}]}};var zt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,zt as b,te as c,re as d,ie as e,se as f,oe as g,ne as h,ae as i,pe as j,de as k,D as l,o as m,it as n,V as o,st as p,ot as q,C as r,nt as s,at as t,lt as u,ct as v,pt as w,dt as x,ut as y,mt as z,kt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=t=>{try{return new URL(t),!0}catch{return!1}},l=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},p=t=>{if(a(t))return new URL(t);try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`)}catch{}return null},m=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},g=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){e[n]=r}),e},h=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){if(n in e){let s=e[n];Array.isArray(s)?s.push(r):e[n]=[s,r]}else e[n]=r}),e},i=t=>{if(!t)return{};try{let e=new URL(t).searchParams,r={};for(let[n,s]of e.entries())s&&s!==""&&(r[n]=s);return r}catch{return{}}},c=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],U=(t,e)=>{if(!t)return"";try{let r=new URL(t);for(let[n,s]of Object.entries(e))s?r.searchParams.set(n,s.replace("+"," ")):r.searchParams.delete(n);return r.toString()}catch{return""}},u=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],d=t=>Object.fromEntries(Object.entries(i(t)).filter(([e])=>c.includes(e))),f=t=>{try{let e=new URL(t);return u.forEach(r=>e.searchParams.delete(r.key)),e.toString()}catch{return t}},y=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",w=(t,e,r)=>{if(e==="dub.co")return t;let n=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return r&&Object.entries(r).forEach(([s,o])=>{n.searchParams.set(s,o)}),n.toString()},x=t=>{try{let e=new URL(t,"https://dummy-base.local"),r=e.pathname+e.search;return r=r.startsWith("/")?r.slice(1):r,r}catch{return t}},R=t=>{try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`}catch{return t}};function L(t,e){let r=new URL(t,typeof window<"u"?window.location.origin:"http://localhost");return e&&Object.entries(e).forEach(([n,s])=>{s!=null&&s!==""&&r.searchParams.append(n,String(s))}),r.toString()}var b=t=>{var e;try{let n=new URL(t).pathname.split(".").pop();return n?n.toUpperCase():null}catch{let r=(e=t.split(".").pop())==null?void 0:e.split("?")[0];return r?r.toUpperCase():null}};export{a,l as b,p as c,m as d,g as e,h as f,i as g,c as h,U as i,u as j,d as k,f as l,y as m,w as n,x as o,R as p,L as q,b as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as S}from"./chunk-D2EWHUD3.mjs";import{a as k}from"./chunk-IHX4EDUF.mjs";import{a as l}from"./chunk-NWFCCRLG.mjs";import{a as w}from"./chunk-MWDHT2QR.mjs";import{g as d}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as A,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as c,jsx as a,jsxs as p}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.tags===d?"Unlimited":l(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.folders===d?"Unlimited":l(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:t.name==="Enterprise"?"Unlimited":`$${l(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":p(c,{children:[a("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":l(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.clicks)})," ","tracked events",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>a(c,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>p(c,{children:["Premium ",a("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>p(c,{children:["Free ",a("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>p(c,{children:[a("strong",{children:e==="enterprise"?"Custom":l(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Role-based access control",href:"https://dub.co/help/article/folders-rbac"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>a(c,{children:a("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>p(c,{children:[a("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=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?A.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(S(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}},ae=e=>w.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let i=`https://${k(e)}${t&&t!=="_root"?`/${k(t)}`:""}`;if(n){let s=new URLSearchParams;for(let[u,m]of Object.entries(n))s.set(u,m);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var R=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],v={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},I=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(v).flat()],N=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],L={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(L).flat()],x={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(x).flat()],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:0,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...R,...I]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:v[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked events/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{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:"dotlink",text:"Free .link domain",tooltip:{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"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...N,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:L[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked events/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{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://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:x[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:x[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked events/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],it=o.find(e=>e.name==="Free"),V=o.find(e=>e.name==="Pro"),st=o.find(e=>e.name==="Business"),ot=o.find(e=>e.name==="Advanced"),C=o.find(e=>e.name==="Enterprise"),nt=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),at=2,b=(e,t)=>{var i;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(i=e.features)==null?void 0:i.map(s=>({...s,text:s.id==="clicks"?`${l(n.clicks)} tracked events/mo`:s.id==="links"?`${l(n.links)} new links/mo`:s.text}))}},lt=({priceId:e})=>{var n;let t=o.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:n[0])||1;return{plan:b(t,r),planTier:r}},ct=({plan:e,planTier:t=1})=>{let r=o.find(n=>n.name.toLowerCase()===e.toLowerCase());return b(r,t)},pt=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(r=>r.name.toLowerCase()===t)+1,o.length-1)]},dt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let i=o.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=o.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(n??1)},ut=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let i of o){if(!r&&i.price.monthly===0)continue;let s=[1,...Object.keys(i.tiers??{}).map(Number).filter(u=>u>=2)].find(u=>{var E,P;let m=u===1?i.limits:((P=(E=i.tiers)==null?void 0:E[u])==null?void 0:P.limits)??i.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(s!==void 0){n={plan:b(i,s),planTier:s};break}}return n??{plan:C,planTier:1}},mt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var h=e=>[{id:"clicks",text:e.name==="Enterprise"?"Unlimited tracked clicks":`${l(e.limits.clicks)} tracked clicks/mo`},{id:"links",text:e.name==="Enterprise"?"Unlimited new links":`${l(e.limits.links)} new links/mo`},{id:"retention",text:`${e.limits.retention} analytics retention`}],y=e=>[{id:"payouts",text:e.name==="Enterprise"?"Unlimited partner payouts":`$${l(e.limits.payouts/100)} partner payouts/mo`,tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}}],kt={links:{Pro:[{features:[...h(o.find(e=>e.name==="Pro")),{id:"advanced",text:"Advanced link features"},{id:"dotlink",text:"Free .link domain",tooltip:{title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]}],Business:[{features:[...h(o.find(e=>e.name==="Business")),{id:"conversions",text:"Conversion tracking"},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]}],Advanced:[{features:[...h(o.find(e=>e.name==="Advanced")),{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...h(o.find(e=>e.name==="Enterprise")),{id:"sso",text:"SSO/SAML"},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"}]}]},partners:{Business:[{features:[...y(o.find(e=>e.name==="Business")),{id:"basicrewards",text:"Basic reward structures",tooltip:{title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"conversions",text:"Dual-sided incentives",tooltip:{title:"Offer dual-sided incentives to your partners and the users they refer.",cta:"Learn more.",href:"https://dub.co/help/article/dual-sided-incentives"}},{id:"ailandingpage",text:"AI landing page generator",tooltip:{title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",cta:"Learn more.",href:"https://dub.co/help/article/program-landing-page"}},{id:"webhooks",text:"Real-time event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"customerinsights",text:"Basic email support"}]}],Advanced:[{features:[...y(o.find(e=>e.name==="Advanced")),{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...y(o.find(e=>e.name==="Enterprise")),{id:"partners",text:"Partner Network",tooltip:{title:"Get access to our network of 5,000+ active affiliate partners."}},{id:"sso",text:"SSO/SAML",tooltip:{title:"Enable single sign-on (SSO) for your entire organization using SAML.",cta:"Learn more.",href:"https://dub.co/help/category/saml-sso"}},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"},{id:"success",text:"Dedicated success manager"}]}]}};var zt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,zt as b,te as c,re as d,ie as e,se as f,oe as g,ne as h,ae as i,pe as j,de as k,D as l,o as m,it as n,V as o,st as p,ot as q,C as r,nt as s,at as t,lt as u,ct as v,pt as w,dt as x,ut as y,mt as z,kt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as v}from"./chunk-D2EWHUD3.mjs";import{a as k}from"./chunk-IHX4EDUF.mjs";import{a as l}from"./chunk-NWFCCRLG.mjs";import{a as w}from"./chunk-MWDHT2QR.mjs";import{g as d}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as A,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as c,jsx as a,jsxs as p}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.tags===d?"Unlimited":l(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.folders===d?"Unlimited":l(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:t.name==="Enterprise"?"Unlimited":`$${l(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":p(c,{children:[a("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":l(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.clicks)})," ","tracked events",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>a(c,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>p(c,{children:["Premium ",a("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>p(c,{children:["Free ",a("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>p(c,{children:[a("strong",{children:e==="enterprise"?"Custom":l(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Role-based access control",href:"https://dub.co/help/article/folders-rbac"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>a(c,{children:a("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>p(c,{children:[a("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=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?A.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(v(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}},ae=e=>w.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let i=`https://${k(e)}${t&&t!=="_root"?`/${k(t)}`:""}`;if(n){let s=new URLSearchParams;for(let[u,m]of Object.entries(n))s.set(u,m);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var R=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],S={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},I=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(S).flat()],N=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],L={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(L).flat()],x={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(x).flat()],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:0,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...R,...I]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:S[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked events/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{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:"dotlink",text:"Free .link domain",tooltip:{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"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...N,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:L[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked events/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{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://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:x[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:x[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked events/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],it=o.find(e=>e.name==="Free"),V=o.find(e=>e.name==="Pro"),st=o.find(e=>e.name==="Business"),ot=o.find(e=>e.name==="Advanced"),C=o.find(e=>e.name==="Enterprise"),nt=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),at=2,b=(e,t)=>{var i;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(i=e.features)==null?void 0:i.map(s=>({...s,text:s.id==="clicks"?`${l(n.clicks)} tracked events/mo`:s.id==="links"?`${l(n.links)} new links/mo`:s.text}))}},lt=({priceId:e})=>{var n;let t=o.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:n[0])||1;return{plan:b(t,r),planTier:r}},ct=({plan:e,planTier:t=1})=>{let r=o.find(n=>n.name.toLowerCase()===e.toLowerCase());return b(r,t)},pt=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(r=>r.name.toLowerCase()===t)+1,o.length-1)]},dt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let i=o.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=o.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(n??1)},ut=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let i of o){if(!r&&i.price.monthly===0)continue;let s=[1,...Object.keys(i.tiers??{}).map(Number).filter(u=>u>=2)].find(u=>{var E,P;let m=u===1?i.limits:((P=(E=i.tiers)==null?void 0:E[u])==null?void 0:P.limits)??i.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(s!==void 0){n={plan:b(i,s),planTier:s};break}}return n??{plan:C,planTier:1}},mt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var h=e=>[{id:"clicks",text:e.name==="Enterprise"?"Unlimited tracked events":`${l(e.limits.clicks)} tracked events/mo`},{id:"links",text:e.name==="Enterprise"?"Unlimited new links":`${l(e.limits.links)} new links/mo`},{id:"retention",text:`${e.limits.retention} analytics retention`}],y=e=>[{id:"payouts",text:e.name==="Enterprise"?"Unlimited partner payouts":`$${l(e.limits.payouts/100)} partner payouts/mo`,tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}}],kt={links:{Pro:[{features:[...h(o.find(e=>e.name==="Pro")),{id:"advanced",text:"Advanced link features"},{id:"dotlink",text:"Free .link domain",tooltip:{title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]}],Business:[{features:[...h(o.find(e=>e.name==="Business")),{id:"conversions",text:"Conversion tracking"},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]}],Advanced:[{features:[...h(o.find(e=>e.name==="Advanced")),{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...h(o.find(e=>e.name==="Enterprise")),{id:"sso",text:"SSO/SAML"},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"}]}]},partners:{Business:[{features:[...y(o.find(e=>e.name==="Business")),{id:"basicrewards",text:"Basic reward structures",tooltip:{title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"conversions",text:"Dual-sided incentives",tooltip:{title:"Offer dual-sided incentives to your partners and the users they refer.",cta:"Learn more.",href:"https://dub.co/help/article/dual-sided-incentives"}},{id:"ailandingpage",text:"AI landing page generator",tooltip:{title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",cta:"Learn more.",href:"https://dub.co/help/article/program-landing-page"}},{id:"webhooks",text:"Real-time event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"customerinsights",text:"Basic email support"}]}],Advanced:[{features:[...y(o.find(e=>e.name==="Advanced")),{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...y(o.find(e=>e.name==="Enterprise")),{id:"partners",text:"Partner Network",tooltip:{title:"Get access to our network of 5,000+ active affiliate partners."}},{id:"sso",text:"SSO/SAML",tooltip:{title:"Enable single sign-on (SSO) for your entire organization using SAML.",cta:"Learn more.",href:"https://dub.co/help/category/saml-sso"}},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"},{id:"success",text:"Dedicated success manager"}]}]}};var zt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,zt as b,te as c,re as d,ie as e,se as f,oe as g,ne as h,ae as i,pe as j,de as k,D as l,o as m,it as n,V as o,st as p,ot as q,C as r,nt as s,at as t,lt as u,ct as v,pt as w,dt as x,ut as y,mt as z,kt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as d}from"./chunk-2YQGBO42.mjs";import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as A,b as _}from"./chunk-SYT2IXG6.mjs";import{a as w}from"./chunk-MWDHT2QR.mjs";import{a as S}from"./chunk-D2EWHUD3.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as l}from"./chunk-NWFCCRLG.mjs";import{a as k}from"./chunk-IHX4EDUF.mjs";import{Fragment as c,jsx as a,jsxs as p}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.tags===d?"Unlimited":l(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.folders===d?"Unlimited":l(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:t.name==="Enterprise"?"Unlimited":`$${l(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":p(c,{children:[a("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":l(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>a(c,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>p(c,{children:["Premium ",a("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>p(c,{children:["Free ",a("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>p(c,{children:[a("strong",{children:e==="enterprise"?"Custom":l(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Role-based access control",href:"https://dub.co/help/article/folders-rbac"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>a(c,{children:a("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>p(c,{children:[a("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=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?A.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(S(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}},ae=e=>w.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let i=`https://${k(e)}${t&&t!=="_root"?`/${k(t)}`:""}`;if(n){let s=new URLSearchParams;for(let[u,m]of Object.entries(n))s.set(u,m);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var R=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],v={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},I=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(v).flat()],N=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],L={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(L).flat()],x={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(x).flat()],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:0,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...R,...I]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:v[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{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:"dotlink",text:"Free .link domain",tooltip:{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"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...N,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:L[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{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://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:x[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:x[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],it=o.find(e=>e.name==="Free"),V=o.find(e=>e.name==="Pro"),st=o.find(e=>e.name==="Business"),ot=o.find(e=>e.name==="Advanced"),C=o.find(e=>e.name==="Enterprise"),nt=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),at=2,b=(e,t)=>{var i;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(i=e.features)==null?void 0:i.map(s=>({...s,text:s.id==="clicks"?`${l(n.clicks)} tracked clicks/mo`:s.id==="links"?`${l(n.links)} new links/mo`:s.text}))}},lt=({priceId:e})=>{var n;let t=o.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:n[0])||1;return{plan:b(t,r),planTier:r}},ct=({plan:e,planTier:t=1})=>{let r=o.find(n=>n.name.toLowerCase()===e.toLowerCase());return b(r,t)},pt=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(r=>r.name.toLowerCase()===t)+1,o.length-1)]},dt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let i=o.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=o.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(n??1)},ut=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let i of o){if(!r&&i.price.monthly===0)continue;let s=[1,...Object.keys(i.tiers??{}).map(Number).filter(u=>u>=2)].find(u=>{var E,P;let m=u===1?i.limits:((P=(E=i.tiers)==null?void 0:E[u])==null?void 0:P.limits)??i.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(s!==void 0){n={plan:b(i,s),planTier:s};break}}return n??{plan:C,planTier:1}},mt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var h=e=>[{id:"clicks",text:e.name==="Enterprise"?"Unlimited tracked clicks":`${l(e.limits.clicks)} tracked clicks/mo`},{id:"links",text:e.name==="Enterprise"?"Unlimited new links":`${l(e.limits.links)} new links/mo`},{id:"retention",text:`${e.limits.retention} analytics retention`}],y=e=>[{id:"payouts",text:e.name==="Enterprise"?"Unlimited partner payouts":`$${l(e.limits.payouts/100)} partner payouts/mo`,tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}}],kt={links:{Pro:[{features:[...h(o.find(e=>e.name==="Pro")),{id:"advanced",text:"Advanced link features"},{id:"dotlink",text:"Free .link domain",tooltip:{title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]}],Business:[{features:[...h(o.find(e=>e.name==="Business")),{id:"conversions",text:"Conversion tracking"},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]}],Advanced:[{features:[...h(o.find(e=>e.name==="Advanced")),{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...h(o.find(e=>e.name==="Enterprise")),{id:"sso",text:"SSO/SAML"},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"}]}]},partners:{Business:[{features:[...y(o.find(e=>e.name==="Business")),{id:"basicrewards",text:"Basic reward structures",tooltip:{title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"conversions",text:"Dual-sided incentives",tooltip:{title:"Offer dual-sided incentives to your partners and the users they refer.",cta:"Learn more.",href:"https://dub.co/help/article/dual-sided-incentives"}},{id:"ailandingpage",text:"AI landing page generator",tooltip:{title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",cta:"Learn more.",href:"https://dub.co/help/article/program-landing-page"}},{id:"webhooks",text:"Real-time event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"customerinsights",text:"Basic email support"}]}],Advanced:[{features:[...y(o.find(e=>e.name==="Advanced")),{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...y(o.find(e=>e.name==="Enterprise")),{id:"partners",text:"Partner Network",tooltip:{title:"Get access to our network of 5,000+ active affiliate partners."}},{id:"sso",text:"SSO/SAML",tooltip:{title:"Enable single sign-on (SSO) for your entire organization using SAML.",cta:"Learn more.",href:"https://dub.co/help/category/saml-sso"}},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"},{id:"success",text:"Dedicated success manager"}]}]}};var zt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,zt as b,te as c,re as d,ie as e,se as f,oe as g,ne as h,ae as i,pe as j,de as k,D as l,o as m,it as n,V as o,st as p,ot as q,C as r,nt as s,at as t,lt as u,ct as v,pt as w,dt as x,ut as y,mt as z,kt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as S}from"./chunk-D2EWHUD3.mjs";import{a as k}from"./chunk-IHX4EDUF.mjs";import{a as l}from"./chunk-NWFCCRLG.mjs";import{a as w}from"./chunk-MWDHT2QR.mjs";import{g as d}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as A,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as c,jsx as a,jsxs as p}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.tags===d?"Unlimited":l(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.folders===d?"Unlimited":l(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:t.name==="Enterprise"?"Unlimited":`$${l(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":p(c,{children:[a("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":p(c,{children:[a("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":l(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>p(c,{children:[a("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>a(c,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>p(c,{children:["Premium ",a("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>p(c,{children:["Free ",a("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>p(c,{children:[a("strong",{children:e==="enterprise"?"Custom":l(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>p(c,{children:[a("strong",{children:e.name==="Enterprise"?"Unlimited":l(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Role-based access control",href:"https://dub.co/help/article/folders-rbac"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>a(c,{children:a("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>p(c,{children:[a("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=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?A.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(S(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}},ae=e=>w.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let i=`https://${k(e)}${t&&t!=="_root"?`/${k(t)}`:""}`;if(n){let s=new URLSearchParams;for(let[u,m]of Object.entries(n))s.set(u,m);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var R=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],v={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},I=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(v).flat()],N=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],L={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(L).flat()],x={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(x).flat()],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:0,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...R,...I]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:v[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{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:"dotlink",text:"Free .link domain",tooltip:{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"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...N,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:L[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{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://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:x[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:x[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],it=o.find(e=>e.name==="Free"),V=o.find(e=>e.name==="Pro"),st=o.find(e=>e.name==="Business"),ot=o.find(e=>e.name==="Advanced"),C=o.find(e=>e.name==="Enterprise"),nt=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),at=2,b=(e,t)=>{var i;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(i=e.features)==null?void 0:i.map(s=>({...s,text:s.id==="clicks"?`${l(n.clicks)} tracked clicks/mo`:s.id==="links"?`${l(n.links)} new links/mo`:s.text}))}},lt=({priceId:e})=>{var n;let t=o.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:n[0])||1;return{plan:b(t,r),planTier:r}},ct=({plan:e,planTier:t=1})=>{let r=o.find(n=>n.name.toLowerCase()===e.toLowerCase());return b(r,t)},pt=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(r=>r.name.toLowerCase()===t)+1,o.length-1)]},dt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let i=o.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=o.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(n??1)},ut=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let i of o){if(!r&&i.price.monthly===0)continue;let s=[1,...Object.keys(i.tiers??{}).map(Number).filter(u=>u>=2)].find(u=>{var E,P;let m=u===1?i.limits:((P=(E=i.tiers)==null?void 0:E[u])==null?void 0:P.limits)??i.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(s!==void 0){n={plan:b(i,s),planTier:s};break}}return n??{plan:C,planTier:1}},mt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var h=e=>[{id:"clicks",text:e.name==="Enterprise"?"Unlimited tracked clicks":`${l(e.limits.clicks)} tracked clicks/mo`},{id:"links",text:e.name==="Enterprise"?"Unlimited new links":`${l(e.limits.links)} new links/mo`},{id:"retention",text:`${e.limits.retention} analytics retention`}],y=e=>[{id:"payouts",text:e.name==="Enterprise"?"Unlimited partner payouts":`$${l(e.limits.payouts/100)} partner payouts/mo`,tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}}],kt={links:{Pro:[{features:[...h(o.find(e=>e.name==="Pro")),{id:"advanced",text:"Advanced link features"},{id:"dotlink",text:"Free .link domain",tooltip:{title:"Get a free .link custom domain for 1 year with any of Dub's paid plans.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]}],Business:[{features:[...h(o.find(e=>e.name==="Business")),{id:"conversions",text:"Conversion tracking"},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]}],Advanced:[{features:[...h(o.find(e=>e.name==="Advanced")),{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...h(o.find(e=>e.name==="Enterprise")),{id:"sso",text:"SSO/SAML"},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"}]}]},partners:{Business:[{features:[...y(o.find(e=>e.name==="Business")),{id:"basicrewards",text:"Basic reward structures",tooltip:{title:"Create custom click, lead, or sale-based rewards, tailored to each partner's needs.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"conversions",text:"Dual-sided incentives",tooltip:{title:"Offer dual-sided incentives to your partners and the users they refer.",cta:"Learn more.",href:"https://dub.co/help/article/dual-sided-incentives"}},{id:"ailandingpage",text:"AI landing page generator",tooltip:{title:"Generate compelling landing pages using Dub AI to attract high-quality partners to join your program.",cta:"Learn more.",href:"https://dub.co/help/article/program-landing-page"}},{id:"webhooks",text:"Real-time event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"customerinsights",text:"Basic email support"}]}],Advanced:[{features:[...y(o.find(e=>e.name==="Advanced")),{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]}],Enterprise:[{features:[...y(o.find(e=>e.name==="Enterprise")),{id:"partners",text:"Partner Network",tooltip:{title:"Get access to our network of 5,000+ active affiliate partners."}},{id:"sso",text:"SSO/SAML",tooltip:{title:"Enable single sign-on (SSO) for your entire organization using SAML.",cta:"Learn more.",href:"https://dub.co/help/category/saml-sso"}},{id:"logs",text:"Audit logs"},{id:"sla",text:"Custom SLA"},{id:"success",text:"Dedicated success manager"}]}]}};var zt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,zt as b,te as c,re as d,ie as e,se as f,oe as g,ne as h,ae as i,pe as j,de as k,D as l,o as m,it as n,V as o,st as p,ot as q,C as r,nt as s,at as t,lt as u,ct as v,pt as w,dt as x,ut as y,mt as z,kt as A};
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as ya,a as ia,l as ja,m as ka,n as la,o as ma,p as na,q as oa,r as pa,s as qa,t as ra,u as sa,v as ta,w as ua,x as va,y as wa,z as xa}from"../chunk-
|
|
1
|
+
import{A as ya,a as ia,l as ja,m as ka,n as la,o as ma,p as na,q as oa,r as pa,s as qa,t as ra,u as sa,v as ta,w as ua,x as va,y as wa,z as xa}from"../chunk-NI27TPGK.mjs";import"../chunk-AQPTJK67.mjs";import"../chunk-STMJW3HF.mjs";import"../chunk-CP4WO7MM.mjs";import"../chunk-2XEQCQCO.mjs";import"../chunk-53SZZ2QK.mjs";import"../chunk-UWXN5NEH.mjs";import"../chunk-WOURDH2J.mjs";import"../chunk-HR4YFT2T.mjs";import"../chunk-BWEJXFI3.mjs";import"../chunk-PZ5KH242.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-D2EWHUD3.mjs";import{a as za}from"../chunk-MJT4YMEY.mjs";import"../chunk-KIDNKMJ2.mjs";import"../chunk-NFQB22EC.mjs";import"../chunk-LPWMMOGV.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-3Q25XO3O.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-WKSJXYEU.mjs";import"../chunk-RFDM4NES.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-GRNEXX4Q.mjs";import"../chunk-N5E6WGFW.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-VQH3G3BC.mjs";import"../chunk-ZTPDEOIY.mjs";import"../chunk-XN7WAYOX.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-JKFE3UP3.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-VZT64RAP.mjs";import"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-UCO6SXQA.mjs";import{a as ca,b as da}from"../chunk-2N7XAD3K.mjs";import{a as ea,b as fa}from"../chunk-KQ4NF54J.mjs";import{a as ga}from"../chunk-W27XWZBS.mjs";import{a as ha}from"../chunk-6MXH6P2P.mjs";import"../chunk-52NREKQ5.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import{a as I,b as J,c as K}from"../chunk-MWDHT2QR.mjs";import{a as L,b as M,c as N,d as O,e as P,f as Q}from"../chunk-2MOTUFXD.mjs";import{a as R}from"../chunk-PYD75RYX.mjs";import{a as S,b as T}from"../chunk-2OGPCKQX.mjs";import{a as m,b as n,c as o,d as p,e as q,f as r,g as s,h as t,i as u,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H}from"../chunk-C5CCX7UU.mjs";import{a as U,b as V,c as W}from"../chunk-DEIZ6NOQ.mjs";import{a as X,b as Y,c as Z,d as _,e as $,f as aa,g as ba}from"../chunk-2YQGBO42.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-JO76EBDG.mjs";import{a as c,b as d,c as e}from"../chunk-RRVBMEYA.mjs";import{a as f,b as g,c as h}from"../chunk-6YGW3G46.mjs";import{a as i}from"../chunk-6OQAYXTQ.mjs";import{a as j}from"../chunk-CELI6EJU.mjs";import{a as k,b as l}from"../chunk-SYT2IXG6.mjs";export{E as ACME_PROGRAM_ID,D as ACME_WORKSPACE_ID,t as ADMIN_HOSTNAMES,oa as ADVANCED_PLAN,R as ALL_TOOLS,s as API_DOMAIN,r as API_HOSTNAMES,p as APP_DOMAIN,q as APP_DOMAIN_WITH_NGROK,o as APP_HOSTNAMES,m as APP_NAME,na as BUSINESS_PLAN,b as CONNECT_SUPPORTED_COUNTRIES,c as CONTINENTS,d as CONTINENT_CODES,f as COUNTRIES,e as COUNTRIES_TO_CONTINENTS,g as COUNTRY_CODES,i as COUNTRY_CURRENCY_CODES,j as COUNTRY_PHONE_CODES,X as DEFAULT_LINK_PROPS,_ as DEFAULT_PAGINATION_LIMIT,U as DEFAULT_REDIRECTS,K as DUB_DEMO_LINKS,I as DUB_DOMAINS,J as DUB_DOMAINS_ARRAY,aa as DUB_FOUNDING_DATE,V as DUB_HEADERS,x as DUB_LOGO,y as DUB_LOGO_SQUARE,z as DUB_QR_LOGO,B as DUB_THUMBNAIL,A as DUB_WORDMARK,C as DUB_WORKSPACE_ID,pa as ENTERPRISE_PLAN,h as EU_COUNTRY_CODES,la as FREE_PLAN,ra as FREE_WORKSPACES_LIMIT,Y as GOOGLE_FAVICON_URL,Q as HUBSPOT_INTEGRATION_ID,ba as INFINITY_NUMBER,G as LEGAL_USER_ID,F as LEGAL_WORKSPACE_ID,S as LOCALHOST_GEO_DATA,T as LOCALHOST_IP,ja as NEW_BUSINESS_PRICE_IDS,Z as OG_AVATAR_URL,v as PARTNERS_DOMAIN,w as PARTNERS_DOMAIN_WITH_NGROK,u as PARTNERS_HOSTNAMES,da as PAYPAL_SUPPORTED_COUNTRIES,ca as PAYPAL_SUPPORTED_COUNTRIES_FULL,ka as PLANS,ia as PRICING_PLAN_COMPARE_FEATURES,ya as PRICING_PLAN_MAIN_FEATURES,za as PRICING_PLAN_TAGLINES,ma as PRO_PLAN,H as R2_URL,W as REDIRECTION_QUERY_PARAM,ea as REGIONS,fa as REGION_CODES,ga as RESERVED_SLUGS,ha as SAML_PROVIDERS,k as SECOND_LEVEL_DOMAINS,N as SEGMENT_INTEGRATION_ID,qa as SELF_SERVE_PAID_PLANS,P as SHOPIFY_INTEGRATION_ID,n as SHORT_DOMAIN,L as SLACK_INTEGRATION_ID,l as SPECIAL_APEX_DOMAINS,M as STRIPE_INTEGRATION_ID,$ as TWO_WEEKS_IN_SECONDS,O as ZAPIER_INTEGRATION_ID,a as ccTLDs,ua as getNextPlan,sa as getPlanAndTierFromPriceId,ta as getPlanDetails,wa as getSuggestedPlan,va as isDowngradePlan,xa as isLegacyBusinessPlan};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as a}from"../../chunk-
|
|
1
|
+
import{A as a}from"../../chunk-NI27TPGK.mjs";import"../../chunk-AQPTJK67.mjs";import"../../chunk-STMJW3HF.mjs";import"../../chunk-CP4WO7MM.mjs";import"../../chunk-2XEQCQCO.mjs";import"../../chunk-53SZZ2QK.mjs";import"../../chunk-UWXN5NEH.mjs";import"../../chunk-WOURDH2J.mjs";import"../../chunk-HR4YFT2T.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-D2EWHUD3.mjs";import"../../chunk-MJT4YMEY.mjs";import"../../chunk-KIDNKMJ2.mjs";import"../../chunk-NFQB22EC.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-XN7WAYOX.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-W27XWZBS.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{a as PRICING_PLAN_MAIN_FEATURES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"../../chunk-
|
|
1
|
+
import{b as a}from"../../chunk-NI27TPGK.mjs";import"../../chunk-AQPTJK67.mjs";import"../../chunk-STMJW3HF.mjs";import"../../chunk-CP4WO7MM.mjs";import"../../chunk-2XEQCQCO.mjs";import"../../chunk-53SZZ2QK.mjs";import"../../chunk-UWXN5NEH.mjs";import"../../chunk-WOURDH2J.mjs";import"../../chunk-HR4YFT2T.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-D2EWHUD3.mjs";import"../../chunk-MJT4YMEY.mjs";import"../../chunk-KIDNKMJ2.mjs";import"../../chunk-NFQB22EC.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-XN7WAYOX.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-W27XWZBS.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{a as formatPeriod};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h}from"../../chunk-
|
|
1
|
+
import{b as h}from"../../chunk-NI27TPGK.mjs";import{a as l}from"../../chunk-AQPTJK67.mjs";import{a as e}from"../../chunk-STMJW3HF.mjs";import{a as d}from"../../chunk-CP4WO7MM.mjs";import{a as g}from"../../chunk-2XEQCQCO.mjs";import{a as f}from"../../chunk-53SZZ2QK.mjs";import{a as i}from"../../chunk-UWXN5NEH.mjs";import{a as j}from"../../chunk-WOURDH2J.mjs";import{a as k}from"../../chunk-HR4YFT2T.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-D2EWHUD3.mjs";import"../../chunk-MJT4YMEY.mjs";import{a,b,c}from"../../chunk-KIDNKMJ2.mjs";import"../../chunk-NFQB22EC.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-XN7WAYOX.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-W27XWZBS.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{d as formatDate,e as formatDateSmart,f as formatDateTime,g as formatDateTimeSmart,h as formatPeriod,b as getAdjustedBillingCycleStart,c as getBillingStartDate,i as getDateTimeLocal,j as getDaysDifference,k as getFirstAndLastDay,a as getLastDayOfMonth,l as parseDateTime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g}from"../chunk-
|
|
1
|
+
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g}from"../chunk-NI27TPGK.mjs";import"../chunk-AQPTJK67.mjs";import"../chunk-STMJW3HF.mjs";import"../chunk-CP4WO7MM.mjs";import"../chunk-2XEQCQCO.mjs";import"../chunk-53SZZ2QK.mjs";import"../chunk-UWXN5NEH.mjs";import"../chunk-WOURDH2J.mjs";import"../chunk-HR4YFT2T.mjs";import"../chunk-BWEJXFI3.mjs";import"../chunk-PZ5KH242.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-D2EWHUD3.mjs";import"../chunk-MJT4YMEY.mjs";import"../chunk-KIDNKMJ2.mjs";import"../chunk-NFQB22EC.mjs";import"../chunk-LPWMMOGV.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-3Q25XO3O.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-WKSJXYEU.mjs";import"../chunk-RFDM4NES.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-GRNEXX4Q.mjs";import"../chunk-N5E6WGFW.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-VQH3G3BC.mjs";import"../chunk-ZTPDEOIY.mjs";import"../chunk-XN7WAYOX.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-JKFE3UP3.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-VZT64RAP.mjs";import"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-W27XWZBS.mjs";import"../chunk-6MXH6P2P.mjs";import"../chunk-52NREKQ5.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{a as generateDomainFromName,e as getApexDomain,f as getDomainWithoutWWW,d as getSubdomain,g as isDubDomain,b as validDomainRegex,c as validSlugRegex};
|
|
@@ -47,7 +47,7 @@ export { textFetcher } from './text-fetcher.js';
|
|
|
47
47
|
export { timeAgo } from './time-ago.js';
|
|
48
48
|
export { trim } from './trim.js';
|
|
49
49
|
export { truncate } from './truncate.js';
|
|
50
|
-
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './urls.js';
|
|
50
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUTMParamsFromURL, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './urls.js';
|
|
51
51
|
import 'clsx';
|
|
52
52
|
import 'next';
|
|
53
53
|
import 'react';
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r,c as
|
|
1
|
+
import{b as r,c as P,d as Q,e as R,f as S,g as T,h as U,i as V,j as fa,k as ga}from"../chunk-NI27TPGK.mjs";import{a as v}from"../chunk-AQPTJK67.mjs";import{a as o}from"../chunk-STMJW3HF.mjs";import{a as n}from"../chunk-CP4WO7MM.mjs";import{a as q}from"../chunk-2XEQCQCO.mjs";import{a as p}from"../chunk-53SZZ2QK.mjs";import{a as s}from"../chunk-UWXN5NEH.mjs";import{a as t}from"../chunk-WOURDH2J.mjs";import{a as u}from"../chunk-HR4YFT2T.mjs";import{a as ya}from"../chunk-BWEJXFI3.mjs";import{a as za}from"../chunk-PZ5KH242.mjs";import{a as Aa}from"../chunk-E3EM6ARH.mjs";import{a as x,b as y,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H,l as I,m as J,n as K,o as L,p as M,q as N,r as O}from"../chunk-D2EWHUD3.mjs";import"../chunk-MJT4YMEY.mjs";import{a as k,b as l,c as m}from"../chunk-KIDNKMJ2.mjs";import{a as ma}from"../chunk-NFQB22EC.mjs";import{a as na,b as oa,c as pa}from"../chunk-LPWMMOGV.mjs";import{a as qa,b as ra}from"../chunk-IHX4EDUF.mjs";import{a as sa}from"../chunk-RONJDARA.mjs";import{a as ta}from"../chunk-3Q25XO3O.mjs";import{a as ua}from"../chunk-Y37NQHZ4.mjs";import{a as wa}from"../chunk-PPEZOXLP.mjs";import{a as va}from"../chunk-FKLXONKR.mjs";import{a as xa}from"../chunk-NQP6WK7A.mjs";import{a as ca,b as da,c as ea}from"../chunk-WKSJXYEU.mjs";import{a as ha}from"../chunk-RFDM4NES.mjs";import{a as ia}from"../chunk-OWYWG4M6.mjs";import{a}from"../chunk-NWFCCRLG.mjs";import{a as ja}from"../chunk-GRNEXX4Q.mjs";import{a as ka}from"../chunk-N5E6WGFW.mjs";import{a as la}from"../chunk-EHUYHMHD.mjs";import{a as X}from"../chunk-EMO4MGOU.mjs";import{a as Y}from"../chunk-VQH3G3BC.mjs";import{a as Z}from"../chunk-ZTPDEOIY.mjs";import{a as _}from"../chunk-XN7WAYOX.mjs";import{a as $}from"../chunk-F4P6WJV7.mjs";import{a as aa}from"../chunk-JKFE3UP3.mjs";import{a as ba}from"../chunk-NZ4UYKAT.mjs";import{a as f}from"../chunk-NEIHTFSW.mjs";import{a as g}from"../chunk-HJD7AJT4.mjs";import{a as h}from"../chunk-VZT64RAP.mjs";import{a as j}from"../chunk-KDMJUM2I.mjs";import{a as i}from"../chunk-FJFDTHKA.mjs";import{a as w}from"../chunk-ZECUYKGD.mjs";import{a as W}from"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-W27XWZBS.mjs";import"../chunk-6MXH6P2P.mjs";import{a as b}from"../chunk-52NREKQ5.mjs";import{a as c}from"../chunk-ORB6LTBV.mjs";import{a as d}from"../chunk-PMOQSSOL.mjs";import{a as e}from"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{E as UTMTags,b as arrayEqual,N as buildUrl,d as capitalize,e as chunk,f as cn,g as combineWords,h as constructMetadata,F as constructURLFromUTMParams,K as createHref,j as currencyFormatter,w as deepEqual,W as fetchWithRetry,X as fetchWithTimeout,Y as fetcher,n as formatDate,o as formatDateSmart,p as formatDateTime,q as formatDateTimeSmart,Z as formatFileSize,r as formatPeriod,P as generateDomainFromName,l as getAdjustedBillingCycleStart,T as getApexDomain,m as getBillingStartDate,s as getDateTimeLocal,t as getDaysDifference,U as getDomainWithoutWWW,O as getFileExtension,u as getFirstAndLastDay,k as getLastDayOfMonth,D as getParamsFromURL,L as getPathnameFromUrl,J as getPrettyUrl,B as getSearchParams,C as getSearchParamsWithArray,S as getSubdomain,H as getUTMParamsFromURL,y as getUrlFromString,A as getUrlFromStringIfValid,z as getUrlObjFromString,I as getUrlWithoutUTMParams,_ as groupBy,$ as hashStringSHA256,aa as isClickOnInteractiveChild,V as isDubDomain,na as isFulfilled,ba as isIframeable,oa as isRejected,ea as isReservedKeyGlobal,da as isUnsupportedKey,x as isValidUrl,i as isZeroDecimalCurrency,fa as linkConstructor,ga as linkConstructorSimple,ha as log,pa as logPromiseResults,a as nFormatter,ia as nanoid,ja as normalizeString,M as normalizeUrl,G as paramsMetadata,v as parseDateTime,ka as pick,la as pluralize,ma as prettyPrint,ra as punyEncode,qa as punycode,sa as randomValue,ta as regexEscape,ua as resizeImage,wa as smartTruncate,xa as stableSort,ya as textFetcher,za as timeAgo,c as toCamelCase,Aa as trim,va as truncate,Q as validDomainRegex,ca as validKeyRegex,R as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a,k as b}from"../chunk-
|
|
1
|
+
import{j as a,k as b}from"../chunk-NI27TPGK.mjs";import"../chunk-AQPTJK67.mjs";import"../chunk-STMJW3HF.mjs";import"../chunk-CP4WO7MM.mjs";import"../chunk-2XEQCQCO.mjs";import"../chunk-53SZZ2QK.mjs";import"../chunk-UWXN5NEH.mjs";import"../chunk-WOURDH2J.mjs";import"../chunk-HR4YFT2T.mjs";import"../chunk-BWEJXFI3.mjs";import"../chunk-PZ5KH242.mjs";import"../chunk-E3EM6ARH.mjs";import"../chunk-D2EWHUD3.mjs";import"../chunk-MJT4YMEY.mjs";import"../chunk-KIDNKMJ2.mjs";import"../chunk-NFQB22EC.mjs";import"../chunk-LPWMMOGV.mjs";import"../chunk-IHX4EDUF.mjs";import"../chunk-RONJDARA.mjs";import"../chunk-3Q25XO3O.mjs";import"../chunk-Y37NQHZ4.mjs";import"../chunk-PPEZOXLP.mjs";import"../chunk-FKLXONKR.mjs";import"../chunk-NQP6WK7A.mjs";import"../chunk-WKSJXYEU.mjs";import"../chunk-RFDM4NES.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-NWFCCRLG.mjs";import"../chunk-GRNEXX4Q.mjs";import"../chunk-N5E6WGFW.mjs";import"../chunk-EHUYHMHD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-VQH3G3BC.mjs";import"../chunk-ZTPDEOIY.mjs";import"../chunk-XN7WAYOX.mjs";import"../chunk-F4P6WJV7.mjs";import"../chunk-JKFE3UP3.mjs";import"../chunk-NZ4UYKAT.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-HJD7AJT4.mjs";import"../chunk-VZT64RAP.mjs";import"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-UCO6SXQA.mjs";import"../chunk-2N7XAD3K.mjs";import"../chunk-KQ4NF54J.mjs";import"../chunk-W27XWZBS.mjs";import"../chunk-6MXH6P2P.mjs";import"../chunk-52NREKQ5.mjs";import"../chunk-ORB6LTBV.mjs";import"../chunk-PMOQSSOL.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-MWDHT2QR.mjs";import"../chunk-2MOTUFXD.mjs";import"../chunk-PYD75RYX.mjs";import"../chunk-2OGPCKQX.mjs";import"../chunk-C5CCX7UU.mjs";import"../chunk-DEIZ6NOQ.mjs";import"../chunk-2YQGBO42.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-JO76EBDG.mjs";import"../chunk-RRVBMEYA.mjs";import"../chunk-6YGW3G46.mjs";import"../chunk-6OQAYXTQ.mjs";import"../chunk-CELI6EJU.mjs";import"../chunk-SYT2IXG6.mjs";export{a as linkConstructor,b as linkConstructorSimple};
|
package/dist/functions/urls.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ declare const paramsMetadata: {
|
|
|
12
12
|
key: string;
|
|
13
13
|
examples: string;
|
|
14
14
|
}[];
|
|
15
|
+
declare const getUTMParamsFromURL: (url: string) => {
|
|
16
|
+
[k: string]: string;
|
|
17
|
+
};
|
|
15
18
|
declare const getUrlWithoutUTMParams: (url: string) => string;
|
|
16
19
|
declare const getPrettyUrl: (url?: string | null) => string;
|
|
17
20
|
declare const createHref: (href: string, domain: string, utmParams?: Partial<Record<(typeof UTMTags)[number], string>>) => string;
|
|
@@ -20,4 +23,4 @@ declare const normalizeUrl: (url: string) => string;
|
|
|
20
23
|
declare function buildUrl(baseUrl: string, params?: Record<string, string | number | boolean | null | undefined>): string;
|
|
21
24
|
declare const getFileExtension: (url: string) => string | null;
|
|
22
25
|
|
|
23
|
-
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata };
|
|
26
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUTMParamsFromURL, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata };
|
package/dist/functions/urls.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-D2EWHUD3.mjs";export{h as UTMTags,q as buildUrl,i as constructURLFromUTMParams,n as createHref,r as getFileExtension,g as getParamsFromURL,o as getPathnameFromUrl,m as getPrettyUrl,e as getSearchParams,f as getSearchParamsWithArray,k as getUTMParamsFromURL,b as getUrlFromString,d as getUrlFromStringIfValid,c as getUrlObjFromString,l as getUrlWithoutUTMParams,a as isValidUrl,p as normalizeUrl,j as paramsMetadata};
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export { textFetcher } from './functions/text-fetcher.js';
|
|
|
68
68
|
export { timeAgo } from './functions/time-ago.js';
|
|
69
69
|
export { trim } from './functions/trim.js';
|
|
70
70
|
export { truncate } from './functions/truncate.js';
|
|
71
|
-
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './functions/urls.js';
|
|
71
|
+
export { UTMTags, buildUrl, constructURLFromUTMParams, createHref, getFileExtension, getParamsFromURL, getPathnameFromUrl, getPrettyUrl, getSearchParams, getSearchParamsWithArray, getUTMParamsFromURL, getUrlFromString, getUrlFromStringIfValid, getUrlObjFromString, getUrlWithoutUTMParams, isValidUrl, normalizeUrl, paramsMetadata } from './functions/urls.js';
|
|
72
72
|
import 'react';
|
|
73
73
|
import 'clsx';
|
|
74
74
|
import 'next';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as
|
|
1
|
+
import{A as Zb,a as ja,b as Aa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb,j as ob,k as pb,l as Kb,m as Lb,n as Mb,o as Nb,p as Ob,q as Pb,r as Qb,s as Rb,t as Sb,u as Tb,v as Ub,w as Vb,x as Wb,y as Xb,z as Yb}from"./chunk-NI27TPGK.mjs";import{a as Ea}from"./chunk-AQPTJK67.mjs";import{a as xa}from"./chunk-STMJW3HF.mjs";import{a as wa}from"./chunk-CP4WO7MM.mjs";import{a as za}from"./chunk-2XEQCQCO.mjs";import{a as ya}from"./chunk-53SZZ2QK.mjs";import{a as Ba}from"./chunk-UWXN5NEH.mjs";import{a as Ca}from"./chunk-WOURDH2J.mjs";import{a as Da}from"./chunk-HR4YFT2T.mjs";import{a as Hb}from"./chunk-BWEJXFI3.mjs";import{a as Ib}from"./chunk-PZ5KH242.mjs";import{a as Jb}from"./chunk-E3EM6ARH.mjs";import{a as Ga,b as Ha,c as Ia,d as Ja,e as Ka,f as La,g as Ma,h as Na,i as Oa,j as Pa,k as Qa,l as Ra,m as Sa,n as Ta,o as Ua,p as Va,q as Wa,r as Xa}from"./chunk-D2EWHUD3.mjs";import{a as _b}from"./chunk-MJT4YMEY.mjs";import{a as ta,b as ua,c as va}from"./chunk-KIDNKMJ2.mjs";import{a as vb}from"./chunk-NFQB22EC.mjs";import{a as wb,b as xb,c as yb}from"./chunk-LPWMMOGV.mjs";import{a as zb,b as Ab}from"./chunk-IHX4EDUF.mjs";import{a as Bb}from"./chunk-RONJDARA.mjs";import{a as Cb}from"./chunk-3Q25XO3O.mjs";import{a as Db}from"./chunk-Y37NQHZ4.mjs";import{a as Fb}from"./chunk-PPEZOXLP.mjs";import{a as Eb}from"./chunk-FKLXONKR.mjs";import{a as Gb}from"./chunk-NQP6WK7A.mjs";import{a as lb,b as mb,c as nb}from"./chunk-WKSJXYEU.mjs";import{a as qb}from"./chunk-RFDM4NES.mjs";import{a as rb}from"./chunk-OWYWG4M6.mjs";import{a as ia}from"./chunk-NWFCCRLG.mjs";import{a as sb}from"./chunk-GRNEXX4Q.mjs";import{a as tb}from"./chunk-N5E6WGFW.mjs";import{a as ub}from"./chunk-EHUYHMHD.mjs";import{a as eb}from"./chunk-EMO4MGOU.mjs";import{a as fb}from"./chunk-VQH3G3BC.mjs";import{a as gb}from"./chunk-ZTPDEOIY.mjs";import{a as hb}from"./chunk-XN7WAYOX.mjs";import{a as ib}from"./chunk-F4P6WJV7.mjs";import{a as jb}from"./chunk-JKFE3UP3.mjs";import{a as kb}from"./chunk-NZ4UYKAT.mjs";import{a as oa}from"./chunk-NEIHTFSW.mjs";import{a as pa}from"./chunk-HJD7AJT4.mjs";import{a as qa}from"./chunk-VZT64RAP.mjs";import{a as sa}from"./chunk-KDMJUM2I.mjs";import{a as ra}from"./chunk-FJFDTHKA.mjs";import{a as Fa}from"./chunk-ZECUYKGD.mjs";import{a as db}from"./chunk-UCO6SXQA.mjs";import{a as ca,b as da}from"./chunk-2N7XAD3K.mjs";import{a as ea,b as fa}from"./chunk-KQ4NF54J.mjs";import{a as ga}from"./chunk-W27XWZBS.mjs";import{a as ha}from"./chunk-6MXH6P2P.mjs";import{a as ka}from"./chunk-52NREKQ5.mjs";import{a as la}from"./chunk-ORB6LTBV.mjs";import{a as ma}from"./chunk-PMOQSSOL.mjs";import{a as na}from"./chunk-2OJAP233.mjs";import{a as I,b as J,c as K}from"./chunk-MWDHT2QR.mjs";import{a as L,b as M,c as N,d as O,e as P,f as Q}from"./chunk-2MOTUFXD.mjs";import{a as R}from"./chunk-PYD75RYX.mjs";import{a as S,b as T}from"./chunk-2OGPCKQX.mjs";import{a as m,b as n,c as o,d as p,e as q,f as r,g as s,h as t,i as u,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H}from"./chunk-C5CCX7UU.mjs";import{a as U,b as V,c as W}from"./chunk-DEIZ6NOQ.mjs";import{a as X,b as Y,c as Z,d as _,e as $,f as aa,g as ba}from"./chunk-2YQGBO42.mjs";import{a}from"./chunk-YUMUNL66.mjs";import{a as b}from"./chunk-JO76EBDG.mjs";import{a as c,b as d,c as e}from"./chunk-RRVBMEYA.mjs";import{a as f,b as g,c as h}from"./chunk-6YGW3G46.mjs";import{a as i}from"./chunk-6OQAYXTQ.mjs";import{a as j}from"./chunk-CELI6EJU.mjs";import{a as k,b as l}from"./chunk-SYT2IXG6.mjs";export{E as ACME_PROGRAM_ID,D as ACME_WORKSPACE_ID,t as ADMIN_HOSTNAMES,Pb as ADVANCED_PLAN,R as ALL_TOOLS,s as API_DOMAIN,r as API_HOSTNAMES,p as APP_DOMAIN,q as APP_DOMAIN_WITH_NGROK,o as APP_HOSTNAMES,m as APP_NAME,Ob as BUSINESS_PLAN,b as CONNECT_SUPPORTED_COUNTRIES,c as CONTINENTS,d as CONTINENT_CODES,f as COUNTRIES,e as COUNTRIES_TO_CONTINENTS,g as COUNTRY_CODES,i as COUNTRY_CURRENCY_CODES,j as COUNTRY_PHONE_CODES,X as DEFAULT_LINK_PROPS,_ as DEFAULT_PAGINATION_LIMIT,U as DEFAULT_REDIRECTS,K as DUB_DEMO_LINKS,I as DUB_DOMAINS,J as DUB_DOMAINS_ARRAY,aa as DUB_FOUNDING_DATE,V as DUB_HEADERS,x as DUB_LOGO,y as DUB_LOGO_SQUARE,z as DUB_QR_LOGO,B as DUB_THUMBNAIL,A as DUB_WORDMARK,C as DUB_WORKSPACE_ID,Qb as ENTERPRISE_PLAN,h as EU_COUNTRY_CODES,Mb as FREE_PLAN,Sb as FREE_WORKSPACES_LIMIT,Y as GOOGLE_FAVICON_URL,Q as HUBSPOT_INTEGRATION_ID,ba as INFINITY_NUMBER,G as LEGAL_USER_ID,F as LEGAL_WORKSPACE_ID,S as LOCALHOST_GEO_DATA,T as LOCALHOST_IP,Kb as NEW_BUSINESS_PRICE_IDS,Z as OG_AVATAR_URL,v as PARTNERS_DOMAIN,w as PARTNERS_DOMAIN_WITH_NGROK,u as PARTNERS_HOSTNAMES,da as PAYPAL_SUPPORTED_COUNTRIES,ca as PAYPAL_SUPPORTED_COUNTRIES_FULL,Lb as PLANS,ja as PRICING_PLAN_COMPARE_FEATURES,Zb as PRICING_PLAN_MAIN_FEATURES,_b as PRICING_PLAN_TAGLINES,Nb as PRO_PLAN,H as R2_URL,W as REDIRECTION_QUERY_PARAM,ea as REGIONS,fa as REGION_CODES,ga as RESERVED_SLUGS,ha as SAML_PROVIDERS,k as SECOND_LEVEL_DOMAINS,N as SEGMENT_INTEGRATION_ID,Rb as SELF_SERVE_PAID_PLANS,P as SHOPIFY_INTEGRATION_ID,n as SHORT_DOMAIN,L as SLACK_INTEGRATION_ID,l as SPECIAL_APEX_DOMAINS,M as STRIPE_INTEGRATION_ID,$ as TWO_WEEKS_IN_SECONDS,Na as UTMTags,O as ZAPIER_INTEGRATION_ID,ka as arrayEqual,Wa as buildUrl,ma as capitalize,a as ccTLDs,na as chunk,oa as cn,pa as combineWords,qa as constructMetadata,Oa as constructURLFromUTMParams,Ta as createHref,sa as currencyFormatter,Fa as deepEqual,db as fetchWithRetry,eb as fetchWithTimeout,fb as fetcher,wa as formatDate,xa as formatDateSmart,ya as formatDateTime,za as formatDateTimeSmart,gb as formatFileSize,Aa as formatPeriod,Ya as generateDomainFromName,ua as getAdjustedBillingCycleStart,ab as getApexDomain,va as getBillingStartDate,Ba as getDateTimeLocal,Ca as getDaysDifference,bb as getDomainWithoutWWW,Xa as getFileExtension,Da as getFirstAndLastDay,ta as getLastDayOfMonth,Vb as getNextPlan,Ma as getParamsFromURL,Ua as getPathnameFromUrl,Tb as getPlanAndTierFromPriceId,Ub as getPlanDetails,Sa as getPrettyUrl,Ka as getSearchParams,La as getSearchParamsWithArray,$a as getSubdomain,Xb as getSuggestedPlan,Qa as getUTMParamsFromURL,Ha as getUrlFromString,Ja as getUrlFromStringIfValid,Ia as getUrlObjFromString,Ra as getUrlWithoutUTMParams,hb as groupBy,ib as hashStringSHA256,jb as isClickOnInteractiveChild,Wb as isDowngradePlan,cb as isDubDomain,wb as isFulfilled,kb as isIframeable,Yb as isLegacyBusinessPlan,xb as isRejected,nb as isReservedKeyGlobal,mb as isUnsupportedKey,Ga as isValidUrl,ra as isZeroDecimalCurrency,ob as linkConstructor,pb as linkConstructorSimple,qb as log,yb as logPromiseResults,ia as nFormatter,rb as nanoid,sb as normalizeString,Va as normalizeUrl,Pa as paramsMetadata,Ea as parseDateTime,tb as pick,ub as pluralize,vb as prettyPrint,Ab as punyEncode,zb as punycode,Bb as randomValue,Cb as regexEscape,Db as resizeImage,Fb as smartTruncate,Gb as stableSort,Hb as textFetcher,Ib as timeAgo,la as toCamelCase,Jb as trim,Eb as truncate,Za as validDomainRegex,lb as validKeyRegex,_a as validSlugRegex};
|