@dub/ui 0.1.25 → 0.1.26
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/alert.d.ts +11 -0
- package/dist/alert.mjs +2 -0
- package/dist/animated-size-container.d.ts +7 -7
- package/dist/button.mjs +1 -1
- package/dist/chunk-26HEIBN2.mjs +7 -0
- package/dist/chunk-2IIEIRXO.mjs +2 -0
- package/dist/chunk-2LEU47YL.mjs +2 -0
- package/dist/chunk-2RZIRKYM.mjs +2 -0
- package/dist/chunk-32Q6B7IB.mjs +2 -0
- package/dist/chunk-3EYESOVW.mjs +2 -0
- package/dist/chunk-3MKOKPHW.mjs +2 -0
- package/dist/chunk-3VN5QIWP.mjs +2 -0
- package/dist/chunk-43SNHXWZ.mjs +7 -0
- package/dist/chunk-44WC4EDY.mjs +2 -0
- package/dist/chunk-46UGPGFU.mjs +2 -0
- package/dist/chunk-4AQZYS4A.mjs +2 -0
- package/dist/chunk-4B6VOSZN.mjs +2 -0
- package/dist/chunk-4C3BXM4Y.mjs +2 -0
- package/dist/chunk-4QKUYYEI.mjs +2 -0
- package/dist/chunk-4S6XA7PD.mjs +2 -0
- package/dist/chunk-4V77LPZ6.mjs +2 -0
- package/dist/chunk-4YMEEDNA.mjs +2 -0
- package/dist/chunk-57X4XKLY.mjs +2 -0
- package/dist/chunk-5D54PSF2.mjs +2 -0
- package/dist/chunk-5DLUCODJ.mjs +2 -0
- package/dist/chunk-5EZKZSTC.mjs +2 -0
- package/dist/chunk-5HB5OTSX.mjs +2 -0
- package/dist/chunk-5OSIWYWM.mjs +2 -0
- package/dist/chunk-5R2ZR7X7.mjs +2 -0
- package/dist/chunk-5UYTJMB5.mjs +2 -0
- package/dist/chunk-5YAMX6RU.mjs +2 -0
- package/dist/chunk-65AHHNQL.mjs +2 -0
- package/dist/chunk-6RYEFN6Q.mjs +2 -0
- package/dist/chunk-6V3GJ6HG.mjs +2 -0
- package/dist/chunk-7FNREWUC.mjs +2 -0
- package/dist/chunk-7JYRED3W.mjs +2 -0
- package/dist/chunk-7UCB3TLP.mjs +2 -0
- package/dist/chunk-A2ZSXR46.mjs +2 -0
- package/dist/chunk-A43PCGZ4.mjs +2 -0
- package/dist/chunk-A4Q3JAYS.mjs +2 -0
- package/dist/chunk-AEEZU6J4.mjs +2 -0
- package/dist/chunk-AQY7UVUM.mjs +2 -0
- package/dist/chunk-B5RHXXEO.mjs +2 -0
- package/dist/chunk-B6MWS5O2.mjs +2 -0
- package/dist/chunk-BDOAF2J7.mjs +2 -0
- package/dist/chunk-BGVSTO2T.mjs +7 -0
- package/dist/chunk-BL7I2UHC.mjs +2 -0
- package/dist/chunk-BOEKU3BT.mjs +2 -0
- package/dist/chunk-BP6N4NWL.mjs +2 -0
- package/dist/chunk-BYCYY3CN.mjs +2 -0
- package/dist/chunk-C267KPMJ.mjs +2 -0
- package/dist/chunk-CIDBHPSK.mjs +2 -0
- package/dist/chunk-CNJFW4SL.mjs +2 -0
- package/dist/chunk-CPBGVENK.mjs +2 -0
- package/dist/chunk-CSDIXWYM.mjs +2 -0
- package/dist/chunk-CUONIZRV.mjs +2 -0
- package/dist/chunk-CXBDO7OZ.mjs +2 -0
- package/dist/chunk-CYEDXZIQ.mjs +2 -0
- package/dist/chunk-CZMILBDV.mjs +2 -0
- package/dist/chunk-CZNIJRGW.mjs +2 -0
- package/dist/chunk-D7TPJQOS.mjs +2 -0
- package/dist/chunk-DG6IEMKH.mjs +2 -0
- package/dist/chunk-DKL2OKIP.mjs +2 -0
- package/dist/chunk-DX5NKO56.mjs +2 -0
- package/dist/chunk-EC722IAZ.mjs +2 -0
- package/dist/chunk-EECUYP57.mjs +2 -0
- package/dist/chunk-EHW7GXUT.mjs +2 -0
- package/dist/chunk-EINURKG6.mjs +2 -0
- package/dist/chunk-EQ3LXJ3Q.mjs +2 -0
- package/dist/chunk-EYDM7PDS.mjs +2 -0
- package/dist/chunk-F2LPHYUE.mjs +2 -0
- package/dist/chunk-F36BOKRS.mjs +2 -0
- package/dist/chunk-F45XED3J.mjs +2 -0
- package/dist/chunk-FBR7MPOG.mjs +2 -0
- package/dist/chunk-FE2FOWMJ.mjs +2 -0
- package/dist/chunk-FEFKJNQ5.mjs +2 -0
- package/dist/chunk-FG3FQFLG.mjs +2 -0
- package/dist/chunk-FKMSZDQU.mjs +2 -0
- package/dist/chunk-FUYMO2W7.mjs +2 -0
- package/dist/chunk-G7AWIAOF.mjs +2 -0
- package/dist/chunk-GB6S6DXF.mjs +2 -0
- package/dist/chunk-GFLNQUPY.mjs +2 -0
- package/dist/chunk-GGCLLZUP.mjs +2 -0
- package/dist/chunk-GHBZGU5R.mjs +7 -0
- package/dist/chunk-GIZ5OQTX.mjs +2 -0
- package/dist/chunk-GJ7KGUZE.mjs +2 -0
- package/dist/chunk-GRQN5UKZ.mjs +2 -0
- package/dist/chunk-H46E2OJW.mjs +2 -0
- package/dist/chunk-H52TZ2BC.mjs +2 -0
- package/dist/chunk-HDYSJ6QF.mjs +2 -0
- package/dist/chunk-HFEN5PUM.mjs +2 -0
- package/dist/chunk-HFFZNF7I.mjs +2 -0
- package/dist/chunk-HISIKABS.mjs +2 -0
- package/dist/chunk-HOMG3UZO.mjs +2 -0
- package/dist/chunk-HPHESWJX.mjs +2 -0
- package/dist/chunk-HY2TJPTV.mjs +2 -0
- package/dist/chunk-IPWNIED6.mjs +2 -0
- package/dist/chunk-IQBWWAJQ.mjs +2 -0
- package/dist/chunk-IQZRESCY.mjs +2 -0
- package/dist/chunk-IVMGTWHP.mjs +2 -0
- package/dist/chunk-IWYPHXNT.mjs +2 -0
- package/dist/chunk-J26LLJEM.mjs +2 -0
- package/dist/chunk-J6NH6EKQ.mjs +2 -0
- package/dist/chunk-JA5ORM2H.mjs +2 -0
- package/dist/chunk-JEQIJYEK.mjs +2 -0
- package/dist/chunk-JSKEDOPC.mjs +2 -0
- package/dist/chunk-K5LPCUYD.mjs +2 -0
- package/dist/chunk-KA4CUK6U.mjs +2 -0
- package/dist/chunk-KET2VVKE.mjs +2 -0
- package/dist/chunk-KETLMZBE.mjs +2 -0
- package/dist/chunk-KFL2KWHP.mjs +2 -0
- package/dist/chunk-KFZGLUTN.mjs +2 -0
- package/dist/chunk-KHD666XA.mjs +2 -0
- package/dist/chunk-KICICMID.mjs +2 -0
- package/dist/chunk-KZLWQBCX.mjs +2 -0
- package/dist/chunk-LCDWDEM6.mjs +2 -0
- package/dist/chunk-LGX4VS7A.mjs +2 -0
- package/dist/chunk-LP63EHJ6.mjs +2 -0
- package/dist/chunk-LPCHFQSJ.mjs +2 -0
- package/dist/chunk-LPHD5TTW.mjs +2 -0
- package/dist/chunk-LTFXCZD2.mjs +2 -0
- package/dist/chunk-LV6OOG6R.mjs +2 -0
- package/dist/chunk-MB64TQNW.mjs +2 -0
- package/dist/chunk-MBTADLVF.mjs +2 -0
- package/dist/chunk-MC7ISRBT.mjs +2 -0
- package/dist/chunk-MEKY4EIL.mjs +2 -0
- package/dist/chunk-MGYR72JU.mjs +2 -0
- package/dist/chunk-MLGA4PC2.mjs +2 -0
- package/dist/chunk-MOMH4ALF.mjs +7 -0
- package/dist/chunk-MXQOE67U.mjs +2 -0
- package/dist/chunk-MYIDQEPH.mjs +2 -0
- package/dist/chunk-N4CSRSO5.mjs +2 -0
- package/dist/chunk-NBHIUOEP.mjs +2 -0
- package/dist/chunk-NHXYH6XC.mjs +2 -0
- package/dist/chunk-NPP5VA5W.mjs +2 -0
- package/dist/chunk-NUU73Y42.mjs +2 -0
- package/dist/chunk-NZUKOOAG.mjs +2 -0
- package/dist/chunk-O62F6DM6.mjs +2 -0
- package/dist/chunk-O7P5ZP3C.mjs +2 -0
- package/dist/chunk-OHW2XY2M.mjs +2 -0
- package/dist/chunk-OLY6NYZ5.mjs +2 -0
- package/dist/chunk-OMWOMSPK.mjs +2 -0
- package/dist/chunk-OOURHQIR.mjs +2 -0
- package/dist/chunk-OTXS36LV.mjs +2 -0
- package/dist/chunk-OZ2WHUBM.mjs +2 -0
- package/dist/chunk-PKSKNB76.mjs +2 -0
- package/dist/chunk-PLBNO4SP.mjs +2 -0
- package/dist/chunk-POLH6Z2M.mjs +2 -0
- package/dist/chunk-PP3BRPQA.mjs +7 -0
- package/dist/chunk-PY3ADQKA.mjs +2 -0
- package/dist/chunk-Q2ELN5SV.mjs +2 -0
- package/dist/chunk-Q7PR2VRX.mjs +2 -0
- package/dist/chunk-QAYYUEMJ.mjs +2 -0
- package/dist/chunk-QBXSCPDU.mjs +2 -0
- package/dist/chunk-QH3YYOSN.mjs +2 -0
- package/dist/chunk-QSQKFNVC.mjs +2 -0
- package/dist/chunk-QUZ6WUCT.mjs +2 -0
- package/dist/chunk-QWX3GBCC.mjs +2 -0
- package/dist/chunk-QXUVD6HF.mjs +2 -0
- package/dist/chunk-QXYVNI4X.mjs +2 -0
- package/dist/chunk-R4FMA6YB.mjs +2 -0
- package/dist/chunk-RB2WIZ7A.mjs +2 -0
- package/dist/chunk-RFDHYEGI.mjs +2 -0
- package/dist/chunk-RT4ZFG2T.mjs +2 -0
- package/dist/chunk-RU77SKNB.mjs +2 -0
- package/dist/chunk-SJ3JH2MV.mjs +2 -0
- package/dist/chunk-SJBKLUUF.mjs +2 -0
- package/dist/chunk-SMW7RYA2.mjs +6 -0
- package/dist/chunk-STHAY76K.mjs +2 -0
- package/dist/chunk-SVVS6OHC.mjs +2 -0
- package/dist/chunk-SZPUIUQ7.mjs +2 -0
- package/dist/chunk-TATQKYRB.mjs +2 -0
- package/dist/chunk-TL56XUXY.mjs +2 -0
- package/dist/chunk-TLFZIWME.mjs +2 -0
- package/dist/chunk-TMUBU7JQ.mjs +2 -0
- package/dist/chunk-TORFST2S.mjs +2 -0
- package/dist/chunk-TQ2ZB4CI.mjs +2 -0
- package/dist/chunk-TRPXAA4Z.mjs +2 -0
- package/dist/chunk-TTTF64VC.mjs +2 -0
- package/dist/chunk-TZYWDJMK.mjs +2 -0
- package/dist/chunk-U5FWQKUY.mjs +2 -0
- package/dist/chunk-UBIDQLRL.mjs +2 -0
- package/dist/chunk-UOFEKWAE.mjs +2 -0
- package/dist/chunk-UU4ZK2DJ.mjs +2 -0
- package/dist/chunk-UUPZDEJS.mjs +2 -0
- package/dist/chunk-V3MOK3HG.mjs +2 -0
- package/dist/chunk-VBFFPBA6.mjs +2 -0
- package/dist/chunk-VBQALNXV.mjs +2 -0
- package/dist/chunk-VGUHQWEV.mjs +2 -0
- package/dist/chunk-VIZ7PO4M.mjs +2 -0
- package/dist/chunk-W4EQ25DN.mjs +7 -0
- package/dist/chunk-W7SHX5V4.mjs +2 -0
- package/dist/chunk-WHNH7E76.mjs +2 -0
- package/dist/chunk-WKIXOS3S.mjs +2 -0
- package/dist/chunk-WN5XBGPY.mjs +2 -0
- package/dist/chunk-WSPJPB2Q.mjs +2 -0
- package/dist/chunk-WXQX4676.mjs +2 -0
- package/dist/chunk-X77LNJLE.mjs +2 -0
- package/dist/chunk-X7W77BZS.mjs +7 -0
- package/dist/chunk-XA3RG3QT.mjs +2 -0
- package/dist/chunk-XCO6TYE2.mjs +2 -0
- package/dist/chunk-XF7WUXAM.mjs +2 -0
- package/dist/chunk-XIXLVNS6.mjs +2 -0
- package/dist/chunk-XTKFN4ZK.mjs +2 -0
- package/dist/chunk-XUBSZMA2.mjs +2 -0
- package/dist/chunk-XY7DIAH6.mjs +2 -0
- package/dist/chunk-XZEINW7G.mjs +2 -0
- package/dist/chunk-YBGSLCZL.mjs +2 -0
- package/dist/chunk-YBPEL7MQ.mjs +2 -0
- package/dist/chunk-YD3L5CBD.mjs +2 -0
- package/dist/chunk-YGHPN646.mjs +2 -0
- package/dist/chunk-YLHEABB4.mjs +2 -0
- package/dist/chunk-YPWVIAZQ.mjs +2 -0
- package/dist/chunk-Z523UMUD.mjs +2 -0
- package/dist/chunk-Z5E7F5ZR.mjs +2 -0
- package/dist/chunk-Z6K6DDP4.mjs +7 -0
- package/dist/chunk-ZYBJOEYC.mjs +2 -0
- package/dist/copy-button.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/nucleo/sliders.d.ts +6 -0
- package/dist/icons/nucleo/sliders.mjs +2 -0
- package/dist/icons/nucleo/trash.d.ts +6 -0
- package/dist/icons/nucleo/trash.mjs +2 -0
- package/dist/icons/nucleo/user.d.ts +6 -0
- package/dist/icons/nucleo/user.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/nav-mobile.mjs +1 -1
- package/dist/nav.mjs +1 -1
- package/dist/sliders-dae1fdf8.d.ts +6 -0
- package/dist/toggle-group.d.ts +13 -0
- package/dist/toggle-group.mjs +2 -0
- package/dist/toggle.d.ts +15 -0
- package/dist/toggle.mjs +2 -0
- package/dist/tooltip.d.ts +1 -1
- package/package.json +1 -1
package/dist/alert.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
|
|
5
|
+
declare const Alert: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
7
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const AlertTitle: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLHeadingElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
9
|
+
declare const AlertDescription: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
|
|
11
|
+
export { Alert, AlertDescription, AlertTitle };
|
package/dist/alert.mjs
ADDED
|
@@ -19,7 +19,7 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
19
19
|
accessKey?: string | undefined;
|
|
20
20
|
autoFocus?: boolean | undefined;
|
|
21
21
|
className?: string | undefined;
|
|
22
|
-
contentEditable?:
|
|
22
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
23
23
|
contextMenu?: string | undefined;
|
|
24
24
|
dir?: string | undefined;
|
|
25
25
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -55,12 +55,12 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
55
55
|
results?: number | undefined;
|
|
56
56
|
security?: string | undefined;
|
|
57
57
|
unselectable?: "on" | "off" | undefined;
|
|
58
|
-
inputMode?: "
|
|
58
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
59
59
|
is?: string | undefined;
|
|
60
60
|
tw?: string | undefined;
|
|
61
61
|
"aria-activedescendant"?: string | undefined;
|
|
62
62
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
"aria-autocomplete"?: "
|
|
63
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
64
64
|
"aria-braillelabel"?: string | undefined;
|
|
65
65
|
"aria-brailleroledescription"?: string | undefined;
|
|
66
66
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -75,12 +75,12 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
75
75
|
"aria-description"?: string | undefined;
|
|
76
76
|
"aria-details"?: string | undefined;
|
|
77
77
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
78
|
-
"aria-dropeffect"?: "
|
|
78
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
79
79
|
"aria-errormessage"?: string | undefined;
|
|
80
80
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
81
81
|
"aria-flowto"?: string | undefined;
|
|
82
82
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-haspopup"?: boolean | "
|
|
83
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
84
84
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
86
86
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -97,7 +97,7 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
97
97
|
"aria-posinset"?: number | undefined;
|
|
98
98
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
99
99
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-relevant"?: "
|
|
100
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
101
101
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
102
102
|
"aria-roledescription"?: string | undefined;
|
|
103
103
|
"aria-rowcount"?: number | undefined;
|
|
@@ -272,6 +272,6 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
272
272
|
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLDivElement> | undefined;
|
|
273
273
|
onTransitionEnd?: react.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
274
|
onTransitionEndCapture?: react.TransitionEventHandler<HTMLDivElement> | undefined;
|
|
275
|
-
} & framer_motion.MotionProps & react.RefAttributes<HTMLDivElement>, "ref">, "
|
|
275
|
+
} & framer_motion.MotionProps & react.RefAttributes<HTMLDivElement>, "ref">, "animate" | "children"> & react.RefAttributes<HTMLDivElement>>;
|
|
276
276
|
|
|
277
277
|
export { AnimatedSizeContainer };
|
package/dist/button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-SWIJ7E6E.mjs";import"./chunk-XFHTBDHT.mjs";import"./chunk-XA6HZP2X.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-SWIJ7E6E.mjs";import"./chunk-XFHTBDHT.mjs";import"./chunk-XA6HZP2X.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-JI7NYGFV.mjs";import"./chunk-UQ54MVWV.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-KJEVFTCG.mjs";import"./chunk-GSQUGPJ2.mjs";import"./chunk-5J4GRBP5.mjs";import"./chunk-KM4WRZJP.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-2XDU4CN6.mjs";import"./chunk-BE2VDAMD.mjs";import"./chunk-QA2KCGIR.mjs";import"./chunk-NOK4ZFE4.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-HFOXNTZ2.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-HROM26SU.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-T4YFARK5.mjs";import"./chunk-QROG2QLI.mjs";import"./chunk-AK3CMVMP.mjs";import"./chunk-3VTQK4AG.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Button,a as buttonVariants};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-QBWULSN7.mjs";import{a as f}from"./chunk-4NWFDRMU.mjs";import{a as y}from"./chunk-3IR6GXKB.mjs";import{b as N}from"./chunk-SWIJ7E6E.mjs";import{d as b,g as C,i as d,j as w}from"./chunk-3VTQK4AG.mjs";import*as r from"@radix-ui/react-navigation-menu";import h from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import v from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as E,BarChart as W,Link2 as A,QrCode as I,Users as D,Webhook as $}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:W,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:E,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:I,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:A,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:$,slug:"docs/api-reference/introduction"}];import{useCallback as O,useEffect as L,useState as G}from"react";function S(i){let[e,m]=G(!1),l=O(()=>{m(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as c from"@radix-ui/react-popover";import{BoxSelect as Z,Home as z,LayoutGrid as F,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="177" height="64" viewBox="0 0 177 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z" fill="black"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
7
|
+
</svg>`;async function V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function H({variant:i="full",isInApp:e,className:m}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,p]=q(!1),n=Y(a=>{a.preventDefault(),p(!0)},[]);return _(c.Root,{open:k,onOpenChange:p,children:[o(c.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:m}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(c.Portal,{children:o(c.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),p(!1)},children:_("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(g,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(g,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(g,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),e||l!="dub.co"?o(g,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(g,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function g({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"},{name:"Help Center",slug:"help"}];function Re({theme:i="light"}){let{domain:e="dub.co"}=ee(),m=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:p}=re(e==="dub.co"&&"/api/auth/session",C,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&w.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(v,{href:m("/"),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(H,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:R,shortTitle:B})=>s(v,{href:m(`/${n}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:B})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:R})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(v,{id:`nav-${a}`,href:m(`/${a}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(v,{href:b,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):p?null:s(ie,{children:[t(v,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}export{S as a,M as b,x as c,ae as d,Re as e,H as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as e}from"./chunk-ZYBJOEYC.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as c}from"./chunk-YPWVIAZQ.mjs";import{i as o}from"./chunk-5D54PSF2.mjs";import*as t from"@radix-ui/react-switch";import{jsx as e}from"react/jsx-runtime";function f({fn:r,trackDimensions:l,thumbDimensions:d,thumbTranslate:n,checked:h=!0,loading:i=!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:i?!1:h,name:"switch",...r&&{onCheckedChange:r},disabled:a||i,className:o("radix-state-checked:bg-blue-500 radix-state-unchecked:bg-gray-200 relative inline-flex h-4 w-8 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring focus-visible:ring-blue-500 focus-visible:ring-opacity-75",(a||i)&&"cursor-not-allowed",l),children:e(t.Thumb,{className:o(`radix-state-checked:${n}`,"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,n)})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as f}from"./chunk-K4MP745I.mjs";import{d as i}from"./chunk-ZYBJOEYC.mjs";import*as o from"@radix-ui/react-dialog";import{useRouter as D}from"next/navigation";import{Drawer as a}from"vaul";import{jsx as t,jsxs as n}from"react/jsx-runtime";function x({children:l,className:d,showModal:s,setShowModal:r,onClose:c,desktopOnly:g,preventDefaultClose:u}){let p=D(),m=({dragged:e}={})=>{u&&!e||(c&&c(),r?r(!1):p.back())},{isMobile:b}=f();return b&&!g?n(a.Root,{open:r?s:!0,onOpenChange:e=>{e||m({dragged:!0})},children:[t(a.Overlay,{className:"fixed inset-0 z-40 bg-gray-100 bg-opacity-10 backdrop-blur"}),n(a.Portal,{children:[n(a.Content,{className:i("fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",d),children:[t("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:t("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),l]}),t(a.Overlay,{})]})]}):t(o.Root,{open:r?s:!0,onOpenChange:e=>{e||m()},children:n(o.Portal,{children:[t(o.Overlay,{id:"modal-backdrop",className:"animate-fade-in fixed inset-0 z-40 bg-gray-100 bg-opacity-50 backdrop-blur-md"}),t(o.Content,{onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault(),className:i("animate-scale-in fixed inset-0 z-40 m-auto max-h-fit w-full max-w-md overflow-hidden border border-gray-200 bg-white p-0 shadow-xl sm:rounded-2xl",d),children:l})]})})}export{x as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as l}from"./chunk-GJ7KGUZE.mjs";import{a as s}from"./chunk-NHXYH6XC.mjs";import{d as r}from"./chunk-ZYBJOEYC.mjs";import{cva as y}from"class-variance-authority";import{forwardRef as x}from"react";import{jsx as o,jsxs as u}from"react/jsx-runtime";var h=y("",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:r("border-gray-200 bg-white text-gray-900 hover:bg-gray-50 focus-visible:border-gray-500 outline-none","data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"),outline:"border-transparent text-gray-500 duration-75 hover:bg-gray-100",success:"border-blue-500 bg-blue-500 text-white hover:bg-blue-600 hover:ring-4 hover:ring-blue-100",danger:"border-red-500 bg-red-500 text-white hover:bg-red-600 hover:ring-4 hover:ring-red-100","danger-outline":"border-transparent bg-white text-red-500 hover:bg-red-600 hover:text-white"}},defaultVariants:{variant:"primary"}}),m=x(({text:a,variant:e="primary",className:i,loading:g,icon:d,shortcut:t,disabledTooltip:b,...n},p)=>b?o(l,{content:b,children:u("div",{className:r("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==null?void 0:e.endsWith("outline")},i),children:[d,o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("hidden rounded bg-gray-200 px-2 py-0.5 text-xs font-light text-gray-400 md:inline-block",{"bg-gray-100":e==null?void 0:e.endsWith("outline")}),children:t})]})}):u("button",{ref:p,type:n.onClick?"button":"submit",className:r("group flex h-10 w-full items-center justify-center gap-2 rounded-md border px-4 text-sm transition-all",n.disabled||g?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400":h({variant:e}),i),disabled:n.disabled||g,...n,children:[g?o(s,{}):d||null,a&&o("p",{className:r(t&&"flex-1 text-left"),children:a}),t&&o("kbd",{className:r("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-600 group-hover:text-gray-300":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:t})]}));m.displayName="Button";export{h as a,m as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as v}from"./chunk-44WC4EDY.mjs";import{jsx as h}from"react/jsx-runtime";function c({className:t}){return h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:v("text-[#0077b5]",t),children:h("path",{fill:"currentColor",d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}export{c as a};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as P}from"./chunk-WSPJPB2Q.mjs";import{a as y}from"./chunk-3VN5QIWP.mjs";import{a as f}from"./chunk-4B6VOSZN.mjs";import{b as N}from"./chunk-TQ2ZB4CI.mjs";import{d as b,g as C,i as d,j as w}from"./chunk-TORFST2S.mjs";import*as r from"@radix-ui/react-navigation-menu";import h from"@vercel/analytics";import{ChevronDown as X}from"lucide-react";import v from"next/link";import{useParams as ee,useSelectedLayoutSegment as te}from"next/navigation";import{createContext as oe}from"react";import re from"swr";import{Airplay as E,BarChart as W,Link2 as A,QrCode as I,Users as D,Webhook as $}from"lucide-react";var M=[{title:"Powerful Analytics For The Modern Marketer",shortTitle:"Advanced Analytics",icon:W,slug:"features/analytics"},{title:"Branded Links That Stand Out",shortTitle:"Branded Links",icon:E,slug:"features/branded-links"},{title:"Gorgeous QR codes for your links",shortTitle:"QR Codes",icon:I,slug:"features/qr-codes"},{title:"Personalize Your Short Links",shortTitle:"Personalization",icon:A,slug:"features/personalization"},{title:"Collaborate With Your Team",shortTitle:"Team Collaboration",icon:D,slug:"features/collaboration"},{title:"Programmatic Link Creation",shortTitle:"API",icon:$,slug:"docs/api-reference/introduction"}];import{useCallback as O,useEffect as L,useState as G}from"react";function S(i){let[e,m]=G(!1),l=O(()=>{m(window.scrollY>i)},[i]);return L(()=>(window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)),[l]),L(()=>{l()},[l]),e}import*as c from"@radix-ui/react-popover";import{BoxSelect as Z,Home as z,LayoutGrid as F,Type as U}from"lucide-react";import{useParams as Q}from"next/navigation";import{useCallback as Y,useContext as j,useState as q}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as _}from"react/jsx-runtime";var K=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,J=`<svg width="177" height="64" viewBox="0 0 177 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z" fill="black"/>
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
7
|
+
</svg>`;async function V(i){try{await navigator.clipboard.writeText(i),T.success("Copied to clipboard!")}catch(e){console.error("Failed to copy to clipboard.",e),T.error("Failed to copy to clipboard.")}}function H({variant:i="full",isInApp:e,className:m}){let{domain:l="dub.co"}=Q(),{theme:u}=j(x),[k,p]=q(!1),n=Y(a=>{a.preventDefault(),p(!0)},[]);return _(c.Root,{open:k,onOpenChange:p,children:[o(c.Anchor,{asChild:!0,children:o("div",{onContextMenu:n,className:"max-w-fit",children:i==="full"?o(P,{className:m}):o(f,{className:d("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),o(c.Portal,{children:o(c.Content,{sideOffset:14,align:"start",className:d("z-50 -mt-1.5 -translate-x-10",u==="dark"&&"dark"),onClick:a=>{a.stopPropagation(),p(!1)},children:_("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm dark:border-white/[0.15] dark:bg-black sm:min-w-[240px]",children:[o(g,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>V(K),icon:o(f,{className:"h-4 w-4"})}),o(g,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>V(J),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})}),o(g,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}),e||l!="dub.co"?o(g,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${e?"/home":""}`,"_blank"),icon:o(z,{strokeWidth:2,className:"h-4 w-4"})}):o(g,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(F,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function g({className:i,...e}){return o(N,{className:d("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...e})}import{Fragment as ie,jsx as t,jsxs as s}from"react/jsx-runtime";var x=oe({theme:"light"}),ae=[{name:"Customers",slug:"customers"},{name:"Pricing",slug:"pricing"},{name:"Blog",slug:"blog"},{name:"Changelog",slug:"changelog"},{name:"Help Center",slug:"help"}];function Re({theme:i="light"}){let{domain:e="dub.co"}=ee(),m=n=>e==="dub.co"?n:`https://dub.co${n}`,l=S(80),u=te(),{data:k,isLoading:p}=re(e==="dub.co"&&"/api/auth/session",C,{dedupingInterval:6e4});return t(x.Provider,{value:{theme:i},children:s("div",{className:d("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:d("-z-1 absolute inset-0 border-transparent transition-all",{"border-b border-black/10 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75":l,"border-b border-black/10 bg-white dark:border-white/10 dark:bg-black":u&&w.includes(u)})}),t(y,{className:"relative",children:s("div",{className:"flex h-14 items-center justify-between",children:[s("div",{className:"flex items-center space-x-12",children:[t(v,{href:m("/"),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"logo"})}},children:t(H,{})}),s(r.Root,{delayDuration:0,className:"relative hidden lg:block",children:[s(r.List,{className:"flex flex-row space-x-2 p-4",children:[s(r.Item,{children:[s(r.Trigger,{className:"group flex items-center space-x-2 rounded-md px-3 py-2 text-sm font-medium hover:bg-gray-100 focus:outline-none dark:hover:bg-white/10",children:[t("p",{className:d("text-sm font-medium text-gray-500 transition-colors ease-out group-hover:text-black dark:text-white/70 dark:group-hover:text-white",{"text-black dark:text-white":u==="features"}),children:"Features"}),t(X,{className:"h-4 w-4 text-black transition-all group-data-[state=open]:rotate-180 dark:text-white"})]}),t(r.Content,{children:t("div",{className:"grid w-[32rem] grid-cols-2 gap-1 p-3",children:M.map(({slug:n,icon:a,title:R,shortTitle:B})=>s(v,{href:m(`/${n}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (/${n})`})}},className:"rounded-lg p-3 transition-colors hover:bg-gray-100 active:bg-gray-200 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[s("div",{className:"flex items-center space-x-2",children:[t(a,{className:"h-4 w-4 text-gray-700 dark:text-white/80"}),t("p",{className:"text-sm font-medium text-gray-700 dark:text-white",children:B})]}),t("p",{className:"mt-1 line-clamp-1 text-sm text-gray-500 dark:text-white/60",children:R})]},n))})})]}),ae.map(({name:n,slug:a})=>t(r.Item,{asChild:!0,children:t(v,{id:`nav-${a}`,href:m(`/${a}`),...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:`navbar item (${a})`})}},className:d("rounded-md px-3 py-2 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white/70 dark:hover:text-white",{"text-black dark:text-white":u===a}),children:n},a)},a))]}),t(r.Viewport,{className:"data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content absolute left-0 top-full flex w-[var(--radix-navigation-menu-viewport-width)] origin-[top_center] justify-start rounded-lg border border-gray-200 bg-white shadow-lg dark:border-white/[0.15] dark:bg-black"})]})]}),t("div",{className:"hidden lg:block",children:k&&Object.keys(k).length>0?t(v,{href:b,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):p?null:s(ie,{children:[t(v,{href:`${b}/login`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"navbar item (login)"})}},className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:`${b}/register`,...e!=="dub.co"&&{onClick:()=>{h.track("Referred from custom domain",{domain:e,medium:"navbar item (signup)"})}},className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}export{S as a,M as b,x as c,ae as d,Re as e,H as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
async function de(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),a=new Error(o);throw a.status=t.status,a}return t.json()}function ee(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(t=ee(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function re(){for(var e,r,t=0,o="",a=arguments.length;t<a;t++)(e=arguments[t])&&(r=ee(e))&&(o&&(o+=" "),o+=r);return o}var V="-";function ue(e){let r=fe(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function a(s){let c=s.split(V);return c[0]===""&&c.length!==1&&c.shift(),ne(c,r)||pe(s)}function n(s,c){let p=t[s]||[];return c&&o[s]?[...p,...o[s]]:p}return{getClassGroupId:a,getConflictingClassGroupIds:n}}function ne(e,r){var s;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),a=o?ne(e.slice(1),o):void 0;if(a)return a;if(r.validators.length===0)return;let n=e.join(V);return(s=r.validators.find(({validator:c})=>c(n)))==null?void 0:s.classGroupId}var te=/^\[(.+)\]$/;function pe(e){if(te.test(e)){let r=te.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function fe(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return ge(Object.entries(e.classGroups),t).forEach(([n,s])=>{j(s,o,n,r)}),o}function j(e,r,t,o){e.forEach(a=>{if(typeof a=="string"){let n=a===""?r:oe(r,a);n.classGroupId=t;return}if(typeof a=="function"){if(me(a)){j(a(o),r,t,o);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([n,s])=>{j(s,oe(r,n),t,o)})})}function oe(e,r){let t=e;return r.split(V).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function me(e){return e.isThemeGetter}function ge(e,r){return r?e.map(([t,o])=>{let a=o.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,c])=>[r+s,c])):n);return[t,a]}):e}function be(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function a(n,s){t.set(n,s),r++,r>e&&(r=0,o=t,t=new Map)}return{get(n){let s=t.get(n);if(s!==void 0)return s;if((s=o.get(n))!==void 0)return a(n,s),s},set(n,s){t.has(n)?t.set(n,s):a(n,s)}}}var se="!";function he(e){let r=e.separator,t=r.length===1,o=r[0],a=r.length;return function(s){let c=[],p=0,m=0,f;for(let g=0;g<s.length;g++){let h=s[g];if(p===0){if(h===o&&(t||s.slice(g,g+a)===r)){c.push(s.slice(m,g)),m=g+a;continue}if(h==="/"){f=g;continue}}h==="["?p++:h==="]"&&p--}let b=c.length===0?s:s.substring(m),y=b.startsWith(se),v=y?b.substring(1):b,E=f&&f>m?f-m:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:E}}}function ye(e){if(e.length<=1)return e;let r=[],t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r}function xe(e){return{cache:be(e.cacheSize),splitModifiers:he(e),...ue(e)}}var we=/\s+/;function ve(e,r){let{splitModifiers:t,getClassGroupId:o,getConflictingClassGroupIds:a}=r,n=new Set;return e.trim().split(we).map(s=>{let{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=t(s),b=o(f?m.substring(0,f):m),y=Boolean(f);if(!b){if(!f)return{isTailwindClass:!1,originalClassName:s};if(b=o(m),!b)return{isTailwindClass:!1,originalClassName:s};y=!1}let v=ye(c).join(":"),E=p?v+se:v;return{isTailwindClass:!0,modifierId:E,classGroupId:b,originalClassName:s,hasPostfixModifier:y}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;let{modifierId:c,classGroupId:p,hasPostfixModifier:m}=s,f=c+p;return n.has(f)?!1:(n.add(f),a(p,m).forEach(b=>n.add(c+b)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function Ae(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=ae(r))&&(o&&(o+=" "),o+=t);return o}function ae(e){if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ae(e[o]))&&(t&&(t+=" "),t+=r);return t}function Se(e,...r){let t,o,a,n=s;function s(p){let m=r.reduce((f,b)=>b(f),e());return t=xe(m),o=t.cache.get,a=t.cache.set,n=c,c(p)}function c(p){let m=o(p);if(m)return m;let f=ve(p,t);return a(p,f),f}return function(){return n(Ae.apply(null,arguments))}}function d(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,_e=/^\d+\/\d+$/,Ie=new Set(["px","full","screen"]),Ee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Me=/\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$/,Pe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ke=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ce=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return M(e)||Ie.has(e)||_e.test(e)}function S(e){return P(e,"length",Ge)}function M(e){return Boolean(e)&&!Number.isNaN(Number(e))}function D(e){return P(e,"number",M)}function R(e){return Boolean(e)&&Number.isInteger(Number(e))}function Re(e){return e.endsWith("%")&&M(e.slice(0,-1))}function i(e){return ie.test(e)}function _(e){return Ee.test(e)}var Te=new Set(["length","size","percentage"]);function Le(e){return P(e,Te,le)}function Ne(e){return P(e,"position",le)}var Oe=new Set(["image","url"]);function ze(e){return P(e,Oe,We)}function De(e){return P(e,"",Ue)}function T(){return!0}function P(e,r,t){let o=ie.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function Ge(e){return Me.test(e)&&!Pe.test(e)}function le(){return!1}function Ue(e){return ke.test(e)}function We(e){return Ce.test(e)}function Be(){let e=d("colors"),r=d("spacing"),t=d("blur"),o=d("brightness"),a=d("borderColor"),n=d("borderRadius"),s=d("borderSpacing"),c=d("borderWidth"),p=d("contrast"),m=d("grayscale"),f=d("hueRotate"),b=d("invert"),y=d("gap"),v=d("gradientColorStops"),E=d("gradientColorStopPositions"),g=d("inset"),h=d("margin"),A=d("opacity"),x=d("padding"),H=d("saturate"),G=d("scale"),K=d("sepia"),$=d("skew"),q=d("space"),J=d("translate"),U=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",i,r],u=()=>[i,r],Y=()=>["",w,S],N=()=>["auto",M,i],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],F=()=>["start","end","center","between","around","evenly","stretch"],k=()=>["","0",i],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[M,D],z=()=>[M,i];return{cacheSize:500,separator:":",theme:{colors:[T],spacing:[w,S],blur:["none","",_,i],brightness:C(),borderColor:[e],borderRadius:["none","","full",_,i],borderSpacing:u(),borderWidth:Y(),contrast:C(),grayscale:k(),hueRotate:z(),invert:k(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Re,S],inset:B(),margin:B(),opacity:C(),padding:u(),saturate:C(),scale:C(),sepia:k(),skew:z(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:[...Q(),i]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,i]}],basis:[{basis:B()}],"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:k()}],shrink:[{shrink:k()}],order:[{order:["first","last","none",R,i]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",R,i]},i]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[R,i]},i]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"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:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],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":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",_,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[T]}],"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",M,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,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":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,S]}],"underline-offset":[{"underline-offset":["auto",w,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:u()}],"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":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),Ne]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Le]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ze]}],"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:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:O()}],"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:["",...O()]}],"outline-offset":[{"outline-offset":[w,i]}],"outline-w":[{outline:[w,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[w,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,De]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",_,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[b]}],saturate:[{saturate:[H]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[R,i]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"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":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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:[w,S,D]}],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 ce=Se(Be);function Fe(...e){return ce(re(e))}var je=["stats","changelog","terms","privacy","abuse"],Ve=[{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"}],He=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];export{de as a,Fe as b,je as c,Ve as d,He as e,l as f,I as g,Ke as h,$e as i,qe as j,L as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as x,f as N}from"./chunk-GHBZGU5R.mjs";import{a as v}from"./chunk-3EYESOVW.mjs";import{a as y}from"./chunk-O7P5ZP3C.mjs";import{a as b}from"./chunk-HPHESWJX.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{a as h}from"./chunk-IPWNIED6.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-5D54PSF2.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(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("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 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 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",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:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",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:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.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:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),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:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("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:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as a}from"./chunk-44WC4EDY.mjs";import{motion as l}from"framer-motion";import{forwardRef as R,useRef as b}from"react";import{useEffect as h,useState as v}from"react";function p(e){let[n,r]=v(),s=([t])=>{r(t)};return h(()=>{let t=e==null?void 0:e.current;if(!t)return;let i=new ResizeObserver(s);return i.observe(t),()=>i.disconnect()},[e]),n}import{jsx as u}from"react/jsx-runtime";var C=R(({width:e=!1,height:n=!1,className:r,transition:s,children:t,...i},f)=>{var m,c;let d=b(null),o=p(d);return u(l.div,{ref:f,className:a("overflow-hidden",r),animate:{width:e?((m=o==null?void 0:o.contentRect)==null?void 0:m.width)??"auto":"auto",height:n?((c=o==null?void 0:o.contentRect)==null?void 0:c.height)??"auto":"auto"},transition:s??{type:"spring",duration:.3},...i,children:u("div",{ref:d,className:a(n&&"h-max",e&&"w-max"),children:t})})});C.displayName="AnimatedSizeContainer";export{p as a,C as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-TORFST2S.mjs";import{jsx as l}from"react/jsx-runtime";function i({className:t}){return l("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e("h-10 w-10 text-black dark:text-white",t),children:l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 64C49.6731 64 64 49.6731 64 32C64 20.1555 57.5648 9.81398 48 4.28103V31.9999V47.9999H40V45.8594C37.6466 47.2208 34.9143 47.9999 32 47.9999C23.1634 47.9999 16 40.8365 16 31.9999C16 23.1634 23.1634 15.9999 32 15.9999C34.9143 15.9999 37.6466 16.7791 40 18.1404V1.00814C37.443 0.350024 34.7624 0 32 0C14.3269 0 0 14.3269 0 32C0 49.6731 14.3269 64 32 64Z",fill:"currentColor"})})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as C}from"./chunk-5D54PSF2.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function V({className:l}){return o("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C("h-6 w-auto text-black dark:text-white",l),children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as t}from"./chunk-ZYBJOEYC.mjs";import{motion as r}from"framer-motion";import{jsx as e,jsxs as c}from"react/jsx-runtime";var n="M6.75 8.25L4 11L1.25 8.25",s="M6.75 3.75L4 1L1.25 3.75";function i({order:o,className:a}){return c("svg",{className:t("w-2 text-gray-950",a),viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e(r.path,{className:t(!o&&"opacity-40"),animate:{d:o==="asc"?s:n},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),e(r.path,{className:"opacity-40",animate:{d:o==="asc"?n:s},stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as t}from"./chunk-5D54PSF2.mjs";import{cva as g}from"class-variance-authority";import{Calendar as p,ChevronDown as l}from"lucide-react";import{forwardRef as d}from"react";import{jsx as r,jsxs as f}from"react/jsx-runtime";var m=g(["group peer flex cursor-pointer appearance-none items-center gap-x-2 truncate rounded-md border px-3 h-10 outline-none transition-all sm:text-sm","bg-white border-gray-200 text-gray-900 placeholder-gray-400 transition-all","disabled:pointer-events-none disabled:bg-gray-100 disabled:text-gray-400","focus-visible:border-gray-500 data-[state=open]:border-gray-500 data-[state=open]:ring-4 data-[state=open]:ring-gray-200"],{variants:{hasError:{true:"ring-2 ring-red-200 border-red-500"}}}),y=d(({className:o,children:e,placeholder:a,hasError:n,...s},i)=>f("button",{ref:i,className:t(m({hasError:n}),o),...s,children:[r(p,{className:t("h-4 w-4 shrink-0 text-gray-400",!!e&&"text-gray-900")}),r("span",{className:"flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-left text-gray-900",children:e||(a?r("span",{className:"text-gray-400",children:a}):null)}),r(l,{className:"h-4 w-4 flex-shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}));y.displayName="DatePicker.Trigger";export{y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as m}from"./chunk-TQ2ZB4CI.mjs";import{i}from"./chunk-TORFST2S.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-400 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{d as t}from"./chunk-ZYBJOEYC.mjs";import{jsx as r}from"react/jsx-runtime";function s({className:o}){return r("svg",{width:"300",height:"300",viewBox:"0 0 300 300",version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t("p-px",o),children:r("path",{stroke:"currentColor",d:"M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"})})}export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as p,d as h}from"./chunk-X7W77BZS.mjs";import{a as f,b as l,f as n}from"./chunk-44WC4EDY.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:void 0,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${void 0}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${void 0}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as Ae,b as ke}from"./chunk-AUBFB4SI.mjs";var de=Ae((tr,ce)=>{var L=1e3,C=L*60,O=C*60,S=O*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?Ke(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*O;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*L;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>=O?Math.round(e/O)+"h":t>=C?Math.round(e/C)+"m":t>=L?Math.round(e/L)+"s":e+"ms"}function Ke(e){var t=Math.abs(e);return t>=S?J(e,t,S,"day"):t>=O?J(e,t,O,"hour"):t>=C?J(e,t,C,"minute"):t>=L?J(e,t,L,"second"):e+" ms"}function J(e,t,r,o){var a=t>=r*1.5;return Math.round(e/r)+" "+o+(a?"s":"")}});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 e};function R(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 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\/\-\p{Emoji}]*$/u),Ie=new RegExp(/^[a-zA-Z0-9\-]+$/);var Le=e=>{if(V(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}};var j=({name:e="Business",monthly:t=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,ai:1e3,api:6e3},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 hover:bg-sky-800 hover:ring-sky-100"},featureTitle:"Everything in Pro, plus:",features:[{text:`${R(o,{full:!0})} new links/mo`},{text:`${R(a)} tracked clicks/mo`},{text:"2-year analytics retention"},{text:`${s} custom domains`},{text:`${l} users`},{text:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{text:`${R(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,ai:10,api:600},colors:{bg:"bg-black",text:"text-black"},cta:{text:"Start for free",href:"https://app.dub.co/register",color:"bg-black hover:bg-gray-800 hover:ring-gray-200"},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:"10 AI credits/mo"},{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,ai:1e3,api:3e3},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 hover:bg-blue-600 hover:ring-blue-100"},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:"Unlimited AI credits",footnote:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{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 hover:bg-violet-700 hover:ring-violet-100"},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"}]}],Ce=I.find(e=>e.name==="Free"),Oe=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 Re=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",Y=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Me=`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.NEXT_PUBLIC_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","chatgpt.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","amazon.fr"],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),He=(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":""}`};var Ye=(e,t)=>!e||e.length<=t?e??null:`${e.slice(0,t-3)}...`;async function Xe(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()}var Ze="https://www.google.com/s2/favicons?sz=64&domain_url=";var Qe=60*60*24*14;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 et(e){let t=rt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;function a(n){let l=n.split(Z);return l[0]===""&&l.length!==1&&l.shift(),ge(l,t)||tt(n)}function s(n,l){let u=r[n]||[];return l&&o[n]?[...u,...o[n]]:u}return{getClassGroupId:a,getConflictingClassGroupIds:s}}function ge(e,t){var n;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ge(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Z);return(n=t.validators.find(({validator:l})=>l(s)))==null?void 0:n.classGroupId}var fe=/^\[(.+)\]$/;function tt(e){if(fe.test(e)){let t=fe.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function rt(e){let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),r).forEach(([s,n])=>{X(n,o,s,t)}),o}function X(e,t,r,o){e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:he(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(ot(a)){X(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,n])=>{X(n,he(t,s),r,o)})})}function he(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 ot(e){return e.isThemeGetter}function st(e,t){return t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,l])=>[t+n,l])):s);return[r,a]}):e}function at(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;function a(s,n){r.set(s,n),t++,t>e&&(t=0,o=r,r=new Map)}return{get(s){let n=r.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return a(s,n),n},set(s,n){r.has(s)?r.set(s,n):a(s,n)}}}var be="!";function nt(e){let t=e.separator,r=t.length===1,o=t[0],a=t.length;return function(n){let l=[],u=0,m=0,p;for(let f=0;f<n.length;f++){let g=n[f];if(u===0){if(g===o&&(r||n.slice(f,f+a)===t)){l.push(n.slice(m,f)),m=f+a;continue}if(g==="/"){p=f;continue}}g==="["?u++:g==="]"&&u--}let h=l.length===0?n:n.substring(m),b=h.startsWith(be),v=b?h.substring(1):h,E=p&&p>m?p-m:void 0;return{modifiers:l,hasImportantModifier:b,baseClassName:v,maybePostfixModifierPosition:E}}}function it(e){if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t}function lt(e){return{cache:at(e.cacheSize),splitModifiers:nt(e),...et(e)}}var ct=/\s+/;function dt(e,t){let{splitModifiers:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=new Set;return e.trim().split(ct).map(n=>{let{modifiers:l,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:p}=r(n),h=o(p?m.substring(0,p):m),b=Boolean(p);if(!h){if(!p)return{isTailwindClass:!1,originalClassName:n};if(h=o(m),!h)return{isTailwindClass:!1,originalClassName:n};b=!1}let v=it(l).join(":"),E=u?v+be:v;return{isTailwindClass:!0,modifierId:E,classGroupId:h,originalClassName:n,hasPostfixModifier:b}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:l,classGroupId:u,hasPostfixModifier:m}=n,p=l+u;return s.has(p)?!1:(s.add(p),a(u,m).forEach(h=>s.add(l+h)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function ut(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}function ye(e){if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r}function pt(e,...t){let r,o,a,s=n;function n(u){let m=t.reduce((p,h)=>h(p),e());return r=lt(m),o=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){let m=o(u);if(m)return m;let p=dt(u,r);return a(u,p),p}return function(){return s(ut.apply(null,arguments))}}function c(e){let t=r=>r[e]||[];return t.isThemeGetter=!0,t}var xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,mt=/^\d+\/\d+$/,ft=new Set(["px","full","screen"]),ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,yt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function x(e){return _(e)||ft.has(e)||mt.test(e)}function A(e){return T(e,"length",_t)}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 vt(e){return e.endsWith("%")&&_(e.slice(0,-1))}function i(e){return xe.test(e)}function k(e){return ht.test(e)}var wt=new Set(["length","size","percentage"]);function At(e){return T(e,wt,ve)}function kt(e){return T(e,"position",ve)}var Et=new Set(["image","url"]);function Pt(e){return T(e,Et,Lt)}function St(e){return T(e,"",It)}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 _t(e){return gt.test(e)&&!bt.test(e)}function ve(){return!1}function It(e){return yt.test(e)}function Lt(e){return xt.test(e)}function Ct(){let e=c("colors"),t=c("spacing"),r=c("blur"),o=c("brightness"),a=c("borderColor"),s=c("borderRadius"),n=c("borderSpacing"),l=c("borderWidth"),u=c("contrast"),m=c("grayscale"),p=c("hueRotate"),h=c("invert"),b=c("gap"),v=c("gradientColorStops"),E=c("gradientColorStopPositions"),f=c("inset"),g=c("margin"),w=c("opacity"),y=c("padding"),Q=c("saturate"),F=c("scale"),ee=c("sepia"),te=c("skew"),re=c("space"),oe=c("translate"),q=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],K=()=>["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"],H=()=>["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:[vt,A],inset:K(),margin:K(),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",M,i]}],basis:[{basis:K()}],"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":[U]}],"col-start-end":[{col:["auto",{span:["full",M,i]},i]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[M,i]},i]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",k,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",_,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,A]}],"underline-offset":[{"underline-offset":["auto",x,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",At]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Pt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[x,i]}],"outline-w":[{outline:[x,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[x,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,St]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":ne()}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[h]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[M,i]}],"translate-x":[{"translate-x":[oe]}],"translate-y":[{"translate-y":[oe]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,A,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var we=pt(Ct);function Ot(...e){return we(me(e))}var Tt=["stats","changelog","terms","privacy","abuse"],Nt=[{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"}],zt=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}];export{Ee as a,R as b,Le as c,De as d,He as e,Ye as f,Xe as g,Ze as h,Ot as i,Tt as j,Nt as k,zt as l};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as x,f as N}from"./chunk-W4EQ25DN.mjs";import{a as v}from"./chunk-3IR6GXKB.mjs";import{a as b}from"./chunk-KJEVFTCG.mjs";import{a as y}from"./chunk-5J4GRBP5.mjs";import{a as h}from"./chunk-2XDU4CN6.mjs";import{a as f}from"./chunk-T4YFARK5.mjs";import{g as u,i as l,k as g,l as p}from"./chunk-3VTQK4AG.mjs";import m from"@vercel/analytics";import C from"next/image";import s from"next/link";import{useParams as T}from"next/navigation";import{useEffect as P,useState as k}from"react";import R from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var n={features:x.map(({shortTitle:a,slug:o})=>({name:a,href:`/${o}`})),product:[{name:"Blog",href:"/blog"},{name:"Brand",href:"/brand"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Help Center",href:"/help"}],compare:p.map(({name:a,slug:o})=>({name:a,href:`/compare/${o}`})),legal:[{name:"Privacy",href:"/privacy"},{name:"Terms",href:"/terms"},{name:"Abuse",href:"/abuse"}],tools:g.map(({name:a,slug:o})=>({name:a,href:`/tools/${o}`}))};function O(){let{domain:a="dub.co"}=T(),o=r=>a==="dub.co"?r:`https://dub.co${r}`;return e("footer",{children:t(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("/"),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:"footer item (logo)"})}},className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(N,{className:"h-8 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 transition-colors group-hover:text-black"})]}),t("a",{href:"https://github.com/dubinc/dub",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:"Github"}),e(f,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),t("a",{href:"https://www.linkedin.com/company/dubinc",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:"LinkedIn"}),e(h,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),t("a",{href:"https://www.youtube.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:"YouTube"}),e(y,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#ff0000]"})]})]}),e($,{})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Features"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.features.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Product"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.product.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Compare"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.compare.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]}),t("div",{children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Legal"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.legal.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:"text-sm font-semibold text-gray-800",children:"Tools"}),e("ul",{role:"list",className:"mt-4 space-y-4",children:n.tools.map(r=>e("li",{children:e(s,{href:o(r.href),...a!=="dub.co"&&{onClick:()=>{m.track("Referred from custom domain",{domain:a,medium:`footer item (${r.name})`})}},className:"text-sm text-gray-500 hover:text-gray-800",children:r.name})},r.name))})]})]})]})]}),e(C,{src:"https://assets.dub.co/footer.png",alt:"Dub Technologies, Inc. Logo",width:1959,height:625,className:"pointer-events-none absolute inset-x-0 bottom-0 z-0"})]})})}function $(){let{data:a}=R("https://status.dub.co/api/v1/summary",u),[o,r]=k("bg-gray-200"),[i,c]=k("Loading status...");return P(()=>{if(!a)return;let{ongoing_incidents:d}=a;if(d.length>0){let{current_worst_impact:w,name:L}=d[0],_=w==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),r(_)}else c("All systems operational"),r("bg-green-500")},[a]),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:l("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",o,i==="Loading status..."&&"animate-none")}),e("div",{className:l("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:i})]})}export{O as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-FG3FQFLG.mjs";import{i as s}from"./chunk-5D54PSF2.mjs";import{cva as L}from"class-variance-authority";import{UploadCloud as V}from"lucide-react";import{useState as F}from"react";import{toast as h}from"sonner";import{Fragment as M,jsx as t,jsxs as c}from"react/jsx-runtime";var d={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"}},z=L("group relative isolate flex aspect-[1200/630] w-full flex-col items-center justify-center overflow-hidden bg-white transition-all hover:bg-gray-50",{variants:{variant:{default:"rounded-md border border-gray-300 shadow-sm",plain:""}},defaultVariants:{variant:"default"}});function J({readFile:N,onChange:r,variant:w,className:D,iconClassName:x,accept:i="any",imageSrc:l,loading:P=!1,clickToUpload:n=!0,showHoverOverlay:R=!0,content:u,maxFileSizeMB:p=0,accessibilityLabel:U="File upload"}){let[g,o]=F(!1),[j,T]=F(null),f=async e=>{let a="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!a)return;if(T(a.name),p>0&&a.size/1024/1024>p){h.error(`File size too big (max ${p} MB)`);return}let m=d[i].types;if(m.length&&!m.includes(a.type)){h.error(d[i].errorMessage??"File type not supported");return}if(N){let y=new FileReader;y.onload=E=>{var v;return r==null?void 0:r({src:(v=E.target)==null?void 0:v.result,file:a})},y.readAsDataURL(a);return}r==null||r({file:a})};return c("label",{className:s(z({variant:w}),n&&"cursor-pointer",D),children:[P&&t("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:t(b,{})}),t("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),o(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),f(e),o(!1)}}),c("div",{className:s("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",g&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",l?s("opacity-0",R&&"group-hover:opacity-100"):"group-hover:bg-gray-50"),children:[t(V,{className:s("h-7 w-7 text-gray-500 transition-all duration-75 group-hover:scale-110 group-active:scale-95",g?"scale-110":"scale-100",x)}),u!==null&&t("div",{className:"mt-2 text-center text-sm text-gray-500",children:u??t(M,{children:c("p",{children:["Drag and drop ",n&&"or click"," to upload."]})})}),t("span",{className:"sr-only",children:U})]}),l&&t("img",{src:l,alt:"Preview",className:"h-full w-full rounded-[inherit] object-cover"}),n&&t("div",{className:"sr-only mt-1 flex shadow-sm",children:t("input",{type:"file",accept:d[i].types.join(","),onChange:f},j)})]})}export{J as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as f}from"./chunk-YPWVIAZQ.mjs";import{i as c}from"./chunk-5D54PSF2.mjs";import{Command as a}from"cmdk";import{Lock as x}from"lucide-react";import{jsx as s,jsxs as R}from"react/jsx-runtime";var w=({presets:g,onSelect:p,currentValue:r})=>{let P=e=>"dateRange"in e,D=e=>"date"in e,o=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),b=(e,t)=>{let n=e.from,l=t.from,i=!1;n&&l&&o(n,l)&&(i=!0);let m=e.to,d=t.to,u=!1;return m&&d&&o(m,d)&&(u=!0),i&&u},y=e=>{if(P(e)){let t=r;return t&&b(t,e.dateRange)}else if(D(e)){let t=r;return t&&o(t,e.date)}return!1};return s(a,{className:"w-full rounded ring-gray-200 ring-offset-2 focus:outline-none",tabIndex:0,autoFocus:!0,loop:!0,children:s(a.List,{className:"[&>*]:flex [&>*]:w-full [&>*]:items-start [&>*]:gap-x-2 [&>*]:gap-y-0.5 [&>*]:sm:flex-col",children:g.map((e,t)=>R(a.Item,{disabled:e.requiresUpgrade,onSelect:()=>p(e),title:e.label,value:e.id,className:c("relative flex cursor-pointer items-center justify-between overflow-hidden text-ellipsis whitespace-nowrap rounded border border-gray-200","px-2.5 py-1.5 text-left text-base text-gray-700 shadow-sm outline-none sm:w-full sm:border-none sm:py-2 sm:text-sm sm:shadow-none","disabled:pointer-events-none disabled:opacity-50","sm:data-[selected=true]:bg-gray-100",y(e)&&"font-semibold text-gray-800"),children:[s("span",{children:e.label}),e.requiresUpgrade&&s(x,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.requiresUpgrade&&e.tooltipContent&&s(f,{side:"bottom",content:e.tooltipContent,children:s("div",{className:"absolute inset-0 cursor-not-allowed"})})]},t))})})};w.displayName="DatePicker.Presets";export{w as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as C}from"./chunk-ZYBJOEYC.mjs";import{jsx as l,jsxs as t}from"react/jsx-runtime";function i({className:r}){return t("svg",{"aria-hidden":"true",className:C("h-4 w-4 animate-spin fill-gray-600 text-gray-200",r),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),l("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}export{i as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as a}from"./chunk-5D54PSF2.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{i as e}from"./chunk-TORFST2S.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{b as p,d as h}from"./chunk-PP3BRPQA.mjs";import{b as f,d as l,h as n}from"./chunk-ZYBJOEYC.mjs";import{ChevronDown as y,Menu as N,X as w}from"lucide-react";import o from"next/link";import{useParams as v}from"next/navigation";import{useEffect as x,useState as u}from"react";import L from"swr";import{Fragment as z,jsx as e,jsxs as t}from"react/jsx-runtime";function D({theme:b="light"}){let{domain:r="dub.co"}=v(),[a,d]=u(!1),[c,g]=u(!1);x(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:m}=L(r==="dub.co"&&"/api/auth/session",f,{dedupingInterval:6e4});return t("div",{className:l(b==="dark"&&"dark"),children:[e("button",{onClick:()=>d(!a),className:l("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 dark:hover:bg-white/20 dark:active:bg-white/30 lg:hidden",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(N,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:l("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 dark:bg-black dark:text-white/70 lg:hidden",a&&"block"),children:t("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[t("li",{className:"py-3",children:[t("button",{className:"flex w-full justify-between",onClick:()=>g(!c),children:[e("p",{className:"font-semibold",children:"Features"}),e(y,{className:l("h-5 w-5 text-gray-500 transition-all dark:text-white/50",c&&"rotate-180")})]}),c&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:p.map(({slug:i,icon:s,shortTitle:k})=>t(o,{href:r==="dub.co"?`/${i}`:`https://dub.co/${i}`,onClick:()=>d(!1),className:"flex w-full space-x-2",children:[e(s,{className:"h-5 w-5 text-gray-500 dark:text-white/80"}),e("span",{className:"text-sm",children:k})]},i))})]}),h.map(({name:i,slug:s})=>e("li",{className:"py-3",children:e(o,{href:r==="dub.co"?`/${s}`:`https://dub.co/${s}`,onClick:()=>d(!1),className:"flex w-full font-semibold capitalize",children:i})},s)),m&&Object.keys(m).length>0?e("li",{className:"py-3",children:e(o,{href:void 0,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):t(z,{children:[e("li",{className:"py-3",children:e(o,{href:`${void 0}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(o,{href:`${void 0}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}export{D as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as l}from"./chunk-OOURHQIR.mjs";import{h as e,i as s}from"./chunk-5D54PSF2.mjs";import{Globe as o}from"lucide-react";import{jsx as m}from"react/jsx-runtime";function f({apexDomain:r,className:t}){return r?m(l,{src:`${e}${r}`,alt:r,className:s("h-8 w-8 rounded-full sm:h-10 sm:w-10",t),width:20,height:20}):m("div",{className:s("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",t),children:m(o,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{f as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as t}from"./chunk-ZYBJOEYC.mjs";import{cva as o}from"class-variance-authority";import{jsx as n}from"react/jsx-runtime";var i=o("max-w-fit rounded-full border px-2 py-px text-xs font-medium capitalize whitespace-nowrap",{variants:{variant:{default:"border-gray-400 text-gray-500",violet:"border-violet-600 bg-violet-600 text-white",blue:"border-blue-500 bg-blue-500 text-white",sky:"border-sky-900 bg-sky-900 text-white",black:"border-black bg-black text-white",gray:"border-gray-200 bg-gray-100 text-gray-800",neutral:"border-gray-400 text-gray-500",rainbow:"bg-gradient-to-r from-violet-600 to-pink-600 text-white border-transparent"}},defaultVariants:{variant:"neutral"}});function g({className:e,variant:r,...a}){return n("span",{className:t(i({variant:r}),e),...a})}export{i as a,g as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as e}from"./chunk-5D54PSF2.mjs";import{jsx as n}from"react/jsx-runtime";function l({user:a={},className:i}){return a?n("img",{alt:`Avatar for ${(a==null?void 0:a.name)||(a==null?void 0:a.email)}`,referrerPolicy:"no-referrer",src:(a==null?void 0:a.image)||`https://api.dicebear.com/7.x/micah/svg?seed=${a==null?void 0:a.email}`,className:e("h-10 w-10 rounded-full border border-gray-300",i),draggable:!1}):n("div",{className:e("h-10 w-10 animate-pulse rounded-full border border-gray-300 bg-gray-100",i)})}function d({id:a}){return n("img",{src:`https://api.dicebear.com/7.x/shapes/svg?seed=${a}`,alt:"avatar",className:"h-10 w-10 rounded-full",draggable:!1})}export{l as a,d as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{i as o}from"./chunk-TORFST2S.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};
|