@dub/ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-2IVJQKOI.mjs +2 -0
- package/dist/chunk-2KUFNJDB.mjs +2 -0
- package/dist/chunk-2PMONTPQ.mjs +2 -0
- package/dist/chunk-34CXTB77.mjs +2 -0
- package/dist/chunk-36GQKWDH.mjs +2 -0
- package/dist/chunk-3JRPNXXD.mjs +2 -0
- package/dist/chunk-3LN46NUU.mjs +2 -0
- package/dist/chunk-3MGZP5EP.mjs +2 -0
- package/dist/chunk-3NOS6MXL.mjs +2 -0
- package/dist/chunk-3R5AISIB.mjs +2 -0
- package/dist/chunk-3SA6WCFB.mjs +2 -0
- package/dist/chunk-3VN7M4MC.mjs +2 -0
- package/dist/chunk-3VPCO3NZ.mjs +2 -0
- package/dist/chunk-3Z5HUCHJ.mjs +2 -0
- package/dist/chunk-44YZ7MT7.mjs +2 -0
- package/dist/chunk-45MSMDC2.mjs +2 -0
- package/dist/chunk-4ATS26JM.mjs +2 -0
- package/dist/chunk-4CQJ34JT.mjs +2 -0
- package/dist/chunk-4EV2HAUC.mjs +2 -0
- package/dist/chunk-4FIKBXJ3.mjs +2 -0
- package/dist/chunk-4GS7GI4B.mjs +2 -0
- package/dist/chunk-4NIS6V6A.mjs +2 -0
- package/dist/chunk-4PNIZP4D.mjs +2 -0
- package/dist/chunk-4RCD45HX.mjs +2 -0
- package/dist/chunk-4UIUHW6V.mjs +2 -0
- package/dist/chunk-4V4DMQI4.mjs +2 -0
- package/dist/chunk-4VBNP3TC.mjs +2 -0
- package/dist/chunk-4VYPOIGL.mjs +2 -0
- package/dist/chunk-4ZZITOLO.mjs +2 -0
- package/dist/chunk-52SD4UB5.mjs +2 -0
- package/dist/chunk-5ALM5IPP.mjs +2 -0
- package/dist/chunk-5AT5P4BJ.mjs +2 -0
- package/dist/chunk-5DJMUFKD.mjs +2 -0
- package/dist/chunk-5GSYPK7X.mjs +2 -0
- package/dist/chunk-5JA33MY4.mjs +2 -0
- package/dist/chunk-5MVYLFC3.mjs +2 -0
- package/dist/chunk-5QQEOX7W.mjs +2 -0
- package/dist/chunk-5R2FYXLO.mjs +2 -0
- package/dist/chunk-5SUTLTCV.mjs +2 -0
- package/dist/chunk-5UQJT6OG.mjs +2 -0
- package/dist/chunk-5UUF5CDQ.mjs +2 -0
- package/dist/chunk-5ZJWTMMF.mjs +2 -0
- package/dist/chunk-6ECATDOW.mjs +2 -0
- package/dist/chunk-6HKQ3ULL.mjs +2 -0
- package/dist/chunk-6JUNRPWS.mjs +2 -0
- package/dist/chunk-6JZUH4SG.mjs +2 -0
- package/dist/chunk-6MDDNS6V.mjs +2 -0
- package/dist/chunk-6MFCVLBJ.mjs +2 -0
- package/dist/chunk-6MMCQDBH.mjs +2 -0
- package/dist/chunk-6ONZ2Z4A.mjs +2 -0
- package/dist/chunk-6VIYG2NT.mjs +2 -0
- package/dist/chunk-6XYWZTQQ.mjs +2 -0
- package/dist/chunk-6Y4J6HRQ.mjs +2 -0
- package/dist/chunk-7A2SMMD7.mjs +2 -0
- package/dist/chunk-7DALL3JQ.mjs +2 -0
- package/dist/chunk-7ITIPHXZ.mjs +2 -0
- package/dist/chunk-7SQP5FIJ.mjs +2 -0
- package/dist/chunk-7SVPO7SA.mjs +2 -0
- package/dist/chunk-A2V56BY7.mjs +2 -0
- package/dist/chunk-ADXTUGHL.mjs +2 -0
- package/dist/chunk-AOUVXV7E.mjs +2 -0
- package/dist/chunk-AQRNSQGZ.mjs +2 -0
- package/dist/chunk-ARLZDT5D.mjs +2 -0
- package/dist/chunk-ASC5T54P.mjs +2 -0
- package/dist/chunk-AXMF554B.mjs +2 -0
- package/dist/chunk-B64VAXR4.mjs +2 -0
- package/dist/chunk-BAIVNEMB.mjs +2 -0
- package/dist/chunk-BCKBQP6A.mjs +2 -0
- package/dist/chunk-BF3NF7SA.mjs +2 -0
- package/dist/chunk-BFUALBYB.mjs +2 -0
- package/dist/chunk-BO47DHRE.mjs +2 -0
- package/dist/chunk-BPCEPAUL.mjs +2 -0
- package/dist/chunk-BRXD7CYY.mjs +2 -0
- package/dist/chunk-BUYO7KAL.mjs +2 -0
- package/dist/chunk-BVA7NHE6.mjs +2 -0
- package/dist/chunk-CAH43QUG.mjs +2 -0
- package/dist/chunk-CRGBHEKU.mjs +2 -0
- package/dist/chunk-CT3QS4VY.mjs +2 -0
- package/dist/chunk-CXNHYSVW.mjs +2 -0
- package/dist/chunk-DGFR5SYH.mjs +2 -0
- package/dist/chunk-DMDUY4AQ.mjs +2 -0
- package/dist/chunk-DRZ2OTL6.mjs +2 -0
- package/dist/chunk-DUL2IW6E.mjs +2 -0
- package/dist/chunk-E3UD3UJW.mjs +2 -0
- package/dist/chunk-EKMCFXNM.mjs +2 -0
- package/dist/chunk-ET5NRCM7.mjs +2 -0
- package/dist/chunk-F5GNTTS7.mjs +2 -0
- package/dist/chunk-F5ZVEUN4.mjs +2 -0
- package/dist/chunk-FAJ5D4BL.mjs +2 -0
- package/dist/chunk-FJCUFNPX.mjs +2 -0
- package/dist/chunk-FLWKJKBJ.mjs +2 -0
- package/dist/chunk-FNKEFDLK.mjs +2 -0
- package/dist/chunk-FQPVA4I5.mjs +2 -0
- package/dist/chunk-FSL5QJVE.mjs +2 -0
- package/dist/chunk-FSY2P7N4.mjs +2 -0
- package/dist/chunk-FVLYXC7X.mjs +2 -0
- package/dist/chunk-FYE743K3.mjs +2 -0
- package/dist/chunk-G5O76ZM6.mjs +2 -0
- package/dist/chunk-GE5TGS46.mjs +2 -0
- package/dist/chunk-GJGY3SW7.mjs +2 -0
- package/dist/chunk-GK3K5AAP.mjs +2 -0
- package/dist/chunk-GQKZ7LVU.mjs +2 -0
- package/dist/chunk-GTD5I7IG.mjs +2 -0
- package/dist/chunk-GU45IB3D.mjs +2 -0
- package/dist/chunk-GY3ZND44.mjs +2 -0
- package/dist/chunk-H3RE23TU.mjs +2 -0
- package/dist/chunk-H4RCVHBA.mjs +2 -0
- package/dist/chunk-H6DCV2TA.mjs +2 -0
- package/dist/chunk-H6GF355J.mjs +2 -0
- package/dist/chunk-H6Z7JE2Y.mjs +2 -0
- package/dist/chunk-HB523DIO.mjs +2 -0
- package/dist/chunk-HCT3EL7J.mjs +2 -0
- package/dist/chunk-HF7IRQ5L.mjs +2 -0
- package/dist/chunk-HJXLMYIV.mjs +2 -0
- package/dist/chunk-HTQQL7PL.mjs +2 -0
- package/dist/chunk-I3C3GIRC.mjs +2 -0
- package/dist/chunk-I5B56HTR.mjs +2 -0
- package/dist/chunk-I5ZTG6UX.mjs +2 -0
- package/dist/chunk-I7OFIPPL.mjs +2 -0
- package/dist/chunk-IMYYDCFZ.mjs +2 -0
- package/dist/chunk-IN2ZRB7M.mjs +2 -0
- package/dist/chunk-IR73COT6.mjs +2 -0
- package/dist/chunk-IYKTNBY4.mjs +2 -0
- package/dist/chunk-J5O2O3V3.mjs +2 -0
- package/dist/chunk-J5S7TMPN.mjs +2 -0
- package/dist/chunk-JGVN7326.mjs +2 -0
- package/dist/chunk-JXD244DQ.mjs +2 -0
- package/dist/chunk-JXNKKN2B.mjs +2 -0
- package/dist/chunk-K25WAPOH.mjs +2 -0
- package/dist/chunk-KCMBHIOF.mjs +2 -0
- package/dist/chunk-KFBHTS6O.mjs +2 -0
- package/dist/chunk-KM37H3WT.mjs +2 -0
- package/dist/chunk-KNCBG7KZ.mjs +2 -0
- package/dist/chunk-KOIFF7ZB.mjs +2 -0
- package/dist/chunk-KQCV46YN.mjs +2 -0
- package/dist/chunk-KZONJLRT.mjs +2 -0
- package/dist/chunk-LA2ZIBRJ.mjs +2 -0
- package/dist/chunk-LFF4CG54.mjs +2 -0
- package/dist/chunk-LIKVMHSR.mjs +2 -0
- package/dist/chunk-LMRNWLWG.mjs +2 -0
- package/dist/chunk-LPYUP4MO.mjs +2 -0
- package/dist/chunk-MC4PHPSV.mjs +2 -0
- package/dist/chunk-MF4VOMSO.mjs +2 -0
- package/dist/chunk-MO532RMC.mjs +2 -0
- package/dist/chunk-MVCAWG5W.mjs +2 -0
- package/dist/chunk-MZ22NDEP.mjs +2 -0
- package/dist/chunk-MZ3H6OZR.mjs +2 -0
- package/dist/chunk-MZBMIB5V.mjs +2 -0
- package/dist/chunk-MZXIL6VD.mjs +2 -0
- package/dist/chunk-NJODFR67.mjs +2 -0
- package/dist/chunk-NKW66L4D.mjs +2 -0
- package/dist/chunk-NUMZ3ATI.mjs +2 -0
- package/dist/chunk-NX7F7O3A.mjs +2 -0
- package/dist/chunk-NY2Q4I4Y.mjs +2 -0
- package/dist/chunk-NYF5M3K3.mjs +2 -0
- package/dist/chunk-O5AHRFZ4.mjs +2 -0
- package/dist/chunk-OBQ7H2G4.mjs +2 -0
- package/dist/chunk-ODOBIWFN.mjs +2 -0
- package/dist/chunk-ODSB5ZKF.mjs +2 -0
- package/dist/chunk-OLV7DILN.mjs +2 -0
- package/dist/chunk-OS3BKEPG.mjs +2 -0
- package/dist/chunk-OUDYCZNC.mjs +2 -0
- package/dist/chunk-OUU56JOG.mjs +2 -0
- package/dist/chunk-OWLDQCP3.mjs +2 -0
- package/dist/chunk-P27BT324.mjs +2 -0
- package/dist/chunk-PGHABXYZ.mjs +2 -0
- package/dist/chunk-PH7LO4AC.mjs +2 -0
- package/dist/chunk-PJYF4Y73.mjs +2 -0
- package/dist/chunk-PMMGXGYM.mjs +2 -0
- package/dist/chunk-PWSD6FS2.mjs +2 -0
- package/dist/chunk-Q2EOGGVO.mjs +2 -0
- package/dist/chunk-Q42AS5AU.mjs +2 -0
- package/dist/chunk-Q6H42WFV.mjs +2 -0
- package/dist/chunk-QCCVKQXK.mjs +2 -0
- package/dist/chunk-QD6HRVHD.mjs +2 -0
- package/dist/chunk-QJ3GEUR3.mjs +2 -0
- package/dist/chunk-QNWPNJMA.mjs +2 -0
- package/dist/chunk-QP3LMKVY.mjs +2 -0
- package/dist/chunk-QTE4RIWR.mjs +2 -0
- package/dist/chunk-QVJT34MV.mjs +2 -0
- package/dist/chunk-QZLLH4RR.mjs +2 -0
- package/dist/chunk-R3FSXQKH.mjs +2 -0
- package/dist/chunk-R3VRTAAC.mjs +2 -0
- package/dist/chunk-R4GDP2Q5.mjs +2 -0
- package/dist/chunk-RB65FARB.mjs +2 -0
- package/dist/chunk-RJJ6EI7S.mjs +2 -0
- package/dist/chunk-RJX62LY4.mjs +2 -0
- package/dist/chunk-RL66VL54.mjs +2 -0
- package/dist/chunk-RLFGOLTY.mjs +2 -0
- package/dist/chunk-RWATG44D.mjs +2 -0
- package/dist/chunk-RWEJICZR.mjs +2 -0
- package/dist/chunk-S2I3VJQK.mjs +2 -0
- package/dist/chunk-S4T7TUL6.mjs +2 -0
- package/dist/chunk-SAN5O3S4.mjs +2 -0
- package/dist/chunk-SHVDK4FH.mjs +2 -0
- package/dist/chunk-SLJUHYQL.mjs +2 -0
- package/dist/chunk-SMPO7G5N.mjs +2 -0
- package/dist/chunk-SVTQKT6L.mjs +2 -0
- package/dist/chunk-T3IHCHSZ.mjs +2 -0
- package/dist/chunk-T67634C6.mjs +2 -0
- package/dist/chunk-TANLMSND.mjs +2 -0
- package/dist/chunk-TAO5PPCT.mjs +2 -0
- package/dist/chunk-TAS37HRX.mjs +2 -0
- package/dist/chunk-TG274KUG.mjs +2 -0
- package/dist/chunk-TLWBUQMR.mjs +2 -0
- package/dist/chunk-TQTDG7I6.mjs +2 -0
- package/dist/chunk-TQTIQ4IS.mjs +2 -0
- package/dist/chunk-TQVQ6GUA.mjs +2 -0
- package/dist/chunk-TUXU2LE6.mjs +2 -0
- package/dist/chunk-TWG5ZWBQ.mjs +2 -0
- package/dist/chunk-TZ57DJAG.mjs +2 -0
- package/dist/chunk-U4QURSWS.mjs +2 -0
- package/dist/chunk-UAWQFYL2.mjs +2 -0
- package/dist/chunk-UGIYLKBG.mjs +2 -0
- package/dist/chunk-UOHAMOMT.mjs +2 -0
- package/dist/chunk-UQWZSUNQ.mjs +2 -0
- package/dist/chunk-UROP5PQP.mjs +2 -0
- package/dist/chunk-V3MOM3BZ.mjs +2 -0
- package/dist/chunk-V5BTSXCJ.mjs +2 -0
- package/dist/chunk-V73RCVXE.mjs +2 -0
- package/dist/chunk-VAWBSFEC.mjs +2 -0
- package/dist/chunk-VEXBFZY5.mjs +2 -0
- package/dist/chunk-VGEZ3AWQ.mjs +2 -0
- package/dist/chunk-VLQLPOCP.mjs +2 -0
- package/dist/chunk-VS2Q4TDA.mjs +2 -0
- package/dist/chunk-VSDZPRA6.mjs +2 -0
- package/dist/chunk-W25HAFYO.mjs +2 -0
- package/dist/chunk-W5T2EQMA.mjs +2 -0
- package/dist/chunk-WINC5KBH.mjs +2 -0
- package/dist/chunk-WN7U3LMM.mjs +2 -0
- package/dist/chunk-WVDXDHEB.mjs +2 -0
- package/dist/chunk-WVY4HNZX.mjs +2 -0
- package/dist/chunk-WW6ZIPFX.mjs +2 -0
- package/dist/chunk-WZGNXYJF.mjs +2 -0
- package/dist/chunk-X2KOXIEQ.mjs +2 -0
- package/dist/chunk-X5TKZEB4.mjs +2 -0
- package/dist/chunk-X6IUPKQ3.mjs +2 -0
- package/dist/chunk-X7STVXCU.mjs +2 -0
- package/dist/chunk-XB5U3AS3.mjs +2 -0
- package/dist/chunk-XD77EAYM.mjs +2 -0
- package/dist/chunk-XJ7TKG3A.mjs +2 -0
- package/dist/chunk-XKJ5XH7N.mjs +2 -0
- package/dist/chunk-XQ65GNAS.mjs +2 -0
- package/dist/chunk-Y32PF6AB.mjs +2 -0
- package/dist/chunk-Y4R3VRS4.mjs +2 -0
- package/dist/chunk-Y54AKVRW.mjs +2 -0
- package/dist/chunk-YBTT6KLG.mjs +2 -0
- package/dist/chunk-YEGFGCZW.mjs +2 -0
- package/dist/chunk-YKNG5IUD.mjs +2 -0
- package/dist/chunk-YOUGPP6U.mjs +2 -0
- package/dist/chunk-YQARTQMU.mjs +2 -0
- package/dist/chunk-YR2S3SY7.mjs +2 -0
- package/dist/chunk-YRI35OGO.mjs +2 -0
- package/dist/chunk-YUCG3TXP.mjs +2 -0
- package/dist/chunk-YV33XVHD.mjs +2 -0
- package/dist/chunk-YVQZKPQN.mjs +2 -0
- package/dist/chunk-YXHVKJBH.mjs +2 -0
- package/dist/chunk-Z7FBUAID.mjs +2 -0
- package/dist/chunk-ZCJ3WSRI.mjs +2 -0
- package/dist/chunk-ZG2MW2WU.mjs +2 -0
- package/dist/chunk-ZGG7VTQU.mjs +2 -0
- package/dist/chunk-ZGRID5LZ.mjs +2 -0
- package/dist/chunk-ZI3GE23T.mjs +2 -0
- package/dist/chunk-ZJLPDAUV.mjs +2 -0
- package/dist/chunk-ZKF7F7K2.mjs +2 -0
- package/dist/chunk-ZMOD34DN.mjs +2 -0
- package/dist/chunk-ZMZLM5JY.mjs +2 -0
- package/dist/chunk-ZR7QFHUH.mjs +2 -0
- package/dist/chunk-ZWMDFN22.mjs +2 -0
- package/dist/chunk-ZYPVELO7.mjs +2 -0
- package/dist/chunk-ZZCZZJYP.mjs +2 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icon-menu.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/logo.mjs +1 -1
- package/dist/icons/logotype.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/input-select.d.ts +2 -1
- package/dist/input-select.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.d.ts +8 -0
- package/dist/link-logo.mjs +2 -0
- package/dist/link-preview.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as Ae,b as ke}from"./chunk-AUBFB4SI.mjs";var de=Ae((er,ce)=>{var O=1e3,L=O*60,C=L*60,S=C*24,$e=S*7,Fe=S*365.25;ce.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return qe(e);if(r==="number"&&isFinite(e))return t.long?He(e):We(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function qe(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*Fe;case"weeks":case"week":case"w":return r*$e;case"days":case"day":case"d":return r*S;case"hours":case"hour":case"hrs":case"hr":case"h":return r*C;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*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function We(e){var t=Math.abs(e);return t>=S?Math.round(e/S)+"d":t>=C?Math.round(e/C)+"h":t>=L?Math.round(e/L)+"m":t>=O?Math.round(e/O)+"s":e+"ms"}function He(e){var t=Math.abs(e);return t>=S?j(e,t,S,"day"):t>=C?j(e,t,C,"hour"):t>=L?j(e,t,L,"minute"):t>=O?j(e,t,O,"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""};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 Oe=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=59,yearly:r=49,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})} new 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"}}]}),I=[{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 new 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 new 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:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),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_1OzObrAlJJEpqkPVh6D9HWGO"]}),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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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"}]}],Le=I.find(e=>e.name==="Free"),Ce=I.find(e=>e.name==="Pro"),Te=I.find(e=>e.name==="Business"),Ne=I.find(e=>e.name==="Enterprise");var ze=I.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var Me=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",Y=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Re=`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-staging.${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-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Je=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var P="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:P},...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:P},{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:P},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:P},{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:P},{id:"clugy7euh000a11h6ignmj42o",slug:"loooooooo.ng",verified:!0,primary:!1,archived:!0,publicStats:!0,target:"https://dub.co/tools/url-lengthener",type:"redirect",placeholder:"https://d.to/long",clicks:0,projectId:P}]:[]],je=le.map(e=>e.slug);var ue=ke(de(),1),Ke=(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 Ye(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 Z="-";function Xe(e){let t=Qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function a(n){let l=n.split(Z);return l[0]===""&&l.length!==1&&l.shift(),he(l,t)||Ze(n)}function s(n,l){let u=r[n]||[];return l&&o[n]?[...u,...o[n]]:u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function he(e,t){var n;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?he(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Z);return(n=t.validators.find(({validator:l})=>l(s)))==null?void 0:n.classGroupId}var fe=/^\[(.+)\]$/;function Ze(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 Qe(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return tt(Object.entries(e.classGroups),r).forEach(([s,n])=>{X(n,o,s,t)}),o}function X(e,t,r,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:ge(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(et(a)){X(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,n])=>{X(n,ge(t,s),r,o)})})}function ge(e,t){let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function et(e){return e.isThemeGetter}function tt(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 rt(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 ot(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 h=n[f];if(u===0){if(h===o&&(r||n.slice(f,f+a)===t)){l.push(n.slice(m,f)),m=f+a;continue}if(h==="/"){p=f;continue}}h==="["?u++:h==="]"&&u--}let g=l.length===0?n:n.substring(m),b=g.startsWith(be),v=b?g.substring(1):g,E=p&&p>m?p-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:E}}}function st(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 at(e){return{cache:rt(e.cacheSize),splitModifiers:ot(e),...Xe(e)}}var nt=/\s+/;function it(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=new Set;return e.trim().split(nt).map(n=>{let{modifiers:l,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=r(n),g=o(p?m.substring(0,p):m),b=Boolean(p);if(!g){if(!p)return{isTailwindClass:!1,originalClassName:n};if(g=o(m),!g)return{isTailwindClass:!1,originalClassName:n};b=!1}let v=st(l).join(":"),E=u?v+be:v;return{isTailwindClass:!0,modifierId:E,classGroupId:g,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(g=>s.add(l+g)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function lt(){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 ct(e,...t){let r,o,a,s=n;function n(u){let m=t.reduce((p,g)=>g(p),e());return r=at(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=it(u,r);return a(u,p),p}return function(){return s(lt.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,dt=/^\d+\/\d+$/,ut=new Set(["px","full","screen"]),pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mt=/\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$/,ft=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ht=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return _(e)||ut.has(e)||dt.test(e)}function A(e){return T(e,"length",Et)}function _(e){return Boolean(e)&&!Number.isNaN(Number(e))}function $(e){return T(e,"number",_)}function R(e){return Boolean(e)&&Number.isInteger(Number(e))}function bt(e){return e.endsWith("%")&&_(e.slice(0,-1))}function i(e){return xe.test(e)}function k(e){return pt.test(e)}var yt=new Set(["length","size","percentage"]);function xt(e){return T(e,yt,ve)}function vt(e){return T(e,"position",ve)}var wt=new Set(["image","url"]);function At(e){return T(e,wt,St)}function kt(e){return T(e,"",Pt)}function U(){return!0}function T(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 Et(e){return mt.test(e)&&!ft.test(e)}function ve(){return!1}function Pt(e){return gt.test(e)}function St(e){return ht.test(e)}function _t(){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"),g=c("invert"),b=c("gap"),v=c("gradientColorStops"),E=c("gradientColorStopPositions"),f=c("inset"),h=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"],W=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",i,t],d=()=>[i,t],se=()=>["",x,A],D=()=>["auto",_,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"],K=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",i],ie=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[_,$],G=()=>[_,i];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[x,A],blur:["none","",k,i],brightness:z(),borderColor:[e],borderRadius:["none","","full",k,i],borderSpacing:d(),borderWidth:se(),contrast:z(),grayscale:N(),hueRotate:G(),invert:N(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[bt,A],inset:H(),margin:H(),opacity:z(),padding:d(),saturate:z(),scale:z(),sepia:N(),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:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],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",R,i]}],basis:[{basis:H()}],"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:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",R,i]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",R,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[R,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",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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":[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",_,$]}],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(),vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},At]}],"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,kt]}],"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:[g]}],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":[g]}],"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:[R,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=ct(_t);function It(...e){return we(me(e))}var Ot=["stats","changelog","terms","privacy","abuse"],Lt=[{name:"Spotify Link Shortener",slug:"spotify-link-shortener"},{name:"ChatGPT Link Shortener",slug:"chatgpt-link-shortener"},{name:"GitHub Link Shortener",slug:"github-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Metatags API",slug:"metatags"},{name:"Link Inspector",slug:"inspector"},{name:"QR Code API",slug:"qr-code"},{name:"UTM Builder",slug:"utm-builder"}],Ct=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];var Tt="https://www.google.com/s2/favicons?sz=64&domain_url=";var Nt=60*60*24*14;export{M as a,Ee as b,Oe as c,De as d,Ke as e,Ye as f,Tt as g,It as h,Ot as i,Lt as j,Ct as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as r}from"./chunk-ARLZDT5D.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{e as C}from"./chunk-BPCEPAUL.mjs";import{b as N}from"./chunk-HTQQL7PL.mjs";import{g as p}from"./chunk-QZLLH4RR.mjs";import{Command as l,useCommandState as M}from"cmdk";import{Check as P,ChevronDown as f,Search as v,X as x}from"lucide-react";import{useEffect as k,useRef as R,useState as E}from"react";import{Drawer as c}from"vaul";import{Fragment as T,jsx as a,jsxs as t}from"react/jsx-runtime";function X({items:L,selectedItem:r,setSelectedItem:d,className:m,adjustForMobile:S,icon:y,inputAttrs:b}){let s=R(null),[i,e]=E(!1),[u,g]=E((r==null?void 0:r.value)||"");k(()=>{let o=n=>{s.current&&!s.current.contains(n.target)&&e(!1)};if(i)return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[s,i]),k(()=>{r!=null&&r.value||g("")},[r==null?void 0:r.value]);let{isMobile:D}=C(),h=()=>{let o=M(n=>n.filtered.count===0);return a(T,{children:a(l.Input,{placeholder:(b==null?void 0:b.placeholder)||"Search...",autoFocus:i,onFocus:()=>e(!0),value:u,onValueChange:g,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},className:"block w-full truncate rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0"})})},w=()=>L.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{d(o),g(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a("img",{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full"}),a("p",{className:p("my-auto whitespace-nowrap rounded-md py-0.5 text-sm",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(N,{className:"text-xs",variant:"neutral",children:o.label})]}),a(P,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return D&&S?t(c.Root,{open:i,onOpenChange:e,children:[a(c.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:s,className:"relative",loop:!0,children:t("div",{className:p("group relative min-w-[140px] rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(c.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(c.Portal,{children:[a(c.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group relative mb-2 rounded-t-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-200",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),i&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}),a(c.Overlay,{})]})]}):t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",m),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${i&&"rotate-180"}`})]})]}),i&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full min-w-[160px] overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all duration-75",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as C}from"./chunk-X5TKZEB4.mjs";import{b as N}from"./chunk-SAU3EDXX.mjs";import{g as p}from"./chunk-5O5ZBIFI.mjs";import{Command as l,useCommandState as M}from"cmdk";import{Check as P,ChevronDown as h,Search as v,X as x}from"lucide-react";import{useEffect as k,useRef as R,useState as E}from"react";import{Drawer as c}from"vaul";import{Fragment as T,jsx as a,jsxs as t}from"react/jsx-runtime";function X({items:L,selectedItem:r,setSelectedItem:d,className:m,adjustForMobile:S,icon:y,inputAttrs:b}){let s=R(null),[i,e]=E(!1),[u,g]=E((r==null?void 0:r.value)||"");k(()=>{let o=n=>{s.current&&!s.current.contains(n.target)&&e(!1)};if(i)return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[s,i]),k(()=>{r!=null&&r.value||g("")},[r==null?void 0:r.value]);let{isMobile:D}=C(),f=()=>{let o=M(n=>n.filtered.count===0);return a(T,{children:a(l.Input,{placeholder:(b==null?void 0:b.placeholder)||"Search...",autoFocus:i,onFocus:()=>e(!0),value:u,onValueChange:g,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},className:"block w-full rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0"})})},w=()=>L.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{d(o),g(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a("img",{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full"}),a("p",{className:p("my-auto whitespace-nowrap rounded-md px-2 py-0.5 text-sm",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(N,{className:"text-xs",variant:"neutral",children:o.label})]}),a(P,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return D&&S?t(c.Root,{open:i,onOpenChange:e,children:[a(c.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:s,className:"relative",loop:!0,children:t("div",{className:p("group relative min-w-[140px] rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(c.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(c.Portal,{children:[a(c.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group relative mb-2 rounded-t-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-200",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),i&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}),a(c.Overlay,{})]})]}):t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",m),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${i&&"rotate-180"}`})]})]}),i&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as k}from"./chunk-BPCEPAUL.mjs";import{b as C}from"./chunk-HTQQL7PL.mjs";import{g as p}from"./chunk-QZLLH4RR.mjs";import{Command as l,useCommandState as M}from"cmdk";import{Check as P,ChevronDown as v,Search as x,X as w}from"lucide-react";import{useEffect as S,useRef as R,useState as E}from"react";import{Drawer as u}from"vaul";import{Fragment as T,jsx as a,jsxs as t}from"react/jsx-runtime";function X({items:L,selectedItem:r,setSelectedItem:d,className:m,adjustForMobile:D,icon:y,inputAttrs:b}){let g=R(null),[c,e]=E(!1),[i,s]=E((r==null?void 0:r.value)||"");S(()=>{let o=n=>{g.current&&!g.current.contains(n.target)&&e(!1)};return document.addEventListener("click",o),()=>{document.removeEventListener("click",o)}},[]),S(()=>{r!=null&&r.value||s("")},[r==null?void 0:r.value]);let{isMobile:f}=k(),h=()=>{let o=M(n=>n.filtered.count===0);return a(T,{children:a(l.Input,{placeholder:(b==null?void 0:b.placeholder)||"Search...",autoFocus:c&&!f,onFocus:()=>e(!0),value:i,onValueChange:s,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},style:{fontSize:f?"16px":void 0},className:"block w-full truncate rounded-md border-none px-0 text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm"})})},N=()=>L.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{d(o),s(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a("img",{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full"}),a("p",{className:p("whitespace-nowrap py-0.5 text-sm",o.color&&"rounded-md px-2",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(C,{className:"text-xs",variant:"neutral",children:o.label})]}),a(P,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return f&&D?t(u.Root,{open:c,onOpenChange:e,children:[a(u.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:g,className:"relative",loop:!0,children:t("div",{className:p("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(x,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),i&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),d(null),s("")},className:"absolute inset-y-0 right-0 my-auto",children:a(w,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(v,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(u.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(u.Portal,{children:[a(u.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:t(l,{ref:g,className:"relative",loop:!0,children:[t("div",{className:p("group relative mb-2 rounded-t-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-200",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(x,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),i&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),s("")},className:"absolute inset-y-0 right-0 my-auto",children:a(w,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(v,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),c&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),a(N,{})]})]})}),a(u.Overlay,{})]})]}):t(l,{ref:g,className:"relative",loop:!0,children:[t("div",{className:p("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",m),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(x,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),i&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),s("")},className:"absolute inset-y-0 right-0 my-auto",children:a(w,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(v,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${c&&"rotate-180"}`})]})]}),c&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full min-w-[160px] overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all duration-75",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',i,'"']}),a(N,{})]})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-CAH43QUG.mjs";import{e as i}from"./chunk-J5O2O3V3.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{h as l}from"./chunk-YV33XVHD.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{f as b}from"./chunk-5O5ZBIFI.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,{scroll:!1}):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-AQRNSQGZ.mjs";import{a as y}from"./chunk-B5QYWKCW.mjs";import{a as p}from"./chunk-PJYF4Y73.mjs";import{a as b}from"./chunk-VWVFVW4E.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{a as h}from"./chunk-BDMXJXHH.mjs";import{e as g,f as i,h as l}from"./chunk-YRI35OGO.mjs";import m from"@vercel/analytics";import _ from"next/image";import s from"next/link";import{useParams as C}from"next/navigation";import{useEffect as T,useState as N}from"react";import P from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={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:(void 0).map(({name:r,slug:o})=>({name:r,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:(void 0).map(({name:r,slug:o})=>({name:r,href:`/tools/${o}`}))};function B(){let{domain:r="dub.co"}=C(),o=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(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(R,{})]}),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(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:n.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:n.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:n.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:n.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(_,{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 R(){let{data:r}=P("https://status.dub.co/api/v1/summary",g),[o,a]=N("bg-gray-200"),[c,d]=N("Loading status...");return T(()=>{if(!r)return;let{ongoing_incidents:u}=r;if(u.length>0){let{current_worst_impact:k,name:w}=u[0],L=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(w),a(L)}else d("All systems operational"),a("bg-green-500")},[r]),t(s,{href:"https://status.dub.co",target:"_blank",className:"group 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-3 w-3",children:[e("div",{className:i("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,c==="Loading status..."&&"animate-none")}),e("div",{className:i("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",o)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:c})]})}export{B as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as C}from"./chunk-E3UD3UJW.mjs";import{b as N}from"./chunk-H6GF355J.mjs";import{f as p}from"./chunk-YRI35OGO.mjs";import{Command as l,useCommandState as M}from"cmdk";import{Check as P,ChevronDown as h,Search as v,X as x}from"lucide-react";import{useEffect as k,useRef as R,useState as E}from"react";import{Drawer as c}from"vaul";import{Fragment as T,jsx as a,jsxs as t}from"react/jsx-runtime";function X({items:L,selectedItem:r,setSelectedItem:d,className:m,adjustForMobile:S,icon:y,inputAttrs:b}){let s=R(null),[i,e]=E(!1),[u,g]=E((r==null?void 0:r.value)||"");k(()=>{let o=n=>{s.current&&!s.current.contains(n.target)&&e(!1)};if(i)return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[s,i]),k(()=>{r!=null&&r.value||g("")},[r==null?void 0:r.value]);let{isMobile:D}=C(),f=()=>{let o=M(n=>n.filtered.count===0);return a(T,{children:a(l.Input,{placeholder:(b==null?void 0:b.placeholder)||"Search...",autoFocus:i,onFocus:()=>e(!0),value:u,onValueChange:g,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},className:"block w-full rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-0"})})},w=()=>L.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{d(o),g(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a("img",{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full"}),a("p",{className:p("my-auto whitespace-nowrap rounded-md px-2 py-0.5 text-sm",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(N,{className:"text-xs",variant:"neutral",children:o.label})]}),a(P,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return D&&S?t(c.Root,{open:i,onOpenChange:e,children:[a(c.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:s,className:"relative",loop:!0,children:t("div",{className:p("group relative min-w-[140px] rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(c.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(c.Portal,{children:[a(c.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",children:t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group relative mb-2 rounded-t-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-200",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),i&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}),a(c.Overlay,{})]})]}):t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",m),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):y||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),u&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{d(null),g("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${i&&"rotate-180"}`})]})]}),i&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',u,'"']}),a(w,{})]})]})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as l}from"./chunk-QZLLH4RR.mjs";import{motion as n}from"framer-motion";import{jsx as e,jsxs as o}from"react/jsx-runtime";function m({options:i,selected:r,selectAction:a}){return e("div",{className:"relative inline-flex items-center space-x-1",children:i.map(t=>o("button",{className:l("relative z-10 px-3 py-1 text-sm font-medium capitalize",{"transition-all hover:text-gray-500":t!==r}),onClick:()=>a(t),children:[e("p",{children:t}),t===r&&e(n.div,{layoutId:i.join("-"),className:"absolute left-0 top-0 h-full w-full rounded-lg border border-gray-200 bg-gray-50",style:{zIndex:-1},transition:{duration:.25}})]},t))})}export{m as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-OUDYCZNC.mjs";import{i as p,j as m}from"./chunk-J5O2O3V3.mjs";import*as n from"@radix-ui/react-tooltip";import d from"linkify-react";import{HelpCircle as x}from"lucide-react";import g from"next/link";import{useState as f}from"react";import{jsx as e,jsxs as l}from"react/jsx-runtime";function k({children:t}){return e(n.Provider,{delayDuration:100,children:t})}function s({children:t,content:o,side:r="top"}){let[i,a]=f(!1);return l(n.Root,{open:i,onOpenChange:a,children:[e(n.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),e(n.Portal,{children:e(n.Content,{sideOffset:8,side:r,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-md border border-gray-200 bg-white shadow-md",children:typeof o=="string"?e("span",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:o}):o})})]})}function P({title:t,cta:o,href:r,target:i,onClick:a}){return l("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[e("p",{className:"text-sm text-gray-700",children:t}),o&&(r?e(g,{href:r,...i?{target:i}:{},className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",children:o}):a?e("button",{type:"button",className:"mt-4 w-full rounded-md border border-black bg-black px-3 py-1.5 text-center text-sm text-white transition-all hover:bg-white hover:text-black",onClick:a,children:o}):null)]})}function w({title:t,cta:o,href:r}){return l("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",e("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:o})]})}function C({children:t}){return e("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:e(d,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function R({content:t}){return e(s,{content:t,children:e(x,{className:"h-4 w-4 text-gray-500"})})}function L({value:t,unit:o="total clicks",children:r,lastClicked:i}){return(!t||t<1e3)&&!i?r:e(s,{content:l("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[l("p",{className:"text-sm font-semibold text-gray-700",children:[(void 0)(t||0,{full:!0})," ",o]}),i&&l("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",(void 0)(i,{withAgo:!0})]})]}),children:r})}function B({children:t,content:o,side:r="bottom"}){return e(s,{content:o,side:r,children:e("div",{className:"flex cursor-pointer items-center",children:e(c,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}export{k as a,s as b,P as c,w as d,C as e,R as f,L as g,B as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-NYF5M3K3.mjs";import{f as i}from"./chunk-YRI35OGO.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function g({fn:o,trackDimensions:l,thumbDimensions:d,thumbTranslate:r,checked:h=!0,loading:n=!1,disabled:a=!1,disabledTooltip:s}){return s?e(c,{content:s,children:e("div",{className:"radix-state-checked:bg-gray-300 relative inline-flex h-4 w-8 flex-shrink-0 cursor-not-allowed rounded-full border-2 border-transparent bg-gray-200",children:e("div",{className:"h-3 w-3 transform rounded-full bg-white shadow-lg"})})}):e(t.Root,{checked:h,name:"switch",...o&&{onCheckedChange:o},disabled:a,className:i(n?"bg-gray-200":a?"cursor-not-allowed bg-gray-300":"radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 cursor-pointer focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75","relative inline-flex h-4 w-8 flex-shrink-0 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out",l),children:!n&&e(t.Thumb,{className:i(`radix-state-checked:${r}`,"radix-state-unchecked:translate-x-0","pointer-events-none h-3 w-3 translate-x-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out",d,r)})})}export{g as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as r}from"./chunk-EHYVEIOL.mjs";import{a}from"./chunk-BKZ6TNZC.mjs";import{e}from"./chunk-J5O2O3V3.mjs";import{useState as u}from"react";import{toast as m}from"sonner";import{jsx as o,jsxs as g}from"react/jsx-runtime";function y({value:s,className:i,icon:n}){let[l,t]=u(!1),c=n||a;return g("button",{onClick:p=>{p.stopPropagation(),t(!0),navigator.clipboard.writeText(s).then(()=>{m.success("Copied to clipboard!")}),setTimeout(()=>t(!1),3e3)},className:e("group rounded-full bg-gray-100 p-1.5 transition-all duration-75 hover:scale-105 hover:bg-blue-100 active:scale-95",i),children:[o("span",{className:"sr-only",children:"Copy"}),l?o(r,{className:"text-gray-700 transition-all group-hover:text-blue-800"}):o(c,{className:"text-gray-700 transition-all group-hover:text-blue-800"})]})}export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as E}from"./chunk-W25HAFYO.mjs";import{a as k}from"./chunk-I7OFIPPL.mjs";import{b as C}from"./chunk-7SVPO7SA.mjs";import{h as d}from"./chunk-WINC5KBH.mjs";import{Command as l,useCommandState as R}from"cmdk";import{Check as T,ChevronDown as f,Search as v,X as x}from"lucide-react";import{useEffect as L,useRef as O,useState as S}from"react";import{Drawer as g}from"vaul";import{Fragment as j,jsx as a,jsxs as t}from"react/jsx-runtime";function J({items:D,selectedItem:r,setSelectedItem:c,className:m,disabled:M,adjustForMobile:P,icon:b,inputAttrs:y}){let s=O(null),[i,e]=S(!1),[p,u]=S((r==null?void 0:r.value)||"");L(()=>{let o=n=>{s.current&&!s.current.contains(n.target)&&e(!1)};if(i)return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[s,i]),L(()=>{r!=null&&r.value||u("")},[r==null?void 0:r.value]);let{isMobile:w}=E(),h=()=>{let o=R(n=>n.filtered.count===0);return a(j,{children:a(l.Input,{placeholder:(y==null?void 0:y.placeholder)||"Search...",autoFocus:i&&!w,onFocus:()=>e(!0),value:p,onValueChange:u,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},disabled:M,className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm"})})},N=()=>D.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{c(o),u(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a(k,{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full",width:16,height:16}),a("p",{className:d("whitespace-nowrap py-0.5 text-sm",o.color&&"rounded-md px-2",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(C,{className:"text-xs",variant:"neutral",children:o.label})]}),a(T,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return w&&P?t(g.Root,{open:i,onOpenChange:e,children:[a(g.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:s,className:"relative",loop:!0,children:t("div",{className:d("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),p&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),c(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(g.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(g.Portal,{children:[a(g.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:d("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",m),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),p&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{c(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),i&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[a(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),a(N,{})]})]})}),a(g.Overlay,{})]})]}):t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:d("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",m),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(h,{}),p&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{c(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(f,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${i&&"rotate-180"}`})]})]}),i&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full min-w-[160px] overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all duration-75",children:[a(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),a(N,{})]})]})}export{J as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as a}from"./chunk-ARLZDT5D.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 m}from"./chunk-LIKVMHSR.mjs";import{g as i}from"./chunk-RJJ6EI7S.mjs";import{useMemo as x,useState as u}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";function M({title:g,description:c,inputAttrs:e,helpText:s,buttonText:f="Save Changes",disabledTooltip:o,handleSubmit:y}){let[t,p]=u(e.defaultValue),[l,d]=u(!1),b=x(()=>l||!t||t===e.defaultValue,[l,t,e.defaultValue]);return r("form",{onSubmit:async n=>{n.preventDefault(),d(!0),await y({[e.name]:t}),d(!1)},className:"rounded-lg border border-gray-200 bg-white",children:[r("div",{className:"relative flex flex-col space-y-6 p-5 sm:p-10",children:[r("div",{className:"flex flex-col space-y-3",children:[a("h2",{className:"text-xl font-medium",children:g}),a("p",{className:"text-sm text-gray-500",children:c})]}),typeof e.defaultValue=="string"?a("input",{...e,type:e.type||"text",required:!0,disabled:!!o,onChange:n=>p(n.target.value),className:i("w-full max-w-md rounded-md border border-gray-300 text-gray-900 placeholder-gray-300 focus:border-gray-500 focus:outline-none focus:ring-gray-500 sm:text-sm",{"cursor-not-allowed bg-gray-100 text-gray-400":o})}):a("div",{className:"h-[2.35rem] w-full max-w-md animate-pulse rounded-md bg-gray-200"})]}),r("div",{className:"flex items-center justify-between space-x-4 rounded-b-lg border-t border-gray-200 bg-gray-50 p-3 sm:px-10",children:[typeof s=="string"?a("p",{className:"prose-sm prose-a:underline prose-a:underline-offset-4 hover:prose-a:text-gray-700 text-gray-500 transition-colors",dangerouslySetInnerHTML:{__html:s||""}}):s,a("div",{className:"shrink-0",children:a(m,{text:f,loading:l,disabled:b,disabledTooltip:o})})]})]})}export{M as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as s}from"./chunk-IYKTNBY4.mjs";import{a as l}from"./chunk-6MFCVLBJ.mjs";import{h as t}from"./chunk-WINC5KBH.mjs";import{jsx as o,jsxs as u}from"react/jsx-runtime";function h({text:g,variant:e="primary",className:a,loading:d,icon:i,shortcut:r,disabledTooltip:b,...n}){return b?o(s,{content:b,children:u("div",{className:t("flex h-10 w-full cursor-not-allowed items-center justify-center space-x-2 rounded-md border border-gray-200 bg-gray-100 px-4 text-sm text-gray-400 transition-all focus:outline-none",{"border-transparent bg-transparent":e.endsWith("outline")},a),children:[i,o("p",{className:t(r&&"flex-1 text-left"),children:g}),r&&o("kbd",{className:t("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e.endsWith("outline")}),children:r})]})}):u("button",{type:n.onClick?"button":"submit",className:t("group flex h-10 w-full items-center justify-center space-x-2 rounded-md border px-4 text-sm transition-all",n.disabled||d?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":{"border-black bg-black text-white hover:bg-white hover:text-black":e==="primary","border-gray-200 bg-white text-gray-600 hover:bg-gray-100":e==="secondary","border-transparent text-gray-500 duration-75 hover:bg-gray-100":e==="outline","border-blue-500 bg-blue-500 text-white hover:bg-white hover:text-blue-500":e==="success","border-red-500 bg-red-500 text-white hover:bg-white hover:text-red-500":e==="danger","border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white":e==="danger-outline"},a),disabled:n.disabled||d,...n,children:[d?o(l,{}):i||null,g&&o("p",{className:t(r&&"flex-1 text-left"),children:g}),r&&o("kbd",{className:t("hidden rounded px-2 py-0.5 text-xs font-light transition-all duration-75 md:inline-block",{"bg-gray-700 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="primary","bg-gray-200 text-gray-400 group-hover:bg-gray-100 group-hover:text-gray-500":e==="secondary","bg-gray-100 text-gray-500 group-hover:bg-gray-200":e==="outline","bg-red-100 text-red-600 group-hover:bg-red-500 group-hover:text-white":e==="danger-outline"}),children:r})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as E}from"./chunk-BPCEPAUL.mjs";import{a as k}from"./chunk-F5ZVEUN4.mjs";import{b as C}from"./chunk-HTQQL7PL.mjs";import{g as p}from"./chunk-QZLLH4RR.mjs";import{Command as l,useCommandState as P}from"cmdk";import{Check as R,ChevronDown as h,Search as v,X as x}from"lucide-react";import{useEffect as L,useRef as T,useState as S}from"react";import{Drawer as g}from"vaul";import{Fragment as O,jsx as a,jsxs as t}from"react/jsx-runtime";function G({items:D,selectedItem:r,setSelectedItem:m,className:d,adjustForMobile:M,icon:b,inputAttrs:y}){let s=T(null),[i,e]=S(!1),[c,u]=S((r==null?void 0:r.value)||"");L(()=>{let o=n=>{s.current&&!s.current.contains(n.target)&&e(!1)};if(i)return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[s,i]),L(()=>{r!=null&&r.value||u("")},[r==null?void 0:r.value]);let{isMobile:w}=E(),f=()=>{let o=P(n=>n.filtered.count===0);return a(O,{children:a(l.Input,{placeholder:(y==null?void 0:y.placeholder)||"Search...",autoFocus:i&&!w,onFocus:()=>e(!0),value:c,onValueChange:u,onKeyDown:n=>{n.key==="Escape"?(n.preventDefault(),e(!1)):n.key==="Enter"&&o?e(!1):n.key.match(/^[a-z0-9]$/i)&&!n.metaKey&&e(!0)},className:"block w-full truncate rounded-md border-none px-0 text-base text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:text-sm"})})},N=()=>D.map(o=>t(l.Item,{value:o.value,disabled:o.disabled,onSelect:()=>{m(o),u(o.value),e(!1)},className:"group flex cursor-pointer items-center justify-between rounded-md px-4 py-2 text-sm text-gray-900 hover:bg-gray-100 hover:text-gray-900 active:bg-gray-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-75 aria-disabled:hover:bg-white aria-selected:bg-gray-100 aria-selected:text-gray-900",children:[t("div",{className:"flex items-center space-x-2",children:[o.image&&a(k,{src:o.image,alt:o.value,className:"h-4 w-4 rounded-full",width:16,height:16}),a("p",{className:p("whitespace-nowrap py-0.5 text-sm",o.color&&"rounded-md px-2",o.color==="red"&&"bg-red-100 text-red-600",o.color==="yellow"&&"bg-yellow-100 text-yellow-600",o.color==="green"&&"bg-green-100 text-green-600",o.color==="blue"&&"bg-blue-100 text-blue-600",o.color==="purple"&&"bg-purple-100 text-purple-600",o.color==="brown"&&"bg-brown-100 text-brown-600"),children:o.value}),o.label&&a(C,{className:"text-xs",variant:"neutral",children:o.label})]}),a(R,{className:"invisible h-5 w-5 text-gray-500 aria-selected:visible"})]},o.id));return w&&M?t(g.Root,{open:i,onOpenChange:e,children:[a(g.Trigger,{className:"sm:hidden",asChild:!0,children:a(l,{ref:s,className:"relative",loop:!0,children:t("div",{className:p("group relative rounded-md border border-gray-300 bg-white px-1 focus-within:border-gray-500 focus-within:ring-1 focus-within:ring-gray-500 md:min-w-[140px]",d),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),c&&(r==null?void 0:r.value)!==""?a("button",{onClick:o=>{o.preventDefault(),m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 pr-3 text-gray-400 transition-all"})]})]})})}),a(g.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),t(g.Portal,{children:[a(g.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-lg border-t border-gray-200 bg-white",children:t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group relative mb-2 rounded-t-md border-b border-gray-300 bg-white p-1 sm:border sm:py-0 sm:focus-within:border-gray-500 sm:focus-within:ring-1 sm:focus-within:ring-gray-200",d),children:[a("div",{className:"absolute inset-y-0 left-0 flex items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),c&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{className:"absolute inset-y-0 right-0 my-auto h-7 w-7 rotate-180 pl-3 text-gray-400 transition-all"})]})]}),i&&t(l.List,{className:"dub-scrollbar h-[70vh] overflow-y-auto p-2",children:[a(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:"No results found."}),a(N,{})]})]})}),a(g.Overlay,{})]})]}):t(l,{ref:s,className:"relative",loop:!0,children:[t("div",{className:p("group rounded-md border border-gray-200 bg-white px-1 transition-all focus-within:border-gray-500 focus-within:ring-4 focus-within:ring-gray-200",d),children:[a("div",{onClick:()=>e(o=>!o),className:"absolute inset-y-0 left-0 flex cursor-pointer items-center justify-center pl-3 text-gray-400",children:r&&r.image?a("img",{src:r.image,alt:r.value,className:"h-4 w-4 rounded-full"}):b||a(v,{className:"h-4 w-4 text-gray-400"})}),t("div",{className:"flex h-10 px-8",children:[a(f,{}),c&&(r==null?void 0:r.value)!==""?a("button",{onClick:()=>{m(null),u("")},className:"absolute inset-y-0 right-0 my-auto",children:a(x,{className:"h-7 w-7 pr-3 text-gray-400"})}):a(h,{onClick:()=>e(o=>!o),className:`absolute inset-y-0 right-0 my-auto mr-3 h-4 w-4 cursor-pointer text-gray-400 transition-all ${i&&"rotate-180"}`})]})]}),i&&t(l.List,{className:"dub-scrollbar absolute z-20 mt-2 h-[calc(var(--cmdk-list-height)+17px)] max-h-[300px] w-full min-w-[160px] overflow-auto rounded-md border border-gray-200 bg-white p-2 shadow-md transition-all duration-75",children:[t(l.Empty,{className:"px-4 py-2 text-sm text-gray-600",children:['No results found for "',c,'"']}),a(N,{})]})]})}export{G as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as n}from"./chunk-J5O2O3V3.mjs";import{motion as t}from"framer-motion";import{jsx as e}from"react/jsx-runtime";function s({value:i=0,max:r=100,className:o}){return e("div",{className:n("h-3 w-full overflow-hidden rounded-full bg-gray-200",o),children:e(t.div,{initial:{width:0},animate:{width:i&&r?i/r*100+"%":"0%"},transition:{duration:.5,type:"spring",delay:.2},className:`${i&&r&&i>r?"bg-red-500":"bg-blue-500"} h-full`})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{g as o}from"./chunk-ARLZDT5D.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{e as y}from"./chunk-DMDUY4AQ.mjs";import{a as p}from"./chunk-2TGXECZQ.mjs";import{a as o}from"./chunk-VVFU6D7P.mjs";import{b as g,c as f,f as b}from"./chunk-PLFNCUKY.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{g as i}from"./chunk-RJJ6EI7S.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 Ee,b as ke}from"./chunk-AUBFB4SI.mjs";var pe=Ee((Kt,de)=>{var O=1e3,C=O*60,L=C*60,P=L*24,Fe=P*7,qe=P*365.25;de.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return We(e);if(r==="number"&&isFinite(e))return t.long?Ke(e):He(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function We(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*qe;case"weeks":case"week":case"w":return r*Fe;case"days":case"day":case"d":return r*P;case"hours":case"hour":case"hrs":case"hr":case"h":return r*L;case"minutes":case"minute":case"mins":case"min":case"m":return r*C;case"seconds":case"second":case"secs":case"sec":case"s":return r*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function He(e){var t=Math.abs(e);return t>=P?Math.round(e/P)+"d":t>=L?Math.round(e/L)+"h":t>=C?Math.round(e/C)+"m":t>=O?Math.round(e/O)+"s":e+"ms"}function Ke(e){var t=Math.abs(e);return t>=P?j(e,t,P,"day"):t>=L?j(e,t,L,"hour"):t>=C?j(e,t,C,"minute"):t>=O?j(e,t,O,"second"):e+" ms"}function j(e,t,r,o){var n=t>=r*1.5;return Math.round(e/r)+" "+o+(n?"s":"")}});var V=e=>{try{return new URL(e),!0}catch{return!1}},Pe=e=>{if(V(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return""};var Se=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),Ie=new RegExp(/^[0-9A-Za-z\u0080-\uFFFF\/\-]*$/u),Oe=new RegExp(/^[a-zA-Z0-9\-]+$/);var Ce=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 G=({name:e="Business",monthly:t=59,yearly:r=49,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})} new 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"}}]}),I=[{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 new 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 new 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."}]},G({name:"Business",monthly:59,yearly:49,links:5e3,clicks:15e4,domains:40,tags:150,users:15,ids:["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"]}),G({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_1OzObrAlJJEpqkPVh6D9HWGO"]}),G({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_1OzOg1AlJJEpqkPVPlsrxoWm"]}),G({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_1OzOh5AlJJEpqkPVtCSX7dlE"]}),{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"}]}],Le=I.find(e=>e.name==="Free"),Te=I.find(e=>e.name==="Pro"),Ne=I.find(e=>e.name==="Business"),ze=I.find(e=>e.name==="Enterprise");var Me=I.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",Ue=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,De=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),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}`:"http://localhost:8888",Ve=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-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${Y}`,"api.localhost:8888"]),Je=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",je=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]);var S="cl7pj5kq4006835rbjlt2ofka";var ce=[{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:S},...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:S},{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:S},{id:"cltgtd6s5000341itdszz20u2",slug:"git.new",verified:!0,primary:!1,archived:!1,publicStats:!1,target:"https://dub.co/tools/github-link-shortener",type:"redirect",placeholder:"https://github.com/dubinc/dub",clicks:0,allowedHostnames:["github.com","gist.github.com"],projectId:S},{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:S}]:[]],$e=ce.map(e=>e.slug);var ue=ke(pe(),1),Ye=(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 Xe(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 me(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=me(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function fe(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=me(e))&&(o&&(o+=" "),o+=t);return o}var Z="-";function Ze(e){let t=et(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function n(a){let l=a.split(Z);return l[0]===""&&l.length!==1&&l.shift(),be(l,t)||Qe(a)}function s(a,l){let p=r[a]||[];return l&&o[a]?[...p,...o[a]]:p}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function be(e,t){var a;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?be(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let s=e.join(Z);return(a=t.validators.find(({validator:l})=>l(s)))==null?void 0:a.classGroupId}var he=/^\[(.+)\]$/;function Qe(e){if(he.test(e)){let t=he.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function et(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return rt(Object.entries(e.classGroups),r).forEach(([s,a])=>{X(a,o,s,t)}),o}function X(e,t,r,o){e.forEach(n=>{if(typeof n=="string"){let s=n===""?t:ge(t,n);s.classGroupId=r;return}if(typeof n=="function"){if(tt(n)){X(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,a])=>{X(a,ge(t,s),r,o)})})}function ge(e,t){let r=e;return t.split(Z).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r}function tt(e){return e.isThemeGetter}function rt(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 ot(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 ye="!";function st(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 g=a[f];if(p===0){if(g===o&&(r||a.slice(f,f+n)===t)){l.push(a.slice(m,f)),m=f+n;continue}if(g==="/"){u=f;continue}}g==="["?p++:g==="]"&&p--}let h=l.length===0?a:a.substring(m),b=h.startsWith(ye),w=b?h.substring(1):h,k=u&&u>m?u-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:w,maybePostfixModifierPosition:k}}}function at(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 nt(e){return{cache:ot(e.cacheSize),splitModifiers:st(e),...Ze(e)}}var it=/\s+/;function lt(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=new Set;return e.trim().split(it).map(a=>{let{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:u}=r(a),h=o(u?m.substring(0,u):m),b=Boolean(u);if(!h){if(!u)return{isTailwindClass:!1,originalClassName:a};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:a};b=!1}let w=at(l).join(":"),k=p?w+ye:w;return{isTailwindClass:!0,modifierId:k,classGroupId:h,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(h=>s.add(l+h)),!0)}).reverse().map(a=>a.originalClassName).join(" ")}function ct(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xe(t))&&(o&&(o+=" "),o+=r);return o}function xe(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=xe(e[o]))&&(r&&(r+=" "),r+=t);return r}function dt(e,...t){let r,o,n,s=a;function a(p){let m=t.reduce((u,h)=>h(u),e());return r=nt(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=lt(p,r);return n(p,u),u}return function(){return s(ct.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var we=/^\[(?:([a-z-]+):)?(.+)\]$/i,pt=/^\d+\/\d+$/,ut=new Set(["px","full","screen"]),mt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ft=/\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$/,ht=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return _(e)||ut.has(e)||pt.test(e)}function A(e){return T(e,"length",Pt)}function _(e){return Boolean(e)&&!Number.isNaN(Number(e))}function $(e){return T(e,"number",_)}function M(e){return Boolean(e)&&Number.isInteger(Number(e))}function yt(e){return e.endsWith("%")&&_(e.slice(0,-1))}function i(e){return we.test(e)}function E(e){return mt.test(e)}var xt=new Set(["length","size","percentage"]);function wt(e){return T(e,xt,ve)}function vt(e){return T(e,"position",ve)}var At=new Set(["image","url"]);function Et(e){return T(e,At,St)}function kt(e){return T(e,"",_t)}function R(){return!0}function T(e,t,r){let o=we.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1}function Pt(e){return ft.test(e)&&!ht.test(e)}function ve(){return!1}function _t(e){return gt.test(e)}function St(e){return bt.test(e)}function It(){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"),h=c("invert"),b=c("gap"),w=c("gradientColorStops"),k=c("gradientColorStopPositions"),f=c("inset"),g=c("margin"),v=c("opacity"),y=c("padding"),ee=c("saturate"),F=c("scale"),te=c("sepia"),re=c("skew"),oe=c("space"),se=c("translate"),q=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",i,t],d=()=>[i,t],ae=()=>["",x,A],U=()=>["auto",_,i],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],K=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",i],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[_,$],B=()=>[_,i];return{cacheSize:500,separator:":",theme:{colors:[R],spacing:[x,A],blur:["none","",E,i],brightness:z(),borderColor:[e],borderRadius:["none","","full",E,i],borderSpacing:d(),borderWidth:ae(),contrast:z(),grayscale:N(),hueRotate:B(),invert:N(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[yt,A],inset:H(),margin:H(),opacity:z(),padding:d(),saturate:z(),scale:z(),sepia:N(),skew:B(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"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:[...ne(),i]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],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",M,i]}],basis:[{basis:H()}],"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:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",M,i]}],"grid-cols":[{"grid-cols":[R]}],"col-start-end":[{col:["auto",{span:["full",M,i]},i]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[R]}],"row-start-end":[{row:["auto",{span:[M,i]},i]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"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",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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":[oe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[oe]}],"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",$]}],"font-family":[{font:[R]}],"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",_,$]}],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":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"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":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],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":[v]}],"border-style":[{border:[...D(),"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":[v]}],"divide-style":[{divide:D()}],"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:["",...D()]}],"outline-offset":[{"outline-offset":[x,i]}],"outline-w":[{outline:[x,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[x,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,kt]}],"shadow-color":[{shadow:[R]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":ie()}],"bg-blend":[{"bg-blend":ie()}],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:[h]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[te]}],"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":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[te]}],"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:B()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:B()}],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:[M,i]}],"translate-x":[{"translate-x":[se]}],"translate-y":[{"translate-y":[se]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"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 Ae=dt(It);function Ot(...e){return Ae(fe(e))}export{Pe as a,Ce as b,Be as c,Ye as d,Xe as e,Ot as f,Ct as g,Q as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{f as i}from"./chunk-YRI35OGO.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};
|