@dub/utils 0.0.26 → 0.0.28

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 (111) hide show
  1. package/dist/chunk-2DN4J7N7.mjs +1 -0
  2. package/dist/chunk-2J47GIUG.mjs +1 -0
  3. package/dist/chunk-2OJAP233.mjs +1 -0
  4. package/dist/chunk-34MPJURK.mjs +1 -0
  5. package/dist/chunk-3B5DP3T4.mjs +1 -0
  6. package/dist/chunk-3BUV2ANI.mjs +1 -0
  7. package/dist/chunk-3PRW7SAO.mjs +1 -0
  8. package/dist/chunk-4BN7BHOL.mjs +1 -0
  9. package/dist/chunk-5PD4TPH7.mjs +1 -0
  10. package/dist/chunk-5SU2MWLU.mjs +0 -0
  11. package/dist/chunk-6N3NW2JB.mjs +1 -0
  12. package/dist/chunk-6TFUDH7S.mjs +1 -0
  13. package/dist/chunk-6XPTKHZD.mjs +1 -0
  14. package/dist/chunk-7CR3I247.mjs +1 -0
  15. package/dist/chunk-7OQSL4CI.mjs +2 -0
  16. package/dist/chunk-AI2STCLX.mjs +1 -0
  17. package/dist/chunk-BE3FE22D.mjs +1 -0
  18. package/dist/chunk-BMMTE4CL.mjs +1 -0
  19. package/dist/chunk-BQ3MQSVS.mjs +1 -0
  20. package/dist/chunk-C7CFYTBV.mjs +1 -0
  21. package/dist/chunk-DHOWTHOI.mjs +3 -0
  22. package/dist/chunk-EMO4MGOU.mjs +1 -0
  23. package/dist/chunk-F6C3QYRM.mjs +1 -0
  24. package/dist/chunk-FCP5HRN4.mjs +1 -0
  25. package/dist/chunk-FLUV3ASQ.mjs +1 -0
  26. package/dist/chunk-GQLUSHIW.mjs +1 -0
  27. package/dist/chunk-GTQBILTE.mjs +1 -0
  28. package/dist/chunk-HX6TVXHR.mjs +1 -0
  29. package/dist/chunk-I5Y5DKPK.mjs +1 -0
  30. package/dist/chunk-IGSNFZ4Y.mjs +1 -0
  31. package/dist/chunk-INKMK7VX.mjs +1 -0
  32. package/dist/chunk-J6V4PKNC.mjs +1 -0
  33. package/dist/chunk-KL7VCF4Y.mjs +1 -0
  34. package/dist/chunk-L2SFRDQT.mjs +1 -0
  35. package/dist/chunk-L7JSRS6V.mjs +1 -0
  36. package/dist/chunk-LXJVNY3R.mjs +1 -0
  37. package/dist/chunk-MK4UFVOH.mjs +1 -0
  38. package/dist/chunk-MPU6JRPV.mjs +1 -0
  39. package/dist/chunk-MT3GLHZG.mjs +1 -0
  40. package/dist/chunk-NEIHTFSW.mjs +1 -0
  41. package/dist/chunk-OANHZJ6X.mjs +1 -0
  42. package/dist/chunk-OSU5S2YT.mjs +3 -0
  43. package/dist/chunk-PEPVOMPB.mjs +1 -0
  44. package/dist/chunk-QQFYILG6.mjs +1 -0
  45. package/dist/chunk-QYPFWXDY.mjs +1 -0
  46. package/dist/chunk-SKVYWWBC.mjs +3 -0
  47. package/dist/chunk-SPSUTBZ7.mjs +0 -0
  48. package/dist/chunk-TLOL4ZCF.mjs +1 -0
  49. package/dist/chunk-TXEDXHC5.mjs +1 -0
  50. package/dist/chunk-UBCCNLBS.mjs +1 -0
  51. package/dist/chunk-UUWTKITJ.mjs +1 -0
  52. package/dist/chunk-VZYPOBKB.mjs +1 -0
  53. package/dist/chunk-W5LUKKPM.mjs +1 -0
  54. package/dist/chunk-WCUHRXGZ.mjs +1 -0
  55. package/dist/chunk-XWSEDYR7.mjs +1 -0
  56. package/dist/chunk-YUMUNL66.mjs +1 -0
  57. package/dist/chunk-YXHGPHL2.mjs +1 -0
  58. package/dist/chunk-YY4NGU5S.mjs +1 -0
  59. package/dist/chunk-ZBBENF7Y.mjs +1 -0
  60. package/dist/chunk-ZECUYKGD.mjs +1 -0
  61. package/dist/chunk-ZJKRLIJQ.mjs +1 -0
  62. package/dist/constants/cctlds.d.ts +1 -1
  63. package/dist/constants/cctlds.mjs +1 -1
  64. package/dist/constants/countries.d.ts +1 -1
  65. package/dist/constants/countries.mjs +1 -1
  66. package/dist/constants/index.d.ts +119 -6
  67. package/dist/constants/index.mjs +1 -1
  68. package/dist/functions/capitalize.d.ts +3 -0
  69. package/dist/functions/capitalize.mjs +1 -0
  70. package/dist/functions/chunk.d.ts +3 -0
  71. package/dist/functions/chunk.mjs +1 -0
  72. package/dist/functions/cn.d.ts +5 -0
  73. package/dist/functions/cn.mjs +1 -0
  74. package/dist/functions/construct-metadata.d.ts +11 -0
  75. package/dist/functions/construct-metadata.mjs +1 -0
  76. package/dist/functions/datetime.d.ts +11 -0
  77. package/dist/functions/datetime.mjs +1 -0
  78. package/dist/functions/deep-equal.d.ts +4 -0
  79. package/dist/functions/deep-equal.mjs +1 -0
  80. package/dist/functions/domains.d.ts +10 -0
  81. package/dist/functions/domains.mjs +1 -0
  82. package/dist/functions/fetch-with-timeout.d.ts +3 -0
  83. package/dist/functions/fetch-with-timeout.mjs +1 -0
  84. package/dist/functions/fetcher.d.ts +3 -0
  85. package/dist/functions/fetcher.mjs +1 -0
  86. package/dist/functions/hash.d.ts +3 -0
  87. package/dist/functions/hash.mjs +1 -0
  88. package/dist/functions/index.d.ts +21 -0
  89. package/dist/functions/index.mjs +1 -0
  90. package/dist/functions/is-iframeable.d.ts +6 -0
  91. package/dist/functions/is-iframeable.mjs +1 -0
  92. package/dist/functions/link-constructor.d.ts +9 -0
  93. package/dist/functions/link-constructor.mjs +1 -0
  94. package/dist/functions/log.d.ts +7 -0
  95. package/dist/functions/log.mjs +1 -0
  96. package/dist/functions/misc.d.ts +112 -0
  97. package/dist/functions/misc.mjs +1 -0
  98. package/dist/functions/nanoid.d.ts +3 -0
  99. package/dist/functions/nanoid.mjs +1 -0
  100. package/dist/functions/nformatter.d.ts +6 -0
  101. package/dist/functions/nformatter.mjs +1 -0
  102. package/dist/functions/time-ago.d.ts +5 -0
  103. package/dist/functions/time-ago.mjs +1 -0
  104. package/dist/functions/truncate.d.ts +3 -0
  105. package/dist/functions/truncate.mjs +1 -0
  106. package/dist/functions/urls.d.ts +13 -0
  107. package/dist/functions/urls.mjs +1 -0
  108. package/dist/index.d.ts +24 -181
  109. package/dist/index.mjs +1 -1
  110. package/dist/is-iframeable-4cf55b9f.d.ts +6 -0
  111. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ async function c(r){let t=new TextEncoder().encode(r),e=await crypto.subtle.digest("MD5",t);return Array.from(new Uint8Array(e)).map(n=>n.toString(16).padStart(2,"0")).join("")}export{c as a};
