@dub/ui 0.0.56 → 0.0.57

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 (127) hide show
  1. package/dist/badge.d.ts +1 -1
  2. package/dist/chunk-2COWDYMU.mjs +2 -0
  3. package/dist/chunk-2WQNY5Q2.mjs +2 -0
  4. package/dist/chunk-343T5BWO.mjs +2 -0
  5. package/dist/chunk-35NORJOR.mjs +2 -0
  6. package/dist/chunk-36H7JWF4.mjs +2 -0
  7. package/dist/chunk-3CGTBMKZ.mjs +2 -0
  8. package/dist/chunk-3DUDCCPV.mjs +2 -0
  9. package/dist/chunk-3OCRUXNO.mjs +2 -0
  10. package/dist/chunk-3S2Y6UWZ.mjs +2 -0
  11. package/dist/chunk-3Y3G5ANF.mjs +2 -0
  12. package/dist/chunk-447ZNBNE.mjs +2 -0
  13. package/dist/chunk-4G3H73X7.mjs +2 -0
  14. package/dist/chunk-4NJHJRNJ.mjs +2 -0
  15. package/dist/chunk-4TW3SSO2.mjs +2 -0
  16. package/dist/chunk-4TX7I3LD.mjs +2 -0
  17. package/dist/chunk-54D7CG23.mjs +2 -0
  18. package/dist/chunk-55KXFIA2.mjs +2 -0
  19. package/dist/chunk-566LZSTG.mjs +2 -0
  20. package/dist/chunk-66A4FDZ3.mjs +2 -0
  21. package/dist/chunk-6AFCONZ4.mjs +2 -0
  22. package/dist/chunk-6D5B2GV5.mjs +2 -0
  23. package/dist/chunk-6FJNRJ37.mjs +2 -0
  24. package/dist/chunk-6G46R4YE.mjs +2 -0
  25. package/dist/chunk-6LIKLH6N.mjs +2 -0
  26. package/dist/chunk-6ML2OAFH.mjs +2 -0
  27. package/dist/chunk-7PKSYUBU.mjs +2 -0
  28. package/dist/chunk-7VHCW7XE.mjs +2 -0
  29. package/dist/chunk-ADXD6PM2.mjs +2 -0
  30. package/dist/chunk-AJG4DYK2.mjs +2 -0
  31. package/dist/chunk-AKSXECIU.mjs +2 -0
  32. package/dist/chunk-AMLNOHOR.mjs +2 -0
  33. package/dist/chunk-ARAYIIWC.mjs +2 -0
  34. package/dist/chunk-ATCWBP2W.mjs +2 -0
  35. package/dist/chunk-ATKECVLV.mjs +2 -0
  36. package/dist/chunk-AYIW3KWV.mjs +2 -0
  37. package/dist/chunk-BUZC4FTR.mjs +2 -0
  38. package/dist/chunk-C7J6SFXL.mjs +2 -0
  39. package/dist/chunk-CCZLBPL4.mjs +2 -0
  40. package/dist/chunk-CFW772QQ.mjs +2 -0
  41. package/dist/chunk-CSCWB6GI.mjs +2 -0
  42. package/dist/chunk-CSOV6PT7.mjs +2 -0
  43. package/dist/chunk-DKSG5ZL3.mjs +2 -0
  44. package/dist/chunk-DMF2DANA.mjs +2 -0
  45. package/dist/chunk-EDL2NUCJ.mjs +2 -0
  46. package/dist/chunk-EOJ5OL63.mjs +2 -0
  47. package/dist/chunk-F3MT2ESO.mjs +2 -0
  48. package/dist/chunk-FB5LW4PH.mjs +2 -0
  49. package/dist/chunk-FM7KCMU6.mjs +2 -0
  50. package/dist/chunk-FOLBO4OL.mjs +2 -0
  51. package/dist/chunk-FTHIWUD5.mjs +2 -0
  52. package/dist/chunk-GBGS7DOZ.mjs +2 -0
  53. package/dist/chunk-GCGVEHV2.mjs +2 -0
  54. package/dist/chunk-GG2TMAVC.mjs +2 -0
  55. package/dist/chunk-GH25QQ5K.mjs +2 -0
  56. package/dist/chunk-GNXAEN7O.mjs +2 -0
  57. package/dist/chunk-H5MUYTM3.mjs +2 -0
  58. package/dist/chunk-HXHQ2TMT.mjs +2 -0
  59. package/dist/chunk-I7RKCUHF.mjs +2 -0
  60. package/dist/chunk-I7WLRML5.mjs +2 -0
  61. package/dist/chunk-ID6MRRR5.mjs +2 -0
  62. package/dist/chunk-IDGSEFJS.mjs +2 -0
  63. package/dist/chunk-IYKRAMF3.mjs +2 -0
  64. package/dist/chunk-JTAY2PHY.mjs +2 -0
  65. package/dist/chunk-JU4HZ7NV.mjs +2 -0
  66. package/dist/chunk-K6QU6OLC.mjs +2 -0
  67. package/dist/chunk-KQESOWJL.mjs +2 -0
  68. package/dist/chunk-LCHR7GWW.mjs +2 -0
  69. package/dist/chunk-LLNH5TUO.mjs +2 -0
  70. package/dist/chunk-MIL44YRL.mjs +2 -0
  71. package/dist/chunk-MIMYKOPB.mjs +2 -0
  72. package/dist/chunk-MQ7VIVHA.mjs +2 -0
  73. package/dist/chunk-MUCA74BW.mjs +2 -0
  74. package/dist/chunk-N4TPAPQG.mjs +2 -0
  75. package/dist/chunk-NC6TK5KF.mjs +2 -0
  76. package/dist/chunk-NE6UYB7G.mjs +2 -0
  77. package/dist/chunk-NF5XCLAT.mjs +2 -0
  78. package/dist/chunk-NLP6PFVU.mjs +2 -0
  79. package/dist/chunk-OQUEOI4I.mjs +2 -0
  80. package/dist/chunk-ORYFRXRY.mjs +2 -0
  81. package/dist/chunk-OVK26AZZ.mjs +2 -0
  82. package/dist/chunk-P2BDTAQF.mjs +2 -0
  83. package/dist/chunk-PAVHVHLX.mjs +2 -0
  84. package/dist/chunk-PDDLQ7CN.mjs +2 -0
  85. package/dist/chunk-PI5AOUYJ.mjs +2 -0
  86. package/dist/chunk-PWPLBLWM.mjs +2 -0
  87. package/dist/chunk-QBZ6VDPP.mjs +2 -0
  88. package/dist/chunk-QZGZAULU.mjs +2 -0
  89. package/dist/chunk-RIUZRDPT.mjs +2 -0
  90. package/dist/chunk-RMQHIWBL.mjs +2 -0
  91. package/dist/chunk-RZNT7RTQ.mjs +2 -0
  92. package/dist/chunk-S3RTQTME.mjs +2 -0
  93. package/dist/chunk-SEJ7SUTR.mjs +2 -0
  94. package/dist/chunk-SSAKFO5N.mjs +2 -0
  95. package/dist/chunk-SSDHKKV4.mjs +2 -0
  96. package/dist/chunk-T6JCSKG6.mjs +2 -0
  97. package/dist/chunk-T7FRX3VZ.mjs +2 -0
  98. package/dist/chunk-UCW4QUB5.mjs +2 -0
  99. package/dist/chunk-UFBQAAEI.mjs +2 -0
  100. package/dist/chunk-UHKRK7PT.mjs +2 -0
  101. package/dist/chunk-UHMUYHTF.mjs +2 -0
  102. package/dist/chunk-UJU6O23C.mjs +2 -0
  103. package/dist/chunk-V5ZNBBMB.mjs +2 -0
  104. package/dist/chunk-VHTYKB36.mjs +2 -0
  105. package/dist/chunk-VIWUUY43.mjs +2 -0
  106. package/dist/chunk-VNPBRALX.mjs +2 -0
  107. package/dist/chunk-VR3TTLEX.mjs +2 -0
  108. package/dist/chunk-W63PSS5Y.mjs +2 -0
  109. package/dist/chunk-XTOYJ4GV.mjs +2 -0
  110. package/dist/chunk-YFDRD47H.mjs +2 -0
  111. package/dist/chunk-YONGEPMI.mjs +2 -0
  112. package/dist/chunk-YOQTHEWT.mjs +2 -0
  113. package/dist/chunk-YUATMET6.mjs +2 -0
  114. package/dist/chunk-YZG2XIZW.mjs +2 -0
  115. package/dist/chunk-Z5FO6KYG.mjs +2 -0
  116. package/dist/chunk-ZDVUGRIM.mjs +2 -0
  117. package/dist/chunk-ZIM33FOQ.mjs +2 -0
  118. package/dist/chunk-ZMYNZ3NH.mjs +2 -0
  119. package/dist/chunk-ZNLAQELQ.mjs +2 -0
  120. package/dist/chunk-ZRDPRCTI.mjs +2 -0
  121. package/dist/chunk-ZX2DEZW5.mjs +2 -0
  122. package/dist/footer.mjs +1 -1
  123. package/dist/index.css +1 -1
  124. package/dist/index.mjs +1 -1
  125. package/dist/modal.d.ts +2 -1
  126. package/dist/modal.mjs +1 -1
  127. package/package.json +1 -1
