@dub/utils 0.1.47 → 0.1.49
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-3SJKMNIJ.mjs +1 -0
- package/dist/chunk-4433QRCV.mjs +1 -0
- package/dist/chunk-5COICHZJ.mjs +1 -0
- package/dist/chunk-5L2GMUO2.mjs +1 -0
- package/dist/chunk-5WC6ZMEN.mjs +1 -0
- package/dist/chunk-A4UUQPZU.mjs +1 -0
- package/dist/chunk-ATIQAVQT.mjs +1 -0
- package/dist/chunk-D4XM4MFW.mjs +1 -0
- package/dist/chunk-FNU3HMXJ.mjs +1 -0
- package/dist/chunk-KVDL7DWR.mjs +1 -0
- package/dist/chunk-LPCHNVGV.mjs +1 -0
- package/dist/chunk-MJBDBG4Z.mjs +1 -0
- package/dist/chunk-MJT4YMEY.mjs +1 -0
- package/dist/chunk-OMKTUGZY.mjs +1 -0
- package/dist/chunk-OMTG57ZD.mjs +1 -0
- package/dist/chunk-OP7TRE7R.mjs +1 -0
- package/dist/chunk-QDWALVYW.mjs +1 -0
- package/dist/chunk-R76FJKLZ.mjs +1 -0
- package/dist/chunk-RFCW4IQ3.mjs +1 -0
- package/dist/chunk-RW2M3SUO.mjs +1 -0
- package/dist/chunk-TEUZHPA7.mjs +1 -0
- package/dist/chunk-VELJO2JL.mjs +1 -0
- package/dist/chunk-VQWWAPDH.mjs +1 -0
- package/dist/chunk-W27XWZBS.mjs +1 -0
- package/dist/chunk-XN7WAYOX.mjs +1 -0
- package/dist/chunk-YW4JGK6I.mjs +1 -0
- package/dist/constants/index.d.ts +3 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/pricing/pricing-plan-main-features.d.ts +53 -0
- package/dist/constants/pricing/pricing-plan-main-features.mjs +1 -0
- package/dist/constants/pricing/pricing-plan-taglines.d.ts +15 -0
- package/dist/constants/pricing/pricing-plan-taglines.mjs +1 -0
- package/dist/constants/reserved-slugs.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/group-by.d.ts +3 -0
- package/dist/functions/group-by.mjs +1 -0
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/get-click-handlers-446aa9a2.d.ts +17 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +1 -1
- package/dist/pricing-features-868d1d7a.d.ts +159 -0
- package/dist/pricing-features-a81a9a3a.d.ts +173 -0
- package/dist/pricing-features-ea86e462.d.ts +172 -0
- package/dist/pricing-plan-compare-features-cb92e833.d.ts +109 -0
- package/dist/pricing-plan-taglines-4ef27f6d.d.ts +173 -0
- package/dist/pricing-plan-taglines-c5a50414.d.ts +173 -0
- package/dist/pricing-plan-taglines-e6a711b7.d.ts +173 -0
- package/dist/pricing-plan-taglines-ff8f644a.d.ts +173 -0
- package/dist/pricing-plans-3983dca2.d.ts +172 -0
- package/dist/pricing-plans-e87356d8.d.ts +159 -0
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as S}from"./chunk-BMESPBRA.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s=["va","static","stats","share","deeplink","robots.txt","proxy","account","api","auth","pricing","about","metatags","blog","changelog","atom","careers","docs","features","contact","terms","privacy","admin","help","new","info","demo","discord","reddit","guides","campaigns","links","workspaces","settings","analytics","guides","invites","new","domains","events","referrals","webhooks","upgrade","wrapped","rewind","invoices","onboarding","program","programs","partners","payouts","commissions","sales","resources","campaigns","messages","network","marketplace","fraud"];export{s as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(t,c){let o={};for(let r of t){let n=c(r);(o[n]??(o[n]=[])).push(r)}return o}export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=e=>e.status==="fulfilled",a=e=>e.status==="rejected";function f(e,u){let{label:t="Task",items:l=[]}=u||{},o=0,i=0;for(let[r,s]of e.entries()){let n=l[r]?.id?` [${l[r]?.id}]`:"";if(s.status==="fulfilled")o++,console.log(`${t}${n} succeeded.`);else{i++;let d=s.reason instanceof Error?s.reason.message:String(s.reason);console.error(`${t}${n} failed: ${d}`)}}return{successCount:o,failureCount:i}}export{c as a,a as b,f as c};
|
|
@@ -13,8 +13,10 @@ export { ACME_PROGRAM_ID, ACME_WORKSPACE_ID, ADMIN_HOSTNAMES, API_DOMAIN, API_HO
|
|
|
13
13
|
export { DEFAULT_REDIRECTS, DUB_HEADERS, REDIRECTION_QUERY_PARAM } from './middleware.js';
|
|
14
14
|
export { DEFAULT_LINK_PROPS, DEFAULT_PAGINATION_LIMIT, DUB_FOUNDING_DATE, GOOGLE_FAVICON_URL, INFINITY_NUMBER, OG_AVATAR_URL, TWO_WEEKS_IN_SECONDS } from './misc.js';
|
|
15
15
|
export { PAYPAL_SUPPORTED_COUNTRIES, PAYPAL_SUPPORTED_COUNTRIES_FULL } from './paypal-supported-countries.js';
|
|
16
|
-
export { A as ADVANCED_PLAN, B as BUSINESS_PLAN, E as ENTERPRISE_PLAN, F as FREE_PLAN, e as FREE_WORKSPACES_LIMIT, N as NEW_BUSINESS_PRICE_IDS, c as PLANS, P as PLAN_COMPARE_FEATURES, d as PRO_PLAN, b as PlanDetails, a as PlanFeature, S as SELF_SERVE_PAID_PLANS, h as getNextPlan, g as getPlanAndTierFromPriceId, f as getPlanDetails, j as getSuggestedPlan, i as isDowngradePlan, k as isLegacyBusinessPlan } from '../plan-compare-b3b80a0a.js';
|
|
17
16
|
export { REGIONS, REGION_CODES } from './regions.js';
|
|
18
17
|
export { RESERVED_SLUGS } from './reserved-slugs.js';
|
|
19
18
|
export { SAML_PROVIDERS } from './saml.js';
|
|
19
|
+
export { A as ADVANCED_PLAN, B as BUSINESS_PLAN, E as ENTERPRISE_PLAN, F as FREE_PLAN, e as FREE_WORKSPACES_LIMIT, N as NEW_BUSINESS_PRICE_IDS, c as PLANS, P as PRICING_PLAN_COMPARE_FEATURES, d as PRO_PLAN, b as PlanDetails, a as PlanFeature, S as SELF_SERVE_PAID_PLANS, h as getNextPlan, g as getPlanAndTierFromPriceId, f as getPlanDetails, j as getSuggestedPlan, i as isDowngradePlan, k as isLegacyBusinessPlan } from '../pricing-plan-compare-features-cb92e833.js';
|
|
20
|
+
export { PRICING_PLAN_MAIN_FEATURES } from './pricing/pricing-plan-main-features.js';
|
|
21
|
+
export { PRICING_PLAN_TAGLINES } from './pricing/pricing-plan-taglines.js';
|
|
20
22
|
import 'react';
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
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-VQWWAPDH.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-BMESPBRA.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};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type HeroFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
tooltip?: ReactNode | {
|
|
8
|
+
title: string;
|
|
9
|
+
cta: string;
|
|
10
|
+
href: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const PRICING_PLAN_MAIN_FEATURES: {
|
|
14
|
+
links: {
|
|
15
|
+
Pro: {
|
|
16
|
+
features: HeroFeature[];
|
|
17
|
+
}[];
|
|
18
|
+
Business: {
|
|
19
|
+
features: HeroFeature[];
|
|
20
|
+
}[];
|
|
21
|
+
Advanced: {
|
|
22
|
+
features: HeroFeature[];
|
|
23
|
+
}[];
|
|
24
|
+
Enterprise: {
|
|
25
|
+
features: HeroFeature[];
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
partners: {
|
|
29
|
+
Business: {
|
|
30
|
+
features: HeroFeature[];
|
|
31
|
+
}[];
|
|
32
|
+
Advanced: {
|
|
33
|
+
features: (HeroFeature | {
|
|
34
|
+
id: string;
|
|
35
|
+
text: string;
|
|
36
|
+
tooltip: {
|
|
37
|
+
title: string;
|
|
38
|
+
};
|
|
39
|
+
})[];
|
|
40
|
+
}[];
|
|
41
|
+
Enterprise: {
|
|
42
|
+
features: (HeroFeature | {
|
|
43
|
+
id: string;
|
|
44
|
+
text: string;
|
|
45
|
+
tooltip: {
|
|
46
|
+
title: string;
|
|
47
|
+
};
|
|
48
|
+
})[];
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { PRICING_PLAN_MAIN_FEATURES };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as a}from"../../chunk-VQWWAPDH.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-BMESPBRA.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};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const PRICING_PLAN_TAGLINES: {
|
|
2
|
+
links: {
|
|
3
|
+
Pro: string;
|
|
4
|
+
Business: string;
|
|
5
|
+
Advanced: string;
|
|
6
|
+
Enterprise: string;
|
|
7
|
+
};
|
|
8
|
+
partners: {
|
|
9
|
+
Business: string;
|
|
10
|
+
Advanced: string;
|
|
11
|
+
Enterprise: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { PRICING_PLAN_TAGLINES };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../chunk-MJT4YMEY.mjs";export{a as PRICING_PLAN_TAGLINES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-W27XWZBS.mjs";export{a as RESERVED_SLUGS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"../../chunk-
|
|
1
|
+
import{b as a}from"../../chunk-VQWWAPDH.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-BMESPBRA.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-VQWWAPDH.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-BMESPBRA.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-VQWWAPDH.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-BMESPBRA.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-XN7WAYOX.mjs";export{a as groupBy};
|
|
@@ -23,6 +23,7 @@ export { fetchWithRetry } from './fetch-with-retry.js';
|
|
|
23
23
|
export { fetchWithTimeout } from './fetch-with-timeout.js';
|
|
24
24
|
export { fetcher } from './fetcher.js';
|
|
25
25
|
export { formatFileSize } from './format-file-size.js';
|
|
26
|
+
export { groupBy } from './group-by.js';
|
|
26
27
|
export { hashStringSHA256 } from './hash-string.js';
|
|
27
28
|
export { isClickOnInteractiveChild } from './is-click-on-interactive-child.js';
|
|
28
29
|
export { isIframeable } from './is-iframeable.js';
|
package/dist/functions/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as r,c as O,d as P,e as Q,f as R,g as S,h as T,i as U,j as
|
|
1
|
+
import{b as r,c as O,d as P,e as Q,f as R,g as S,h as T,i as U,j as ea,k as fa}from"../chunk-VQWWAPDH.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 xa}from"../chunk-BWEJXFI3.mjs";import{a as ya}from"../chunk-PZ5KH242.mjs";import{a as za}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}from"../chunk-BMESPBRA.mjs";import"../chunk-MJT4YMEY.mjs";import{a as k,b as l,c as m}from"../chunk-KIDNKMJ2.mjs";import{a as la}from"../chunk-NFQB22EC.mjs";import{a as ma,b as na,c as oa}from"../chunk-LPWMMOGV.mjs";import{a as pa,b as qa}from"../chunk-IHX4EDUF.mjs";import{a as ra}from"../chunk-RONJDARA.mjs";import{a as sa}from"../chunk-3Q25XO3O.mjs";import{a as ta}from"../chunk-Y37NQHZ4.mjs";import{a as va}from"../chunk-PPEZOXLP.mjs";import{a as ua}from"../chunk-FKLXONKR.mjs";import{a as wa}from"../chunk-NQP6WK7A.mjs";import{a as ba,b as ca,c as da}from"../chunk-WKSJXYEU.mjs";import{a as ga}from"../chunk-RFDM4NES.mjs";import{a as ha}from"../chunk-OWYWG4M6.mjs";import{a}from"../chunk-NWFCCRLG.mjs";import{a as ia}from"../chunk-GRNEXX4Q.mjs";import{a as ja}from"../chunk-N5E6WGFW.mjs";import{a as ka}from"../chunk-EHUYHMHD.mjs";import{a as W}from"../chunk-EMO4MGOU.mjs";import{a as X}from"../chunk-VQH3G3BC.mjs";import{a as Y}from"../chunk-ZTPDEOIY.mjs";import{a as Z}from"../chunk-XN7WAYOX.mjs";import{a as _}from"../chunk-F4P6WJV7.mjs";import{a as $}from"../chunk-JKFE3UP3.mjs";import{a as aa}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 V}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,M as buildUrl,d as capitalize,e as chunk,f as cn,g as combineWords,h as constructMetadata,F as constructURLFromUTMParams,J as createHref,j as currencyFormatter,w as deepEqual,V as fetchWithRetry,W as fetchWithTimeout,X as fetcher,n as formatDate,o as formatDateSmart,p as formatDateTime,q as formatDateTimeSmart,Y as formatFileSize,r as formatPeriod,O as generateDomainFromName,l as getAdjustedBillingCycleStart,S as getApexDomain,m as getBillingStartDate,s as getDateTimeLocal,t as getDaysDifference,T as getDomainWithoutWWW,N as getFileExtension,u as getFirstAndLastDay,k as getLastDayOfMonth,D as getParamsFromURL,K as getPathnameFromUrl,I as getPrettyUrl,B as getSearchParams,C as getSearchParamsWithArray,R as getSubdomain,y as getUrlFromString,A as getUrlFromStringIfValid,z as getUrlObjFromString,H as getUrlWithoutUTMParams,Z as groupBy,_ as hashStringSHA256,$ as isClickOnInteractiveChild,U as isDubDomain,ma as isFulfilled,aa as isIframeable,na as isRejected,da as isReservedKeyGlobal,ca as isUnsupportedKey,x as isValidUrl,i as isZeroDecimalCurrency,ea as linkConstructor,fa as linkConstructorSimple,ga as log,oa as logPromiseResults,a as nFormatter,ha as nanoid,ia as normalizeString,L as normalizeUrl,G as paramsMetadata,v as parseDateTime,ja as pick,ka as pluralize,la as prettyPrint,qa as punyEncode,pa as punycode,ra as randomValue,sa as regexEscape,ta as resizeImage,va as smartTruncate,wa as stableSort,xa as textFetcher,ya as timeAgo,c as toCamelCase,za as trim,ua as truncate,P as validDomainRegex,ba as validKeyRegex,Q as validSlugRegex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as a,k as b}from"../chunk-
|
|
1
|
+
import{j as a,k as b}from"../chunk-VQWWAPDH.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-BMESPBRA.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};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useRouter } from 'next/navigation';
|
|
2
|
+
|
|
3
|
+
declare const getClickHandlers: (url: string | undefined, router: ReturnType<typeof useRouter>) => {
|
|
4
|
+
onClick: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
5
|
+
onAuxClick: (e: React.MouseEvent<Element, MouseEvent>) => void;
|
|
6
|
+
role: string;
|
|
7
|
+
tabIndex: number;
|
|
8
|
+
onKeyDown: (e: React.KeyboardEvent<Element>) => false | void;
|
|
9
|
+
} | {
|
|
10
|
+
onClick?: undefined;
|
|
11
|
+
onAuxClick?: undefined;
|
|
12
|
+
role?: undefined;
|
|
13
|
+
tabIndex?: undefined;
|
|
14
|
+
onKeyDown?: undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { getClickHandlers as g };
|
package/dist/index.d.ts
CHANGED
|
@@ -13,10 +13,12 @@ export { ACME_PROGRAM_ID, ACME_WORKSPACE_ID, ADMIN_HOSTNAMES, API_DOMAIN, API_HO
|
|
|
13
13
|
export { DEFAULT_REDIRECTS, DUB_HEADERS, REDIRECTION_QUERY_PARAM } from './constants/middleware.js';
|
|
14
14
|
export { DEFAULT_LINK_PROPS, DEFAULT_PAGINATION_LIMIT, DUB_FOUNDING_DATE, GOOGLE_FAVICON_URL, INFINITY_NUMBER, OG_AVATAR_URL, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
|
|
15
15
|
export { PAYPAL_SUPPORTED_COUNTRIES, PAYPAL_SUPPORTED_COUNTRIES_FULL } from './constants/paypal-supported-countries.js';
|
|
16
|
-
export { A as ADVANCED_PLAN, B as BUSINESS_PLAN, E as ENTERPRISE_PLAN, F as FREE_PLAN, e as FREE_WORKSPACES_LIMIT, N as NEW_BUSINESS_PRICE_IDS, c as PLANS, P as PLAN_COMPARE_FEATURES, d as PRO_PLAN, b as PlanDetails, a as PlanFeature, S as SELF_SERVE_PAID_PLANS, h as getNextPlan, g as getPlanAndTierFromPriceId, f as getPlanDetails, j as getSuggestedPlan, i as isDowngradePlan, k as isLegacyBusinessPlan } from './plan-compare-b3b80a0a.js';
|
|
17
16
|
export { REGIONS, REGION_CODES } from './constants/regions.js';
|
|
18
17
|
export { RESERVED_SLUGS } from './constants/reserved-slugs.js';
|
|
19
18
|
export { SAML_PROVIDERS } from './constants/saml.js';
|
|
19
|
+
export { A as ADVANCED_PLAN, B as BUSINESS_PLAN, E as ENTERPRISE_PLAN, F as FREE_PLAN, e as FREE_WORKSPACES_LIMIT, N as NEW_BUSINESS_PRICE_IDS, c as PLANS, P as PRICING_PLAN_COMPARE_FEATURES, d as PRO_PLAN, b as PlanDetails, a as PlanFeature, S as SELF_SERVE_PAID_PLANS, h as getNextPlan, g as getPlanAndTierFromPriceId, f as getPlanDetails, j as getSuggestedPlan, i as isDowngradePlan, k as isLegacyBusinessPlan } from './pricing-plan-compare-features-cb92e833.js';
|
|
20
|
+
export { PRICING_PLAN_MAIN_FEATURES } from './constants/pricing/pricing-plan-main-features.js';
|
|
21
|
+
export { PRICING_PLAN_TAGLINES } from './constants/pricing/pricing-plan-taglines.js';
|
|
20
22
|
export { arrayEqual } from './functions/array-equal.js';
|
|
21
23
|
export { toCamelCase } from './functions/camel-case.js';
|
|
22
24
|
export { capitalize } from './functions/capitalize.js';
|
|
@@ -42,6 +44,7 @@ export { fetchWithRetry } from './functions/fetch-with-retry.js';
|
|
|
42
44
|
export { fetchWithTimeout } from './functions/fetch-with-timeout.js';
|
|
43
45
|
export { fetcher } from './functions/fetcher.js';
|
|
44
46
|
export { formatFileSize } from './functions/format-file-size.js';
|
|
47
|
+
export { groupBy } from './functions/group-by.js';
|
|
45
48
|
export { hashStringSHA256 } from './functions/hash-string.js';
|
|
46
49
|
export { isClickOnInteractiveChild } from './functions/is-click-on-interactive-child.js';
|
|
47
50
|
export { isIframeable } from './functions/is-iframeable.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{A as Yb,a as ja,b as Aa,c as Xa,d as Ya,e as Za,f as _a,g as $a,h as ab,i as bb,j as nb,k as ob,l as Jb,m as Kb,n as Lb,o as Mb,p as Nb,q as Ob,r as Pb,s as Qb,t as Rb,u as Sb,v as Tb,w as Ub,x as Vb,y as Wb,z as Xb}from"./chunk-VQWWAPDH.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 Gb}from"./chunk-BWEJXFI3.mjs";import{a as Hb}from"./chunk-PZ5KH242.mjs";import{a as Ib}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}from"./chunk-BMESPBRA.mjs";import{a as Zb}from"./chunk-MJT4YMEY.mjs";import{a as ta,b as ua,c as va}from"./chunk-KIDNKMJ2.mjs";import{a as ub}from"./chunk-NFQB22EC.mjs";import{a as vb,b as wb,c as xb}from"./chunk-LPWMMOGV.mjs";import{a as yb,b as zb}from"./chunk-IHX4EDUF.mjs";import{a as Ab}from"./chunk-RONJDARA.mjs";import{a as Bb}from"./chunk-3Q25XO3O.mjs";import{a as Cb}from"./chunk-Y37NQHZ4.mjs";import{a as Eb}from"./chunk-PPEZOXLP.mjs";import{a as Db}from"./chunk-FKLXONKR.mjs";import{a as Fb}from"./chunk-NQP6WK7A.mjs";import{a as kb,b as lb,c as mb}from"./chunk-WKSJXYEU.mjs";import{a as pb}from"./chunk-RFDM4NES.mjs";import{a as qb}from"./chunk-OWYWG4M6.mjs";import{a as ia}from"./chunk-NWFCCRLG.mjs";import{a as rb}from"./chunk-GRNEXX4Q.mjs";import{a as sb}from"./chunk-N5E6WGFW.mjs";import{a as tb}from"./chunk-EHUYHMHD.mjs";import{a as db}from"./chunk-EMO4MGOU.mjs";import{a as eb}from"./chunk-VQH3G3BC.mjs";import{a as fb}from"./chunk-ZTPDEOIY.mjs";import{a as gb}from"./chunk-XN7WAYOX.mjs";import{a as hb}from"./chunk-F4P6WJV7.mjs";import{a as ib}from"./chunk-JKFE3UP3.mjs";import{a as jb}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 cb}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,Ob 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,Nb 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,Pb as ENTERPRISE_PLAN,h as EU_COUNTRY_CODES,Lb as FREE_PLAN,Rb 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,Jb 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,Kb as PLANS,ja as PRICING_PLAN_COMPARE_FEATURES,Yb as PRICING_PLAN_MAIN_FEATURES,Zb as PRICING_PLAN_TAGLINES,Mb 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,Qb 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,Va as buildUrl,ma as capitalize,a as ccTLDs,na as chunk,oa as cn,pa as combineWords,qa as constructMetadata,Oa as constructURLFromUTMParams,Sa as createHref,sa as currencyFormatter,Fa as deepEqual,cb as fetchWithRetry,db as fetchWithTimeout,eb as fetcher,wa as formatDate,xa as formatDateSmart,ya as formatDateTime,za as formatDateTimeSmart,fb as formatFileSize,Aa as formatPeriod,Xa as generateDomainFromName,ua as getAdjustedBillingCycleStart,$a as getApexDomain,va as getBillingStartDate,Ba as getDateTimeLocal,Ca as getDaysDifference,ab as getDomainWithoutWWW,Wa as getFileExtension,Da as getFirstAndLastDay,ta as getLastDayOfMonth,Ub as getNextPlan,Ma as getParamsFromURL,Ta as getPathnameFromUrl,Sb as getPlanAndTierFromPriceId,Tb as getPlanDetails,Ra as getPrettyUrl,Ka as getSearchParams,La as getSearchParamsWithArray,_a as getSubdomain,Wb as getSuggestedPlan,Ha as getUrlFromString,Ja as getUrlFromStringIfValid,Ia as getUrlObjFromString,Qa as getUrlWithoutUTMParams,gb as groupBy,hb as hashStringSHA256,ib as isClickOnInteractiveChild,Vb as isDowngradePlan,bb as isDubDomain,vb as isFulfilled,jb as isIframeable,Xb as isLegacyBusinessPlan,wb as isRejected,mb as isReservedKeyGlobal,lb as isUnsupportedKey,Ga as isValidUrl,ra as isZeroDecimalCurrency,nb as linkConstructor,ob as linkConstructorSimple,pb as log,xb as logPromiseResults,ia as nFormatter,qb as nanoid,rb as normalizeString,Ua as normalizeUrl,Pa as paramsMetadata,Ea as parseDateTime,sb as pick,tb as pluralize,ub as prettyPrint,zb as punyEncode,yb as punycode,Ab as randomValue,Bb as regexEscape,Cb as resizeImage,Eb as smartTruncate,Fb as stableSort,Gb as textFetcher,Hb as timeAgo,la as toCamelCase,Ib as trim,Db as truncate,Ya as validDomainRegex,kb as validKeyRegex,Za as validSlugRegex};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type PlanFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
tooltip?: {
|
|
7
|
+
title: string;
|
|
8
|
+
cta: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlanDetails = {
|
|
13
|
+
name: string;
|
|
14
|
+
price: {
|
|
15
|
+
monthly: number | null;
|
|
16
|
+
yearly: number | null;
|
|
17
|
+
ids?: string[];
|
|
18
|
+
};
|
|
19
|
+
limits: {
|
|
20
|
+
links: number;
|
|
21
|
+
clicks: number;
|
|
22
|
+
payouts: number;
|
|
23
|
+
domains: number;
|
|
24
|
+
tags: number;
|
|
25
|
+
folders: number;
|
|
26
|
+
groups: number;
|
|
27
|
+
networkInvites: number;
|
|
28
|
+
users: number;
|
|
29
|
+
ai: number;
|
|
30
|
+
api: number;
|
|
31
|
+
analyticsApi: number;
|
|
32
|
+
retention: string;
|
|
33
|
+
};
|
|
34
|
+
tiers?: {
|
|
35
|
+
[key: number]: {
|
|
36
|
+
price: {
|
|
37
|
+
monthly: number | null;
|
|
38
|
+
yearly: number | null;
|
|
39
|
+
ids: string[];
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
links: number;
|
|
43
|
+
clicks: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
featureTitle?: string;
|
|
48
|
+
features?: PlanFeature[];
|
|
49
|
+
};
|
|
50
|
+
declare const NEW_BUSINESS_PRICE_IDS: string[];
|
|
51
|
+
declare const PLANS: PlanDetails[];
|
|
52
|
+
declare const FREE_PLAN: PlanDetails;
|
|
53
|
+
declare const PRO_PLAN: PlanDetails;
|
|
54
|
+
declare const BUSINESS_PLAN: PlanDetails;
|
|
55
|
+
declare const ADVANCED_PLAN: PlanDetails;
|
|
56
|
+
declare const ENTERPRISE_PLAN: PlanDetails;
|
|
57
|
+
declare const SELF_SERVE_PAID_PLANS: PlanDetails[];
|
|
58
|
+
declare const FREE_WORKSPACES_LIMIT = 2;
|
|
59
|
+
declare const getPlanAndTierFromPriceId: ({ priceId, }: {
|
|
60
|
+
priceId: string;
|
|
61
|
+
}) => {
|
|
62
|
+
plan: PlanDetails | null;
|
|
63
|
+
planTier: number;
|
|
64
|
+
};
|
|
65
|
+
declare const getPlanDetails: ({ plan, planTier, }: {
|
|
66
|
+
plan: string;
|
|
67
|
+
planTier?: number | undefined;
|
|
68
|
+
}) => PlanDetails;
|
|
69
|
+
declare const getNextPlan: (plan?: string | null) => PlanDetails;
|
|
70
|
+
declare const isDowngradePlan: ({ currentPlan, newPlan, currentTier, newTier, }: {
|
|
71
|
+
currentPlan: string;
|
|
72
|
+
newPlan: string;
|
|
73
|
+
currentTier?: number | undefined;
|
|
74
|
+
newTier?: number | undefined;
|
|
75
|
+
}) => boolean;
|
|
76
|
+
declare const getSuggestedPlan: ({ events, links, suggestFree, }: {
|
|
77
|
+
events?: number | undefined;
|
|
78
|
+
links?: number | undefined;
|
|
79
|
+
suggestFree?: boolean | undefined;
|
|
80
|
+
}) => {
|
|
81
|
+
plan: PlanDetails;
|
|
82
|
+
planTier: number;
|
|
83
|
+
};
|
|
84
|
+
declare const isLegacyBusinessPlan: ({ plan, payoutsLimit, }: {
|
|
85
|
+
plan?: string | undefined;
|
|
86
|
+
payoutsLimit?: number | undefined;
|
|
87
|
+
}) => boolean;
|
|
88
|
+
|
|
89
|
+
declare const PLAN_COMPARE_FEATURES: {
|
|
90
|
+
category: string;
|
|
91
|
+
href: string;
|
|
92
|
+
features: {
|
|
93
|
+
text: string | ((d: {
|
|
94
|
+
id: string;
|
|
95
|
+
plan: (typeof PLANS)[number];
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
href?: string;
|
|
98
|
+
check?: boolean | {
|
|
99
|
+
default?: boolean;
|
|
100
|
+
free?: boolean;
|
|
101
|
+
pro?: boolean;
|
|
102
|
+
business?: boolean;
|
|
103
|
+
advanced?: boolean;
|
|
104
|
+
enterprise?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
|
|
109
|
+
type HeroFeature = {
|
|
110
|
+
id?: string;
|
|
111
|
+
text: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
tooltip?: ReactNode | {
|
|
114
|
+
title: string;
|
|
115
|
+
cta: string;
|
|
116
|
+
href: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const PRICING_FEATURES: {
|
|
120
|
+
links: {
|
|
121
|
+
Pro: {
|
|
122
|
+
features: HeroFeature[];
|
|
123
|
+
}[];
|
|
124
|
+
Business: {
|
|
125
|
+
features: HeroFeature[];
|
|
126
|
+
}[];
|
|
127
|
+
Advanced: {
|
|
128
|
+
features: HeroFeature[];
|
|
129
|
+
}[];
|
|
130
|
+
Enterprise: {
|
|
131
|
+
features: HeroFeature[];
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
partners: {
|
|
135
|
+
Business: {
|
|
136
|
+
features: HeroFeature[];
|
|
137
|
+
}[];
|
|
138
|
+
Advanced: {
|
|
139
|
+
features: (HeroFeature | {
|
|
140
|
+
id: string;
|
|
141
|
+
text: string;
|
|
142
|
+
tooltip: {
|
|
143
|
+
title: string;
|
|
144
|
+
};
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
Enterprise: {
|
|
148
|
+
features: (HeroFeature | {
|
|
149
|
+
id: string;
|
|
150
|
+
text: string;
|
|
151
|
+
tooltip: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
export { ADVANCED_PLAN as A, BUSINESS_PLAN as B, ENTERPRISE_PLAN as E, FREE_PLAN as F, NEW_BUSINESS_PRICE_IDS as N, PLAN_COMPARE_FEATURES as P, SELF_SERVE_PAID_PLANS as S, PlanFeature as a, PlanDetails as b, PLANS as c, PRO_PLAN as d, FREE_WORKSPACES_LIMIT as e, getPlanDetails as f, getPlanAndTierFromPriceId as g, getNextPlan as h, isDowngradePlan as i, getSuggestedPlan as j, isLegacyBusinessPlan as k, PRICING_FEATURES as l };
|