@dub/utils 0.1.43 → 0.1.45

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.
Files changed (67) hide show
  1. package/dist/chunk-2MOTUFXD.mjs +1 -0
  2. package/dist/chunk-2OYB5LKY.mjs +1 -0
  3. package/dist/chunk-3XCPOCNZ.mjs +1 -0
  4. package/dist/chunk-4FFWUR5E.mjs +1 -0
  5. package/dist/chunk-64YU3W2W.mjs +1 -0
  6. package/dist/chunk-6OQAYXTQ.mjs +1 -0
  7. package/dist/chunk-7JEDYJFC.mjs +1 -0
  8. package/dist/chunk-7OD2OCBK.mjs +1 -0
  9. package/dist/chunk-A4K2ZGCN.mjs +1 -0
  10. package/dist/chunk-BWEJXFI3.mjs +1 -0
  11. package/dist/chunk-CP3KLVJ3.mjs +1 -0
  12. package/dist/chunk-DPX5S3RQ.mjs +1 -0
  13. package/dist/chunk-EGAHCIHD.mjs +1 -0
  14. package/dist/chunk-EGYUEBQM.mjs +1 -0
  15. package/dist/chunk-FLZ5LSUI.mjs +1 -0
  16. package/dist/chunk-GYMWHOFV.mjs +1 -0
  17. package/dist/chunk-IEY7AJRJ.mjs +1 -0
  18. package/dist/chunk-KAJV7TUM.mjs +1 -0
  19. package/dist/chunk-KCXGFIIH.mjs +1 -0
  20. package/dist/chunk-L6QYIHYR.mjs +1 -0
  21. package/dist/chunk-LBOH7N6E.mjs +1 -0
  22. package/dist/chunk-OV7BAKGA.mjs +1 -0
  23. package/dist/chunk-P4CQQB5J.mjs +1 -0
  24. package/dist/chunk-PGWDHDXW.mjs +1 -0
  25. package/dist/chunk-PZ5KH242.mjs +1 -0
  26. package/dist/chunk-RH3WDV2R.mjs +1 -0
  27. package/dist/chunk-RWDXKYPW.mjs +1 -0
  28. package/dist/chunk-SBSVGLOZ.mjs +1 -0
  29. package/dist/chunk-STHXPKPL.mjs +1 -0
  30. package/dist/chunk-UGEAPPY5.mjs +1 -0
  31. package/dist/chunk-UPKDJVX5.mjs +1 -0
  32. package/dist/chunk-UYWVDGBV.mjs +1 -0
  33. package/dist/chunk-VHYL6UC5.mjs +1 -0
  34. package/dist/chunk-W2IKYXGJ.mjs +1 -0
  35. package/dist/chunk-X55ESCBU.mjs +1 -0
  36. package/dist/chunk-XT7QGMLY.mjs +1 -0
  37. package/dist/chunk-Y2JLLSMJ.mjs +1 -0
  38. package/dist/chunk-Y3ODRTIN.mjs +1 -0
  39. package/dist/chunk-YSLZXRMB.mjs +1 -0
  40. package/dist/chunk-Z54VFDFH.mjs +1 -0
  41. package/dist/constants/country-currency-codes.d.ts +5 -0
  42. package/dist/constants/country-currency-codes.mjs +1 -0
  43. package/dist/constants/dub-domains.mjs +1 -1
  44. package/dist/constants/framer-motion.d.ts +31 -31
  45. package/dist/constants/index.d.ts +3 -3
  46. package/dist/constants/index.mjs +1 -1
  47. package/dist/constants/integrations.d.ts +2 -1
  48. package/dist/constants/integrations.mjs +1 -1
  49. package/dist/functions/datetime/format-period.mjs +1 -1
  50. package/dist/functions/datetime/index.mjs +1 -1
  51. package/dist/functions/domains.mjs +1 -1
  52. package/dist/functions/generate-random-string.mjs +1 -1
  53. package/dist/functions/index.d.ts +2 -2
  54. package/dist/functions/index.mjs +1 -1
  55. package/dist/functions/link-constructor.mjs +1 -1
  56. package/dist/functions/text-fetcher.d.ts +5 -0
  57. package/dist/functions/text-fetcher.mjs +1 -0
  58. package/dist/functions/time-ago.mjs +1 -1
  59. package/dist/functions/urls.d.ts +5 -2
  60. package/dist/functions/urls.mjs +1 -1
  61. package/dist/index.d.ts +5 -5
  62. package/dist/index.mjs +1 -1
  63. package/dist/plan-compare-502267df.d.ts +1016 -0
  64. package/dist/plan-compare-87660f8f.d.ts +974 -0
  65. package/dist/plan-compare-a39cc647.d.ts +1010 -0
  66. package/dist/text-fetcher-c4d6999b.d.ts +5 -0
  67. package/package.json +7 -6
