@dub/ui 0.1.61 → 0.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.mjs +1 -1
- package/dist/alert.mjs +1 -1
- package/dist/animated-size-container.d.ts +12 -12
- package/dist/animated-size-container.mjs +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.mjs +1 -1
- package/dist/blur-image.mjs +1 -1
- package/dist/button.mjs +1 -1
- package/dist/card-list/card-list-card.mjs +1 -1
- package/dist/card-list/card-list.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-2A2X4MB5.mjs +2 -0
- package/dist/chunk-2CAOXWMS.mjs +2 -0
- package/dist/chunk-2DRA56DT.mjs +2 -0
- package/dist/chunk-2NOS3JIJ.mjs +2 -0
- package/dist/chunk-2NYHNUVN.mjs +2 -0
- package/dist/chunk-3FCJMXWB.mjs +2 -0
- package/dist/chunk-3QTUO6Z4.mjs +2 -0
- package/dist/chunk-3VZ7G4KP.mjs +2 -0
- package/dist/chunk-46A5DZU6.mjs +2 -0
- package/dist/chunk-47N2EIBK.mjs +2 -0
- package/dist/chunk-4MPUVSLU.mjs +2 -0
- package/dist/chunk-4MWFGGKN.mjs +2 -0
- package/dist/chunk-4YPRE64N.mjs +2 -0
- package/dist/chunk-552UU7TH.mjs +2 -0
- package/dist/chunk-57P2OXOS.mjs +2 -0
- package/dist/chunk-5BZ3GYDV.mjs +2 -0
- package/dist/chunk-5C6YSGD3.mjs +2 -0
- package/dist/chunk-5G6WIETO.mjs +2 -0
- package/dist/chunk-5IQU72QI.mjs +6 -0
- package/dist/chunk-5RTA7MHL.mjs +2 -0
- package/dist/chunk-5WETDUAN.mjs +2 -0
- package/dist/chunk-6VWFJYKA.mjs +2 -0
- package/dist/chunk-7BGLUDW3.mjs +2 -0
- package/dist/chunk-7OBFRYL5.mjs +2 -0
- package/dist/chunk-7Q2HODLD.mjs +2 -0
- package/dist/chunk-A72DLXZO.mjs +2 -0
- package/dist/chunk-ACUKFV6N.mjs +2 -0
- package/dist/chunk-ASNLYQOY.mjs +2 -0
- package/dist/chunk-ATMR5VFQ.mjs +2 -0
- package/dist/chunk-B4OOKBZ6.mjs +2 -0
- package/dist/chunk-BH5NOYE2.mjs +2 -0
- package/dist/chunk-BPJY23XC.mjs +2 -0
- package/dist/chunk-BY4HF73L.mjs +2 -0
- package/dist/chunk-C3SBXJWC.mjs +2 -0
- package/dist/chunk-CEYYIVSB.mjs +2 -0
- package/dist/chunk-CS5PVLJB.mjs +2 -0
- package/dist/chunk-CTXDEINA.mjs +2 -0
- package/dist/chunk-CYOF3O7Y.mjs +2 -0
- package/dist/chunk-D2UHRZEN.mjs +2 -0
- package/dist/chunk-DAONAYTS.mjs +2 -0
- package/dist/chunk-DTC7LNMK.mjs +2 -0
- package/dist/chunk-E32PQ5ZD.mjs +2 -0
- package/dist/chunk-E3MKT7TI.mjs +2 -0
- package/dist/chunk-E7MWJVCU.mjs +2 -0
- package/dist/chunk-EIWAAKMC.mjs +6 -0
- package/dist/chunk-ENDDSOPU.mjs +2 -0
- package/dist/chunk-EZVC74VR.mjs +2 -0
- package/dist/chunk-FI44IJXT.mjs +6 -0
- package/dist/chunk-FOZBHJCU.mjs +2 -0
- package/dist/chunk-FUQA3OXP.mjs +2 -0
- package/dist/chunk-G5SMGCJN.mjs +2 -0
- package/dist/chunk-GNEZCVAY.mjs +2 -0
- package/dist/chunk-GPFRZDSO.mjs +2 -0
- package/dist/chunk-GW2XXAWH.mjs +2 -0
- package/dist/chunk-GWREO5QF.mjs +2 -0
- package/dist/chunk-H2SAZ2A2.mjs +2 -0
- package/dist/chunk-HCTA37JX.mjs +2 -0
- package/dist/chunk-HFYWICNR.mjs +2 -0
- package/dist/chunk-HJEO7QP3.mjs +2 -0
- package/dist/chunk-HNNP24NU.mjs +2 -0
- package/dist/chunk-HRFFDN6H.mjs +2 -0
- package/dist/chunk-I4EAKRK6.mjs +2 -0
- package/dist/chunk-I6YAMCPZ.mjs +2 -0
- package/dist/chunk-IAM6JPPG.mjs +2 -0
- package/dist/chunk-IAYWE7X4.mjs +2 -0
- package/dist/chunk-IMW224AO.mjs +2 -0
- package/dist/chunk-INC2JBOL.mjs +2 -0
- package/dist/chunk-J25LNEST.mjs +2 -0
- package/dist/chunk-J2AQIYSO.mjs +2 -0
- package/dist/chunk-JBTAZKBR.mjs +2 -0
- package/dist/chunk-JGNSDUMX.mjs +2 -0
- package/dist/chunk-JIS6PZYL.mjs +2 -0
- package/dist/chunk-K6HTCQMN.mjs +2 -0
- package/dist/chunk-KDAFGTAR.mjs +2 -0
- package/dist/chunk-KHNRROPC.mjs +2 -0
- package/dist/chunk-KJBZU2OD.mjs +2 -0
- package/dist/chunk-KXMJQCY2.mjs +2 -0
- package/dist/chunk-LN32TCKT.mjs +2 -0
- package/dist/chunk-LNYDOSX4.mjs +2 -0
- package/dist/chunk-LWAS2GGO.mjs +2 -0
- package/dist/chunk-M2R2IDDR.mjs +2 -0
- package/dist/chunk-M3YAVRL2.mjs +2 -0
- package/dist/chunk-MRVUVJQT.mjs +2 -0
- package/dist/chunk-MVVAIFVO.mjs +2 -0
- package/dist/chunk-N2VQT6R5.mjs +2 -0
- package/dist/chunk-NFLSXDKG.mjs +2 -0
- package/dist/chunk-NQZ2IDBB.mjs +2 -0
- package/dist/chunk-NRJN7JBT.mjs +2 -0
- package/dist/chunk-NVIKWM4W.mjs +2 -0
- package/dist/chunk-O43YWKJJ.mjs +2 -0
- package/dist/chunk-OC6WDPQV.mjs +2 -0
- package/dist/chunk-OO3OLQL3.mjs +2 -0
- package/dist/chunk-OQTNTLXZ.mjs +2 -0
- package/dist/chunk-OVTEJWQH.mjs +2 -0
- package/dist/chunk-OZV4ZCJU.mjs +2 -0
- package/dist/chunk-P5PWSY4R.mjs +2 -0
- package/dist/chunk-PC56SYLH.mjs +2 -0
- package/dist/chunk-PKXJC6FP.mjs +2 -0
- package/dist/chunk-QB3KQUFM.mjs +2 -0
- package/dist/chunk-QIIP4BMG.mjs +2 -0
- package/dist/chunk-QKHH4NOF.mjs +2 -0
- package/dist/chunk-QKXETO5X.mjs +2 -0
- package/dist/chunk-QM7CSCEI.mjs +2 -0
- package/dist/chunk-QNYWFC5O.mjs +2 -0
- package/dist/chunk-QR2P74OO.mjs +6 -0
- package/dist/chunk-R5EYZEVB.mjs +2 -0
- package/dist/chunk-R724V2H3.mjs +2 -0
- package/dist/chunk-S37ONGSO.mjs +2 -0
- package/dist/chunk-S4MR3WH3.mjs +2 -0
- package/dist/chunk-SBDB4H5O.mjs +2 -0
- package/dist/chunk-SDI34LGV.mjs +2 -0
- package/dist/chunk-SEG6PNEP.mjs +2 -0
- package/dist/chunk-SMCKDKWN.mjs +2 -0
- package/dist/chunk-SP4QXCKS.mjs +2 -0
- package/dist/chunk-SVBY2M2W.mjs +2 -0
- package/dist/chunk-T5QWKL7V.mjs +2 -0
- package/dist/chunk-T7XA6MR4.mjs +2 -0
- package/dist/chunk-TDJUF7PC.mjs +2 -0
- package/dist/chunk-TLII2EK5.mjs +2 -0
- package/dist/chunk-U3WMNJPM.mjs +2 -0
- package/dist/chunk-U7AGBMUO.mjs +2 -0
- package/dist/chunk-UCMEBPMB.mjs +2 -0
- package/dist/chunk-UQEULOV7.mjs +2 -0
- package/dist/chunk-URRAM5KR.mjs +2 -0
- package/dist/chunk-UWLIGCNP.mjs +6 -0
- package/dist/chunk-VJYLOASD.mjs +2 -0
- package/dist/chunk-W6665XFV.mjs +2 -0
- package/dist/chunk-W72IS3NW.mjs +2 -0
- package/dist/chunk-WED4I3UR.mjs +2 -0
- package/dist/chunk-WOBSEVUY.mjs +2 -0
- package/dist/chunk-X6DMMDWV.mjs +2 -0
- package/dist/chunk-XH4WILJG.mjs +2 -0
- package/dist/chunk-XJPPELGD.mjs +2 -0
- package/dist/chunk-XKNDCHBO.mjs +2 -0
- package/dist/chunk-XL4TS4DD.mjs +2 -0
- package/dist/chunk-XQG6PFDK.mjs +2 -0
- package/dist/chunk-XQUDRC36.mjs +42 -0
- package/dist/chunk-XRBBJHLW.mjs +6 -0
- package/dist/chunk-XUGILZBT.mjs +2 -0
- package/dist/chunk-YE6TSUI4.mjs +2 -0
- package/dist/chunk-YIKV7JI7.mjs +2 -0
- package/dist/chunk-YIMIS5FP.mjs +2 -0
- package/dist/chunk-YJYQLDPX.mjs +2 -0
- package/dist/chunk-YUEHTPEG.mjs +2 -0
- package/dist/chunk-YXIB5ABY.mjs +42 -0
- package/dist/chunk-ZCTVXZVQ.mjs +2 -0
- package/dist/chunk-ZOVR7S52.mjs +2 -0
- package/dist/chunk-ZTJNXM3D.mjs +2 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/composite-logo.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/copy-text.mjs +1 -1
- package/dist/counting-numbers.mjs +1 -1
- package/dist/date-picker/calendar.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/date-picker/trigger.mjs +1 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-list.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/grid.mjs +1 -1
- package/dist/hooks/use-keyboard-shortcut.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/default-domains/amazon.mjs +1 -1
- package/dist/icons/default-domains/chatgpt.mjs +1 -1
- package/dist/icons/default-domains/figma.mjs +1 -1
- package/dist/icons/default-domains/github-enhanced.mjs +1 -1
- package/dist/icons/default-domains/google-enhanced.mjs +1 -1
- package/dist/icons/default-domains/spotify.mjs +1 -1
- package/dist/icons/expanding-arrow.mjs +1 -1
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/linkedin.mjs +1 -1
- package/dist/icons/loading-circle.mjs +1 -1
- package/dist/icons/loading-spinner.mjs +1 -1
- package/dist/icons/sort-order.mjs +1 -1
- package/dist/icons/twitter.mjs +1 -1
- package/dist/icons/youtube.mjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +1 -1
- package/dist/input-select.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/label.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/max-width-wrapper.mjs +1 -1
- package/dist/modal.mjs +1 -1
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-logo.mjs +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-bar.mjs +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/sheet.mjs +1 -1
- package/dist/shimmer-dots.mjs +1 -1
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/tab-select.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/dist/wordmark.mjs +1 -1
- package/package.json +1 -1
package/dist/accordion.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d}from"./chunk-
|
|
2
|
+
import{a,b,c,d}from"./chunk-WOBSEVUY.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Accordion,d as AccordionContent,b as AccordionItem,c as AccordionTrigger};
|
package/dist/alert.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-INC2JBOL.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Alert,c as AlertDescription,b as AlertTitle};
|
|
@@ -10,6 +10,10 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
10
10
|
} & {
|
|
11
11
|
children?: react.ReactNode;
|
|
12
12
|
} & Omit<Omit<{
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
16
|
+
onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
13
17
|
slot?: string | undefined;
|
|
14
18
|
title?: string | undefined;
|
|
15
19
|
defaultChecked?: boolean | undefined;
|
|
@@ -18,13 +22,10 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
18
22
|
suppressHydrationWarning?: boolean | undefined;
|
|
19
23
|
accessKey?: string | undefined;
|
|
20
24
|
autoFocus?: boolean | undefined;
|
|
21
|
-
|
|
22
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
25
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
23
26
|
contextMenu?: string | undefined;
|
|
24
27
|
dir?: string | undefined;
|
|
25
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
26
28
|
hidden?: boolean | undefined;
|
|
27
|
-
id?: string | undefined;
|
|
28
29
|
lang?: string | undefined;
|
|
29
30
|
nonce?: string | undefined;
|
|
30
31
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -55,12 +56,12 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
55
56
|
results?: number | undefined;
|
|
56
57
|
security?: string | undefined;
|
|
57
58
|
unselectable?: "on" | "off" | undefined;
|
|
58
|
-
inputMode?: "
|
|
59
|
+
inputMode?: "email" | "url" | "search" | "text" | "none" | "tel" | "numeric" | "decimal" | undefined;
|
|
59
60
|
is?: string | undefined;
|
|
60
61
|
tw?: string | undefined;
|
|
61
62
|
"aria-activedescendant"?: string | undefined;
|
|
62
63
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
"aria-autocomplete"?: "
|
|
64
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
64
65
|
"aria-braillelabel"?: string | undefined;
|
|
65
66
|
"aria-brailleroledescription"?: string | undefined;
|
|
66
67
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -70,17 +71,17 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
70
71
|
"aria-colindextext"?: string | undefined;
|
|
71
72
|
"aria-colspan"?: number | undefined;
|
|
72
73
|
"aria-controls"?: string | undefined;
|
|
73
|
-
"aria-current"?: boolean | "
|
|
74
|
+
"aria-current"?: boolean | "true" | "false" | "time" | "page" | "step" | "location" | "date" | undefined;
|
|
74
75
|
"aria-describedby"?: string | undefined;
|
|
75
76
|
"aria-description"?: string | undefined;
|
|
76
77
|
"aria-details"?: string | undefined;
|
|
77
78
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
78
|
-
"aria-dropeffect"?: "
|
|
79
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
79
80
|
"aria-errormessage"?: string | undefined;
|
|
80
81
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
81
82
|
"aria-flowto"?: string | undefined;
|
|
82
83
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
"aria-haspopup"?: boolean | "
|
|
84
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "menu" | "grid" | "listbox" | "tree" | undefined;
|
|
84
85
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
85
86
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
86
87
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -97,7 +98,7 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
97
98
|
"aria-posinset"?: number | undefined;
|
|
98
99
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
99
100
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
100
|
-
"aria-relevant"?: "
|
|
101
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
101
102
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
102
103
|
"aria-roledescription"?: string | undefined;
|
|
103
104
|
"aria-rowcount"?: number | undefined;
|
|
@@ -144,7 +145,6 @@ declare const AnimatedSizeContainer: react.ForwardRefExoticComponent<{
|
|
|
144
145
|
onInvalidCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
145
146
|
onLoad?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
146
147
|
onLoadCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
147
|
-
onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
148
148
|
onErrorCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
149
149
|
onKeyDown?: react.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
150
150
|
onKeyDownCapture?: react.KeyboardEventHandler<HTMLDivElement> | 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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-7Q2HODLD.mjs";import"./chunk-7TBGFJM2.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as AnimatedSizeContainer};
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c}from"./chunk-
|
|
2
|
+
import{a,b,c}from"./chunk-BPJY23XC.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Avatar,c as TokenAvatar,a as getUserAvatarUrl};
|
package/dist/badge.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "black" | "blue" | "gray" | "violet" | "sky" | "neutral" | "rainbow" | null | undefined;
|
|
7
7
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
8
8
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
9
9
|
}
|
package/dist/badge.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-5RTA7MHL.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Badge,a as badgeVariants};
|
package/dist/blur-image.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-SMCKDKWN.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as BlurImage};
|
package/dist/button.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{j as a,k as b}from"./chunk-
|
|
2
|
+
import{j as a,k as b}from"./chunk-S37ONGSO.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-BQ3B4MQI.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-EUTTYXT5.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-JGNSDUMX.mjs";import"./chunk-ZTJNXM3D.mjs";import"./chunk-ZOVR7S52.mjs";import"./chunk-X6DMMDWV.mjs";import"./chunk-INQSSLYX.mjs";import"./chunk-EX6WLDZE.mjs";import"./chunk-2COCR43F.mjs";import"./chunk-IODGUY4G.mjs";import"./chunk-KCK3HMV3.mjs";import"./chunk-URNITXJC.mjs";import"./chunk-TDJUF7PC.mjs";import"./chunk-YIMIS5FP.mjs";import"./chunk-PDSUXFDU.mjs";import"./chunk-E6VJQMTO.mjs";import"./chunk-PKXJC6FP.mjs";import"./chunk-KUT7JPA7.mjs";import"./chunk-KYMBX7DZ.mjs";import"./chunk-2LBJI2KO.mjs";import"./chunk-TNAH7N5Q.mjs";import"./chunk-HFYWICNR.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DMUERTF2.mjs";import"./chunk-SVBY2M2W.mjs";import"./chunk-JIS6PZYL.mjs";import"./chunk-CUYZMDRN.mjs";import"./chunk-ACUKFV6N.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-PRJVDP45.mjs";import"./chunk-NPWONPKN.mjs";import"./chunk-ZOMZCD5I.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-T5QWKL7V.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-ALEYOCBW.mjs";import"./chunk-ZJICX3BL.mjs";import"./chunk-HJMQR6M2.mjs";import"./chunk-YIKV7JI7.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-5RTA7MHL.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{b as Button,a as buttonVariants};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"../chunk-
|
|
2
|
+
import{a,b}from"../chunk-ASNLYQOY.mjs";import"../chunk-K6HTCQMN.mjs";import"../chunk-5BZ3GYDV.mjs";import"../chunk-AUBFB4SI.mjs";export{a as CardContext,b as CardListCard};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b}from"../chunk-
|
|
2
|
+
import{a,b}from"../chunk-K6HTCQMN.mjs";import"../chunk-5BZ3GYDV.mjs";import"../chunk-AUBFB4SI.mjs";export{b as CardList,a as CardListContext};
|
package/dist/carousel.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i}from"./chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i}from"./chunk-5G6WIETO.mjs";import"./chunk-S37ONGSO.mjs";import"./chunk-RS2DK25U.mjs";import"./chunk-OVTAY7FU.mjs";import"./chunk-6JPO26GL.mjs";import"./chunk-FW3IXMVC.mjs";import"./chunk-TMFXOLAX.mjs";import"./chunk-XCO6TYE2.mjs";import"./chunk-H2RARDXL.mjs";import"./chunk-XN35HHUZ.mjs";import"./chunk-IQZRESCY.mjs";import"./chunk-32C65ISH.mjs";import"./chunk-REMU6JDP.mjs";import"./chunk-6HFOWUNK.mjs";import"./chunk-IOEALVFO.mjs";import"./chunk-RB2WIZ7A.mjs";import"./chunk-PMCEI57T.mjs";import"./chunk-ODZV737U.mjs";import"./chunk-JFSNPBO7.mjs";import"./chunk-XCEWXSTL.mjs";import"./chunk-42Y3WP6A.mjs";import"./chunk-PFE7XPKG.mjs";import"./chunk-BOPNDXYJ.mjs";import"./chunk-TDNQCEQH.mjs";import"./chunk-HBXAUCXR.mjs";import"./chunk-IOYSFSEC.mjs";import"./chunk-C27HVKJD.mjs";import"./chunk-4KAIJ2PN.mjs";import"./chunk-PFEGGWM6.mjs";import"./chunk-JGYE5FTZ.mjs";import"./chunk-6AQAUU4O.mjs";import"./chunk-U4QIRPVU.mjs";import"./chunk-D7SRRREC.mjs";import"./chunk-VETEWFVX.mjs";import"./chunk-Z33FU5KI.mjs";import"./chunk-GATV5MAA.mjs";import"./chunk-WMTXO7RT.mjs";import"./chunk-EL3BJ5GH.mjs";import"./chunk-LFGWL3ID.mjs";import"./chunk-DDH3RGOS.mjs";import"./chunk-T3ITI5FJ.mjs";import"./chunk-O2Q5X4BD.mjs";import"./chunk-SZYWGXLX.mjs";import"./chunk-VX7JFYOR.mjs";import"./chunk-XVZSZKJJ.mjs";import"./chunk-XBFKTXNL.mjs";import"./chunk-CZSSD6PV.mjs";import"./chunk-SBK5CRMY.mjs";import"./chunk-2UZEHBDA.mjs";import"./chunk-FY7WB6S2.mjs";import"./chunk-4QV6SMAW.mjs";import"./chunk-RKUUDTHF.mjs";import"./chunk-LGBCPCZI.mjs";import"./chunk-RVNLURMM.mjs";import"./chunk-6C56DZRQ.mjs";import"./chunk-3IVWKAUU.mjs";import"./chunk-JMQAFRCL.mjs";import"./chunk-DJJD7VHE.mjs";import"./chunk-QC6GZ7KR.mjs";import"./chunk-PXGRN26D.mjs";import"./chunk-QOZBRSG3.mjs";import"./chunk-JBURS7BX.mjs";import"./chunk-BOCPUR5Z.mjs";import"./chunk-RAPTAKTT.mjs";import"./chunk-R27OFGXD.mjs";import"./chunk-GHXIGUPQ.mjs";import"./chunk-3W34NPBH.mjs";import"./chunk-GM7MJ5YV.mjs";import"./chunk-FGMEH6RM.mjs";import"./chunk-2LH7TKKI.mjs";import"./chunk-GLJR2QX5.mjs";import"./chunk-IORJDEOJ.mjs";import"./chunk-PT4MR4NI.mjs";import"./chunk-BPQSDPGU.mjs";import"./chunk-PGPTYK4W.mjs";import"./chunk-7NSJS37T.mjs";import"./chunk-TBQBNOUS.mjs";import"./chunk-QZR75WPQ.mjs";import"./chunk-HFXHAVJK.mjs";import"./chunk-DWACNU5E.mjs";import"./chunk-VHJB3C2A.mjs";import"./chunk-QDGGHFAX.mjs";import"./chunk-7JOFCAZW.mjs";import"./chunk-YA7GX4GF.mjs";import"./chunk-YIQYPU22.mjs";import"./chunk-BQ3B4MQI.mjs";import"./chunk-OUWJF64C.mjs";import"./chunk-B2EPEHHE.mjs";import"./chunk-IGIB6XZB.mjs";import"./chunk-GYE7FFDN.mjs";import"./chunk-UUJYTAK4.mjs";import"./chunk-ZHXYP44Q.mjs";import"./chunk-PFLLM2JW.mjs";import"./chunk-GUQEBYBS.mjs";import"./chunk-2AVTXLJA.mjs";import"./chunk-G44IVXAF.mjs";import"./chunk-3KFNNXJ6.mjs";import"./chunk-LPV7TLRR.mjs";import"./chunk-JW75YDRU.mjs";import"./chunk-JOLDVN3E.mjs";import"./chunk-IHTRL6TU.mjs";import"./chunk-GV2NLM3E.mjs";import"./chunk-76AGPMGM.mjs";import"./chunk-3YI5TNDO.mjs";import"./chunk-2W2M7KTU.mjs";import"./chunk-PJI4TXKO.mjs";import"./chunk-PI7GNHXR.mjs";import"./chunk-HYPLE4VW.mjs";import"./chunk-CPSHJRFA.mjs";import"./chunk-EARKUZEZ.mjs";import"./chunk-HMVRLHWG.mjs";import"./chunk-X6BT5NYY.mjs";import"./chunk-46N6G2J3.mjs";import"./chunk-36GFRX4D.mjs";import"./chunk-EUTTYXT5.mjs";import"./chunk-HIRKF4HX.mjs";import"./chunk-O5ED4ULH.mjs";import"./chunk-V7RF4LCH.mjs";import"./chunk-KDNSFAET.mjs";import"./chunk-JGNSDUMX.mjs";import"./chunk-ZTJNXM3D.mjs";import"./chunk-ZOVR7S52.mjs";import"./chunk-X6DMMDWV.mjs";import"./chunk-INQSSLYX.mjs";import"./chunk-EX6WLDZE.mjs";import"./chunk-2COCR43F.mjs";import"./chunk-IODGUY4G.mjs";import"./chunk-KCK3HMV3.mjs";import"./chunk-URNITXJC.mjs";import"./chunk-TDJUF7PC.mjs";import"./chunk-YIMIS5FP.mjs";import"./chunk-PDSUXFDU.mjs";import"./chunk-E6VJQMTO.mjs";import"./chunk-PKXJC6FP.mjs";import"./chunk-KUT7JPA7.mjs";import"./chunk-KYMBX7DZ.mjs";import"./chunk-2LBJI2KO.mjs";import"./chunk-TNAH7N5Q.mjs";import"./chunk-HFYWICNR.mjs";import"./chunk-EHYVEIOL.mjs";import"./chunk-DMUERTF2.mjs";import"./chunk-SVBY2M2W.mjs";import"./chunk-JIS6PZYL.mjs";import"./chunk-CUYZMDRN.mjs";import"./chunk-ACUKFV6N.mjs";import"./chunk-YURUGH4S.mjs";import"./chunk-2TGXECZQ.mjs";import"./chunk-PRJVDP45.mjs";import"./chunk-NPWONPKN.mjs";import"./chunk-ZOMZCD5I.mjs";import"./chunk-BKZ6TNZC.mjs";import"./chunk-T5QWKL7V.mjs";import"./chunk-MURAUI3W.mjs";import"./chunk-ALEYOCBW.mjs";import"./chunk-ZJICX3BL.mjs";import"./chunk-HJMQR6M2.mjs";import"./chunk-YIKV7JI7.mjs";import"./chunk-XSZV33MB.mjs";import"./chunk-5RTA7MHL.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as AUTOPLAY_DEFAULT_DELAY,d as Carousel,e as CarouselContent,f as CarouselItem,i as CarouselNavBar,h as CarouselNext,g as CarouselPrevious,b as useCarousel,c as useCarouselActiveIndex};
|
package/dist/checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client"
|
|
2
|
-
import{a}from"./chunk-
|
|
2
|
+
import{a}from"./chunk-I6YAMCPZ.mjs";import"./chunk-5BZ3GYDV.mjs";import"./chunk-AUBFB4SI.mjs";export{a as Checkbox};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{p as a}from"./chunk-5BZ3GYDV.mjs";import*as e from"@radix-ui/react-dialog";import{X as l}from"lucide-react";import*as s from"react";import{jsx as o,jsxs as n}from"react/jsx-runtime";var R=e.Root,y=e.Trigger,g=e.Close,c=e.Portal,h=s.forwardRef(({className:t,children:i,...r},m)=>o(c,{children:n(e.Content,{ref:m,className:a("fixed inset-y-0 right-0 z-50 h-full w-3/4 gap-4 border-l border-gray-200 bg-white p-6 shadow-xl transition ease-in-out sm:max-w-sm","data-[state=closed]:animate-slide-out-to-right data-[state=open]:animate-slide-in-from-right data-[state=closed]:duration-300 data-[state=open]:duration-500",t),...r,children:[n(e.Close,{className:"absolute right-4 top-4 rounded-md p-1 transition-colors hover:bg-gray-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100",children:[o(l,{className:"size-4"}),o("span",{className:"sr-only",children:"Close"})]}),i]})}));h.displayName=e.Content.displayName;var p=({className:t,...i})=>o("div",{className:a("flex flex-col space-y-2 text-center sm:text-left",t),...i});p.displayName="SheetHeader";var d=({className:t,...i})=>o("div",{className:a("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...i});d.displayName="SheetFooter";var f=s.forwardRef(({className:t,...i},r)=>o(e.Title,{ref:r,className:a("text-foreground text-lg font-semibold",t),...i}));f.displayName=e.Title.displayName;var S=s.forwardRef(({className:t,...i},r)=>o(e.Description,{ref:r,className:a("text-muted-foreground text-sm",t),...i}));S.displayName=e.Description.displayName;export{R as a,y as b,g as c,c as d,h as e,p as f,d as g,f as h,S as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as m}from"./chunk-NWME2ANF.mjs";import{j as d}from"./chunk-U3WMNJPM.mjs";import*as o from"@radix-ui/react-popover";import{Drawer as r}from"vaul";import{jsx as e,jsxs as i}from"react/jsx-runtime";function C({children:t,content:n,align:p="center",side:v="bottom",openPopover:a,setOpenPopover:l,mobileOnly:g,popoverContentClassName:c,collisionBoundary:P,sticky:b,onEscapeKeyDown:s,onWheel:f}){let{isMobile:h}=m();return g||h?i(r.Root,{open:a,onOpenChange:l,children:[e(r.Trigger,{className:"sm:hidden",asChild:!0,children:t}),i(r.Portal,{children:[e(r.Overlay,{className:"fixed inset-0 z-50 bg-gray-100 bg-opacity-10 backdrop-blur"}),i(r.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 rounded-t-[10px] border-t border-gray-200 bg-white",onEscapeKeyDown:s,children:[e("div",{className:"sticky top-0 z-20 flex w-full items-center justify-center rounded-t-[10px] bg-inherit",children:e("div",{className:"my-3 h-1 w-12 rounded-full bg-gray-300"})}),e("div",{className:"flex min-h-[150px] w-full items-center justify-center overflow-hidden bg-white pb-8 align-middle shadow-xl",children:n})]}),e(r.Overlay,{})]})]}):i(o.Root,{open:a,onOpenChange:l,children:[e(o.Trigger,{className:"sm:inline-flex",asChild:!0,children:t}),e(o.Portal,{children:e(o.Content,{sideOffset:8,align:p,side:v,className:d("animate-slide-up-fade z-50 items-center rounded-lg border border-gray-200 bg-white drop-shadow-lg sm:block",c),sticky:b,collisionBoundary:P,onEscapeKeyDown:s,onWheel:f,children:n})})]})}export{C as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v}from"./chunk-XQG6PFDK.mjs";import{b as h}from"./chunk-HNNP24NU.mjs";import{c as y,f,j as l}from"./chunk-U3WMNJPM.mjs";import*as s from"@radix-ui/react-tooltip";import k from"linkify-react";import{HelpCircle as B}from"lucide-react";import C from"next/link";import{useState as R}from"react";import{cva as w}from"class-variance-authority";import{forwardRef as P}from"react";import{jsx as p,jsxs as T}from"react/jsx-runtime";var c=w("transition-all",{variants:{variant:{primary:"border-black bg-black text-white hover:bg-gray-800 hover:ring-4 hover:ring-gray-200",secondary:l("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"}}),b=P(({text:t,variant:e="primary",className:o,textWrapperClassName:i,loading:n,icon:m,shortcut:a,disabledTooltip:x,...u},N)=>x?p(d,{content:x,children:T("div",{className:l("flex h-10 w-full cursor-not-allowed items-center justify-center gap-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")},o),children:[m,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("hidden rounded border border-gray-200 bg-gray-100 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:a})]})}):T("button",{ref:N,type:u.onClick?"button":"submit",className:l("group flex h-10 w-full items-center justify-center gap-2 whitespace-nowrap rounded-md border px-4 text-sm",u.disabled||n?"cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400 outline-none":c({variant:e}),o),disabled:u.disabled||n,...u,children:[n?p(v,{}):m||null,t&&p("div",{className:l("min-w-0 truncate",a&&"flex-1 text-left",i),children:t}),a&&p("kbd",{className:l("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:a})]}));b.displayName="Button";import{jsx as r,jsxs as g}from"react/jsx-runtime";function J({children:t}){return r(s.Provider,{delayDuration:150,children:t})}function d({children:t,content:e,side:o="top",disableHoverableContent:i,...n}){let[m,a]=R(!1);return g(s.Root,{open:m,onOpenChange:a,delayDuration:0,disableHoverableContent:i,children:[r(s.Trigger,{asChild:!0,onClick:()=>{a(!0)},onBlur:()=>{a(!1)},children:t}),r(s.Portal,{children:r(s.Content,{sideOffset:8,side:o,className:"animate-slide-up-fade z-[99] items-center overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm",collisionPadding:0,...n,children:typeof e=="string"?r("span",{className:"block max-w-xs text-pretty px-4 py-2 text-center text-sm text-gray-700",children:e}):typeof e=="function"?e({setOpen:a}):e})})]})}function K({title:t,cta:e,href:o,target:i,onClick:n}){return g("div",{className:"flex max-w-xs flex-col items-center space-y-3 p-4 text-center",children:[r("p",{className:"text-sm text-gray-700",children:t}),e&&(o?r(C,{href:o,...i?{target:i}:{},className:l(c({variant:"primary"}),"flex h-9 w-full items-center justify-center whitespace-nowrap rounded-lg border px-4 text-sm"),children:e}):n?r(b,{onClick:n,text:e,variant:"primary",className:"h-9"}):null)]})}function Q({title:t,cta:e,href:o}){return g("div",{className:"max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[t," ",r("a",{href:o,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),className:"inline-flex text-gray-500 underline underline-offset-4 hover:text-gray-800",children:e})]})}function U({children:t}){return r("div",{className:"block max-w-md whitespace-pre-wrap px-4 py-2 text-center text-sm text-gray-700",children:r(k,{as:"p",options:{target:"_blank",rel:"noopener noreferrer nofollow",className:"underline underline-offset-4 text-gray-400 hover:text-gray-700"},children:t})})}function X(t){return r(d,{...t,children:r(B,{className:"h-4 w-4 text-gray-500"})})}function Y({value:t,unit:e="total clicks",prefix:o,children:i,lastClicked:n}){return(!t||t<1e3)&&!n?i:r(d,{content:g("div",{className:"block max-w-xs px-4 py-2 text-center text-sm text-gray-700",children:[g("p",{className:"text-sm font-semibold text-gray-700",children:[o,y(t||0,{full:!0})," ",e]}),n&&g("p",{className:"mt-1 text-xs text-gray-500",suppressHydrationWarning:!0,children:["Last clicked ",f(n,{withAgo:!0})]})]}),children:i})}function Z({children:t,content:e,...o}){return r(d,{content:e,...o,children:r("div",{className:"flex cursor-pointer items-center",children:r(h,{variant:"gray",className:"border-gray-300 transition-all hover:bg-gray-200",children:t})})})}function $({children:t,tooltipProps:e,...o}){return r(d,{...e,children:r("button",{type:"button",...o,className:l("flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:hover:bg-transparent",o.className),children:t})})}export{J as a,d as b,K as c,Q as d,U as e,X as f,Y as g,Z as h,$ as i,c as j,b as k};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{p as o}from"./chunk-5BZ3GYDV.mjs";import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{jsx as s}from"react/jsx-runtime";var l=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),p=t.forwardRef(({className:a,...i},r)=>s(e.Root,{ref:r,className:o(l(),a),...i}));p.displayName=e.Root.displayName;export{p as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as F}from"./chunk-JIS6PZYL.mjs";import{p as r}from"./chunk-5BZ3GYDV.mjs";import{cva as L}from"class-variance-authority";import{UploadCloud as M}from"lucide-react";import{useState as h}from"react";import{toast as N}from"sonner";import{Fragment as k,jsx as t,jsxs as u}from"react/jsx-runtime";var d={any:{types:[]},images:{types:["image/png","image/jpeg"],errorMessage:"File type not supported (.png or .jpg only)"},csv:{types:["text/csv"],errorMessage:"File type not supported (.csv only)"}},V=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 K({readFile:x,onChange:s,variant:w,className:D,iconClassName:P,accept:l="any",imageSrc:n,loading:R=!1,clickToUpload:p=!0,showHoverOverlay:U=!0,content:g,maxFileSizeMB:c=0,accessibilityLabel:j="File upload",disabled:a=!1}){let[f,i]=h(!1),[T,z]=h(null),y=async e=>{let o="dataTransfer"in e?e.dataTransfer.files&&e.dataTransfer.files[0]:e.target.files&&e.target.files[0];if(!o)return;if(z(o.name),c>0&&o.size/1024/1024>c){N.error(`File size too big (max ${c} MB)`);return}let m=d[l].types;if(m.length&&!m.includes(o.type)){N.error(d[l].errorMessage??"File type not supported");return}if(x){let v=new FileReader;v.onload=E=>{var b;return s==null?void 0:s({src:(b=E.target)==null?void 0:b.result,file:o})},v.readAsDataURL(o);return}s==null||s({file:o})};return u("label",{className:r(V({variant:w}),a?"cursor-not-allowed":r(p&&"cursor-pointer"),D),children:[R&&t("div",{className:"absolute inset-0 z-[5] flex items-center justify-center rounded-[inherit] bg-white",children:t(F,{})}),t("div",{className:"absolute inset-0 z-[5]",onDragOver:e=>{e.preventDefault(),e.stopPropagation(),i(!0)},onDragEnter:e=>{e.preventDefault(),e.stopPropagation(),i(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),i(!1)},onDrop:async e=>{e.preventDefault(),e.stopPropagation(),y(e),i(!1)}}),u("div",{className:r("absolute inset-0 z-[3] flex flex-col items-center justify-center rounded-[inherit] bg-white transition-all",a&&"bg-gray-50",f&&!a&&"cursor-copy border-2 border-black bg-gray-50 opacity-100",n?r("opacity-0",U&&!a&&"group-hover:opacity-100"):r(!a&&"group-hover:bg-gray-50")),children:[t(M,{className:r("size-7 transition-all duration-75",a?"text-gray-400":r("text-gray-500 group-hover:scale-110 group-active:scale-95",f?"scale-110":"scale-100"),P)}),g!==null&&t("div",{className:r("mt-2 text-center text-sm text-gray-500",a&&"text-gray-400"),children:g??t(k,{children:u("p",{children:["Drag and drop ",p&&"or click"," to upload."]})})}),t("span",{className:"sr-only",children:j})]}),n&&t("img",{src:n,alt:"Preview",className:"h-full w-full rounded-[inherit] object-cover"}),p&&t("div",{className:"sr-only mt-1 flex shadow-sm",children:t("input",{type:"file",accept:d[l].types.join(","),onChange:y,disabled:a},T)})]})}export{K as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{l as u}from"./chunk-5BZ3GYDV.mjs";import{createContext as L,useCallback as f,useContext as h,useEffect as l,useId as K,useState as p}from"react";import{jsx as g}from"react/jsx-runtime";var b=L({listeners:[],setListeners:()=>{}});function C({children:t}){let[s,r]=p([]);return g(b.Provider,{value:{listeners:s,setListeners:r},children:t})}function N(t,s,r={}){let i=K(),{listeners:d,setListeners:c}=h(b),a=f(e=>{let n=e.target,S=document.getElementById("modal-backdrop");if(e.metaKey||e.ctrlKey||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||!!S!=!!r.modal||(Array.isArray(t)?!t.includes(e.key):e.key!==t))return;let y=d.filter(o=>o.enabled!==!1&&(Array.isArray(o.key)?o.key.includes(e.key):o.key===e.key));!y.length||u(y,(o,m)=>(m.priority??0)-(o.priority??0)).slice(-1)[0].id!==i||(e.preventDefault(),s(e))},[t,d,i,s]);l(()=>(document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)),[a]),l(()=>(c(e=>[...e.filter(n=>n.id!==i),{id:i,key:t,...r}]),()=>c(e=>e.filter(n=>n.id!==i))),[JSON.stringify(t),r.enabled,r.priority])}export{b as a,C as b,N as c};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as _}from"./chunk-QR2P74OO.mjs";import{a as v}from"./chunk-VSFCK26M.mjs";import{a as N}from"./chunk-UQEULOV7.mjs";import{a as y}from"./chunk-CYOF3O7Y.mjs";import{a as x}from"./chunk-HRFFDN6H.mjs";import{a as f}from"./chunk-ALEYOCBW.mjs";import{a as b}from"./chunk-CS5PVLJB.mjs";import{b as o,i as d,j as n,l as g,m as p,n as h}from"./chunk-U3WMNJPM.mjs";import T from"next/image";import s from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as w}from"react";import A from"swr";import{jsx as e,jsxs as r}from"react/jsx-runtime";var m={features:v.map(({title:a,href:t})=>({name:a,href:t})),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:t})=>({name:a,href:`/compare/${t}`})),legal:h.map(({name:a,slug:t})=>({name:a,href:`/legal/${t}`})),tools:g.map(({name:a,slug:t})=>({name:a,href:`/tools/${t}`}))};function Y(){let{domain:a="dub.co"}=E();return e("footer",{children:r(N,{className:"relative z-10 overflow-hidden border border-b-0 border-gray-200 bg-white/50 pb-60 pt-16 backdrop-blur-lg md:rounded-t-2xl",children:[r("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[r("div",{className:"space-y-6",children:[r(s,{href:o("/",a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:"Logo"}),className:"block max-w-fit",children:[r("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(_,{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."}),r("p",{className:"text-sm leading-5 text-gray-400",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]}),r("div",{className:"flex items-center space-x-3",children:[r("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(x,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-black"})]}),r("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"})]}),r("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(b,{className:"h-4 w-4 text-gray-600 transition-colors group-hover:text-[#0077b5]"})]}),r("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(D,{})]}),r("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[r("div",{className:"md:grid md:grid-cols-2",children:[r("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:m.features.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("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:m.product.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("div",{className:"md:grid md:grid-cols-2",children:[r("div",{className:"flex flex-col space-y-8",children:[r("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:m.compare.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]}),r("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:m.legal.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]}),r("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:m.tools.map(t=>e("li",{children:e(s,{href:o(t.href,a,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:a,utm_content:t.name}),className:"text-sm text-gray-500 hover:text-gray-800",children:t.name})},t.name))})]})]})]})]}),e(T,{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 D(){let{data:a}=A("https://status.dub.co/api/v1/summary",d),[t,l]=w("bg-gray-200"),[i,c]=w("Loading status...");return F(()=>{if(!a)return;let{ongoing_incidents:u}=a;if(u.length>0){let{current_worst_impact:k,name:L}=u[0],C=k==="degraded_performance"?"bg-yellow-500":"bg-red-500";c(L),l(C)}else c("All systems operational"),l("bg-green-500")},[a]),r(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:[r("div",{className:"relative h-3 w-3",children:[e("div",{className:n("absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",t,i==="Loading status..."&&"animate-none")}),e("div",{className:n("absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",t)})]}),e("p",{className:"text-sm font-medium text-gray-800",children:i})]})}export{Y as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-5IQU72QI.mjs";import{a as h}from"./chunk-OC6WDPQV.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-U3WMNJPM.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("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 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as U}from"./chunk-H2SAZ2A2.mjs";import{a as q}from"./chunk-GNEZCVAY.mjs";import{c as C}from"./chunk-3FCJMXWB.mjs";import{a as I}from"./chunk-4MWFGGKN.mjs";import{a as H}from"./chunk-CEYYIVSB.mjs";import{a as F}from"./chunk-NWME2ANF.mjs";import{p as T}from"./chunk-5BZ3GYDV.mjs";import{enUS as Z}from"date-fns/locale";import{useEffect as N,useMemo as B,useState as S}from"react";import{format as M}from"date-fns";import{createContext as W}from"react";var A=W({isOpen:!1,setIsOpen:()=>{}}),X=()=>{let a=typeof window<"u"?window.navigator.language:"en-US",l=new Intl.DateTimeFormat(a,{hour:"numeric"}).format();return Number.isInteger(Number(l))},Y=(a,l,s=!1)=>{let i=!X(),e;return s?e=i?M(a,"d MMM, yyyy h:mm a",{locale:l}):M(a,"d MMM, yyyy HH:mm",{locale:l}):e=M(a,"d MMM, yyyy",{locale:l}),e},L=(a,l)=>{let{toYear:s,fromYear:i,fromMonth:e,toMonth:h,fromDay:y,toDay:P}=l;if(a&&a.length>0){let v=i,u=s;a.forEach(t=>{var R,$,x,g,E,D;if("date"in t){let d=t.date.getFullYear();if(i&&d<i)throw new Error(`Preset ${t.label} is before fromYear ${v}.`);if(s&&d>s)throw new Error(`Preset ${t.label} is after toYear ${u}.`);if(e&&t.date.getMonth()<e.getMonth())throw new Error(`Preset ${t.label} is before fromMonth ${e}.`);if(h&&t.date.getMonth()>h.getMonth())throw new Error(`Preset ${t.label} is after toMonth ${h}.`);if(y&&t.date.getDate()<y.getDate())throw new Error(`Preset ${t.label} is before fromDay ${y}.`);if(P&&t.date.getDate()>P.getDate())throw new Error(`Preset ${t.label} is after toDay ${M(P,"MMM dd, yyyy")}.`)}if("dateRange"in t){let d=(R=t.dateRange.from)==null?void 0:R.getFullYear(),f=($=t.dateRange.to)==null?void 0:$.getFullYear();if(d&&i&&d<i)throw new Error(`Preset ${t.label}'s 'from' is before fromYear ${v}.`);if(f&&s&&f>s)throw new Error(`Preset ${t.label}'s 'to' is after toYear ${u}.`);if(e){let n=(x=t.dateRange.from)==null?void 0:x.getMonth();if(n&&n<e.getMonth())throw new Error(`Preset ${t.label}'s 'from' is before fromMonth ${M(e,"MMM, yyyy")}.`)}if(h){let n=(g=t.dateRange.to)==null?void 0:g.getMonth();if(n&&n>h.getMonth())throw new Error(`Preset ${t.label}'s 'to' is after toMonth ${M(h,"MMM, yyyy")}.`)}if(y){let n=(E=t.dateRange.from)==null?void 0:E.getDate();if(n&&n<y.getDate())throw new Error(`Preset ${t.dateRange.from}'s 'from' is before fromDay ${M(y,"MMM dd, yyyy")}.`)}if(P){let n=(D=t.dateRange.to)==null?void 0:D.getDate();if(n&&n>P.getDate())throw new Error(`Preset ${t.label}'s 'to' is after toDay ${M(P,"MMM dd, yyyy")}.`)}}})}};import{jsx as m,jsxs as j}from"react/jsx-runtime";var _=({value:a,defaultValue:l,presetId:s,onChange:i,presets:e,disabled:h,disableNavigation:y,disabledDays:P,showYearNavigation:v=!1,locale:u=Z,placeholder:t="Select date range",hasError:R,align:$="center",className:x,...g})=>{let{isDesktop:E}=F(),[D,d]=S(!1),[f,n]=S(e&&s?e==null?void 0:e.find(({id:r})=>r===s):void 0),[o,w]=S((f==null?void 0:f.dateRange)??a??l??void 0),[K,k]=S(o==null?void 0:o.to),Q=B(()=>o,[D]);N(()=>{w(a)},[a]),N(()=>{let r=e==null?void 0:e.find(({id:b})=>b===s);n(r),w((r==null?void 0:r.dateRange)??a??l)},[e,s]),N(()=>{D?o&&k(o.to):k(o==null?void 0:o.to)},[D]);let V=(r,b)=>{let c=(o==null?void 0:o.from)&&(o==null?void 0:o.to)?{from:b}:r;w(c),n(void 0),(c==null?void 0:c.from)&&(c==null?void 0:c.to)&&(i==null||i(c),d(!1))},O=r=>{w(r.dateRange),n(r),i==null||i(r.dateRange,r),d(!1)},z=()=>{w(Q),d(!1)},G=r=>{r||z(),d(r)},J=B(()=>o?`${o.from?Y(o.from,u):""} - ${o.to?Y(o.to,u):""}`:null,[o,u]);return C((e==null?void 0:e.filter(r=>r.shortcut).map(r=>r.shortcut))??[],r=>{let b=e==null?void 0:e.find(c=>c.shortcut===r.key);b&&O(b)}),m(A.Provider,{value:{isOpen:D,setIsOpen:d},children:m(H,{align:$,openPopover:D,setOpenPopover:G,popoverContentClassName:"rounded-xl",content:m("div",{className:"flex w-full",children:j("div",{className:"scrollbar-hide flex w-full flex-col overflow-x-scroll sm:flex-row-reverse sm:items-start",children:[e&&e.length>0&&m("div",{className:T("relative flex h-16 w-full items-center sm:h-full sm:w-48","border-b border-gray-200 sm:border-b-0 sm:border-l","scrollbar-hide overflow-auto"),children:m("div",{className:"absolute px-3 sm:inset-0 sm:left-0 sm:p-3",children:m(U,{currentValue:o,presets:e,onSelect:O})})}),m("div",{className:"scrollbar-hide overflow-x-scroll",children:m(I,{mode:"range",selected:o,onSelect:V,month:K,onMonthChange:k,numberOfMonths:E?2:1,disabled:P,disableNavigation:y,showYearNavigation:v,locale:u,className:"scrollbar-hide overflow-x-scroll",classNames:{months:"flex flex-row divide-x divide-gray-200 overflow-x-scroll scrollbar-hide"},...g})})]})}),children:m(q,{placeholder:t,disabled:h,className:x,hasError:R,"aria-required":g.required||g["aria-required"],"aria-invalid":g["aria-invalid"],"aria-label":g["aria-label"],"aria-labelledby":g["aria-labelledby"],children:(f==null?void 0:f.label)??J})})})};function he({presets:a,...l}){return a&&L(a,l),m(_,{presets:a,...l})}export{A as a,he as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as s}from"./chunk-U3WMNJPM.mjs";import{Slot as R}from"@radix-ui/react-slot";import y,{useEffect as F,useState as V}from"react";import{jsxs as T}from"react/jsx-runtime";var E=y.forwardRef(({asChild:m,className:u,children:e,prefix:c,duration:t=250,as:i="span",variant:l="compact",...p},f)=>{let[n,N]=V(Number(e));return F(()=>{if(isNaN(Number(e))){console.warn("CountingNumbers expects a numeric value as children.");return}let d=Number(e),o=n,b=d,C=performance.now(),r=()=>{let g=performance.now(),a=Math.min((g-C)/t,1),w=o+(b-o)*a;N(Math.round(w)),a<1&&requestAnimationFrame(r)};requestAnimationFrame(r)},[e,t]),T(m?R:i,{ref:f,className:u,...p,children:[c,s(n,l==="full"?{full:!0}:void 0)]})});E.displayName="CountingNumbers";export{E as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as b}from"./chunk-EIWAAKMC.mjs";import{a as h}from"./chunk-OC6WDPQV.mjs";import{b as p,d as f,i as g,j as i}from"./chunk-U3WMNJPM.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import r from"next/link";import{useParams as N}from"next/navigation";import{useEffect as _,useState as v}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as s}from"react/jsx-runtime";function j({theme:n="light"}){let{domain:m="dub.co"}=N(),[a,o]=v(!1);_(()=>{a?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[a]);let{data:t}=z(m==="dub.co"&&"/api/auth/session",g,{dedupingInterval:6e4});return s("div",{className:i(n==="dark"&&"dark"),children:[e("button",{onClick:()=>o(!a),className:i("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 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",a&&"hover:bg-gray-100 active:bg-gray-200"),children:a?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:i("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",a&&"block"),children:s("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[b.map(({name:l,href:u,childItems:d},c)=>e(L,{name:l,href:u,childItems:d,setOpen:o},c)),t&&Object.keys(t).length>0?e("li",{className:"py-3",children:e(r,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):s(D,{children:[e("li",{className:"py-3",children:e(r,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(r,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:m,childItems:a,setOpen:o})=>{let{domain:t="dub.co"}=N(),[l,u]=v(!1);return a?e("li",{className:"py-3",children:s(h,{height:!0,children:[s("button",{className:"flex w-full justify-between",onClick:()=>u(!l),children:[e("p",{className:"font-semibold",children:n}),e(w,{className:i("h-5 w-5 text-gray-500 transition-all dark:text-white/50",l&&"rotate-180")})]}),l&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:a.map(({title:d,href:c,icon:y,iconClassName:k})=>s(r,{href:p(c,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:d}),onClick:()=>o(!1),className:"flex w-full space-x-2",children:[e(y,{className:i("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):m?e("li",{className:"py-3",children:e(r,{href:p(m,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:n}),onClick:()=>o(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{p as u}from"./chunk-5BZ3GYDV.mjs";import{addYears as P,format as O,isSameMonth as K}from"date-fns";import{ChevronLeft as k,ChevronRight as C,ChevronsLeft as S,ChevronsRight as H}from"lucide-react";import{forwardRef as E,useRef as G}from"react";import{DayPicker as I,useDayPicker as j,useDayRender as Y,useNavigation as A}from"react-day-picker";import{Fragment as z,jsx as e,jsxs as T}from"react/jsx-runtime";var c=E(({onClick:w,icon:N,disabled:m,...y},i)=>e("button",{ref:i,type:"button",disabled:m,className:u("flex h-7 w-7 shrink-0 select-none items-center justify-center rounded border p-1 outline-none transition","border-gray-200 text-gray-600 hover:text-gray-800","hover:bg-gray-50 active:bg-gray-100","disabled:pointer-events-none disabled:text-gray-400"),onClick:w,...y,children:e(N,{className:"h-full w-full shrink-0"})}));c.displayName="NavigationButton";function X({mode:w="single",weekStartsOn:N=1,numberOfMonths:m=1,showYearNavigation:y=!1,disableNavigation:i,locale:M,className:L,classNames:D,...R}){return e(I,{mode:w,weekStartsOn:N,numberOfMonths:m,locale:M,showOutsideDays:m===1,className:L,classNames:{months:"flex space-y-0",month:"space-y-4 p-3 w-full",nav:"gap-1 flex items-center rounded-full w-full h-full justify-between p-4",table:"w-full border-separate border-spacing-y-1",head_cell:"w-9 font-medium text-xs text-center text-gray-400 pb-2",row:"w-full",cell:"relative p-0 text-center focus-within:relative text-gray-900",day:u("relative h-10 w-full sm:h-9 sm:w-9 rounded-md text-sm text-gray-900","hover:bg-gray-100 active:bg-gray-200 outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500"),day_today:"font-semibold",day_selected:"rounded aria-selected:bg-blue-500 aria-selected:text-white",day_disabled:"!text-gray-300 line-through disabled:hover:bg-transparent",day_outside:"text-gray-400",day_range_middle:"!rounded-none aria-selected:!bg-blue-100 aria-selected:!text-blue-900",day_range_start:"rounded-r-none !rounded-l",day_range_end:"rounded-l-none !rounded-r",day_hidden:"invisible",...D},components:{IconLeft:()=>e(k,{className:"h-4 w-4"}),IconRight:()=>e(C,{className:"h-4 w-4"}),Caption:({...p})=>{let{goToMonth:r,nextMonth:t,previousMonth:n,currentMonth:s,displayMonths:d}=A(),{numberOfMonths:g,fromDate:l,toDate:o}=j(),b=d.findIndex(a=>K(p.displayMonth,a)),f=b===0,h=b===d.length-1,v=g>1&&(f||!h),x=g>1&&(h||!f),_=()=>{let a=P(s,-1);n&&(!l||a.getTime()>=l.getTime())&&r(a)},B=()=>{let a=P(s,1);t&&(!o||a.getTime()<=o.getTime())&&r(a)};return T("div",{className:"flex items-center justify-between",children:[T("div",{className:"flex items-center gap-1",children:[y&&!x&&e(c,{disabled:i||!n||l&&P(s,-1).getTime()<l.getTime(),"aria-label":"Go to previous year",onClick:_,icon:S}),!x&&e(c,{disabled:i||!n,"aria-label":"Go to previous month",onClick:()=>n&&r(n),icon:k})]}),e("div",{role:"presentation","aria-live":"polite",className:"text-sm font-medium capitalize tabular-nums text-gray-900",children:O(p.displayMonth,"LLLL yyy",{locale:M})}),T("div",{className:"flex items-center gap-1",children:[!v&&e(c,{disabled:i||!t,"aria-label":"Go to next month",onClick:()=>t&&r(t),icon:C}),y&&!v&&e(c,{disabled:i||!t||o&&P(s,1).getTime()>o.getTime(),"aria-label":"Go to next year",onClick:B,icon:H})]})]})},Day:({date:p,displayMonth:r})=>{let t=G(null),{activeModifiers:n,buttonProps:s,divProps:d,isButton:g,isHidden:l}=Y(p,r,t),{selected:o,today:b,disabled:f,range_middle:h}=n;if(l)return e(z,{});if(!g)return e("div",{...d,className:u("flex items-center justify-center",d.className)});let{children:v,...x}=s;return T("button",{ref:t,...x,type:"button",children:[v,b&&e("span",{className:u("absolute inset-x-1/2 bottom-1.5 h-0.5 w-4 -translate-x-1/2 rounded-[2px]",{"bg-blue-500":!o,"!bg-white":o,"!bg-blue-400":o&&h,"text-gray-400":f})})]})}},...R})}export{X as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as n}from"./chunk-U3WMNJPM.mjs";import{jsx as e,jsxs as a}from"react/jsx-runtime";function h({cellSize:t=12,strokeWidth:s=1,patternOffset:r=[0,0],className:i}){return a("svg",{className:n("pointer-events-none absolute inset-0 text-black/10",i),width:"100%",height:"100%",children:[e("defs",{children:e("pattern",{id:"grid",x:r[0]-1,y:r[1]-1,width:t,height:t,patternUnits:"userSpaceOnUse",children:e("path",{d:`M ${t} 0 L 0 0 0 ${t}`,fill:"transparent",stroke:"currentColor",strokeWidth:s})})}),e("rect",{fill:"url(#grid)",width:"100%",height:"100%"})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as i}from"./chunk-U3WMNJPM.mjs";import*as e from"@radix-ui/react-checkbox";import{Check as m}from"lucide-react";import*as t from"react";import{jsx as o}from"react/jsx-runtime";var s=t.forwardRef(({className:r,...c},a)=>o(e.Root,{ref:a,className:i("peer h-5 w-5 shrink-0 rounded-md border border-gray-200 bg-white outline-none focus-visible:border-black disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-500",r),...c,children:o(e.Indicator,{className:"flex items-center justify-center",children:o(m,{className:"h-3 w-3 text-white"})})}));s.displayName=e.Root.displayName;export{s as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as Z}from"./chunk-2CAOXWMS.mjs";import{a as B}from"./chunk-GVBIGY6N.mjs";import{a as j}from"./chunk-NWME2ANF.mjs";import{a as F}from"./chunk-OC6WDPQV.mjs";import{k as U}from"./chunk-2DRA56DT.mjs";import{a as Q}from"./chunk-WMTXO7RT.mjs";import{a as $}from"./chunk-JW75YDRU.mjs";import{a as V}from"./chunk-JOLDVN3E.mjs";import{a as K}from"./chunk-IHTRL6TU.mjs";import{a as P}from"./chunk-XQG6PFDK.mjs";import{j as i}from"./chunk-U3WMNJPM.mjs";import{Command as h,CommandInput as ie,CommandItem as ce,useCommandState as me}from"cmdk";import{ChevronDown as de}from"lucide-react";import{forwardRef as pe,isValidElement as ue,useCallback as fe,useEffect as v,useRef as xe,useState as f}from"react";import{Fragment as I,jsx as e,jsxs as c}from"react/jsx-runtime";function ge(s,o){return s===!0}function De({multiple:s,selected:o,setSelected:l,options:a,icon:d,placeholder:y="Select...",searchPlaceholder:G="Search...",emptyState:x,createLabel:N,onCreate:g,buttonProps:m,shortcutHint:z,caret:J,side:X,open:Y,onOpenChange:_,onSearchChange:C,shouldFilter:R=!0,inputClassName:ee,optionRight:w,optionClassName:E,matchTriggerWidth:L,children:te}){let D=ge(s,l),n=Array.isArray(o)?o:o?[o]:[],{isMobile:se}=j(),[oe,ae]=f(!1),O=Y??oe,b=_??ae,[r,k]=f(""),[W,M]=f(!1),[S,ne]=f(void 0),[re,A]=f(!1),le=t=>{var p;if(D){let T=n.some(({value:u})=>u===t.value);l(T?n.filter(({value:u})=>u!==t.value):[...n,t])}else l(n.length&&((p=n[0])==null?void 0:p.value)===t.value?null:t),b(!1)},H=fe((t,p)=>p===""?[...n,...t.filter(T=>n.findIndex(u=>u.value===T.value)===-1)]:t,[n]);return v(()=>{W&&(ne(a&&H(a,r)),M(!1))},[W,a,H,r]),v(()=>{M(!0)},[a]),v(()=>{O||(k(""),M(!0))},[O]),v(()=>C==null?void 0:C(r),[r]),e(Z,{openPopover:O,setOpenPopover:b,align:"start",side:X,onWheel:t=>{t.stopPropagation()},popoverContentClassName:i(L&&"sm:w-[var(--radix-popover-trigger-width)]"),content:e(F,{width:!se&&!L,height:!0,style:{transform:"translateZ(0)"},transition:{ease:"easeInOut",duration:.1},children:c(h,{loop:!0,shouldFilter:R,children:[c("div",{className:"flex items-center overflow-hidden rounded-t-lg border-b border-gray-200",children:[e(ie,{placeholder:G,value:r,onValueChange:k,className:i("grow border-0 py-3 pl-4 pr-2 outline-none placeholder:text-gray-400 focus:ring-0 sm:text-sm",ee),onKeyDown:t=>{(t.key==="Escape"||t.key==="Backspace"&&!r)&&(t.preventDefault(),t.stopPropagation(),b(!1))}}),z&&e("kbd",{className:"mr-2 hidden shrink-0 rounded border border-gray-200 bg-gray-100 px-2 py-0.5 text-xs font-light text-gray-500 md:block",children:z})]}),e(be,{children:e(h.List,{className:i("flex w-full min-w-[100px] flex-col gap-1 p-1"),children:S!==void 0?c(I,{children:[S.map(t=>e(ve,{option:t,multiple:D,selected:n.some(({value:p})=>p===t.value),onSelect:()=>le(t),right:w==null?void 0:w(t),className:E},`${t.label}, ${t.value}`)),r.length>0&&g&&c(ce,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm text-gray-700","data-[selected=true]:bg-gray-100",E),onSelect:async()=>{A(!0),await(g==null?void 0:g(r))&&(k(""),b(!1)),A(!1)},children:[re?e(P,{className:"size-4 shrink-0"}):e(Q,{className:"size-4 shrink-0"}),e("div",{className:"grow truncate",children:(N==null?void 0:N(r))||`Create "${r}"`})]}),R?e(he,{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):S.length===0?e("div",{className:"flex min-h-12 items-center justify-center text-sm text-gray-500",children:x||"No matches"}):null]}):e(h.Loading,{children:e("div",{className:"flex h-12 items-center justify-center",children:e(P,{})})})})})]})}),children:e(U,{variant:"secondary",...m,className:i(m==null?void 0:m.className,"flex gap-2"),textWrapperClassName:i(m==null?void 0:m.textWrapperClassName,"w-full flex items-center justify-start"),text:c(I,{children:[e("div",{className:"min-w-0 grow truncate text-left",children:te||n.map(t=>t.label).join(", ")||y}),J&&e(de,{className:"ml-1 size-4 shrink-0 text-gray-400 transition-transform duration-75 group-data-[state=open]:rotate-180"})]}),icon:d?q(d)?d:e(d,{className:"size-4 shrink-0"}):void 0})})}var be=({children:s})=>{let o=xe(null),{scrollProgress:l,updateScrollProgress:a}=B(o);return c(I,{children:[e("div",{className:"scrollbar-hide max-h-[min(50vh,250px)] w-screen overflow-y-scroll sm:w-auto",ref:o,onScroll:a,children:s}),e("div",{className:"pointer-events-none absolute bottom-0 left-0 hidden h-16 w-full rounded-b-lg bg-gradient-to-t from-white sm:block",style:{opacity:1-Math.pow(l,2)}})]})};function ve({option:s,onSelect:o,multiple:l,selected:a,right:d,className:y}){return c(h.Item,{className:i("flex cursor-pointer items-center gap-3 whitespace-nowrap rounded-md px-3 py-2 text-left text-sm","data-[selected=true]:bg-gray-100",y),onSelect:o,value:s.label+(s==null?void 0:s.value),children:[l&&e("div",{className:"shrink-0 text-gray-600",children:a?e(V,{className:"size-4 text-gray-600"}):e(K,{className:"size-4 text-gray-400"})}),c("div",{className:"flex min-w-0 grow items-center gap-1",children:[s.icon&&e("span",{className:"shrink-0 text-gray-600",children:q(s.icon)?s.icon:e(s.icon,{className:"h-4 w-4"})}),e("span",{className:"grow truncate",children:s.label})]}),d,!l&&a&&e($,{className:"size-4 shrink-0 text-gray-600"})]})}var q=s=>ue(s),he=pe((s,o)=>me(a=>a.filtered.count===0)?e("div",{ref:o,"cmdk-empty":"",role:"presentation",...s}):null);export{De as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as we,b as Ae}from"./chunk-AUBFB4SI.mjs";var le=we((ct,ie)=>{var I=1e3,L=I*60,O=L*60,P=O*24,Qe=P*7,er=P*365.25;ie.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return rr(e);if(t==="number"&&isFinite(e))return r.long?or(e):tr(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rr(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\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(!!r){var t=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return t*er;case"weeks":case"week":case"w":return t*Qe;case"days":case"day":case"d":return t*P;case"hours":case"hour":case"hrs":case"hr":case"h":return t*O;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function tr(e){var r=Math.abs(e);return r>=P?Math.round(e/P)+"d":r>=O?Math.round(e/O)+"h":r>=L?Math.round(e/L)+"m":r>=I?Math.round(e/I)+"s":e+"ms"}function or(e){var r=Math.abs(e);return r>=P?$(e,r,P,"day"):r>=O?$(e,r,O,"hour"):r>=L?$(e,r,L,"minute"):r>=I?$(e,r,I,"second"):e+" ms"}function $(e,r,t,o){var s=r>=t*1.5;return Math.round(e/t)+" "+o+(s?"s":"")}});var ke=process.env.NEXT_PUBLIC_APP_NAME||"Dub.co",ne=process.env.NEXT_PUBLIC_APP_SHORT_DOMAIN||"dub.sh",Ee=`https://${process.env.NEXT_PUBLIC_APP_DOMAIN}`,Pe=new Set([`app.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`preview.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"localhost:8888","localhost"]),_e=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",Se=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",Ie=new Set([`api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`api.${ne}`,"api.localhost:8888"]),Le=process.env.NEXT_PUBLIC_VERCEL_ENV==="production"?`https://api.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:process.env.NEXT_PUBLIC_VERCEL_ENV==="preview"?`https://api-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`:"http://api.localhost:8888",Oe=new Set([`admin.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"admin.localhost:8888"]),Te=new Set([`partners.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,`partners-staging.${process.env.NEXT_PUBLIC_APP_DOMAIN}`,"partners.localhost:8888"]);var Ce=process.env.STORAGE_BASE_URL;var B=e=>{try{return new URL(e),!0}catch{return!1}},Ne=e=>{if(B(e))return e;try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).toString()}catch{}return e};var Re=(e,r,t)=>{if(r==="dub.co")return e;let o=new URL(e.startsWith("/")?`https://dub.co${e}`:e);return t&&Object.entries(t).forEach(([s,a])=>{o.searchParams.set(s,a)}),o.toString()};function G(e,r={digits:1}){if(!e)return"0";if(r.full)return Intl.NumberFormat("en-US").format(e);let t=/\.0+$|(\.[0-9]*[1-9])0+$/;if(e<1)return e.toFixed(r.digits).replace(t,"$1");var o=[{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"}].slice().reverse().find(function(s){return e>=s.value});return o?(e/o.value).toFixed(r.digits).replace(t,"$1")+o.symbol:"0"}var Ue=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ze=new RegExp(/^[a-zA-Z0-9\-]+$/);var De=e=>{if(B(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 V=({name:e="Business",monthly:r=59,yearly:t=49,links:o=5e3,clicks:s=15e4,domains:a=40,tags:n=150,users:i=15,ids:c=[]})=>({name:e,tagline:"For larger teams with increased usage",link:"https://dub.co/help/article/business-plan",price:{monthly:r,yearly:t,ids:c},limits:{links:o,clicks:s,domains:a,tags:n,users:i,ai:1e3,api:3e3},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-black hover:bg-gray-800 hover:ring-gray-200"},featureTitle:"Everything in Pro, plus:",features:[{text:`${G(o,{full:!0})} new links/mo`},{text:`${G(s)} tracked clicks/mo`},{text:"3-year analytics retention"},{text:`${a} custom domains`},{text:`${i} users`},{text:"Real-time events stream",footnote:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://d.to/events"}},{text:"Event webhooks (beta)",footnote:{title:"Get notified when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://d.to/webhooks"}}]}),S=[{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:60},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:"Advanced analytics",footnote:{title:"Get location (country, city, continent), device (type, browser, OS), and referer data on your clicks.",cta:"Learn more.",href:"https://dub.co/help/article/dub-analytics"}},{text:"10 AI credits/mo"},{text:"Basic support"},{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:600},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-600 hover:bg-blue-700 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:"Advanced link features",footnote:"Custom social media cards, password-protected links, link expiration, link cloaking, device targeting, geo targeting etc."},{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:"Priority support"},{text:"Premium dub.link domain",footnote:{title:"Stand out from the crowd with a premium dub.link domain.",cta:"Learn more.",href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"}},{text:"Complimentary custom domain",footnote:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}}]},V({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"]}),V({name:"Business Plus",monthly:119,yearly:99,links:15e3,clicks:4e5,domains:100,tags:300,users:30,ids:["price_1OnWu0AlJJEpqkPVWk4144ZG","price_1OnWu0AlJJEpqkPVkDWVriAB","price_1OnaK3AlJJEpqkPVaCfCPdHi","price_1OzObrAlJJEpqkPVh6D9HWGO"]}),V({name:"Business Extra",monthly:249,yearly:199,links:4e4,clicks:1e6,domains:250,tags:500,users:50,ids:["price_1OnWvCAlJJEpqkPVLzLHx5QD","price_1OnWvCAlJJEpqkPVHhCCvIOq","price_1OnaKJAlJJEpqkPVeJSvPfJb","price_1OzOg1AlJJEpqkPVPlsrxoWm"]}),V({name:"Business Max",monthly:499,yearly:399,links:1e5,clicks:25e5,domains:500,tags:1e3,users:100,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:25e4,clicks:5e6,domains:1e3,tags:1e3,users:500,ai:1e4,api:1e4},colors:{bg:"bg-violet-600",text:"text-violet-600"},cta:{text:"Contact us",href:"/enterprise",color:"bg-gradient-to-r from-violet-600 to-pink-600 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"}]}],Be=S.find(e=>e.name==="Free"),Ge=S.find(e=>e.name==="Pro"),Ve=S.find(e=>e.name==="Business"),$e=S.find(e=>e.name==="Enterprise");var Je=S.filter(e=>e.name!=="Free"&&e.name!=="Enterprise");var je="https://www.google.com/s2/favicons?sz=64&domain_url=";var Fe=100,We=60*60*24*14,qe=new Date("2022-09-22T00:00:00.000Z");var Ke=[{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:"Calendar Link Shortener",slug:"cal-link-shortener"},{name:"Google Link Shortener",slug:"google-link-shortener"},{name:"Amazon Link Shortener",slug:"amazon-link-shortener"},{name:"Figma Link Shortener",slug:"figma-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"}],Ye=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"}],Xe=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Subprocessors",slug:"subprocessors"},{name:"DPA",slug:"dpa"},{name:"Report Abuse",slug:"abuse"}];var He=(e,r)=>!e||e.length<=r?e??null:`${e.slice(0,r-3)}...`;var Ze=(e,r)=>e.map((t,o)=>({item:t,index:o})).sort((t,o)=>r(t.item,o.item)||t.index-o.index).map(({item:t})=>t);var ce=Ae(le(),1),sr=(e,{withAgo:r}={})=>{if(!e)return"Never";let t=Date.now()-new Date(e).getTime();return t<1e3?"Just now":t>828e5?new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:new Date(e).getFullYear()!==new Date().getFullYear()?"numeric":void 0}):`${(0,ce.default)(t)}${r?" ago":""}`};var ue=(e,r)=>{if(e===r)return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null)return!1;let t=Object.keys(e),o=Object.keys(r);if(t.length!==o.length)return!1;for(let s of t)if(!o.includes(s)||!ue(e[s],r[s]))return!1;return!0};async function ar(e,r){let t=await fetch(e,r);if(!t.ok){let o=await t.text(),s=new Error(o);throw s.status=t.status,s}return t.json()}function de(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=de(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function pe(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=de(e))&&(o&&(o+=" "),o+=r);return o}var X="-";function nr(e){let r=lr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;function s(n){let i=n.split(X);return i[0]===""&&i.length!==1&&i.shift(),ge(i,r)||ir(n)}function a(n,i){let c=t[n]||[];return i&&o[n]?[...c,...o[n]]:c}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function ge(e,r){var n;if(e.length===0)return r.classGroupId;let t=e[0],o=r.nextPart.get(t),s=o?ge(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;let a=e.join(X);return(n=r.validators.find(({validator:i})=>i(a)))==null?void 0:n.classGroupId}var me=/^\[(.+)\]$/;function ir(e){if(me.test(e)){let r=me.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}}function lr(e){let{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return ur(Object.entries(e.classGroups),t).forEach(([a,n])=>{Y(n,o,a,r)}),o}function Y(e,r,t,o){e.forEach(s=>{if(typeof s=="string"){let a=s===""?r:fe(r,s);a.classGroupId=t;return}if(typeof s=="function"){if(cr(s)){Y(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,n])=>{Y(n,fe(r,a),t,o)})})}function fe(e,r){let t=e;return r.split(X).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function cr(e){return e.isThemeGetter}function ur(e,r){return r?e.map(([t,o])=>{let s=o.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[r+n,i])):a);return[t,s]}):e}function dr(e){if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;function s(a,n){t.set(a,n),r++,r>e&&(r=0,o=t,t=new Map)}return{get(a){let n=t.get(a);if(n!==void 0)return n;if((n=o.get(a))!==void 0)return s(a,n),n},set(a,n){t.has(a)?t.set(a,n):s(a,n)}}}var he="!";function pr(e){let{separator:r,experimentalParseClassName:t}=e,o=r.length===1,s=r[0],a=r.length;function n(i){let c=[],f=0,p=0,g;for(let m=0;m<i.length;m++){let h=i[m];if(f===0){if(h===s&&(o||i.slice(m,m+a)===r)){c.push(i.slice(p,m)),p=m+a;continue}if(h==="/"){g=m;continue}}h==="["?f++:h==="]"&&f--}let b=c.length===0?i:i.substring(p),x=b.startsWith(he),E=x?b.substring(1):b,y=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:x,baseClassName:E,maybePostfixModifierPosition:y}}return t?function(c){return t({className:c,parseClassName:n})}:n}function mr(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 fr(e){return{cache:dr(e.cacheSize),parseClassName:pr(e),...nr(e)}}var gr=/\s+/;function hr(e,r){let{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s}=r,a=new Set;return e.trim().split(gr).map(n=>{let{modifiers:i,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:p}=t(n),g=Boolean(p),b=o(g?f.substring(0,p):f);if(!b){if(!g)return{isTailwindClass:!1,originalClassName:n};if(b=o(f),!b)return{isTailwindClass:!1,originalClassName:n};g=!1}let x=mr(i).join(":"),E=c?x+he:x;return{isTailwindClass:!0,modifierId:E,classGroupId:b,originalClassName:n,hasPostfixModifier:g}}).reverse().filter(n=>{if(!n.isTailwindClass)return!0;let{modifierId:i,classGroupId:c,hasPostfixModifier:f}=n,p=i+c;return a.has(p)?!1:(a.add(p),s(c,f).forEach(g=>a.add(i+g)),!0)}).reverse().map(n=>n.originalClassName).join(" ")}function br(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=be(r))&&(o&&(o+=" "),o+=t);return o}function be(e){if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=be(e[o]))&&(t&&(t+=" "),t+=r);return t}function yr(e,...r){let t,o,s,a=n;function n(c){let f=r.reduce((p,g)=>g(p),e());return t=fr(f),o=t.cache.get,s=t.cache.set,a=i,i(c)}function i(c){let f=o(c);if(f)return f;let p=hr(c,t);return s(c,p),p}return function(){return a(br.apply(null,arguments))}}function u(e){let r=t=>t[e]||[];return r.isThemeGetter=!0,r}var ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,xr=/^\d+\/\d+$/,vr=new Set(["px","full","screen"]),wr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\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$/,kr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function w(e){return _(e)||vr.has(e)||xr.test(e)}function A(e){return T(e,"length",Nr)}function _(e){return Boolean(e)&&!Number.isNaN(Number(e))}function J(e){return T(e,"number",_)}function R(e){return Boolean(e)&&Number.isInteger(Number(e))}function _r(e){return e.endsWith("%")&&_(e.slice(0,-1))}function l(e){return ye.test(e)}function k(e){return wr.test(e)}var Sr=new Set(["length","size","percentage"]);function Ir(e){return T(e,Sr,xe)}function Lr(e){return T(e,"position",xe)}var Or=new Set(["image","url"]);function Tr(e){return T(e,Or,Mr)}function Cr(e){return T(e,"",Rr)}function M(){return!0}function T(e,r,t){let o=ye.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1}function Nr(e){return Ar.test(e)&&!kr.test(e)}function xe(){return!1}function Rr(e){return Er.test(e)}function Mr(e){return Pr.test(e)}function Ur(){let e=u("colors"),r=u("spacing"),t=u("blur"),o=u("brightness"),s=u("borderColor"),a=u("borderRadius"),n=u("borderSpacing"),i=u("borderWidth"),c=u("contrast"),f=u("grayscale"),p=u("hueRotate"),g=u("invert"),b=u("gap"),x=u("gradientColorStops"),E=u("gradientColorStopPositions"),y=u("inset"),m=u("margin"),h=u("opacity"),v=u("padding"),H=u("saturate"),j=u("scale"),Z=u("sepia"),Q=u("skew"),ee=u("space"),re=u("translate"),F=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",l,r],d=()=>[l,r],te=()=>["",w,A],U=()=>["auto",_,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],C=()=>["","0",l],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[_,J],D=()=>[_,l];return{cacheSize:500,separator:":",theme:{colors:[M],spacing:[w,A],blur:["none","",k,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",k,l],borderSpacing:d(),borderWidth:te(),contrast:N(),grayscale:C(),hueRotate:D(),invert:C(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[_r,A],inset:q(),margin:q(),opacity:N(),padding:d(),saturate:N(),scale:N(),sepia:C(),skew:D(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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:[...oe(),l]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,l]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",R,l]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:["full",R,l]},l]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[R,l]},l]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,r]}],"min-w":[{"min-w":[l,r,"min","max","fit"]}],"max-w":[{"max-w":[l,r,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[l,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,r,"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",J]}],"font-family":[{font:[M]}],"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",l]}],"line-clamp":[{"line-clamp":["none",_,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",w,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",w,A]}],"underline-offset":[{"underline-offset":["auto",w,l]}],"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",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Lr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Tr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...z(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...z()]}],"outline-offset":[{"outline-offset":[w,l]}],"outline-w":[{outline:[w,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[w,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,Cr]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",k,l]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"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",l]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[R,l]}],"translate-x":[{"translate-x":[re]}],"translate-y":[{"translate-y":[re]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[w,A,J]}],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 ve=yr(Ur);function zr(...e){return ve(pe(e))}export{_e as a,Ne as b,Re as c,G as d,De as e,je as f,Fe as g,Ke as h,Ye as i,Xe as j,He as k,Ze as l,sr as m,ue as n,ar as o,zr as p};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as t}from"./chunk-E3MKT7TI.mjs";import{a as l}from"./chunk-QC6GZ7KR.mjs";import{j as m,o}from"./chunk-U3WMNJPM.mjs";import{jsx as s}from"react/jsx-runtime";function n({apexDomain:r,className:e,imageProps:a}){return r?s(t,{src:`${o}${r}`,alt:r,className:m("h-8 w-8 rounded-full sm:h-10 sm:w-10",e),width:20,height:20,draggable:!1,...a}):s("div",{className:m("flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 px-0 sm:h-10 sm:w-10",e),children:s(l,{className:"h-4 w-4 text-gray-600 sm:h-5 sm:w-5"})})}export{n as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{j as h}from"./chunk-S37ONGSO.mjs";import{p}from"./chunk-5BZ3GYDV.mjs";import{cva as E}from"class-variance-authority";import k from"embla-carousel-autoplay";import T from"embla-carousel-react";import{motion as L}from"framer-motion";import{ArrowLeft as D,ArrowRight as H,ChevronLeft as M,ChevronRight as I}from"lucide-react";import*as e from"react";import{jsx as r,jsxs as C}from"react/jsx-runtime";var w=2e3,S=e.createContext(null);function b(){let t=e.useContext(S);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function W(){let{api:t}=b(),[l,s]=e.useState(0),o=e.useCallback(c=>s((c==null?void 0:c.selectedScrollSnap())??0),[]);return e.useEffect(()=>{!t||(o(t),t.on("reInit",o),t.on("select",o))},[t,o]),l}var z=e.forwardRef(({orientation:t="horizontal",opts:l,setApi:s,autoplay:o,plugins:c,className:d,children:n,...i},y)=>{let[x,a]=T({...l,axis:t==="horizontal"?"x":"y"},[...o?[k(typeof o=="object"?o:{delay:w})]:[],...c||[]]),[N,v]=e.useState(!1),[R,g]=e.useState(!1),u=e.useCallback(f=>{!f||(v(f.canScrollPrev()),g(f.canScrollNext()))},[]),m=e.useCallback(()=>{a==null||a.scrollPrev()},[a]),P=e.useCallback(()=>{a==null||a.scrollNext()},[a]),A=e.useCallback(f=>{f.key==="ArrowLeft"?(f.preventDefault(),m()):f.key==="ArrowRight"&&(f.preventDefault(),P())},[m,P]);return e.useEffect(()=>{!a||!s||s(a)},[a,s]),e.useEffect(()=>{if(!!a)return u(a),a.on("reInit",u),a.on("select",u),()=>{a==null||a.off("select",u)}},[a,u]),r(S.Provider,{value:{carouselRef:x,api:a,opts:l,orientation:t||((l==null?void 0:l.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:P,canScrollPrev:N,canScrollNext:R},children:r("div",{ref:y,onKeyDownCapture:A,className:p("relative",d),role:"region","aria-roledescription":"carousel",...i,children:n})})});z.displayName="Carousel";var U=e.forwardRef(({className:t,...l},s)=>{let{carouselRef:o,orientation:c}=b();return r("div",{ref:o,className:"overflow-hidden",children:r("div",{ref:s,className:p("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...l})})});U.displayName="CarouselContent";var B=e.forwardRef(({className:t,...l},s)=>{let{orientation:o}=b();return r("div",{ref:s,role:"group","aria-roledescription":"slide",className:p("min-w-0 shrink-0 grow-0 basis-full",o==="horizontal"?"pl-4":"pt-4",t),...l})});B.displayName="CarouselItem";var O=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollPrev:c,canScrollPrev:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(D,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]})});O.displayName="CarouselPrevious";var V=e.forwardRef(({className:t,...l},s)=>{let{orientation:o,scrollNext:c,canScrollNext:d}=b();return C("button",{ref:s,className:p("absolute",o==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",h({variant:"secondary",className:"p-2"}),t),disabled:!d,onClick:c,...l,children:[r(H,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})});V.displayName="CarouselNext";var K=E("flex items-center justify-center gap-3 sm:gap-6",{variants:{variant:{simple:"relative",floating:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full border border-gray-800/10 bg-white sm:bottom-6 "}}}),X=({variant:t="simple",className:l})=>{var g;let{scrollNext:s,scrollPrev:o,canScrollNext:c,canScrollPrev:d,api:n}=b(),i=(g=n==null?void 0:n.plugins())==null?void 0:g.autoplay,[y,x]=e.useState(0),[a,N]=e.useState(!1),v=e.useCallback(u=>{x((u==null?void 0:u.selectedScrollSnap())??0)},[]),R=e.useCallback(u=>()=>{i&&i.isPlaying()&&i.stop(),u()},[i]);return e.useEffect(()=>{!n||(v(n),N((i==null?void 0:i.isPlaying())??!1),n.on("reInit",v),n.on("select",v),n.on("autoplay:play",()=>N(!0)),n.on("autoplay:stop",()=>N(!1)))},[n,i,v]),C("div",{className:p(K({variant:t}),l),children:[t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!d,onClick:R(o),children:[r(M,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Previous slide"})]}),n!=null&&r("div",{className:"flex items-center gap-1",children:n.slideNodes().map((u,m)=>C("button",{onClick:R(()=>n.scrollTo(m)),className:"rounded-full p-0.5 hover:bg-gray-100 active:bg-gray-200 sm:p-1.5",children:[r("div",{className:p("relative isolate h-1.5 w-1.5 overflow-hidden rounded-full transition-all",m===y?"bg-black":"bg-black/20",a&&m===y&&"w-6 bg-black/20"),children:a&&m===y&&r(L.div,{initial:{x:"-100%"},animate:{x:0},transition:{type:"tween",duration:((i==null?void 0:i.options.delay)??w)/1e3},className:"animate-fill-width h-full w-full rounded-full bg-black"})}),C("span",{className:"sr-only",children:["Slide ",m+1]})]},m))}),t!=="simple"&&C("button",{className:"cursor-pointer rounded-full p-2 hover:bg-gray-50 active:bg-gray-100",disabled:!c,onClick:R(s),children:[r(I,{className:"h-4 w-4"}),r("span",{className:"sr-only",children:"Next slide"})]})]})};export{w as a,b,W as c,z as d,U as e,B as f,O as g,V as h,X as i};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as W}from"./chunk-BH5NOYE2.mjs";import{a as V}from"./chunk-7BGLUDW3.mjs";import{a as _,e as L}from"./chunk-VSFCK26M.mjs";import{a as E}from"./chunk-E7MWJVCU.mjs";import{a as w}from"./chunk-YJYQLDPX.mjs";import{a as S}from"./chunk-UQEULOV7.mjs";import{k as M}from"./chunk-2DRA56DT.mjs";import{b as k,d as y,i as P,j as n}from"./chunk-U3WMNJPM.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as J}from"class-variance-authority";import Q from"js-cookie";import h from"next/link";import{useParams as X,useSelectedLayoutSegment as tt}from"next/navigation";import{createContext as et}from"react";import ot from"swr";import{useCallback as A,useEffect as H,useState as O}from"react";function x(r){let[t,d]=O(!1),i=A(()=>{d(window.scrollY>r)},[r]);return H(()=>(window.addEventListener("scroll",i),()=>window.removeEventListener("scroll",i)),[i]),H(()=>{i()},[i]),t}import*as l from"@radix-ui/react-popover";import{BoxSelect as G,Home as Z,LayoutGrid as U,Type as j}from"lucide-react";import{useParams as z}from"next/navigation";import{useCallback as F,useContext as $,useState as K}from"react";import{toast as T}from"sonner";import{jsx as o,jsxs as I}from"react/jsx-runtime";var Y=`<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>`,q=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;async function D(r){try{await navigator.clipboard.writeText(r),T.success("Copied to clipboard!")}catch(t){console.error("Failed to copy to clipboard.",t),T.error("Failed to copy to clipboard.")}}function R({variant:r="full",isInApp:t,className:d}){let{domain:i="dub.co"}=z(),{theme:m}=$(C),[g,u]=K(!1),b=F(s=>{s.preventDefault(),u(!0)},[]);return I(l.Root,{open:g,onOpenChange:u,children:[o(l.Anchor,{asChild:!0,children:o("div",{onContextMenu:b,className:"max-w-fit",children:r==="full"?o(E,{className:d}):o(w,{className:n("h-8 w-8 transition-all duration-75 active:scale-95",d)})})}),o(l.Portal,{children:o(l.Content,{sideOffset:14,align:"start",className:n("z-50 -mt-1.5 -translate-x-10",m==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),u(!1)},children:I("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[o(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>D(Y),icon:o(w,{className:"h-4 w-4"})}),o(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>D(q),icon:o(j,{strokeWidth:2,className:"h-4 w-4"})}),o(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:o(G,{strokeWidth:2,className:"h-4 w-4"})}),t||i!="dub.co"?o(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${t?"/home":""}`,"_blank"),icon:o(Z,{strokeWidth:2,className:"h-4 w-4"})}):o(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:o(U,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:r,...t}){return o(M,{className:n("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",r),...t})}import{Fragment as it,jsx as e,jsxs as c}from"react/jsx-runtime";var C=et({theme:"light"}),rt=[{name:"Product",content:V,childItems:_},{name:"Resources",content:W,childItems:L},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=J(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Tt({theme:r="light"}){let{domain:t="dub.co"}=X(),d=x(80),i=x(40),m=tt(),{data:g,isLoading:u}=ot(t==="dub.co"&&"/api/auth/session",P,{dedupingInterval:6e4}),b=!!(t==="dub.co"&&Q.get("dub_id"));return e(C.Provider,{value:{theme:r},children:c("div",{className:n("sticky inset-x-0 top-0 z-30 w-full transition-all",r==="dark"&&"dark"),children:[e("div",{className:n("absolute inset-0 block transition-all lg:hidden",i&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),e(S,{className:"relative",children:c("div",{className:"flex h-14 items-center justify-between",children:[e(h,{className:"grow basis-0",href:k("/home",t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:"Logo"}),children:e(R,{})}),c(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[c(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[e("div",{className:"absolute inset-0 -z-[1]",children:e("div",{className:n("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 drop-shadow-sm transition-all dark:border-white/10",m&&HIDE_BACKGROUND_SEGMENTS.includes(m)?"bg-white dark:bg-black":"bg-white/75 backdrop-blur-lg dark:bg-black/75",d&&"h-14 w-screen rounded-none drop-shadow-none")})}),rt.map(({name:s,href:v,content:f})=>{let N=v===`/${m}`||v==="/"&&m===null;return c(a.Item,{children:[e(at,{trigger:!!f,children:v!==void 0?e(h,{id:`nav-${v}`,href:k(v,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:s}),className:B({isActive:N}),children:s}):e("button",{className:B({isActive:N}),children:s})}),f&&e(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:e(f,{domain:t})})]},s)})]}),e("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:e(a.Viewport,{className:n("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),e("div",{className:"hidden grow basis-0 justify-end lg:flex",children:g&&Object.keys(g).length>0?e(h,{href:y,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"}):u?null:c(it,{children:[e(h,{href:b?"https://app.dub.co/login":"https://d.to/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"}),e(h,{href:b?"https://app.dub.co/register":"https://d.to/try",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"})]})})]})})]})})}function at({trigger:r,children:t}){return r?e(a.Trigger,{asChild:!0,children:t}):t}export{x as a,C as b,rt as c,Tt as d,R as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{p as t}from"./chunk-5BZ3GYDV.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};
|