@@ -0,0 +1 @@
1
+ var m=new Set(["af","ax","al","dz","as","ad","ao","ai","aq","ag","ar","am","aw","ac","au","at","az","bs","bh","bd","bb","eus","by","be","bz","bj","bm","bt","bo","bq","an","nl","ba","bw","bv","br","io","vg","bn","bg","bf","mm","bi","kh","cm","ca","cv","cat","ky","cf","td","cl","cn","cx","cc","co","km","cd","cg","ck","cr","ci","hr","cu","cw","cy","cz","dk","dj","dm","do","tl","tp","ec","eg","sv","gq","er","ee","et","eu","fk","fo","fm","fj","fi","fr","gf","pf","tf","ga","gal","gm","ps","ge","de","gh","gi","gr","gl","gd","gp","gu","gt","gg","gn","gw","gy","ht","hm","hn","hk","hu","is","in","id","ir","iq","ie","im","il","it","jm","jp","je","jo","kz","ke","ki","kw","kg","la","lv","lb","ls","lr","ly","li","lt","lu","mo","mk","mg","mw","my","mv","ml","mt","mh","mq","mr","mu","yt","mx","md","mc","mn","me","ms","ma","mz","mm","na","nr","np","nl","nc","nz","ni","ne","ng","nu","nf","nc","tr","kp","mp","no","om","pk","pw","ps","pa","pg","py","pe","ph","pn","pl","pt","pr","qa","ro","ru","rw","re","bq","an","bl","gp","fr","sh","kn","lc","mf","gp","fr","pm","vc","ws","sm","st","sa","sn","rs","sc","sl","sg","bq","an","nl","sx","an","sk","si","sb","so","so","za","gs","kr","ss","es","lk","sd","sr","sj","sz","se","ch","sy","tw","tj","tz","th","tg","tk","to","tt","tn","tr","tm","tc","tv","ug","ua","ae","uk","us","vi","uy","uz","vu","va","ve","vn","wf","eh","ma","ye","zm","zw"]);export{m as a};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-UUWTKITJ.mjs";import{D as s,F as c,G as l}from"./chunk-L2SFRDQT.mjs";import{a as r}from"./chunk-YUMUNL66.mjs";import g from"@sindresorhus/slugify";var f=t=>{let e=g(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,o)=>i.length<o.length?i:o)}.to`},w=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),x=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),A=new RegExp(/^[a-zA-Z0-9\-]+$/),d=(t,e)=>t===e?null:t.slice(0,t.length-e.length-1),D=t=>{let e;try{e=new URL(t.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(e==="youtu.be")return"youtube.com";if(e==="raw.githubusercontent.com")return"github.com";if(e.endsWith(".vercel.app"))return"vercel.app";let n=e.split(".");return n.length>2?c.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},R=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=>s.some(e=>e.slug===t);export{f as a,w as b,x as c,A as d,d as e,D as f,R as g,S as h};
@@ -0,0 +1 @@
1
+ var t={alerts:process.env.DUB_SLACK_HOOK_ALERTS,cron:process.env.DUB_SLACK_HOOK_CRON,links:process.env.DUB_SLACK_HOOK_LINKS,errors:process.env.DUB_SLACK_HOOK_ERRORS},O=async({message:e,type:o,mention:r=!1})=>{(process.env.NODE_ENV==="development"||!process.env.DUB_SLACK_HOOK_ALERTS||!process.env.DUB_SLACK_HOOK_CRON||!process.env.DUB_SLACK_HOOK_LINKS||!process.env.DUB_SLACK_HOOK_ERRORS)&&console.log(e);let s=t[o];if(!!s)try{return await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({blocks:[{type:"section",text:{type:"mrkdwn",text:`${r?"<@U0404G6J3NJ> ":o==="errors"?":alert: ":""}${e}`}}]})})}catch(n){console.log(`Failed to log to Dub Slack. Error: ${n}`)}};export{O as a};
@@ -0,0 +1 @@
1
+ var o=[{name:"Free",tagline:"For hobby & side projects",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,domains:3,tags:5,users:1},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black border-black hover:text-black"},featureTitle:"What's included:",features:[{text:"25 links/mo"},{text:"1K tracked clicks/mo"},{text:"30-day analytics retention"},{text:"3 custom domains"},{text:"1 user"},{text:"Community support",footnote:"Help center + GitHub discussions."},{text:"API Access",footnote:{title:"Programatically manage your links using our REST API.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/introduction"}}]},{name:"Pro",tagline:"For startups & small businesses",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},colors:{bg:"bg-blue-500",text:"text-blue-500"},cta:{text:"Get started with Pro",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-blue-500 border-blue-500 hover:text-blue-500"},featureTitle:"Everything in Free, plus:",features:[{text:"1,000 links/mo"},{text:"50K tracked clicks/mo"},{text:"1-year analytics retention"},{text:"10 custom domains"},{text:"5 users"},{text:"Basic support",footnote:"Basic email support."},{text:"Root domain redirect",footnote:{title:"Redirect vistors that land on the root of your domain (e.g. yourdomain.com) to a page of your choice.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-redirect-root-domain"}},{text:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting, link aliases, link monitoring etc."}]},{name:"Business",tagline:"For larger teams with increased usage",price:{monthly:49,yearly:39,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]},limits:{links:5e3,clicks:25e4,domains:20,tags:150,users:15},colors:{bg:"bg-sky-900",text:"text-sky-900"},cta:{text:"Get started with Business",shortText:"Get started",href:"https://app.dub.co/register",color:"bg-sky-900 border-sky-900 hover:text-sky-900"},featureTitle:"Everything in Pro, plus:",features:[{text:"5,000 links/mo"},{text:"250K tracked clicks/mo"},{text:"2-year analytics retention"},{text:"20 custom domains"},{text:"15 users"},{text:"Elevated support",footnote:"Email and chat support."},{text:"Custom branding",footnote:{title:"Set custom QR code logos, password-protected links logos, and more.",cta:"Learn more.",href:"https://dub.co/help/article/custom-qr-codes"}},{text:"Event callbacks (Beta)",footnote:"Get notified when someone clicks on your links."}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:null,clicks:null,domains:null},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-violet-600 border-violet-600 hover:text-violet-600"},featureTitle:"Everything in Business, plus:",features:[{text:"Custom usage limits"},{text:"Volume discounts"},{text:"SSO/SAML"},{text:"Role-based access controls"},{text:"Custom contract & SLA"},{text:"Whiteglove onboarding"},{text:"Dedicated success manager"},{text:"Priority support"},{text:"Dedicated Slack channel"}]}],s=o.filter(t=>t.name==="Pro"||t.name==="Business");var n={city:"San Francisco",region:"CA",country:"US",latitude:"37.7695",longitude:"-122.385"},c="63.141.57.109",l={hidden:{scale:.8,opacity:0},show:{scale:1,opacity:1,transition:{type:"spring"}}},p={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.4,type:"spring"}}},d={initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.15,ease:"easeOut"}},u={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}},m=100,e=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",_=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,h=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),g=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://localhost:8888",A=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NGROK_URL||"http://localhost:8888",E=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${e}`,"api.localhost:8888"]),x=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",P=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),k={home:"https://dub.co",dub:"https://dub.co",signin:"https://app.dub.co/login",login:"https://app.dub.co/login",register:"https://app.dub.co/register",signup:"https://app.dub.co/register",app:"https://app.dub.co",dashboard:"https://app.dub.co",links:"https://app.dub.co/links",settings:"https://app.dub.co/settings",welcome:"https://app.dub.co/welcome",discord:"https://twitter.com/dubdotco"},L={headers:{"x-powered-by":"Dub.co - Link management for modern marketing teams"}},I="https://www.google.com/s2/favicons?sz=64&domain_url=",y="https://d2vwwcvoksz7ty.cloudfront.net/logo.png",N="https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png",b=["stats","changelog","terms","privacy","abuse"],v=[{slug:e,verified:!0,primary:!0,archived:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[]},...process.env.NEXT_PUBLIC_IS_DUB?[{slug:"chatg.pt",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/chatgpt-link-shortener",type:"redirect",placeholder:"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt",clicks:0,allowedHostnames:["chat.openai.com"]},{slug:"amzn.id",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/amazon-link-shortener",type:"redirect",placeholder:"https://www.amazon.com/dp/B0BW4SWNC8",clicks:0,allowedHostnames:["amazon.com","amazon.co.uk","amazon.ca"]},{slug:"spti.fi",verified:!0,primary:!1,archived:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"]}]:[]],T=[{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code Generator",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}],f=new Set(["com","co","net","org","edu","gov","in"]),O=new Set(["my.id","github.io","vercel.app","now.sh","pages.dev","webflow.io","netlify.app","fly.dev","web.app"]),S={key:"",url:"",domain:"",archived:!1,expiresAt:null,password:null,title:null,description:null,image:null,rewrite:!1,ios:null,android:null,clicks:0,userId:"",proxy:!1},C="cl7pj5kq4006835rbjlt2ofka",w="clrflia0j0000vs7sqfhz9c7q",M="clqei1lgc0000vsnzi01pbf47",D=[{name:"Okta",logo:"/_static/icons/okta.svg",saml:"okta",samlModalCopy:"Metadata URL",scim:"okta-scim-v2",scimModalCopy:{url:"SCIM 2.0 Base URL",token:"OAuth Bearer Token"},wip:!1},{name:"Azure AD",logo:"/_static/icons/azure.svg",saml:"azure",samlModalCopy:"App Federation Metadata URL",scim:"azure-scim-v2",scimModalCopy:{url:"Tenant URL",token:"Secret Token"},wip:!1},{name:"Google",logo:"/_static/icons/google.svg",saml:"google",samlModalCopy:"XML Metadata File",scim:"google",scimModalCopy:{url:"SCIM 2.0 Base URL",token:"OAuth Bearer Token"},wip:!1}];export{o as a,s as b,n as c,c as d,l as e,p as f,d as g,u as h,m as i,e as j,_ as k,h as l,g as m,A as n,E as o,x as p,P as q,k as r,L as s,I as t,y as u,N as v,b as w,v as x,T as y,f as z,O as A,S as B,C,w as D,M as E,D as F};
@@ -0,0 +1 @@
1
+ var s=(e,t)=>{if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;let r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(let n of r)if(!l.includes(n)||!s(e[n],t[n]))return!1;return!0};export{s as a};
@@ -0,0 +1 @@
1
+ var r=(n,e)=>!n||n.length<=e?n:`${n.slice(0,e-3)}...`;export{r as a};
@@ -1,3 +1,3 @@
1
1
  declare const ccTLDs: Set<string>;
2
2
 
3
- export { ccTLDs as default };
3
+ export { ccTLDs };
@@ -1 +1 @@
1
- import{a}from"../chunk-MODISIUH.mjs";export{a as default};
1
+ import{a}from"../chunk-YUMUNL66.mjs";export{a as ccTLDs};
@@ -2,4 +2,4 @@ declare const COUNTRIES: {
2
2
  [key: string]: string;
3
3
  };
4
4
 
5
- export { COUNTRIES as default };
5
+ export { COUNTRIES };
@@ -1 +1 @@
1
- import{a}from"../chunk-3P54C65P.mjs";export{a as default};
1
+ import{a}from"../chunk-UBCCNLBS.mjs";export{a as COUNTRIES};
@@ -1,5 +1,5 @@
1
- export { default as ccTLDs } from './cctlds.js';
2
- export { default as COUNTRIES } from './countries.js';
1
+ export { ccTLDs } from './cctlds.js';
2
+ export { COUNTRIES } from './countries.js';
3
3
 
4
4
  declare const PLANS: ({
5
5
  name: string;
@@ -111,6 +111,116 @@ declare const PLANS: ({
111
111
  }[];
112
112
  tagline?: undefined;
113
113
  })[];
114
+ declare const FREE_PLAN: {
115
+ name: string;
116
+ tagline: string;
117
+ price: {
118
+ monthly: number;
119
+ yearly: number;
120
+ ids?: undefined;
121
+ };
122
+ limits: {
123
+ links: number;
124
+ clicks: number;
125
+ domains: number;
126
+ tags: number;
127
+ users: number;
128
+ };
129
+ colors: {
130
+ bg: string;
131
+ text: string;
132
+ };
133
+ cta: {
134
+ text: string;
135
+ href: string;
136
+ color: string;
137
+ shortText?: undefined;
138
+ };
139
+ featureTitle: string;
140
+ features: ({
141
+ text: string;
142
+ footnote?: undefined;
143
+ } | {
144
+ text: string;
145
+ footnote: string;
146
+ } | {
147
+ text: string;
148
+ footnote: {
149
+ title: string;
150
+ cta: string;
151
+ href: string;
152
+ };
153
+ })[];
154
+ } | {
155
+ name: string;
156
+ tagline: string;
157
+ price: {
158
+ monthly: number;
159
+ yearly: number;
160
+ ids: string[];
161
+ };
162
+ limits: {
163
+ links: number;
164
+ clicks: number;
165
+ domains: number;
166
+ tags: number;
167
+ users: number;
168
+ };
169
+ colors: {
170
+ bg: string;
171
+ text: string;
172
+ };
173
+ cta: {
174
+ text: string;
175
+ shortText: string;
176
+ href: string;
177
+ color: string;
178
+ };
179
+ featureTitle: string;
180
+ features: ({
181
+ text: string;
182
+ footnote?: undefined;
183
+ } | {
184
+ text: string;
185
+ footnote: string;
186
+ } | {
187
+ text: string;
188
+ footnote: {
189
+ title: string;
190
+ cta: string;
191
+ href: string;
192
+ };
193
+ })[];
194
+ } | {
195
+ name: string;
196
+ price: {
197
+ monthly: null;
198
+ yearly: null;
199
+ ids?: undefined;
200
+ };
201
+ limits: {
202
+ links: null;
203
+ clicks: null;
204
+ domains: null;
205
+ tags?: undefined;
206
+ users?: undefined;
207
+ };
208
+ colors: {
209
+ bg: string;
210
+ text: string;
211
+ };
212
+ cta: {
213
+ text: string;
214
+ href: string;
215
+ color: string;
216
+ shortText?: undefined;
217
+ };
218
+ featureTitle: string;
219
+ features: {
220
+ text: string;
221
+ }[];
222
+ tagline?: undefined;
223
+ };
114
224
  declare const SELF_SERVE_PAID_PLANS: ({
115
225
  name: string;
116
226
  tagline: string;
@@ -221,6 +331,7 @@ declare const SELF_SERVE_PAID_PLANS: ({
221
331
  }[];
222
332
  tagline?: undefined;
223
333
  })[];
334
+ declare const FREE_PROJECTS_LIMIT = 2;
224
335
 
225
336
  declare const LOCALHOST_GEO_DATA: {
226
337
  city: string;
@@ -317,8 +428,12 @@ declare const DUB_HEADERS: {
317
428
  declare const GOOGLE_FAVICON_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=";
318
429
  declare const DUB_LOGO = "https://d2vwwcvoksz7ty.cloudfront.net/logo.png";
319
430
  declare const DUB_THUMBNAIL = "https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png";
431
+ declare const DUB_PROJECT_ID = "cl7pj5kq4006835rbjlt2ofka";
432
+ declare const LEGAL_PROJECT_ID = "clrflia0j0000vs7sqfhz9c7q";
433
+ declare const LEGAL_USER_ID = "clqei1lgc0000vsnzi01pbf47";
320
434
  declare const HIDE_BACKGROUND_SEGMENTS: string[];
321
435
  declare const DUB_DOMAINS: {
436
+ id: string;
322
437
  slug: string;
323
438
  verified: boolean;
324
439
  primary: boolean;
@@ -328,6 +443,7 @@ declare const DUB_DOMAINS: {
328
443
  placeholder: string;
329
444
  clicks: number;
330
445
  allowedHostnames: string[];
446
+ projectId: string;
331
447
  }[];
332
448
  declare const ALL_TOOLS: {
333
449
  name: string;
@@ -352,9 +468,6 @@ declare const DEFAULT_LINK_PROPS: {
352
468
  userId: string;
353
469
  proxy: boolean;
354
470
  };
355
- declare const DUB_PROJECT_ID = "cl7pj5kq4006835rbjlt2ofka";
356
- declare const LEGAL_PROJECT_ID = "clrflia0j0000vs7sqfhz9c7q";
357
- declare const LEGAL_USER_ID = "clqei1lgc0000vsnzi01pbf47";
358
471
  declare const SAML_PROVIDERS: {
359
472
  name: string;
360
473
  logo: string;
@@ -368,4 +481,4 @@ declare const SAML_PROVIDERS: {
368
481
  wip: boolean;
369
482
  }[];
370
483
 
371
- export { ADMIN_HOSTNAMES, ALL_TOOLS, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, DEFAULT_LINK_PROPS, DEFAULT_REDIRECTS, DUB_DOMAINS, DUB_HEADERS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, GOOGLE_FAVICON_URL, HIDE_BACKGROUND_SEGMENTS, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, LOCALHOST_GEO_DATA, LOCALHOST_IP, PAGINATION_LIMIT, PLANS, SAML_PROVIDERS, SECOND_LEVEL_DOMAINS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, SPECIAL_APEX_DOMAINS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS };
484
+ export { ADMIN_HOSTNAMES, ALL_TOOLS, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, DEFAULT_LINK_PROPS, DEFAULT_REDIRECTS, DUB_DOMAINS, DUB_HEADERS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, FREE_PLAN, FREE_PROJECTS_LIMIT, GOOGLE_FAVICON_URL, HIDE_BACKGROUND_SEGMENTS, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, LOCALHOST_GEO_DATA, LOCALHOST_IP, PAGINATION_LIMIT, PLANS, SAML_PROVIDERS, SECOND_LEVEL_DOMAINS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, SPECIAL_APEX_DOMAINS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS };
@@ -1 +1 @@
1
- import{A as C,B as D,C as E,D as F,E as G,F as H,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../chunk-JPCDHJLD.mjs";import{a}from"../chunk-MODISIUH.mjs";import{a as b}from"../chunk-3P54C65P.mjs";export{s as ADMIN_HOSTNAMES,A as ALL_TOOLS,r as API_DOMAIN,q as API_HOSTNAMES,o as APP_DOMAIN,p as APP_DOMAIN_WITH_NGROK,n as APP_HOSTNAMES,b as COUNTRIES,D as DEFAULT_LINK_PROPS,t as DEFAULT_REDIRECTS,z as DUB_DOMAINS,u as DUB_HEADERS,w as DUB_LOGO,E as DUB_PROJECT_ID,x as DUB_THUMBNAIL,j as FADE_IN_ANIMATION_SETTINGS,g as FRAMER_MOTION_LIST_ITEM_VARIANTS,v as GOOGLE_FAVICON_URL,y as HIDE_BACKGROUND_SEGMENTS,m as HOME_DOMAIN,F as LEGAL_PROJECT_ID,G as LEGAL_USER_ID,e as LOCALHOST_GEO_DATA,f as LOCALHOST_IP,k as PAGINATION_LIMIT,c as PLANS,H as SAML_PROVIDERS,B as SECOND_LEVEL_DOMAINS,d as SELF_SERVE_PAID_PLANS,l as SHORT_DOMAIN,C as SPECIAL_APEX_DOMAINS,h as STAGGER_CHILD_VARIANTS,i as SWIPE_REVEAL_ANIMATION_SETTINGS,a as ccTLDs};
1
+ import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../chunk-F6C3QYRM.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-UBCCNLBS.mjs";export{u as ADMIN_HOSTNAMES,F as ALL_TOOLS,t as API_DOMAIN,s as API_HOSTNAMES,q as APP_DOMAIN,r as APP_DOMAIN_WITH_NGROK,p as APP_HOSTNAMES,b as COUNTRIES,I as DEFAULT_LINK_PROPS,v as DEFAULT_REDIRECTS,E as DUB_DOMAINS,w as DUB_HEADERS,y as DUB_LOGO,A as DUB_PROJECT_ID,z as DUB_THUMBNAIL,l as FADE_IN_ANIMATION_SETTINGS,i as FRAMER_MOTION_LIST_ITEM_VARIANTS,d as FREE_PLAN,f as FREE_PROJECTS_LIMIT,x as GOOGLE_FAVICON_URL,D as HIDE_BACKGROUND_SEGMENTS,o as HOME_DOMAIN,B as LEGAL_PROJECT_ID,C as LEGAL_USER_ID,g as LOCALHOST_GEO_DATA,h as LOCALHOST_IP,m as PAGINATION_LIMIT,c as PLANS,J as SAML_PROVIDERS,G as SECOND_LEVEL_DOMAINS,e as SELF_SERVE_PAID_PLANS,n as SHORT_DOMAIN,H as SPECIAL_APEX_DOMAINS,j as STAGGER_CHILD_VARIANTS,k as SWIPE_REVEAL_ANIMATION_SETTINGS,a as ccTLDs};
@@ -0,0 +1,3 @@
1
+ declare function capitalize(str?: string | null): string | null | undefined;
2
+
3
+ export { capitalize };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-GTQBILTE.mjs";export{a as capitalize};
@@ -0,0 +1,3 @@
1
+ declare const chunk: <T>(array: T[], chunk_size: number) => T[][];
2
+
3
+ export { chunk };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-2OJAP233.mjs";export{a as chunk};
@@ -0,0 +1,5 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ declare function cn(...inputs: ClassValue[]): string;
4
+
5
+ export { cn };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-NEIHTFSW.mjs";export{a as cn};
@@ -0,0 +1,11 @@
1
+ import { Metadata } from 'next';
2
+
3
+ declare function constructMetadata({ title, description, image, icons, noIndex, }?: {
4
+ title?: string;
5
+ description?: string;
6
+ image?: string;
7
+ icons?: Metadata["icons"];
8
+ noIndex?: boolean;
9
+ }): Metadata;
10
+
11
+ export { constructMetadata };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-C7CFYTBV.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as constructMetadata};
@@ -0,0 +1,11 @@
1
+ declare const getDateTimeLocal: (timestamp?: Date) => string;
2
+ declare const formatDate: (dateString: string) => string;
3
+ declare const getFirstAndLastDay: (day: number) => {
4
+ firstDay: Date;
5
+ lastDay: Date;
6
+ };
7
+ declare const getLastDayOfMonth: () => number;
8
+ declare const getAdjustedBillingCycleStart: (billingCycleStart: number) => number;
9
+ declare const getBillingStartDate: (billingCycleStart: number) => Date;
10
+
11
+ export { formatDate, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getFirstAndLastDay, getLastDayOfMonth };
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f}from"../chunk-LXJVNY3R.mjs";export{b as formatDate,e as getAdjustedBillingCycleStart,f as getBillingStartDate,a as getDateTimeLocal,c as getFirstAndLastDay,d as getLastDayOfMonth};
@@ -0,0 +1,4 @@
1
+ type DeepEqual = (obj1: Record<string, any>, obj2: Record<string, any>) => boolean;
2
+ declare const deepEqual: DeepEqual;
3
+
4
+ export { deepEqual };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-ZECUYKGD.mjs";export{a as deepEqual};
@@ -0,0 +1,10 @@
1
+ declare const generateDomainFromName: (name: string) => string;
2
+ declare const validDomainRegex: RegExp;
3
+ declare const validKeyRegex: RegExp;
4
+ declare const validSlugRegex: RegExp;
5
+ declare const getSubdomain: (name: string, apexName: string) => string | null;
6
+ declare const getApexDomain: (url: string) => string;
7
+ declare const getDomainWithoutWWW: (url: string) => string | null | undefined;
8
+ declare const isDubDomain: (domain: string) => boolean;
9
+
10
+ export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex };
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g,h}from"../chunk-J6V4PKNC.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as generateDomainFromName,f as getApexDomain,g as getDomainWithoutWWW,e as getSubdomain,h as isDubDomain,b as validDomainRegex,c as validKeyRegex,d as validSlugRegex};
@@ -0,0 +1,3 @@
1
+ declare function fetchWithTimeout(input: RequestInfo | URL, init?: RequestInit | undefined, timeout?: number): Promise<Response>;
2
+
3
+ export { fetchWithTimeout };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-EMO4MGOU.mjs";export{a as fetchWithTimeout};
@@ -0,0 +1,3 @@
1
+ declare function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit): Promise<JSON>;
2
+
3
+ export { fetcher };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-6XPTKHZD.mjs";export{a as fetcher};
@@ -0,0 +1,3 @@
1
+ declare function generateMD5Hash(message: string): Promise<string>;
2
+
3
+ export { generateMD5Hash };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-XWSEDYR7.mjs";export{a as generateMD5Hash};
@@ -0,0 +1,21 @@
1
+ export { capitalize } from './capitalize.js';
2
+ export { chunk } from './chunk.js';
3
+ export { cn } from './cn.js';
4
+ export { constructMetadata } from './construct-metadata.js';
5
+ export { formatDate, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getFirstAndLastDay, getLastDayOfMonth } from './datetime.js';
6
+ export { deepEqual } from './deep-equal.js';
7
+ export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex } from './domains.js';
8
+ export { fetchWithTimeout } from './fetch-with-timeout.js';
9
+ export { fetcher } from './fetcher.js';
10
+ export { generateMD5Hash } from './hash.js';
11
+ export { isIframeable } from './is-iframeable.js';
12
+ export { linkConstructor } from './link-constructor.js';
13
+ export { log } from './log.js';
14
+ export { getPlanFromPriceId } from './misc.js';
15
+ export { nanoid } from './nanoid.js';
16
+ export { nFormatter } from './nformatter.js';
17
+ export { timeAgo } from './time-ago.js';
18
+ export { truncate } from './truncate.js';
19
+ export { constructURLFromUTMParams, getParamsFromURL, getSearchParams, getUrlFromString, getUrlWithoutUTMParams, isValidUrl, paramsMetadata } from './urls.js';
20
+ import 'clsx';
21
+ import 'next';
@@ -0,0 +1 @@
1
+ import"../chunk-SPSUTBZ7.mjs";import{a as E}from"../chunk-5PD4TPH7.mjs";import{a as F}from"../chunk-PEPVOMPB.mjs";import{a as G}from"../chunk-FLUV3ASQ.mjs";import{a as H}from"../chunk-KL7VCF4Y.mjs";import{a as I}from"../chunk-I5Y5DKPK.mjs";import{a as J}from"../chunk-MPU6JRPV.mjs";import{a as K}from"../chunk-ZJKRLIJQ.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j}from"../chunk-LXJVNY3R.mjs";import{a as k}from"../chunk-ZECUYKGD.mjs";import{a as s,b as t,c as u,d as v,e as w,f as x,g as y,h as z}from"../chunk-J6V4PKNC.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r}from"../chunk-UUWTKITJ.mjs";import{a as A}from"../chunk-EMO4MGOU.mjs";import{a as B}from"../chunk-6XPTKHZD.mjs";import{a as C}from"../chunk-XWSEDYR7.mjs";import{a as D}from"../chunk-3BUV2ANI.mjs";import{a}from"../chunk-GTQBILTE.mjs";import{a as b}from"../chunk-2OJAP233.mjs";import{a as c}from"../chunk-NEIHTFSW.mjs";import{a as d}from"../chunk-C7CFYTBV.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as capitalize,b as chunk,c as cn,d as constructMetadata,p as constructURLFromUTMParams,k as deepEqual,A as fetchWithTimeout,B as fetcher,f as formatDate,s as generateDomainFromName,C as generateMD5Hash,i as getAdjustedBillingCycleStart,x as getApexDomain,j as getBillingStartDate,e as getDateTimeLocal,y as getDomainWithoutWWW,g as getFirstAndLastDay,h as getLastDayOfMonth,o as getParamsFromURL,G as getPlanFromPriceId,n as getSearchParams,w as getSubdomain,m as getUrlFromString,r as getUrlWithoutUTMParams,z as isDubDomain,D as isIframeable,l as isValidUrl,E as linkConstructor,F as log,I as nFormatter,H as nanoid,q as paramsMetadata,J as timeAgo,K as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
@@ -0,0 +1,6 @@
1
+ declare const isIframeable: ({ url, requestDomain, }: {
2
+ url: string;
3
+ requestDomain: string;
4
+ }) => Promise<boolean>;
5
+
6
+ export { isIframeable };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-3BUV2ANI.mjs";export{a as isIframeable};
@@ -0,0 +1,9 @@
1
+ declare function linkConstructor({ domain, key, localhost, pretty, noDomain, }: {
2
+ domain?: string;
3
+ key?: string;
4
+ localhost?: boolean;
5
+ pretty?: boolean;
6
+ noDomain?: boolean;
7
+ }): string;
8
+
9
+ export { linkConstructor };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-5PD4TPH7.mjs";export{a as linkConstructor};
@@ -0,0 +1,7 @@
1
+ declare const log: ({ message, type, mention, }: {
2
+ message: string;
3
+ type: "alerts" | "cron" | "links" | "errors";
4
+ mention?: boolean | undefined;
5
+ }) => Promise<Response | undefined>;
6
+
7
+ export { log };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-PEPVOMPB.mjs";export{a as log};
@@ -0,0 +1,112 @@
1
+ declare const getPlanFromPriceId: (priceId: string) => {
2
+ name: string;
3
+ tagline: string;
4
+ price: {
5
+ monthly: number;
6
+ yearly: number;
7
+ ids?: undefined;
8
+ };
9
+ limits: {
10
+ links: number;
11
+ clicks: number;
12
+ domains: number;
13
+ tags: number;
14
+ users: number;
15
+ };
16
+ colors: {
17
+ bg: string;
18
+ text: string;
19
+ };
20
+ cta: {
21
+ text: string;
22
+ href: string;
23
+ color: string;
24
+ shortText?: undefined;
25
+ };
26
+ featureTitle: string;
27
+ features: ({
28
+ text: string;
29
+ footnote?: undefined;
30
+ } | {
31
+ text: string;
32
+ footnote: string;
33
+ } | {
34
+ text: string;
35
+ footnote: {
36
+ title: string;
37
+ cta: string;
38
+ href: string;
39
+ };
40
+ })[];
41
+ } | {
42
+ name: string;
43
+ tagline: string;
44
+ price: {
45
+ monthly: number;
46
+ yearly: number;
47
+ ids: string[];
48
+ };
49
+ limits: {
50
+ links: number;
51
+ clicks: number;
52
+ domains: number;
53
+ tags: number;
54
+ users: number;
55
+ };
56
+ colors: {
57
+ bg: string;
58
+ text: string;
59
+ };
60
+ cta: {
61
+ text: string;
62
+ shortText: string;
63
+ href: string;
64
+ color: string;
65
+ };
66
+ featureTitle: string;
67
+ features: ({
68
+ text: string;
69
+ footnote?: undefined;
70
+ } | {
71
+ text: string;
72
+ footnote: string;
73
+ } | {
74
+ text: string;
75
+ footnote: {
76
+ title: string;
77
+ cta: string;
78
+ href: string;
79
+ };
80
+ })[];
81
+ } | {
82
+ name: string;
83
+ price: {
84
+ monthly: null;
85
+ yearly: null;
86
+ ids?: undefined;
87
+ };
88
+ limits: {
89
+ links: null;
90
+ clicks: null;
91
+ domains: null;
92
+ tags?: undefined;
93
+ users?: undefined;
94
+ };
95
+ colors: {
96
+ bg: string;
97
+ text: string;
98
+ };
99
+ cta: {
100
+ text: string;
101
+ href: string;
102
+ color: string;
103
+ shortText?: undefined;
104
+ };
105
+ featureTitle: string;
106
+ features: {
107
+ text: string;
108
+ }[];
109
+ tagline?: undefined;
110
+ } | null;
111
+
112
+ export { getPlanFromPriceId };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-FLUV3ASQ.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as getPlanFromPriceId};
@@ -0,0 +1,3 @@
1
+ declare const nanoid: (size?: number | undefined) => string;
2
+
3
+ export { nanoid };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-KL7VCF4Y.mjs";export{a as nanoid};
@@ -0,0 +1,6 @@
1
+ declare function nFormatter(num?: number, opts?: {
2
+ digits?: number;
3
+ full?: boolean;
4
+ }): string;
5
+
6
+ export { nFormatter };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-I5Y5DKPK.mjs";export{a as nFormatter};
@@ -0,0 +1,5 @@
1
+ declare const timeAgo: (timestamp: Date | null, { withAgo, }?: {
2
+ withAgo?: boolean | undefined;
3
+ }) => string;
4
+
5
+ export { timeAgo };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-MPU6JRPV.mjs";export{a as timeAgo};
@@ -0,0 +1,3 @@
1
+ declare const truncate: (str: string | null, length: number) => string | null;
2
+
3
+ export { truncate };
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-ZJKRLIJQ.mjs";export{a as truncate};
@@ -0,0 +1,13 @@
1
+ declare const isValidUrl: (url: string) => boolean;
2
+ declare const getUrlFromString: (str: string) => string | null | undefined;
3
+ declare const getSearchParams: (url: string) => Record<string, string>;
4
+ declare const getParamsFromURL: (url: string) => Record<string, string>;
5
+ declare const constructURLFromUTMParams: (url: string, utmParams: Record<string, string>) => string;
6
+ declare const paramsMetadata: {
7
+ display: string;
8
+ key: string;
9
+ examples: string;
10
+ }[];
11
+ declare const getUrlWithoutUTMParams: (url: string) => string;
12
+
13
+ export { constructURLFromUTMParams, getParamsFromURL, getSearchParams, getUrlFromString, getUrlWithoutUTMParams, isValidUrl, paramsMetadata };
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f,g}from"../chunk-UUWTKITJ.mjs";export{e as constructURLFromUTMParams,d as getParamsFromURL,c as getSearchParams,b as getUrlFromString,g as getUrlWithoutUTMParams,a as isValidUrl,f as paramsMetadata};