package/dist/badge.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const badgeVariants: (props?: ({
6
- variant?: "default" | "violet" | "blue" | "sky" | "black" | "gray" | "neutral" | "rainbow" | null | undefined;
6
+ variant?: "black" | "blue" | "gray" | "violet" | "default" | "sky" | "neutral" | "rainbow" | null | undefined;
7
7
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
8
8
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
9
9
  }
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as a}from"./chunk-2WQNY5Q2.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as Ae,b as ke}from"./chunk-AUBFB4SI.mjs";var de=Ae((Qt,ce)=>{var I=1e3,L=I*60,T=L*60,P=T*24,Ke=P*7,We=P*365.25;ce.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return He(e);if(r==="number"&&isFinite(e))return t.long?Ze(e):Ye(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function He(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!!t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*We;case"weeks":case"week":case"w":return r*Ke;case"days":case"day":case"d":return r*P;case"hours":case"hour":case"hrs":case"hr":case"h":return r*T;case"minutes":case"minute":case"mins":case"min":case"m":return r*L;case"seconds":case"second":case"secs":case"sec":case"s":return r*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ye(e){var t=Math.abs(e);return t>=P?Math.round(e/P)+"d":t>=T?Math.round(e/T)+"h":t>=L?Math.round(e/L)+"m":t>=I?Math.round(e/I)+"s":e+"ms"}function Ze(e){var t=Math.abs(e);return t>=P?j(e,t,P,"day"):t>=T?j(e,t,T,"hour"):t>=L?j(e,t,L,"minute"):t>=I?j(e,t,I,"second"):e+" ms"}function j(e,t,r,o){var a=t>=r*1.5;return Math.round(e/r)+" "+o+(a?"s":"")}});function M(e,t={digits:1}){if(!e)return"0";if(t.full)return Intl.NumberFormat("en-US").format(e);let r=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],o=/\.0+$|(\.[0-9]*[1-9])0+$/;var a=r.slice().reverse().find(function(s){return e>=s.value});return a?(e/a.value).toFixed(t.digits).replace(o,"$1")+a.symbol:"0"}var V=e=>{try{return new URL(e),!0}catch{return!1}},Ee=e=>{if(V(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{return null}};var Se=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),_e=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),Ie=new RegExp(/^[a-zA-Z0-9\-]+$/);var Le=e=>{if(V(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};var J=({name:e="Business",monthly:t=49,yearly:r=39,links:o=5e3,clicks:a=15e4,domains:s=40,tags:n=150,users:l=15,ids:u=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:u},limits:{links:o,clicks:a,domains:s,tags:n,users:l},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:`${M(o,{full:!0})} links/mo`},{text:`${M(a)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${s} custom domains`},{text:`${l} users`},{text:`${M(n,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{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"}}]}),_=[{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",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},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 etc."}]},J({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),J({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),J({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),J({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/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"}]}],Te=_.find(e=>e.name==="Free"),Ce=_.find(e=>e.name==="Pro"),Oe=_.find(e=>e.name==="Business"),Ne=_.find(e=>e.name==="Enterprise");var Me=_.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var Re=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",Y=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",ze=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Ue=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),De=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",Be=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",Ge=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${Y}`,"api.localhost:8888"]),Ve=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",Je=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var R="cl7pj5kq4006835rbjlt2ofka";var le=[{id:"clce1z7ch00j0rbstbjufva4j",slug:Y,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:R},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!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"],projectId:R},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!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","amazon.es"],projectId:R},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:R}]:[]],je=le.map(e=>e.slug);var $e=["stats","changelog","terms","privacy","abuse"],Fe=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"QR Code API",slug:"qr-code"},{name:"Link Inspector",slug:"inspector"}],qe=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];var ue=ke(de(),1),Xe=(e,{withAgo:t}={})=>{if(!e)return"Never";let r=Date.now()-new Date(e).getTime();return r<1e3?"Just now":r>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,ue.default)(r)}${t?" ago":""}`};async function Qe(e,t){let r=await fetch(e,t);if(!r.ok){let o=await r.text(),a=new Error(o);throw a.status=r.status,a}return r.json()}function pe(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=pe(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function me(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=pe(e))&&(o&&(o+=" "),o+=t);return o}var X="-";function et(e){let t=rt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function a(n){let l=n.split(X);return l[0]===""&&l.length!==1&&l.shift(),ge(l,t)||tt(n)}function s(n,l){let u=r[n]||[];return l&&o[n]?[...u,...o[n]]:u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ge(e,t){var n;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(X);return(n=t.validators.find(({validator:l})=>l(s)))==null?void 0:n.classGroupId}var fe=/^\[(.+)\]$/;function tt(e){if(fe.test(e)){let t=fe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function rt(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),r).forEach(([s,n])=>{Z(n,o,s,t)}),o}function Z(e,t,r,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:he(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(ot(a)){Z(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,n])=>{Z(n,he(t,s),r,o)})})}function he(e,t){let r=e;return t.split(X).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function ot(e){return e.isThemeGetter}function st(e,t){return t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,l])=>[t+n,l])):s);return[r,a]}):e}function at(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function a(s,n){r.set(s,n),t++,t>e&&(t=0,o=r,r=new Map)}return{get(s){let n=r.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){r.has(s)?r.set(s,n):a(s,n)}}}var be="!";function nt(e){let t=e.separator,r=t.length===1,o=t[0],a=t.length;return function(n){let l=[],u=0,m=0,p;for(let f=0;f<n.length;f++){let g=n[f];if(u===0){if(g===o&&(r||n.slice(f,f+a)===t)){l.push(n.slice(m,f)),m=f+a;continue}if(g==="/"){p=f;continue}}g==="["?u++:g==="]"&&u--}let h=l.length===0?n:n.substring(m),b=h.startsWith(be),v=b?h.substring(1):h,E=p&&p>m?p-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:E}}}function it(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t}function lt(e){return{cache:at(e.cacheSize),splitModifiers:nt(e),...et(e)}}var ct=/\s+/;function dt(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=new Set;return e.trim().split(ct).map(n=>{let{modifiers:l,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=r(n),h=o(p?m.substring(0,p):m),b=Boolean(p);if(!h){if(!p)return{isTailwindClass:!1,originalClassName:n};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:n};b=!1}let v=it(l).join(":"),E=u?v+be:v;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:n,hasPostfixModifier:b}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:l,classGroupId:u,hasPostfixModifier:m}=n,p=l+u;return s.has(p)?!1:(s.add(p),a(u,m).forEach(h=>s.add(l+h)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function ut(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}function ye(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r}function pt(e,...t){let r,o,a,s=n;function n(u){let m=t.reduce((p,h)=>h(p),e());return r=lt(m),o=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){let m=o(u);if(m)return m;let p=dt(u,r);return a(u,p),p}return function(){return s(ut.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,mt=/^\d+\/\d+$/,ft=new Set(["px","full","screen"]),ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return S(e)||ft.has(e)||mt.test(e)}function A(e){return C(e,"length",_t)}function S(e){return Boolean(e)&&!Number.isNaN(Number(e))}function $(e){return C(e,"number",S)}function z(e){return Boolean(e)&&Number.isInteger(Number(e))}function vt(e){return e.endsWith("%")&&S(e.slice(0,-1))}function i(e){return xe.test(e)}function k(e){return ht.test(e)}var wt=new Set(["length","size","percentage"]);function At(e){return C(e,wt,ve)}function kt(e){return C(e,"position",ve)}var Et=new Set(["image","url"]);function Pt(e){return C(e,Et,Lt)}function St(e){return C(e,"",It)}function U(){return!0}function C(e,t,r){let o=xe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1}function _t(e){return gt.test(e)&&!bt.test(e)}function ve(){return!1}function It(e){return yt.test(e)}function Lt(e){return xt.test(e)}function Tt(){let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),n=c("borderSpacing"),l=c("borderWidth"),u=c("contrast"),m=c("grayscale"),p=c("hueRotate"),h=c("invert"),b=c("gap"),v=c("gradientColorStops"),E=c("gradientColorStopPositions"),f=c("inset"),g=c("margin"),w=c("opacity"),y=c("padding"),Q=c("saturate"),F=c("scale"),ee=c("sepia"),te=c("skew"),re=c("space"),oe=c("translate"),q=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",i,t],d=()=>[i,t],se=()=>["",x,A],D=()=>["auto",S,i],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],H=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",i],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[S,$],G=()=>[S,i];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[x,A],blur:["none","",k,i],brightness:N(),borderColor:[e],borderRadius:["none","","full",k,i],borderSpacing:d(),borderWidth:se(),contrast:N(),grayscale:O(),hueRotate:G(),invert:O(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[vt,A],inset:W(),margin:W(),opacity:N(),padding:d(),saturate:N(),scale:N(),sepia:O(),skew:G(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":ie()}],"break-before":[{"break-before":ie()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ae(),i]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",z,i]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",z,i]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",z,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[z,i]},i]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",S,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,A]}],"underline-offset":[{"underline-offset":["auto",x,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",At]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[x,i]}],"outline-w":[{outline:[x,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[x,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,St]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":ne()}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[z,i]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,A,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var we=pt(Tt);function Ct(...e){return we(me(e))}export{M as a,Ee as b,Le as c,De as d,$e as e,Fe as f,qe as g,Xe as h,Qe as i,Ct as j};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as e}from"./chunk-2WQNY5Q2.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:e("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as N}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as l,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as v}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",d),[o,r]=v("bg-gray-200"),[k,i]=v("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:c}=a;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),r(L)}else i("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[e("div",{className:l("flex h-4 w-4 animate-ping items-center justify-center rounded-full",o),children:e("div",{className:l("h-2.5 w-2.5 animate-ping rounded-full",o)})}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{O as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as g}from"./chunk-G5TWJ2PM.mjs";import{g as i}from"./chunk-FNCAV3EY.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as y}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function C({children:l,className:d,showModal:s,setShowModal:r,onClose:f,desktopOnly:m,sheet:u,preventDefaultClose:p}){let b=y(),c=({dragged:e}={})=>{p&&!e||(f&&f(),r?r(!1):b.back())},{isMobile:D}=g();return D&&!m?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||c({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||c()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("fixed z-40 m-auto w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",u?"animate-slide-left-fade inset-y-0 right-0":"animate-fade-in inset-0",d),children:l})]})})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as g}from"./chunk-DKSG5ZL3.mjs";import{g as i}from"./chunk-ATCWBP2W.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as r}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function C({children:l,className:d,showModal:s,setShowModal:a,onClose:m,desktopOnly:f,sheet:u,preventDefaultClose:b}){let p=D(),c=({dragged:e}={})=>{b&&!e||(m&&m(),a?a(!1):p.back())},{isMobile:y}=g();return y&&!f?n(r.Root,{open:a?s:!0,onOpenChange:e=>{e||c({dragged:!0})},children:[t(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(r.Portal,{children:[n(r.Content,{className:(void 0)("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(r.Overlay,{})]})]}):t(o.Root,{open:a?s:!0,onOpenChange:e=>{e||c()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:(void 0)("fixed z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",u?"animate-enter-from-right inset-y-0 right-0 border-y-0 border-r-0 sm:rounded-r-none":"animate-scale-in inset-0",d),children:l})]})})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ var he=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),be=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),ye=new RegExp(/^[a-zA-Z0-9\-]+$/);var xe=e=>{if((void 0)(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}};var U=({name:e="Business",monthly:t=49,yearly:r=39,links:o=5e3,clicks:n=15e4,domains:s=40,tags:a=150,users:l=15,ids:p=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:t,yearly:r,ids:p},limits:{links:o,clicks:n,domains:s,tags:a,users:l},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:`${(void 0)(o,{full:!0})} links/mo`},{text:`${(void 0)(n)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${s} custom domains`},{text:`${l} users`},{text:`${(void 0)(a,{full:!0})} tags`,footnote:{title:"Organize your links with tags.",cta:"Learn more.",href:"https://dub.co/help/article/how-to-use-tags"}},{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"}}]}),_=[{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",link:"https://dub.co/help/article/pro-plan",price:{monthly:24,yearly:19,ids:["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"]},limits:{links:1e3,clicks:5e4,domains:10,tags:25,users:5},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 etc."}]},U({name:"Business",monthly:49,yearly:39,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPVJdwv5zrG","price_1LoyrCAlJJEpqkPVZ32BV3wm","price_1LodLoAlJJEpqkPV9rD0rlNL","price_1OTcRzAlJJEpqkPV6G9iP0Tb","price_1OZgmnAlJJEpqkPVOj4kV64R"]}),U({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:40,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OnaK3AlJJEpqkPVnKU97wxJ"]}),U({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:100,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OnaKJAlJJEpqkPVcfQ5Rm06"]}),U({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:250,ids:["price_1OnWwLAlJJEpqkPVXtJyPqLk","price_1OnWwLAlJJEpqkPV4eMbOkNh","price_1OnaKOAlJJEpqkPVV6gkZPgt","price_1OnaKOAlJJEpqkPVijIbAivj"]}),{name:"Enterprise",tagline:"Custom tailored plans for large enterprises. Whether you're running a SMS campaign with millions of short links or a large marketing campaign with billions of clicks, we've got you covered.",link:"https://dub.co/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"}]}],ve=_.find(e=>e.name==="Free"),we=_.find(e=>e.name==="Pro"),Ae=_.find(e=>e.name==="Business"),Ee=_.find(e=>e.name==="Enterprise");var ke=_.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var Pe=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",q=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Se=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,_e=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),Ie=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",Ce=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",Te=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${q}`,"api.localhost:8888"]),Le=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",Oe=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var L="cl7pj5kq4006835rbjlt2ofka";var Ne=[{id:"clce1z7ch00j0rbstbjufva4j",slug:q,verified:!0,primary:!0,archived:!1,publicStats:!1,target:`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,type:"redirect",placeholder:"https://dub.co/help/article/what-is-dub",clicks:0,allowedHostnames:[],projectId:L},...process.env.NEXT_PUBLIC_IS_DUB?[{id:"clce1z7cs00y8rbstk4xtnj0k",slug:"chatg.pt",verified:!0,primary:!1,archived:!1,publicStats:!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"],projectId:L},{id:"cloxw8qtk000bjt08n9b812vs",slug:"amzn.id",verified:!0,primary:!1,archived:!1,publicStats:!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","amazon.es"],projectId:L},{id:"cloxw8y2u0003js08a7mqg1j8",slug:"spti.fi",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/spotify-link-shortener",type:"redirect",placeholder:"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y",clicks:0,allowedHostnames:["open.spotify.com"],projectId:L}]:[]];async function ze(e,t){let r=await fetch(e,t);if(!r.ok){let o=await r.text(),n=new Error(o);throw n.status=r.status,n}return r.json()}function ae(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=ae(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ne(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=ae(e))&&(o&&(o+=" "),o+=t);return o}var W="-";function Re(e){let t=Ue(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function n(a){let l=a.split(W);return l[0]===""&&l.length!==1&&l.shift(),ce(l,t)||Me(a)}function s(a,l){let p=r[a]||[];return l&&o[a]?[...p,...o[a]]:p}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function ce(e,t){var a;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?ce(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let s=e.join(W);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId}var ie=/^\[(.+)\]$/;function Me(e){if(ie.test(e)){let t=ie.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function Ue(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Be(Object.entries(e.classGroups),r).forEach(([s,a])=>{F(a,o,s,t)}),o}function F(e,t,r,o){e.forEach(n=>{if(typeof n=="string"){let s=n===""?t:le(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(De(n)){F(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,a])=>{F(a,le(t,s),r,o)})})}function le(e,t){let r=e;return t.split(W).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function De(e){return e.isThemeGetter}function Be(e,t){return t?e.map(([r,o])=>{let n=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,l])=>[t+a,l])):s);return[r,n]}):e}function Ve(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function n(s,a){r.set(s,a),t++,t>e&&(t=0,o=r,r=new Map)}return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return n(s,a),a},set(s,a){r.has(s)?r.set(s,a):n(s,a)}}}var de="!";function Ge(e){let t=e.separator,r=t.length===1,o=t[0],n=t.length;return function(a){let l=[],p=0,m=0,u;for(let f=0;f<a.length;f++){let h=a[f];if(p===0){if(h===o&&(r||a.slice(f,f+n)===t)){l.push(a.slice(m,f)),m=f+n;continue}if(h==="/"){u=f;continue}}h==="["?p++:h==="]"&&p--}let g=l.length===0?a:a.substring(m),b=g.startsWith(de),v=b?g.substring(1):g,k=u&&u>m?u-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:k}}}function Je(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t}function je(e){return{cache:Ve(e.cacheSize),splitModifiers:Ge(e),...Re(e)}}var $e=/\s+/;function qe(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=new Set;return e.trim().split($e).map(a=>{let{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:u}=r(a),g=o(u?m.substring(0,u):m),b=Boolean(u);if(!g){if(!u)return{isTailwindClass:!1,originalClassName:a};if(g=o(m),!g)return{isTailwindClass:!1,originalClassName:a};b=!1}let v=Je(l).join(":"),k=p?v+de:v;return{isTailwindClass:!0,modifierId:k,classGroupId:g,originalClassName:a,hasPostfixModifier:b}}).reverse().filter(a=>{if(!a.isTailwindClass)return!0;let{modifierId:l,classGroupId:p,hasPostfixModifier:m}=a,u=l+p;return s.has(u)?!1:(s.add(u),n(p,m).forEach(g=>s.add(l+g)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function Fe(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=pe(t))&&(o&&(o+=" "),o+=r);return o}function pe(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=pe(e[o]))&&(r&&(r+=" "),r+=t);return r}function We(e,...t){let r,o,n,s=a;function a(p){let m=t.reduce((u,g)=>g(u),e());return r=je(m),o=r.cache.get,n=r.cache.set,s=l,l(p)}function l(p){let m=o(p);if(m)return m;let u=qe(p,r);return n(p,u),u}return function(){return s(Fe.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ke=/^\d+\/\d+$/,He=new Set(["px","full","screen"]),Ye=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Xe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return P(e)||He.has(e)||Ke.test(e)}function A(e){return I(e,"length",lt)}function P(e){return Boolean(e)&&!Number.isNaN(Number(e))}function B(e){return I(e,"number",P)}function O(e){return Boolean(e)&&Number.isInteger(Number(e))}function tt(e){return e.endsWith("%")&&P(e.slice(0,-1))}function i(e){return ue.test(e)}function E(e){return Ye.test(e)}var rt=new Set(["length","size","percentage"]);function ot(e){return I(e,rt,me)}function st(e){return I(e,"position",me)}var at=new Set(["image","url"]);function nt(e){return I(e,at,dt)}function it(e){return I(e,"",ct)}function N(){return!0}function I(e,t,r){let o=ue.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1}function lt(e){return Ze.test(e)&&!Xe.test(e)}function me(){return!1}function ct(e){return Qe.test(e)}function dt(e){return et.test(e)}function pt(){let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),n=c("borderColor"),s=c("borderRadius"),a=c("borderSpacing"),l=c("borderWidth"),p=c("contrast"),m=c("grayscale"),u=c("hueRotate"),g=c("invert"),b=c("gap"),v=c("gradientColorStops"),k=c("gradientColorStopPositions"),f=c("inset"),h=c("margin"),w=c("opacity"),y=c("padding"),H=c("saturate"),V=c("scale"),Y=c("sepia"),Z=c("skew"),X=c("space"),Q=c("translate"),G=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",i,t],d=()=>[i,t],ee=()=>["",x,A],z=()=>["auto",P,i],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],$=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",i],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[P,B],M=()=>[P,i];return{cacheSize:500,separator:":",theme:{colors:[N],spacing:[x,A],blur:["none","",E,i],brightness:T(),borderColor:[e],borderRadius:["none","","full",E,i],borderSpacing:d(),borderWidth:ee(),contrast:T(),grayscale:C(),hueRotate:M(),invert:C(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[tt,A],inset:j(),margin:j(),opacity:T(),padding:d(),saturate:T(),scale:T(),sepia:C(),skew:M(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...te(),i]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",O,i]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",O,i]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",O,i]},i]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[O,i]},i]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",B]}],"font-family":[{font:[N]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",P,B]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,A]}],"underline-offset":[{"underline-offset":["auto",x,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),st]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ot]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:R()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[x,i]}],"outline-w":[{outline:[x,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[x,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,it]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":re()}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",E,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[g]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[O,i]}],"translate-x":[{"translate-x":[Q]}],"translate-y":[{"translate-y":[Q]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,A,B]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var fe=We(pt);function ut(...e){return fe(ne(e))}export{xe as a,Ie as b,ze as c,ut as d,mt as e,ft as f,S as g,K as h};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as i}from"./chunk-2WQNY5Q2.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as v}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as u,j as g}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import o from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as N}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:r,slug:s})=>({name:r,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:g.map(({name:r,slug:s})=>({name:r,href:`/compare/${s}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:u.map(({name:r,slug:s})=>({name:r,href:`/tools/${s}`}))};function D(){let{domain:r="dub.co"}=T(),s=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(o,{href:s("/"),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:r}=R("https://status.dub.co/api/v1/summary",d),[s,a]=N("bg-gray-200"),[k,i]=N("Loading status...");return P(()=>{if(!r)return;let{ongoing_incidents:c}=r;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),a(L)}else i("All systems operational"),a("bg-green-500")},[r]),t(o,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-4 w-4",children:[e("div",{className:n("absolute inset-0 m-auto h-4 w-4 animate-ping items-center justify-center rounded-full",s)}),e("div",{className:n("absolute inset-0 z-10 m-auto h-4 w-4 rounded-full",s)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as n}from"./chunk-3DUDCCPV.mjs";import g from"next/image";import{useEffect as i,useState as r}from"react";import{jsx as u}from"react/jsx-runtime";function v(t){let[o,c]=r(!0),[l,e]=r(t.src);i(()=>e(t.src),[t.src]);let m=s=>{c(!1);let a=s.target;a.naturalWidth<=16&&a.naturalHeight<=16&&e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)};return u(g,{...t,src:l,alt:t.alt,className:n(o?"blur-[2px]":"blur-0",t.className),onLoad:m,onError:()=>{e(`https://avatar.vercel.sh/${encodeURIComponent(t.alt)}`)},unoptimized:!0})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as g}from"./chunk-G5TWJ2PM.mjs";import{g as i}from"./chunk-FNCAV3EY.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as r}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function C({children:l,className:d,showModal:s,setShowModal:a,onClose:m,desktopOnly:c,sheet:u,preventDefaultClose:b}){let p=D(),f=({dragged:e}={})=>{b&&!e||(m&&m(),a?a(!1):p.back())},{isMobile:y}=g();return y&&!c?n(r.Root,{open:a?s:!0,onOpenChange:e=>{e||f({dragged:!0})},children:[t(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(r.Portal,{children:[n(r.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(r.Overlay,{})]})]}):t(o.Root,{open:a?s:!0,onOpenChange:e=>{e||f()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-fade-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",u&&"animate-enter-from-right inset-y-0 right-0 border-y-0 border-r-0 sm:rounded-r-none",d),children:l})]})})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as a}from"./chunk-3DUDCCPV.mjs";import*as i from"@radix-ui/react-radio-group";import{Circle as p}from"lucide-react";import*as m from"react";import{jsx as e}from"react/jsx-runtime";var s=m.forwardRef(({className:o,...r},t)=>e(i.Root,{className:a("grid gap-2",o),...r,ref:t}));s.displayName=i.Root.displayName;var d=m.forwardRef(({className:o,...r},t)=>e(i.Item,{ref:t,className:a("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",o),...r,children:e(i.Indicator,{className:"flex items-center justify-center",children:e(p,{className:"h-2.5 w-2.5 fill-current text-current"})})}));d.displayName=i.Item.displayName;export{s as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as v}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as u,j as g}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import o from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as N}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:r,slug:s})=>({name:r,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:g.map(({name:r,slug:s})=>({name:r,href:`/compare/${s}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:u.map(({name:r,slug:s})=>({name:r,href:`/tools/${s}`}))};function D(){let{domain:r="dub.co"}=T(),s=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(o,{href:s("/"),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:r}=R("https://status.dub.co/api/v1/summary",d),[s,a]=N("bg-gray-200"),[k,i]=N("Loading status...");return P(()=>{if(!r)return;let{ongoing_incidents:c}=r;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),a(L)}else i("All systems operational"),a("bg-red-500")},[r]),t(o,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative h-4 w-4",children:[e("div",{className:n("absolute inset-0 m-auto h-4 w-4 animate-ping items-center justify-center rounded-full",s)}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",s)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as N}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as v}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:r,slug:o})=>({name:r,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))};function D(){let{domain:r="dub.co"}=T(),o=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(s,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(s,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(s,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(s,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(s,{href:o(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:r}=R("https://status.dub.co/api/v1/summary",d),[o,a]=v("bg-gray-200"),[k,i]=v("Loading status...");return P(()=>{if(!r)return;let{ongoing_incidents:c}=r;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),a(L)}else i("All systems operational"),a("bg-green-500")},[r]),t(s,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[e("div",{className:n("h-4 w-4 animate-ping rounded-full",o),children:e("div",{className:n("absolute inset-0 z-0 m-0 h-3 w-3 animate-ping rounded-full",o)})}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as r}from"./chunk-2WQNY5Q2.mjs";import*as e from"@radix-ui/react-accordion";import{ChevronDown as m}from"lucide-react";import*as c from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var v=e.Root,d=c.forwardRef(({className:o,...t},i)=>n(e.Item,{ref:i,className:r("border-b border-b-slate-200 py-3 last:border-none",o),...t}));d.displayName="AccordionItem";var s=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Header,{className:"flex",children:l(e.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between font-medium transition-all sm:text-lg [&[data-state=open]>svg]:rotate-180",o),...i,children:[t,n(m,{className:"h-5 w-5 flex-none transition-transform duration-300"})]})}));s.displayName=e.Trigger.displayName;var f=c.forwardRef(({className:o,children:t,...i},a)=>n(e.Content,{ref:a,className:r("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-gray-500 transition-all sm:text-base",o),...i,children:t}));f.displayName=e.Content.displayName;export{v as a,d as b,s as c,f as d};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as i}from"./chunk-3DUDCCPV.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:i("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as e}from"./chunk-2WQNY5Q2.mjs";import{jsx as t}from"react/jsx-runtime";function n({className:i}){return t("div",{className:e("h-5 w-5",i),children:t("div",{style:{position:"relative",top:"50%",left:"50%"},className:e("loading-spinner","h-5 w-5",i),children:[...Array(12)].map((r,a)=>t("div",{style:{animationDelay:`${-1.2+.1*a}s`,background:"gray",position:"absolute",borderRadius:"1rem",width:"30%",height:"8%",left:"-10%",top:"-4%",transform:`rotate(${30*a}deg) translate(120%)`},className:"animate-spinner"},a))})})}export{n as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as g}from"./chunk-6ML2OAFH.mjs";import{j as i}from"./chunk-2WQNY5Q2.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as r}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function C({children:l,className:d,showModal:s,setShowModal:a,onClose:m,desktopOnly:f,sheet:u,preventDefaultClose:b}){let p=D(),c=({dragged:e}={})=>{b&&!e||(m&&m(),a?a(!1):p.back())},{isMobile:y}=g();return y&&!f?n(r.Root,{open:a?s:!0,onOpenChange:e=>{e||c({dragged:!0})},children:[t(r.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(r.Portal,{children:[n(r.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(r.Overlay,{})]})]}):t(o.Root,{open:a?s:!0,onOpenChange:e=>{e||c()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("fixed z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",u?"animate-enter-from-right inset-y-0 right-0 border-y-0 border-r-0 sm:rounded-r-none":"animate-scale-in inset-0",d),children:l})]})})}export{C as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as o}from"./chunk-3DUDCCPV.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as e}from"./chunk-3DUDCCPV.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as s}from"./chunk-6ML2OAFH.mjs";import*as r from"@radix-ui/react-popover";import{Drawer as o}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function v({children:t,content:a,align:d="center",openPopover:n,setOpenPopover:l,mobileOnly:m}){let{isMobile:p}=s();return m||p?i(o.Root,{open:n,onOpenChange:l,children:[e(o.Trigger,{className:"sm:hidden",asChild:!0,children:t}),e(o.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(o.Portal,{children:[i(o.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:a})]}),e(o.Overlay,{})]})]}):i(r.Root,{open:n,onOpenChange:l,children:[e(r.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(r.Portal,{children:e(r.Content,{sideOffset:8,align:d,className:"animate-slide-up-fade z-50 items-center rounded-md border border-gray-200 bg-white drop-shadow-lg sm:block",children:a})})]})}export{v as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{j as l}from"./chunk-2WQNY5Q2.mjs";import{jsx as t,jsxs as e}from"react/jsx-runtime";function o({className:a}){return e("div",{className:"group relative flex items-center",children:[t("svg",{className:l("absolute h-4 w-4 transition-all group-hover:translate-x-1 group-hover:opacity-0",a),xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"})}),t("svg",{className:`${a||"h-4 w-4"} absolute opacity-0 transition-all group-hover:translate-x-1 group-hover:opacity-100`,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16",children:t("path",{fillRule:"evenodd",d:"M8.22 2.97a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06l2.97-2.97H3.75a.75.75 0 010-1.5h7.44L8.22 4.03a.75.75 0 010-1.06z"})})]})}export{o as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{d as t}from"./chunk-3DUDCCPV.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as N}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as v}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function D(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",d),[o,r]=v("bg-gray-200"),[k,i]=v("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:c}=a;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),r(L)}else i("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[e("div",{className:n("flex h-4 w-4 animate-ping items-center justify-center rounded-full",o),children:e("div",{className:n("z-0 h-2.5 w-2.5 rounded-full",o)})}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{i as b}from"./chunk-2WQNY5Q2.mjs";import p from"js-cookie";import{useEffect as A,useState as R}from"react";function w(e,r,t){let[n,u]=R(()=>{let s=p.get(e);return s?JSON.parse(s):r});return A(()=>{let s=()=>{let o=p.get(e);o&&u(JSON.parse(o))};return window.addEventListener("storage",s),()=>{window.removeEventListener("storage",s)}},[e]),[n,s=>{u(s),p.set(e,JSON.stringify(s),t)}]}import{useEffect as V,useState as j}from"react";function S(){let[e,r]=j(null);return V(()=>{let t=document.querySelector("[data-mdx-container]");if(!t)return;let n=t.offsetTop-1,u=new IntersectionObserver(o=>{var f,d,h;let c=o[0];if(!c)return;let l=(((f=c.rootBounds)==null?void 0:f.height)||0)*.3+n;for(let g=1;g<o.length;g++){let m=o[g];if(!m)break;(m.boundingClientRect.top<c.boundingClientRect.top||c.boundingClientRect.bottom<n)&&(c=m)}let a=c.target;for(;a&&a.getBoundingClientRect().bottom<n;)a=(d=i.get(a))==null?void 0:d.next;for(;a&&a.getBoundingClientRect().top>l;)a=(h=i.get(a))==null?void 0:h.prev;a&&r(a.getAttribute("href"))},{threshold:1,rootMargin:`-${n}px 0px 0px 0px`}),i=new Map;return(t==null?void 0:t.querySelectorAll("[data-mdx-heading]")).forEach(o=>u.observe(o)),()=>{u.disconnect()}},[]),e==null?void 0:e.replace("#","")}import{useEffect as k,useState as y}from"react";function x(e,{threshold:r=0,root:t=null,rootMargin:n="0%",freezeOnceVisible:u=!1}){let[i,s]=y(),o=(i==null?void 0:i.isIntersecting)&&u,c=([l])=>{s(l)};return k(()=>{let l=e==null?void 0:e.current;if(!!!window.IntersectionObserver||o||!l)return;let f={threshold:r,root:t,rootMargin:n},d=new IntersectionObserver(c,f);return d.observe(l),()=>d.disconnect()},[e,JSON.stringify(r),t,n,o]),i}import{useEffect as M,useState as N}from"react";function v(e,r){let[t,n]=N(r);return M(()=>{let i=window.localStorage.getItem(e);i&&n(JSON.parse(i))},[e]),[t,i=>{n(i),window.localStorage.setItem(e,JSON.stringify(i))}]}import{useEffect as q,useState as E}from"react";function O(){let[e,r]=E(null),[t,n]=E(null);return q(()=>{let u=()=>{window.matchMedia("(max-width: 640px)").matches?r("mobile"):window.matchMedia("(min-width: 641px) and (max-width: 1024px)").matches?r("tablet"):r("desktop"),n({width:window.innerWidth,height:window.innerHeight})};return u(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[]),{device:e,width:t==null?void 0:t.width,height:t==null?void 0:t.height,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop"}}import{toast as J}from"sonner";import U from"swr";function T(e,r){let{data:t,isLoading:n,mutate:u}=U(e,b);return{data:t,isLoading:n,update:async(i,s)=>J.promise(u(i(t),{optimisticData:s,rollbackOnError:!0,populateCache:!0,revalidate:!0}),{loading:(r==null?void 0:r.loading)||"Updating...",success:(r==null?void 0:r.success)||"Successfully updated",error:(r==null?void 0:r.error)||"Failed to update"})}}import{usePathname as D,useRouter as $,useSearchParams as z}from"next/navigation";function I(){let e=D(),r=$(),t=z(),n=Object.fromEntries(t);return{pathname:e,router:r,searchParams:t,searchParamsObj:n,queryParams:({set:s,del:o,replace:c,getNewPath:l,arrayDelimiter:a=","})=>{let f=new URLSearchParams(t);s&&Object.entries(s).forEach(([g,m])=>f.set(g,Array.isArray(m)?m.join(a):m)),o&&(Array.isArray(o)?o.forEach(g=>f.delete(g)):f.delete(o));let d=f.toString(),h=`${e}${d.length>0?`?${d}`:""}`;if(l)return h;c?r.replace(h):r.push(h)},getQueryString:(s,o)=>{let c=new URLSearchParams(t);s&&Object.entries(s).forEach(([a,f])=>c.set(a,f)),o!=null&&o.ignore&&o.ignore.forEach(a=>c.delete(a));let l=c.toString();return l.length>0?`?${l}`:""}}}import{useCallback as B,useEffect as P,useState as Q}from"react";function L(e){let[r,t]=Q(!1),n=B(()=>{t(window.scrollY>e)},[e]);return P(()=>(window.addEventListener("scroll",n),()=>window.removeEventListener("scroll",n)),[n]),P(()=>{n()},[n]),r}export{w as a,S as b,x as c,v as d,O as e,T as f,I as g,L as h};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as v}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import o from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as N}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:r,slug:s})=>({name:r,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:r,slug:s})=>({name:r,href:`/compare/${s}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:r,slug:s})=>({name:r,href:`/tools/${s}`}))};function D(){let{domain:r="dub.co"}=T(),s=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(o,{href:s("/"),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:r}=R("https://status.dub.co/api/v1/summary",d),[s,a]=N("bg-gray-200"),[k,i]=N("Loading status...");return P(()=>{if(!r)return;let{ongoing_incidents:c}=r;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),a(L)}else i("All systems operational"),a("bg-green-500")},[r]),t(o,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative",children:[e("div",{className:n("absolute inset-0 h-4 w-4 animate-ping items-center justify-center rounded-full",s)}),e("div",{className:n("absolute inset-0 z-10 h-3 w-3 rounded-full",s)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as e}from"./chunk-ATCWBP2W.mjs";import{jsx as o}from"react/jsx-runtime";function c({className:r,children:a}){return o("div",{className:(void 0)("mx-auto w-full max-w-screen-xl px-2.5 lg:px-20",r),children:a})}export{c as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as i}from"./chunk-ATCWBP2W.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function t({className:l}){return o("svg",{width:"191",height:"191",viewBox:"0 0 191 191",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-10 w-10 text-black",l),children:[e("g",{clipPath:"url(#clip0_1301_107)",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122 -14H144 9.17859 129.788 5.96937 122 3.72462V-14ZM122 3.72462C113.586 1.29941 104.695 0 95.5 0C42.7568 0 0 42.7568 0 95.5C0 148.243 42.7568 191 95.5 191C148.243 191 191 148.243 191 95.5C191 60.462 172.131 29.8311 144 13.2146V100V148H122V140.897C114.258 146.018 104.977 149 95 149C67.938 149 46 127.062 46 100C46 72.938 67.938 51 95 51C104.977 51 114.258 53.982 122 59.1034V3.72462Z",fill:"currentColor",shapeRendering:"geometricPrecision"})}),e("defs",{children:e("clipPath",{id:"clip0_1301_107",children:e("rect",{width:"191",height:"191",rx:"95.5",fill:"white"})})})]})}export{t as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{e as y}from"./chunk-DKSG5ZL3.mjs";import{a as o}from"./chunk-BUZC4FTR.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{b as g,c as f,e as b}from"./chunk-ATCWBP2W.mjs";import{Link2 as v}from"lucide-react";import{useRouter as k,useSearchParams as R}from"next/navigation";import{useEffect as E,useMemo as P,useRef as W}from"react";import M from"swr";import{useDebounce as j}from"use-debounce";import{Fragment as h,jsx as e,jsxs as r}from"react/jsx-runtime";function I({defaultUrl:t}){let x=k(),l=R(),i=t||(l==null?void 0:l.get("url"))||"https://github.com/dubinc/dub",[a]=j(g(i),500),d=P(()=>f(a||""),[a]),{data:N,isValidating:w}=M(a&&`/api/metatags?url=${a}`,b,{revalidateOnFocus:!1}),{title:n,description:u,image:c}=N||{},s=W(null);E(()=>{!t&&s.current&&s.current.select()},[t]);let{isMobile:L}=y();return r(h,{children:[!t&&r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{ref:s,name:"url",id:"url",type:"url",autoFocus:!L,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:i,onChange:m=>x.replace(`/tools/metatags${m.target.value.length>0?`?url=${m.target.value}`:""}`),"aria-invalid":"true"})]}),r("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:[w&&e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})}),c?e("img",{src:c,alt:"Preview",className:"h-[250px] w-full border-b border-gray-300 object-cover"}):r("div",{className:"flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300",children:[e(p,{className:"h-8 w-8 text-gray-400"}),e("p",{className:"text-sm text-gray-400",children:"Enter a link to generate a preview."})]}),r("div",{className:"grid gap-1 bg-white p-3 text-left",children:[d?e("p",{className:"text-sm text-[#536471]",children:d}):e("div",{className:"mb-1 h-4 w-24 rounded-md bg-gray-100"}),n?e("h3",{className:"truncate text-sm font-medium text-[#0f1419]",children:n}):e("div",{className:"mb-1 h-4 w-full rounded-md bg-gray-100"}),u?e("p",{className:"line-clamp-2 text-sm text-[#536471]",children:u}):r("div",{className:"grid gap-2",children:[e("div",{className:"h-4 w-full rounded-md bg-gray-100"}),e("div",{className:"h-4 w-48 rounded-md bg-gray-100"})]})]})]})]})}function O({defaultUrl:t}){return r(h,{children:[r("div",{className:"relative flex items-center",children:[e(v,{className:"absolute inset-y-0 left-0 my-2 ml-3 w-5 text-gray-400"}),e("input",{name:"url",id:"url",type:"url",disabled:!0,className:"block w-full rounded-md border-gray-200 pl-10 text-sm text-gray-900 placeholder-gray-400 shadow-lg focus:border-gray-500 focus:outline-none focus:ring-gray-500",placeholder:"Enter your URL",defaultValue:t||"https://github.com/dubinc/dub"})]}),e("div",{className:"relative overflow-hidden rounded-md border border-gray-300 bg-gray-50",children:e("div",{className:"absolute flex h-[250px] w-full flex-col items-center justify-center space-y-4 border-b border-gray-300 bg-gray-50",children:e(o,{})})})]})}export{I as a,O as b};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as N}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as v}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function D(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(s,{href:o("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",d),[o,r]=v("bg-gray-200"),[k,i]=v("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:c}=a;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),r(L)}else i("All systems operational"),r("bg-green-500")},[a]),t(s,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[e("div",{className:n("flex h-4 w-4 animate-ping items-center justify-center rounded-full",o),children:e("div",{className:n("z-10 h-2.5 w-2.5 rounded-full",o)})}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{a as x}from"./chunk-A75RGEGE.mjs";import{a as v}from"./chunk-FMCSBCYR.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{a as p}from"./chunk-P3NFB2EN.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{f as d,g as n,i as g,j as u}from"./chunk-FNCAV3EY.mjs";import m from"@vercel/analytics";import C from"next/image";import o from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as N}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var l={features:x.map(({shortTitle:r,slug:s})=>({name:r,href:`/${s}`})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"},{name:"Enterprise",href:"/enterprise"},{name:"Help Center",href:"/help"}],compare:u.map(({name:r,slug:s})=>({name:r,href:`/compare/${s}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:r,slug:s})=>({name:r,href:`/tools/${s}`}))};function D(){let{domain:r="dub.co"}=T(),s=a=>r==="dub.co"?a:`https://dub.co${a}`;return e("footer",{children:t(v,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"space-y-6",children:[t(o,{href:s("/"),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:"footer item (logo)"})}},children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(p,{className:"h-7 text-gray-800"})]}),e("p",{className:"max-w-xs text-sm text-gray-500",children:"Giving modern marketing teams superpowers with short links that stand out."}),t("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),t("div",{className:"flex items-center space-x-3",children:[t("a",{href:"https://twitter.com/dubdotco",target:"_blank",rel:"noreferrer",className:"group rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Twitter"}),e(b,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://github.com/dubinc/dub",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"Github"}),e(f,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600"})]}),t("a",{href:"https://www.youtube.com/@dubdotco",target:"_blank",rel:"noreferrer",className:"rounded-full border border-gray-200 p-2 transition-colors hover:bg-gray-100",children:[e("span",{className:"sr-only",children:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.features.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.product.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.compare.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.legal.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:l.tools.map(a=>e("li",{children:e(o,{href:s(a.href),...r!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:r,medium:`footer item (${a.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:a.name})},a.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:r}=R("https://status.dub.co/api/v1/summary",d),[s,a]=N("bg-gray-200"),[k,i]=N("Loading status...");return P(()=>{if(!r)return;let{ongoing_incidents:c}=r;if(c.length>0){let{current_worst_impact:w,name:_}=c[0],L=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";i(_),a(L)}else i("All systems operational"),a("bg-green-500")},[r]),t(o,{href:"https://status.dub.co",target:"_blank",className:"flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100",children:[t("div",{className:"relative",children:[e("div",{className:n("absolute inset-0 h-4 w-4 animate-ping items-center justify-center rounded-full",s)}),e("div",{className:n("absolute inset-0 z-10 h-2.5 w-2.5 rounded-full",s)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:k})]})}export{D as a};
@@ -0,0 +1,2 @@
1
+ "use client"
2
+ import{g as i}from"./chunk-ATCWBP2W.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:(void 0)("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};