@@ -0,0 +1 @@
1
+ var I="clzu59rx9000110bm5fnlzwuj",t="clzra1ya60001wnj4a89zcg9h",T="int_zGnSElTzimbz20OWnXerPoKv",_="clzlmz336000fjeqynwhfv8vo",n="int_iWOtrZgmcyU6XDwKr4AYYqLN",o="int_ffw3qgrFAahY6qs1hXaH3wHS";export{I as a,t as b,T as c,_ as d,n as e,o as f};
@@ -0,0 +1 @@
1
+ import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-Y2JLLSMJ.mjs";import{a}from"./chunk-L6QYIHYR.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-NWFCCRLG.mjs";import{g as a}from"./chunk-2YQGBO42.mjs";import{Fragment as s,jsx as r,jsxs as i}from"react/jsx-runtime";var y=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>i(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.tags===a?"Unlimited":n(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.folders===a?"Unlimited":n(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":i(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${n(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":i(s,{children:[r("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":i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===a?"Unlimited":n(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 (beta)"},{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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>i(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>i(s,{children:["Free ",r("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})=>i(s,{children:[r("strong",{children:e==="enterprise"?"Custom":n(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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{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})=>r(s,{children:r("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:()=>i(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var d=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],u=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8"],f=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],h=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx"],o=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...d,...u]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,users:3,ai:1e3,api:600,retention:"1-year"},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:[...f,...h]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:a,folders:20,groups:3,users:10,ai:1e3,api:1200,retention:"3-year"},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:"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:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing (beta)"},{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"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo"]},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:a,folders:50,groups:10,users:20,ai:1e3,api:3e3,retention:"5-year"},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:"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:"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"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:a,domains:250,tags:a,folders:a,groups:a,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],m=o.find(e=>e.name==="Free"),k=o.find(e=>e.name==="Pro"),_=o.find(e=>e.name==="Business"),A=o.find(e=>e.name==="Advanced"),g=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),L=2,v=e=>o.find(t=>{var c;return(c=t.price.ids)==null?void 0:c.includes(e)})||null,w=e=>g.find(t=>t.name.toLowerCase()===e.toLowerCase()),J=e=>o.find(t=>t.name.toLowerCase()===e.toLowerCase())||m,R=e=>{if(!e)return k;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(c=>c.name.toLowerCase()===t)+1,o.length-1)]},N=(e,t)=>{let c=o.findIndex(l=>l.name.toLowerCase()===e.toLowerCase()),p=o.findIndex(l=>l.name.toLowerCase()===t.toLowerCase());return c>p},S=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{y as a,h as b,o as c,m as d,k as e,_ as f,A as g,g as h,L as i,v as j,w as k,J as l,R as m,N as n,S as o};
@@ -0,0 +1 @@
1
+ import{g as o}from"./chunk-2YQGBO42.mjs";import{a as n}from"./chunk-NWFCCRLG.mjs";import{Fragment as s,jsx as r,jsxs as i}from"react/jsx-runtime";var y=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>i(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.tags===o?"Unlimited":n(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.folders===o?"Unlimited":n(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":i(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${n(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":i(s,{children:[r("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":i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===o?"Unlimited":n(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 (beta)"},{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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>i(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>i(s,{children:["Free ",r("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})=>i(s,{children:[r("strong",{children:e==="enterprise"?"Custom":n(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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{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})=>r(s,{children:r("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:()=>i(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var d=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],u=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8"],f=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],h=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx"],a=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...d,...u]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,users:3,ai:1e3,api:600,retention:"1-year"},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:[...f,...h]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:o,folders:20,groups:3,users:10,ai:1e3,api:1200,retention:"3-year"},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:"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:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing (beta)"},{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"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo"]},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:o,folders:50,groups:10,users:20,ai:1e3,api:3e3,retention:"5-year"},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:"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"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:o,domains:250,tags:o,folders:o,groups:o,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],m=a.find(e=>e.name==="Free"),k=a.find(e=>e.name==="Pro"),_=a.find(e=>e.name==="Business"),A=a.find(e=>e.name==="Advanced"),g=a.filter(e=>["Pro","Business","Advanced"].includes(e.name)),w=2,L=e=>a.find(t=>{var c;return(c=t.price.ids)==null?void 0:c.includes(e)})||null,v=e=>g.find(t=>t.name.toLowerCase()===e.toLowerCase()),J=e=>a.find(t=>t.name.toLowerCase()===e.toLowerCase())||m,R=e=>{if(!e)return k;let t=e.toLowerCase().split(" ")[0];return a[Math.min(a.findIndex(c=>c.name.toLowerCase()===t)+1,a.length-1)]},N=(e,t)=>{let c=a.findIndex(l=>l.name.toLowerCase()===e.toLowerCase()),p=a.findIndex(l=>l.name.toLowerCase()===t.toLowerCase());return c>p},S=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{y as a,h as b,a as c,m as d,k as e,_ as f,A as g,g as h,w as i,L as j,v as k,J as l,R as m,N as n,S as o};
@@ -0,0 +1 @@
1
+ import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-Y2JLLSMJ.mjs";import{a}from"./chunk-LBOH7N6E.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ var D={AF:"AFN",AL:"ALL",DZ:"DZD",AS:"USD",AD:"EUR",AO:"AOA",AI:"XCD",AQ:"N/A",AG:"XCD",AR:"ARS",AM:"AMD",AW:"AWG",AU:"AUD",AT:"EUR",AZ:"AZN",BS:"BSD",BH:"BHD",BD:"BDT",BB:"BBD",BY:"BYN",BE:"EUR",BZ:"BZD",BJ:"XOF",BM:"BMD",BT:"BTN",BO:"BOB",BA:"BAM",BW:"BWP",BV:"NOK",BR:"BRL",IO:"USD",BN:"BND",BG:"BGN",BF:"XOF",BI:"BIF",KH:"KHR",CM:"XAF",CA:"CAD",CV:"CVE",KY:"KYD",CF:"XAF",TD:"XAF",CL:"CLP",CN:"CNY",CX:"AUD",CC:"AUD",CO:"COP",KM:"KMF",CG:"XAF",CD:"CDF",CK:"NZD",CR:"CRC",CI:"XOF",HR:"EUR",CU:"CUP",CY:"EUR",CZ:"CZK",DK:"DKK",DJ:"DJF",DM:"XCD",DO:"DOP",EC:"USD",EG:"EGP",SV:"USD",GQ:"XAF",ER:"ERN",EE:"EUR",ET:"ETB",FK:"FKP",FO:"DKK",FJ:"FJD",FI:"EUR",FR:"EUR",GF:"EUR",PF:"XPF",TF:"EUR",GA:"XAF",GM:"GMD",GE:"GEL",DE:"EUR",GH:"GHS",GI:"GIP",GR:"EUR",GL:"DKK",GD:"XCD",GP:"EUR",GU:"USD",GT:"GTQ",GN:"GNF",GW:"XOF",GY:"GYD",HT:"HTG",HM:"AUD",VA:"EUR",HN:"HNL",HK:"HKD",HU:"HUF",IS:"ISK",IN:"INR",ID:"IDR",IR:"IRR",IQ:"IQD",IE:"EUR",IL:"ILS",IT:"EUR",JM:"JMD",JP:"JPY",JO:"JOD",KZ:"KZT",KE:"KES",KI:"AUD",KP:"KPW",KR:"KRW",KW:"KWD",KG:"KGS",LA:"LAK",LV:"EUR",LB:"LBP",LS:"LSL",LR:"LRD",LY:"LYD",LI:"CHF",LT:"EUR",LU:"EUR",MO:"MOP",MG:"MGA",MW:"MWK",MY:"MYR",MV:"MVR",ML:"XOF",MT:"EUR",MH:"USD",MQ:"EUR",MR:"MRU",MU:"MUR",YT:"EUR",MX:"MXN",FM:"USD",MD:"MDL",MC:"EUR",MN:"MNT",MS:"XCD",MA:"MAD",MZ:"MZN",MM:"MMK",NA:"NAD",NR:"AUD",NP:"NPR",NL:"EUR",NC:"XPF",NZ:"NZD",NI:"NIO",NE:"XOF",NG:"NGN",NU:"NZD",NF:"AUD",MK:"MKD",MP:"USD",NO:"NOK",OM:"OMR",PK:"PKR",PW:"USD",PS:"ILS",PA:"PAB",PG:"PGK",PY:"PYG",PE:"PEN",PH:"PHP",PN:"NZD",PL:"PLN",PT:"EUR",PR:"USD",QA:"QAR",RE:"EUR",RO:"RON",RU:"RUB",RW:"RWF",SH:"SHP",KN:"XCD",LC:"XCD",PM:"EUR",VC:"XCD",WS:"WST",SM:"EUR",ST:"STN",SA:"SAR",SN:"XOF",SC:"SCR",SL:"SLE",SG:"SGD",SK:"EUR",SI:"EUR",SB:"SBD",SO:"SOS",ZA:"ZAR",GS:"GBP",ES:"EUR",LK:"LKR",SD:"SDG",SR:"SRD",SJ:"NOK",SZ:"SZL",SE:"SEK",CH:"CHF",SY:"SYP",TW:"TWD",TJ:"TJS",TZ:"TZS",TH:"THB",TL:"USD",TG:"XOF",TK:"NZD",TO:"TOP",TT:"TTD",TN:"TND",TR:"TRY",TM:"TMT",TC:"USD",TV:"AUD",UG:"UGX",UA:"UAH",AE:"AED",GB:"GBP",US:"USD",UM:"USD",UY:"UYU",UZ:"UZS",VU:"VUV",VE:"VES",VN:"VND",VG:"USD",VI:"USD",WF:"XPF",EH:"MAD",YE:"YER",ZM:"ZMW",ZW:"ZWG",AX:"EUR",BQ:"USD",CW:"ANG",GG:"GBP",IM:"GBP",JE:"GBP",ME:"EUR",BL:"EUR",MF:"EUR",RS:"RSD",SX:"ANG",SS:"SSP",XK:"EUR"};export{D as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-L6QYIHYR.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-Y2JLLSMJ.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a as f}from"./chunk-CP4WO7MM.mjs";import{a as n}from"./chunk-IHX4EDUF.mjs";import{randomBytes as a}from"crypto";function E(r){let o="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",m=a(r),e="";for(let t=0;t<r;t++){let p=m[t]%o.length;e+=o[p]}return e}function b({domain:r,key:o,pretty:m,searchParams:e}){if(!r)return"";let t=`https://${n(r)}${o&&o!=="_root"?`/${n(o)}`:""}`;if(e){let p=new URLSearchParams;for(let[x,i]of Object.entries(e))p.set(x,i);t+=`?${p.toString()}`}return m?t.replace(/^https?:\/\//,""):t}function w({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var hr=r=>!r.periodStart||!r.periodEnd?"-":`${f(r.periodStart,{month:"short",year:new Date(r.periodStart).getUTCFullYear()===new Date(r.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${f(r.periodEnd,{month:"short",timeZone:"utc"})}`;export{hr as a,E as b,b as c,w as d};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-NWFCCRLG.mjs";import{g as o}from"./chunk-2YQGBO42.mjs";import{Fragment as s,jsx as r,jsxs as i}from"react/jsx-runtime";var y=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>i(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.tags===o?"Unlimited":n(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.folders===o?"Unlimited":n(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":i(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${n(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":i(s,{children:[r("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":i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===o?"Unlimited":n(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 (beta)"},{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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>i(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>i(s,{children:["Free ",r("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})=>i(s,{children:[r("strong",{children:e==="enterprise"?"Custom":n(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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{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})=>r(s,{children:r("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:()=>i(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var d=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],u=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8"],f=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],h=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx"],a=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...d,...u]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,users:3,ai:1e3,api:600,retention:"1-year"},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:[...f,...h]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:o,folders:20,groups:3,users:10,ai:1e3,api:1200,retention:"3-year"},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:"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:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing (beta)"},{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"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo"]},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:o,folders:50,groups:10,users:20,ai:1e3,api:3e3,retention:"5-year"},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:"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"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:o,domains:250,tags:o,folders:o,groups:o,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],m=a.find(e=>e.name==="Free"),k=a.find(e=>e.name==="Pro"),_=a.find(e=>e.name==="Business"),A=a.find(e=>e.name==="Advanced"),g=a.filter(e=>["Pro","Business","Advanced"].includes(e.name)),w=2,L=e=>a.find(t=>{var c;return(c=t.price.ids)==null?void 0:c.includes(e)})||null,v=e=>g.find(t=>t.name.toLowerCase()===e.toLowerCase()),J=e=>a.find(t=>t.name.toLowerCase()===e.toLowerCase())||m,R=e=>{if(!e)return k;let t=e.toLowerCase().split(" ")[0];return a[Math.min(a.findIndex(c=>c.name.toLowerCase()===t)+1,a.length-1)]},N=(e,t)=>{let c=a.findIndex(l=>l.name.toLowerCase()===e.toLowerCase()),p=a.findIndex(l=>l.name.toLowerCase()===t.toLowerCase());return c>p},S=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{y as a,h as b,a as c,m as d,k as e,_ as f,A as g,g as h,w as i,L as j,v as k,J as l,R as m,N as n,S as o};
@@ -0,0 +1 @@
1
+ async function h(n,e){var a,o;let r=await fetch(n,{...e,...(e==null?void 0:e.headers)&&{headers:e.headers}});if(!r.ok){let t="An error occurred while fetching the data.";try{t=((o=(a=await r.json())==null?void 0:a.error)==null?void 0:o.message)||t}catch{}let s=new Error(t);throw s.info=t,s.status=r.status,s}return r.text()}export{h as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-LBOH7N6E.mjs";import{a as c}from"./chunk-Y2JLLSMJ.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-KCXGFIIH.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-4JGAGWHK.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-L6QYIHYR.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-4JGAGWHK.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{b as e,q as o}from"./chunk-C5CCX7UU.mjs";var d=[{id:"clce1z7ch00j0rbstbjufva4j",slug:e,verified:!0,primary:!0,archived:!1,placeholder:"https://dub.co/help/article/what-is-dub",allowedHostnames:[],description:"The default domain for all new accounts.",projectId:o},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clxp3lfsb00011na8tfs7t0lx",slug:"dub.link",verified:!0,primary:!0,archived:!1,placeholder:"https://dub.co/help/article/what-is-dub",allowedHostnames:[],description:"Premium short domain on Dub \u2013 only available on our Pro plan and above.",projectId:o},{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",allowedHostnames:["openai.com","chatgpt.com"],description:"Branded domain for ChatGPT links (convos, custom GPTs).",projectId:o},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",allowedHostnames:["spotify.com"],description:"Branded domain for Spotify links (songs, playlists, etc.).",projectId:o},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,placeholder:"https://github.com/dubinc/dub",allowedHostnames:["github.com"],description:"Branded domain for GitHub links (repositories, gists, etc.).",projectId:o},{id:"cm23qevp4000412mqwvtkthzw",slug:"cal.link",verified:!0,primary:!1,archived:!1,placeholder:"https://cal.com/steven",allowedHostnames:["cal.com","calendly.com","calendar.app.google","calendar.google.com","calendar.notion.so","chillipiper.com","fantastical.app","fillout.com","hubspot.com","mentordeck.com","savvycal.com","scheduler.default.com","tidycal.com","you.ashbyhq.com","zcal.co"],description:"Branded domain for your scheduling links (Cal.com, Calendly, etc.).",projectId:o},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca","amazon.es","amazon.fr"],description:"Branded domain for Amazon links (products, wishlists, etc.).",projectId:o},{id:"clymd6zkc0001elilr1215tj9",slug:"ggl.link",verified:!0,primary:!1,archived:!1,placeholder:"https://docs.google.com/document/d/15-GOZA12SXGEh8lNwU5QI1jBi04TCPgY2-LChTbXVpA",allowedHostnames:["google.com","google.co.uk","google.co.id","google.ca","google.es","google.fr","googleblog.com","blog.google","g.co","g.page","youtube.com","youtu.be"],description:"Branded domain for Google links (Search, Docs, Sheets, Slides, Drive, Maps, etc.).",projectId:o},{id:"clymczttm0001jgkore3ltr37",slug:"fig.page",verified:!0,primary:!1,archived:!1,placeholder:"https://www.figma.com/design/YAfTk6SGV2HcSvL2415oED/Dub.co-Brand-Assets-(Public)?node-id=1-36593&t=QMKQNtUzxSSzG3hX-1",allowedHostnames:["figma.com"],description:"Branded domain for Figma links (portfolios, prototypes, presentations, etc.).",projectId:o}]:[]],l=d.map(a=>a.slug),s=[{id:"clqo10sum0006js08vutzfxt3",domain:"d.to",key:"try",dashboardId:"dash_Rqy6tVEO5Ib4iVFvmYYTK4kO"},{id:"cltshzzpd0005126z3rd2lvo4",domain:"dub.sh",key:"try",dashboardId:"dash_bUNOfMQVcKS0VMDa2HaYhOjg"},{id:"clot0z5rg000djp08ue98hxkn",domain:"chatg.pt",key:"domains",dashboardId:"dash_lX4or5Yj6ZrPk3qW4SwgrQ5t"},{id:"clp4jh9av0001l308ormavtlu",domain:"spti.fi",key:"hans",dashboardId:"dash_v2Ygwn3hZNYx6kFYfBT4IApM"},{id:"cltgtsex40003ck8z444hum5u",domain:"git.new",key:"dub",dashboardId:"dash_FX5HKOKhtQ6uoIeSDxWM8eIb"},{id:"clymd5vqj0005jgkorsopklsk",domain:"fig.page",key:"dub",dashboardId:"dash_no9BFlfSjHDG6K7XIAuwLt5p"},{id:"clp3k3yoi0001ju0874nz899q",domain:"amzn.id",key:"tv",dashboardId:"dash_fKwai9V9nsLcC0IaY0rTF1yA"},{id:"clymd73o50001ulmzzxjumr8l",domain:"ggl.link",key:"dub",dashboardId:"dash_rx5c7pQPnx2MUCX3cL4t1Zpn"},{id:"cm24785ki0001ainw2qks4uq5",domain:"cal.link",key:"demo",dashboardId:"dash_zbzP2UVvTrv5SkIEPP2pV5pC"}];export{d as a,l as b,s as c};
@@ -0,0 +1 @@
1
+ import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-EGYUEBQM.mjs";import{a}from"./chunk-L6QYIHYR.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a as e}from"./chunk-CP4WO7MM.mjs";import{a as p}from"./chunk-IHX4EDUF.mjs";function E({domain:r,key:o,pretty:x,searchParams:m}){if(!r)return"";let t=`https://${p(r)}${o&&o!=="_root"?`/${p(o)}`:""}`;if(m){let f=new URLSearchParams;for(let[n,i]of Object.entries(m))f.set(n,i);t+=`?${f.toString()}`}return x?t.replace(/^https?:\/\//,""):t}function w({domain:r,key:o}){return`https://${r}${o==="_root"?"":`/${o}`}`}var ur=r=>!r.periodStart||!r.periodEnd?"-":`${e(r.periodStart,{month:"short",year:new Date(r.periodStart).getUTCFullYear()===new Date(r.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${e(r.periodEnd,{month:"short",timeZone:"utc"})}`;export{ur as a,E as b,w as c};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-L6QYIHYR.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import{a as o,b as l}from"./chunk-SYT2IXG6.mjs";import{a as c}from"./chunk-EGYUEBQM.mjs";import u from"@sindresorhus/slugify";var f=t=>{let e=u(t,{separator:""});if(e.length<3)return"";if(r.has(e.slice(-2)))return`${e.slice(0,-2)}.${e.slice(-2)}`;let n=e.replace(/[aeiou]/g,"");return n.length>=3&&r.has(n.slice(-2))?`${n.slice(0,-2)}.${n.slice(-2)}`:`${[e,n].reduce((i,s)=>i.length<s.length?i:s)}.link`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),A=new RegExp(/^[a-zA-Z0-9\-]+$/),D=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),x=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";let n=e.split(".");return n.length>2?o.has(n[n.length-2])&&r.has(n[n.length-1])||l.has(n.slice(-2).join("."))?n.slice(-3).join("."):n.slice(-2).join("."):e},d=t=>{if(a(t))return new URL(t).hostname.replace(/^www\./,"");try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).hostname.replace(/^www\./,"")}catch{return null}},S=t=>c.some(e=>e.slug===t);export{f as a,w as b,A as c,D as d,x as e,d as f,S as g};
@@ -0,0 +1 @@
1
+ import{a as n}from"./chunk-NWFCCRLG.mjs";import{g as a}from"./chunk-2YQGBO42.mjs";import{Fragment as s,jsx as r,jsxs as i}from"react/jsx-runtime";var y=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>i(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.tags===a?"Unlimited":n(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>i(s,{children:[r("strong",{children:e.limits.folders===a?"Unlimited":n(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":i(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${n(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":i(s,{children:[r("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":i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===a?"Unlimited":n(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 (beta)"},{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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>i(s,{children:[r("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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>i(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>i(s,{children:["Free ",r("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})=>i(s,{children:[r("strong",{children:e==="enterprise"?"Custom":n(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})=>i(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":n(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{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})=>r(s,{children:r("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:()=>i(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var d=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],u=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8"],f=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],h=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx"],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,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...d,...u]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},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:[...f,...h]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:a,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},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:"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:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{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"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo"]},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:a,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},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:"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"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:a,domains:250,tags:a,folders:a,groups:a,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],m=o.find(e=>e.name==="Free"),k=o.find(e=>e.name==="Pro"),_=o.find(e=>e.name==="Business"),A=o.find(e=>e.name==="Advanced"),g=o.filter(e=>["Pro","Business","Advanced"].includes(e.name)),w=2,v=e=>o.find(t=>{var c;return(c=t.price.ids)==null?void 0:c.includes(e)})||null,L=e=>g.find(t=>t.name.toLowerCase()===e.toLowerCase()),J=e=>o.find(t=>t.name.toLowerCase()===e.toLowerCase())||m,I=e=>{if(!e)return k;let t=e.toLowerCase().split(" ")[0];return o[Math.min(o.findIndex(c=>c.name.toLowerCase()===t)+1,o.length-1)]},R=(e,t)=>{let c=o.findIndex(l=>l.name.toLowerCase()===e.toLowerCase()),p=o.findIndex(l=>l.name.toLowerCase()===t.toLowerCase());return c>p},N=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{y as a,h as b,o as c,m as d,k as e,_ as f,A as g,g as h,w as i,v as j,L as k,J as l,I as m,R as n,N as o};
@@ -0,0 +1 @@
1
+ var a=t=>{try{return new URL(t),!0}catch{return!1}},i=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return 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},l=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){e[n]=r}),e},g=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},p=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{}}},h=["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""}},o=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],f=t=>{try{let e=new URL(t);return o.forEach(r=>e.searchParams.delete(r.key)),e.toString()}catch{return t}},d=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",y=(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,c])=>{n.searchParams.set(s,c)}),n.toString()},R=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}},w=t=>{try{let e=new URL(t);return`https://${e.host}${e.pathname}`}catch{return t}};export{a,i as b,u as c,m as d,l as e,g as f,p as g,h,U as i,o as j,f as k,d as l,y as m,R as n,w as o};
@@ -0,0 +1 @@
1
+ var a=t=>{try{return new URL(t),!0}catch{return!1}},i=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return 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},l=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){e[n]=r}),e},g=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},p=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{}}},h=["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""}},o=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],f=t=>{try{let e=new URL(t);return o.forEach(r=>e.searchParams.delete(r.key)),e.toString()}catch{return t}},d=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",y=(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,c])=>{n.searchParams.set(s,c)}),n.toString()},R=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}},w=t=>{try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`}catch{return t}};export{a,i as b,u as c,m as d,l as e,g as f,p as g,h,U as i,o as j,f as k,d as l,y as m,R as n,w as o};
@@ -0,0 +1 @@
1
+ var a=t=>{try{return new URL(t),!0}catch{return!1}},c=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return new URL(t);try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`)}catch{}return null},l=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},m=t=>{let e={};return new URL(t).searchParams.forEach(function(r,s){e[s]=r}),e},g=t=>{let e={};return new URL(t).searchParams.forEach(function(r,s){if(s in e){let n=e[s];Array.isArray(n)?n.push(r):e[s]=[n,r]}else e[s]=r}),e},p=t=>{if(!t)return{};try{let e=new URL(t).searchParams,r={};for(let[s,n]of e.entries())n&&n!==""&&(r[s]=n);return r}catch{return{}}},h=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],d=(t,e)=>{if(!t)return"";try{let r=new URL(t);for(let[s,n]of Object.entries(e))n?r.searchParams.set(s,n.replace("+"," ")):r.searchParams.delete(s);return r.toString()}catch{return""}},o=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],f=t=>{try{let e=new URL(t);return o.forEach(r=>e.searchParams.delete(r.key)),e.toString()}catch{return t}},U=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",y=(t,e,r)=>{if(e==="dub.co")return t;let s=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return r&&Object.entries(r).forEach(([n,i])=>{s.searchParams.set(n,i)}),s.toString()},w=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 x(t,e){let r=new URL(t,typeof window<"u"?window.location.origin:"http://localhost");return e&&Object.entries(e).forEach(([s,n])=>{n!=null&&n!==""&&r.searchParams.append(s,String(n))}),r.toString()}export{a,c as b,u as c,l as d,m as e,g as f,p as g,h,d as i,o as j,f as k,U as l,y as m,w as n,R as o,x as p};