@embedreach/components 0.1.33 → 0.1.34
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/chunks/index.js +425 -188
- package/dist/index.umd.js +437 -200
- package/dist/styles.css +683 -382
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -3,6 +3,234 @@ import * as React from "react";
|
|
|
3
3
|
import React__default, { createContext as createContext$1, Component, useReducer, useMemo, useEffect, useContext as useContext$1, useCallback, useState, useRef, createElement as createElement$1, forwardRef, useId as useId$2, useInsertionEffect, Children, isValidElement, useLayoutEffect, Fragment as Fragment$1, cloneElement } from "react";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import ReactDOM__default, { flushSync } from "react-dom";
|
|
6
|
+
const base$5 = "reach-styles-module__base___1f29D";
|
|
7
|
+
const destructive$3 = "reach-styles-module__destructive___I1tif";
|
|
8
|
+
const title$1 = "reach-styles-module__title___gL-0t";
|
|
9
|
+
const description$1 = "reach-styles-module__description___TBeKF";
|
|
10
|
+
const styles_module$4 = {
|
|
11
|
+
base: base$5,
|
|
12
|
+
"default": "reach-styles-module__default___sG8Jl",
|
|
13
|
+
destructive: destructive$3,
|
|
14
|
+
title: title$1,
|
|
15
|
+
description: description$1
|
|
16
|
+
};
|
|
17
|
+
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
|
+
__proto__: null,
|
|
19
|
+
base: base$5,
|
|
20
|
+
default: styles_module$4,
|
|
21
|
+
description: description$1,
|
|
22
|
+
destructive: destructive$3,
|
|
23
|
+
title: title$1
|
|
24
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
25
|
+
const base$4 = "reach-styles-module__base___eJmcH";
|
|
26
|
+
const secondary$3 = "reach-styles-module__secondary___H-ae8";
|
|
27
|
+
const destructive$2 = "reach-styles-module__destructive___JsRNh";
|
|
28
|
+
const outline$2 = "reach-styles-module__outline___9FFlV";
|
|
29
|
+
const google = "reach-styles-module__google___7eHwU";
|
|
30
|
+
const dark = "reach-styles-module__dark___gu5hq";
|
|
31
|
+
const date$2 = "reach-styles-module__date___gU3Tt";
|
|
32
|
+
const sizeDefault$3 = "reach-styles-module__size-default___bnA-o";
|
|
33
|
+
const sizeSm$3 = "reach-styles-module__size-sm___-y5xc";
|
|
34
|
+
const iconOnly = "reach-styles-module__icon-only___ae2yu";
|
|
35
|
+
const iconOnlySm = "reach-styles-module__icon-only-sm___j9kLM";
|
|
36
|
+
const container = "reach-styles-module__container___5PrOx";
|
|
37
|
+
const styles$6 = {
|
|
38
|
+
base: base$4,
|
|
39
|
+
"default": "reach-styles-module__default___8NuEB",
|
|
40
|
+
secondary: secondary$3,
|
|
41
|
+
destructive: destructive$2,
|
|
42
|
+
outline: outline$2,
|
|
43
|
+
google,
|
|
44
|
+
dark,
|
|
45
|
+
date: date$2,
|
|
46
|
+
sizeDefault: sizeDefault$3,
|
|
47
|
+
sizeSm: sizeSm$3,
|
|
48
|
+
iconOnly,
|
|
49
|
+
iconOnlySm,
|
|
50
|
+
container
|
|
51
|
+
};
|
|
52
|
+
const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53
|
+
__proto__: null,
|
|
54
|
+
base: base$4,
|
|
55
|
+
container,
|
|
56
|
+
dark,
|
|
57
|
+
date: date$2,
|
|
58
|
+
default: styles$6,
|
|
59
|
+
destructive: destructive$2,
|
|
60
|
+
google,
|
|
61
|
+
iconOnly,
|
|
62
|
+
iconOnlySm,
|
|
63
|
+
outline: outline$2,
|
|
64
|
+
secondary: secondary$3,
|
|
65
|
+
sizeDefault: sizeDefault$3,
|
|
66
|
+
sizeSm: sizeSm$3
|
|
67
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
68
|
+
const base$3 = "reach-styles-module__base___jV5oA";
|
|
69
|
+
const primary = "reach-styles-module__primary___WEdH4";
|
|
70
|
+
const success = "reach-styles-module__success___-eJqU";
|
|
71
|
+
const warning$2 = "reach-styles-module__warning___KP0RW";
|
|
72
|
+
const error$2 = "reach-styles-module__error___klJoJ";
|
|
73
|
+
const sizeDefault$2 = "reach-styles-module__size-default___hgiNI";
|
|
74
|
+
const sizeSm$2 = "reach-styles-module__size-sm___tiHOk";
|
|
75
|
+
const sizeLg$2 = "reach-styles-module__size-lg___iGf5z";
|
|
76
|
+
const positionDefault = "reach-styles-module__position-default___FzGg5";
|
|
77
|
+
const positionTop = "reach-styles-module__position-top___NpFYx";
|
|
78
|
+
const positionBottom = "reach-styles-module__position-bottom___-DbqR";
|
|
79
|
+
const positionInline = "reach-styles-module__position-inline___I-BaY";
|
|
80
|
+
const styles_module$3 = {
|
|
81
|
+
base: base$3,
|
|
82
|
+
"default": "reach-styles-module__default___eFUo9",
|
|
83
|
+
primary,
|
|
84
|
+
success,
|
|
85
|
+
warning: warning$2,
|
|
86
|
+
error: error$2,
|
|
87
|
+
sizeDefault: sizeDefault$2,
|
|
88
|
+
sizeSm: sizeSm$2,
|
|
89
|
+
sizeLg: sizeLg$2,
|
|
90
|
+
positionDefault,
|
|
91
|
+
positionTop,
|
|
92
|
+
positionBottom,
|
|
93
|
+
positionInline
|
|
94
|
+
};
|
|
95
|
+
const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
96
|
+
__proto__: null,
|
|
97
|
+
base: base$3,
|
|
98
|
+
default: styles_module$3,
|
|
99
|
+
error: error$2,
|
|
100
|
+
positionBottom,
|
|
101
|
+
positionDefault,
|
|
102
|
+
positionInline,
|
|
103
|
+
positionTop,
|
|
104
|
+
primary,
|
|
105
|
+
sizeDefault: sizeDefault$2,
|
|
106
|
+
sizeLg: sizeLg$2,
|
|
107
|
+
sizeSm: sizeSm$2,
|
|
108
|
+
success,
|
|
109
|
+
warning: warning$2
|
|
110
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
111
|
+
const base$2 = "reach-styles-module__base___RP4iu";
|
|
112
|
+
const destructive$1 = "reach-styles-module__destructive___BZSYi";
|
|
113
|
+
const outline$1 = "reach-styles-module__outline___bNcaI";
|
|
114
|
+
const secondary$2 = "reach-styles-module__secondary___osvqQ";
|
|
115
|
+
const ghost = "reach-styles-module__ghost___uU77B";
|
|
116
|
+
const link = "reach-styles-module__link___nSLOW";
|
|
117
|
+
const sizeDefault$1 = "reach-styles-module__size-default___kIvbz";
|
|
118
|
+
const sizeSm$1 = "reach-styles-module__size-sm___45mpF";
|
|
119
|
+
const sizeLg$1 = "reach-styles-module__size-lg___49p4A";
|
|
120
|
+
const sizeIcon = "reach-styles-module__size-icon___-6vvi";
|
|
121
|
+
const styles$5 = {
|
|
122
|
+
base: base$2,
|
|
123
|
+
"default": "reach-styles-module__default___pajjj",
|
|
124
|
+
destructive: destructive$1,
|
|
125
|
+
outline: outline$1,
|
|
126
|
+
secondary: secondary$2,
|
|
127
|
+
ghost,
|
|
128
|
+
link,
|
|
129
|
+
sizeDefault: sizeDefault$1,
|
|
130
|
+
sizeSm: sizeSm$1,
|
|
131
|
+
sizeLg: sizeLg$1,
|
|
132
|
+
sizeIcon
|
|
133
|
+
};
|
|
134
|
+
const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
135
|
+
__proto__: null,
|
|
136
|
+
base: base$2,
|
|
137
|
+
default: styles$5,
|
|
138
|
+
destructive: destructive$1,
|
|
139
|
+
ghost,
|
|
140
|
+
link,
|
|
141
|
+
outline: outline$1,
|
|
142
|
+
secondary: secondary$2,
|
|
143
|
+
sizeDefault: sizeDefault$1,
|
|
144
|
+
sizeIcon,
|
|
145
|
+
sizeLg: sizeLg$1,
|
|
146
|
+
sizeSm: sizeSm$1
|
|
147
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
148
|
+
const base$1 = "reach-styles-module__base___ANlIr";
|
|
149
|
+
const destructive = "reach-styles-module__destructive___a6Swz";
|
|
150
|
+
const outline = "reach-styles-module__outline___INmdX";
|
|
151
|
+
const secondary$1 = "reach-styles-module__secondary___Ym15V";
|
|
152
|
+
const header = "reach-styles-module__header___CzneX";
|
|
153
|
+
const title = "reach-styles-module__title___8ostO";
|
|
154
|
+
const description = "reach-styles-module__description___xR5d4";
|
|
155
|
+
const content = "reach-styles-module__content___XXeK2";
|
|
156
|
+
const footer = "reach-styles-module__footer___35Xil";
|
|
157
|
+
const styles$4 = {
|
|
158
|
+
base: base$1,
|
|
159
|
+
"default": "reach-styles-module__default___S2tp4",
|
|
160
|
+
destructive,
|
|
161
|
+
outline,
|
|
162
|
+
secondary: secondary$1,
|
|
163
|
+
header,
|
|
164
|
+
title,
|
|
165
|
+
description,
|
|
166
|
+
content,
|
|
167
|
+
footer
|
|
168
|
+
};
|
|
169
|
+
const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
170
|
+
__proto__: null,
|
|
171
|
+
base: base$1,
|
|
172
|
+
content,
|
|
173
|
+
default: styles$4,
|
|
174
|
+
description,
|
|
175
|
+
destructive,
|
|
176
|
+
footer,
|
|
177
|
+
header,
|
|
178
|
+
outline,
|
|
179
|
+
secondary: secondary$1,
|
|
180
|
+
title
|
|
181
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
182
|
+
const base = "reach-styles-module__base___ihq8K";
|
|
183
|
+
const secondary = "reach-styles-module__secondary___-4DAF";
|
|
184
|
+
const sizeDefault = "reach-styles-module__size-default___GR-0s";
|
|
185
|
+
const sizeSm = "reach-styles-module__size-sm___di6Rw";
|
|
186
|
+
const sizeLg = "reach-styles-module__size-lg___KGbCW";
|
|
187
|
+
const styles_module$2 = {
|
|
188
|
+
base,
|
|
189
|
+
"default": "reach-styles-module__default___xYprf",
|
|
190
|
+
secondary,
|
|
191
|
+
sizeDefault,
|
|
192
|
+
sizeSm,
|
|
193
|
+
sizeLg
|
|
194
|
+
};
|
|
195
|
+
const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
196
|
+
__proto__: null,
|
|
197
|
+
base,
|
|
198
|
+
default: styles_module$2,
|
|
199
|
+
secondary,
|
|
200
|
+
sizeDefault,
|
|
201
|
+
sizeLg,
|
|
202
|
+
sizeSm
|
|
203
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
204
|
+
const skeleton = "reach-styles-module__skeleton___G4xtU";
|
|
205
|
+
const pulse = "reach-styles-module__pulse___6mIhJ";
|
|
206
|
+
const styles_module$1 = {
|
|
207
|
+
skeleton,
|
|
208
|
+
pulse
|
|
209
|
+
};
|
|
210
|
+
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
211
|
+
__proto__: null,
|
|
212
|
+
default: styles_module$1,
|
|
213
|
+
pulse,
|
|
214
|
+
skeleton
|
|
215
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
216
|
+
const root$1 = "reach-styles-module__root___eifex";
|
|
217
|
+
const track = "reach-styles-module__track___NJnT0";
|
|
218
|
+
const range = "reach-styles-module__range___mw-ny";
|
|
219
|
+
const thumb = "reach-styles-module__thumb___hzq0o";
|
|
220
|
+
const styles_module = {
|
|
221
|
+
root: root$1,
|
|
222
|
+
track,
|
|
223
|
+
range,
|
|
224
|
+
thumb
|
|
225
|
+
};
|
|
226
|
+
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
227
|
+
__proto__: null,
|
|
228
|
+
default: styles_module,
|
|
229
|
+
range,
|
|
230
|
+
root: root$1,
|
|
231
|
+
thumb,
|
|
232
|
+
track
|
|
233
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
234
|
var Subscribable = class {
|
|
7
235
|
constructor() {
|
|
8
236
|
this.listeners = /* @__PURE__ */ new Set();
|
|
@@ -2611,7 +2839,7 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
2611
2839
|
options = {};
|
|
2612
2840
|
}
|
|
2613
2841
|
let pr = null, initP = NO_INIT, id2 = null, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
|
|
2614
|
-
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error2, setError2] = createSignal(void 0), [
|
|
2842
|
+
const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error2, setError2] = createSignal(void 0), [track2, trigger] = createSignal(void 0, {
|
|
2615
2843
|
equals: false
|
|
2616
2844
|
}), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
2617
2845
|
if (sharedConfig.context) {
|
|
@@ -11136,7 +11364,7 @@ class Browser {
|
|
|
11136
11364
|
}
|
|
11137
11365
|
Browser.type = "languageDetector";
|
|
11138
11366
|
const ad_spend$1 = "Ad Spend";
|
|
11139
|
-
const date$
|
|
11367
|
+
const date$1 = "Date";
|
|
11140
11368
|
const close$1 = "Close";
|
|
11141
11369
|
const connected$1 = "Connected";
|
|
11142
11370
|
const connecting$1 = "Connecting...";
|
|
@@ -11523,7 +11751,7 @@ const empty_state$1 = {
|
|
|
11523
11751
|
};
|
|
11524
11752
|
const enCommon = {
|
|
11525
11753
|
ad_spend: ad_spend$1,
|
|
11526
|
-
date: date$
|
|
11754
|
+
date: date$1,
|
|
11527
11755
|
close: close$1,
|
|
11528
11756
|
"continue": "Continue",
|
|
11529
11757
|
connected: connected$1,
|
|
@@ -11562,7 +11790,7 @@ const enCommon = {
|
|
|
11562
11790
|
empty_state: empty_state$1
|
|
11563
11791
|
};
|
|
11564
11792
|
const ad_spend = "Gasto en anuncios";
|
|
11565
|
-
const date
|
|
11793
|
+
const date = "Fecha";
|
|
11566
11794
|
const close = "Cerrar";
|
|
11567
11795
|
const connected = "Conectado";
|
|
11568
11796
|
const connecting = "Conectando...";
|
|
@@ -11949,7 +12177,7 @@ const empty_state = {
|
|
|
11949
12177
|
};
|
|
11950
12178
|
const esCommon = {
|
|
11951
12179
|
ad_spend,
|
|
11952
|
-
date
|
|
12180
|
+
date,
|
|
11953
12181
|
close,
|
|
11954
12182
|
"continue": "Continuar",
|
|
11955
12183
|
connected,
|
|
@@ -12409,7 +12637,7 @@ function createCollection(name) {
|
|
|
12409
12637
|
createCollectionScope2
|
|
12410
12638
|
];
|
|
12411
12639
|
}
|
|
12412
|
-
var NODES$
|
|
12640
|
+
var NODES$3 = [
|
|
12413
12641
|
"a",
|
|
12414
12642
|
"button",
|
|
12415
12643
|
"div",
|
|
@@ -12427,7 +12655,7 @@ var NODES$2 = [
|
|
|
12427
12655
|
"svg",
|
|
12428
12656
|
"ul"
|
|
12429
12657
|
];
|
|
12430
|
-
var Primitive$
|
|
12658
|
+
var Primitive$3 = NODES$3.reduce((primitive, node) => {
|
|
12431
12659
|
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
12432
12660
|
const { asChild, ...primitiveProps } = props;
|
|
12433
12661
|
const Comp = asChild ? Slot$3 : node;
|
|
@@ -12549,7 +12777,7 @@ var DismissableLayer$3 = React.forwardRef(
|
|
|
12549
12777
|
return () => document.removeEventListener(CONTEXT_UPDATE$3, handleUpdate);
|
|
12550
12778
|
}, []);
|
|
12551
12779
|
return /* @__PURE__ */ jsx(
|
|
12552
|
-
Primitive$
|
|
12780
|
+
Primitive$3.div,
|
|
12553
12781
|
{
|
|
12554
12782
|
...layerProps,
|
|
12555
12783
|
ref: composedRefs,
|
|
@@ -12582,7 +12810,7 @@ var DismissableLayerBranch$3 = React.forwardRef((props, forwardedRef) => {
|
|
|
12582
12810
|
};
|
|
12583
12811
|
}
|
|
12584
12812
|
}, [context.branches]);
|
|
12585
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
12813
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...props, ref: composedRefs });
|
|
12586
12814
|
});
|
|
12587
12815
|
DismissableLayerBranch$3.displayName = BRANCH_NAME$3;
|
|
12588
12816
|
function usePointerDownOutside$3(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -12672,7 +12900,7 @@ var Portal$6 = React.forwardRef((props, forwardedRef) => {
|
|
|
12672
12900
|
const [mounted, setMounted] = React.useState(false);
|
|
12673
12901
|
useLayoutEffect2(() => setMounted(true), []);
|
|
12674
12902
|
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
12675
|
-
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$
|
|
12903
|
+
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$3.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
12676
12904
|
});
|
|
12677
12905
|
Portal$6.displayName = PORTAL_NAME$7;
|
|
12678
12906
|
function useStateMachine(initialState, machine) {
|
|
@@ -12837,11 +13065,11 @@ function useUncontrolledState({
|
|
|
12837
13065
|
}, [value, prevValueRef, handleChange]);
|
|
12838
13066
|
return uncontrolledState;
|
|
12839
13067
|
}
|
|
12840
|
-
var NAME$
|
|
12841
|
-
var VisuallyHidden = React.forwardRef(
|
|
13068
|
+
var NAME$4 = "VisuallyHidden";
|
|
13069
|
+
var VisuallyHidden$1 = React.forwardRef(
|
|
12842
13070
|
(props, forwardedRef) => {
|
|
12843
13071
|
return /* @__PURE__ */ jsx(
|
|
12844
|
-
Primitive$
|
|
13072
|
+
Primitive$3.span,
|
|
12845
13073
|
{
|
|
12846
13074
|
...props,
|
|
12847
13075
|
ref: forwardedRef,
|
|
@@ -12863,8 +13091,8 @@ var VisuallyHidden = React.forwardRef(
|
|
|
12863
13091
|
);
|
|
12864
13092
|
}
|
|
12865
13093
|
);
|
|
12866
|
-
VisuallyHidden.displayName = NAME$
|
|
12867
|
-
var Root$6 = VisuallyHidden;
|
|
13094
|
+
VisuallyHidden$1.displayName = NAME$4;
|
|
13095
|
+
var Root$6 = VisuallyHidden$1;
|
|
12868
13096
|
var PROVIDER_NAME$1 = "ToastProvider";
|
|
12869
13097
|
var [Collection$3, useCollection$3, createCollectionScope$3] = createCollection("Toast");
|
|
12870
13098
|
var [createToastContext, createToastScope] = createContextScope("Toast", [createCollectionScope$3]);
|
|
@@ -13039,7 +13267,7 @@ var ToastViewport$1 = React.forwardRef(
|
|
|
13039
13267
|
}
|
|
13040
13268
|
}
|
|
13041
13269
|
),
|
|
13042
|
-
/* @__PURE__ */ jsx(Collection$3.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(Primitive$
|
|
13270
|
+
/* @__PURE__ */ jsx(Collection$3.Slot, { scope: __scopeToast, children: /* @__PURE__ */ jsx(Primitive$3.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
|
|
13043
13271
|
hasToasts && /* @__PURE__ */ jsx(
|
|
13044
13272
|
FocusProxy,
|
|
13045
13273
|
{
|
|
@@ -13064,7 +13292,7 @@ var FocusProxy = React.forwardRef(
|
|
|
13064
13292
|
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
13065
13293
|
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
13066
13294
|
return /* @__PURE__ */ jsx(
|
|
13067
|
-
VisuallyHidden,
|
|
13295
|
+
VisuallyHidden$1,
|
|
13068
13296
|
{
|
|
13069
13297
|
"aria-hidden": true,
|
|
13070
13298
|
tabIndex: 0,
|
|
@@ -13231,7 +13459,7 @@ var ToastImpl = React.forwardRef(
|
|
|
13231
13459
|
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
13232
13460
|
}),
|
|
13233
13461
|
children: /* @__PURE__ */ jsx(
|
|
13234
|
-
Primitive$
|
|
13462
|
+
Primitive$3.li,
|
|
13235
13463
|
{
|
|
13236
13464
|
role: "status",
|
|
13237
13465
|
"aria-live": "off",
|
|
@@ -13330,7 +13558,7 @@ var ToastAnnounce = (props) => {
|
|
|
13330
13558
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
13331
13559
|
return () => window.clearTimeout(timer);
|
|
13332
13560
|
}, []);
|
|
13333
|
-
return isAnnounced ? null : /* @__PURE__ */ jsx(Portal$6, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13561
|
+
return isAnnounced ? null : /* @__PURE__ */ jsx(Portal$6, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden$1, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
13334
13562
|
context.label,
|
|
13335
13563
|
" ",
|
|
13336
13564
|
children2
|
|
@@ -13340,7 +13568,7 @@ var TITLE_NAME$1 = "ToastTitle";
|
|
|
13340
13568
|
var ToastTitle$1 = React.forwardRef(
|
|
13341
13569
|
(props, forwardedRef) => {
|
|
13342
13570
|
const { __scopeToast, ...titleProps } = props;
|
|
13343
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
13571
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...titleProps, ref: forwardedRef });
|
|
13344
13572
|
}
|
|
13345
13573
|
);
|
|
13346
13574
|
ToastTitle$1.displayName = TITLE_NAME$1;
|
|
@@ -13348,7 +13576,7 @@ var DESCRIPTION_NAME$1 = "ToastDescription";
|
|
|
13348
13576
|
var ToastDescription$1 = React.forwardRef(
|
|
13349
13577
|
(props, forwardedRef) => {
|
|
13350
13578
|
const { __scopeToast, ...descriptionProps } = props;
|
|
13351
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
13579
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...descriptionProps, ref: forwardedRef });
|
|
13352
13580
|
}
|
|
13353
13581
|
);
|
|
13354
13582
|
ToastDescription$1.displayName = DESCRIPTION_NAME$1;
|
|
@@ -13372,7 +13600,7 @@ var ToastClose$1 = React.forwardRef(
|
|
|
13372
13600
|
const { __scopeToast, ...closeProps } = props;
|
|
13373
13601
|
const interactiveContext = useToastInteractiveContext(CLOSE_NAME$2, __scopeToast);
|
|
13374
13602
|
return /* @__PURE__ */ jsx(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
13375
|
-
Primitive$
|
|
13603
|
+
Primitive$3.button,
|
|
13376
13604
|
{
|
|
13377
13605
|
type: "button",
|
|
13378
13606
|
...closeProps,
|
|
@@ -13386,7 +13614,7 @@ ToastClose$1.displayName = CLOSE_NAME$2;
|
|
|
13386
13614
|
var ToastAnnounceExclude = React.forwardRef((props, forwardedRef) => {
|
|
13387
13615
|
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
13388
13616
|
return /* @__PURE__ */ jsx(
|
|
13389
|
-
Primitive$
|
|
13617
|
+
Primitive$3.div,
|
|
13390
13618
|
{
|
|
13391
13619
|
"data-radix-toast-announce-exclude": "",
|
|
13392
13620
|
"data-radix-toast-announce-alt": altText || void 0,
|
|
@@ -18251,7 +18479,7 @@ function press(elementOrSelector, onPressStart, options = {}) {
|
|
|
18251
18479
|
return;
|
|
18252
18480
|
isPressing.add(element);
|
|
18253
18481
|
const onPressEnd = onPressStart(element, startEvent);
|
|
18254
|
-
const onPointerEnd = (endEvent,
|
|
18482
|
+
const onPointerEnd = (endEvent, success2) => {
|
|
18255
18483
|
window.removeEventListener("pointerup", onPointerUp);
|
|
18256
18484
|
window.removeEventListener("pointercancel", onPointerCancel);
|
|
18257
18485
|
if (!isValidPressEvent(endEvent) || !isPressing.has(element)) {
|
|
@@ -18259,7 +18487,7 @@ function press(elementOrSelector, onPressStart, options = {}) {
|
|
|
18259
18487
|
}
|
|
18260
18488
|
isPressing.delete(element);
|
|
18261
18489
|
if (typeof onPressEnd === "function") {
|
|
18262
|
-
onPressEnd(endEvent, { success });
|
|
18490
|
+
onPressEnd(endEvent, { success: success2 });
|
|
18263
18491
|
}
|
|
18264
18492
|
};
|
|
18265
18493
|
const onPointerUp = (upEvent) => {
|
|
@@ -23321,7 +23549,7 @@ class PressGesture extends Feature {
|
|
|
23321
23549
|
return;
|
|
23322
23550
|
this.unmount = press(current, (_element, startEvent) => {
|
|
23323
23551
|
handlePressEvent(this.node, startEvent, "Start");
|
|
23324
|
-
return (endEvent, { success }) => handlePressEvent(this.node, endEvent,
|
|
23552
|
+
return (endEvent, { success: success2 }) => handlePressEvent(this.node, endEvent, success2 ? "End" : "Cancel");
|
|
23325
23553
|
}, { useGlobalTarget: this.node.props.globalTapTarget });
|
|
23326
23554
|
}
|
|
23327
23555
|
unmount() {
|
|
@@ -24221,36 +24449,21 @@ function getElementRef$2(element) {
|
|
|
24221
24449
|
}
|
|
24222
24450
|
return element.props.ref || element.ref;
|
|
24223
24451
|
}
|
|
24224
|
-
const
|
|
24225
|
-
const destructive$2 = "reach-styles-module__destructive___BZSYi";
|
|
24226
|
-
const outline$2 = "reach-styles-module__outline___bNcaI";
|
|
24227
|
-
const secondary$2 = "reach-styles-module__secondary___osvqQ";
|
|
24228
|
-
const ghost = "reach-styles-module__ghost___uU77B";
|
|
24229
|
-
const link = "reach-styles-module__link___nSLOW";
|
|
24230
|
-
const styles$6 = {
|
|
24231
|
-
base: base$2,
|
|
24232
|
-
"default": "reach-styles-module__default___pajjj",
|
|
24233
|
-
destructive: destructive$2,
|
|
24234
|
-
outline: outline$2,
|
|
24235
|
-
secondary: secondary$2,
|
|
24236
|
-
ghost,
|
|
24237
|
-
link
|
|
24238
|
-
};
|
|
24239
|
-
const buttonVariants = cva([styles$6.base], {
|
|
24452
|
+
const buttonVariants = cva([styles$5.base], {
|
|
24240
24453
|
variants: {
|
|
24241
24454
|
variant: {
|
|
24242
|
-
default: styles$
|
|
24243
|
-
destructive: styles$
|
|
24244
|
-
outline: styles$
|
|
24245
|
-
secondary: styles$
|
|
24246
|
-
ghost: styles$
|
|
24247
|
-
link: styles$
|
|
24455
|
+
default: styles$5.default,
|
|
24456
|
+
destructive: styles$5.destructive,
|
|
24457
|
+
outline: styles$5.outline,
|
|
24458
|
+
secondary: styles$5.secondary,
|
|
24459
|
+
ghost: styles$5.ghost,
|
|
24460
|
+
link: styles$5.link
|
|
24248
24461
|
},
|
|
24249
24462
|
size: {
|
|
24250
|
-
default: styles$
|
|
24251
|
-
sm: styles$
|
|
24252
|
-
lg: styles$
|
|
24253
|
-
icon: styles$
|
|
24463
|
+
default: styles$5["size-default"],
|
|
24464
|
+
sm: styles$5["size-sm"],
|
|
24465
|
+
lg: styles$5["size-lg"],
|
|
24466
|
+
icon: styles$5["size-icon"]
|
|
24254
24467
|
}
|
|
24255
24468
|
},
|
|
24256
24469
|
defaultVariants: {
|
|
@@ -24332,7 +24545,7 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
|
|
|
24332
24545
|
}
|
|
24333
24546
|
);
|
|
24334
24547
|
};
|
|
24335
|
-
const styles$
|
|
24548
|
+
const styles$3 = {
|
|
24336
24549
|
title: "text-3xl mb-8",
|
|
24337
24550
|
grid: "grid grid-cols-2 gap-6",
|
|
24338
24551
|
container: "relative p-6 rounded-lg"
|
|
@@ -24341,9 +24554,9 @@ const ChooseAutomationType = ({ onNext, iconDefinitions }) => {
|
|
|
24341
24554
|
const onClick = (type) => {
|
|
24342
24555
|
onNext(type);
|
|
24343
24556
|
};
|
|
24344
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
24345
|
-
/* @__PURE__ */ jsx("h1", { className: styles$
|
|
24346
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
24557
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
|
|
24558
|
+
/* @__PURE__ */ jsx("h1", { className: styles$3.title, children: "Choose Your Automation Type" }),
|
|
24559
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.grid, children: [
|
|
24347
24560
|
/* @__PURE__ */ jsx(
|
|
24348
24561
|
BigSelector,
|
|
24349
24562
|
{
|
|
@@ -24398,16 +24611,16 @@ function UnreachableCaseStatement(x3, enumObj) {
|
|
|
24398
24611
|
`Unreachable case statement: ${JSON.stringify(x3)}. Valid values are: ${Object.values(enumObj).join(", ")}`
|
|
24399
24612
|
);
|
|
24400
24613
|
}
|
|
24401
|
-
const styles$
|
|
24614
|
+
const styles$2 = {
|
|
24402
24615
|
iconWrapper: "mb-4 flex items-center justify-center",
|
|
24403
24616
|
cardTitle: "text-lg font-medium mb-2",
|
|
24404
24617
|
cardDescription: "text-sm text-gray-600"
|
|
24405
24618
|
};
|
|
24406
24619
|
const OneTimeBroadcast = ({ iconDefinitions }) => {
|
|
24407
24620
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
24408
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
24409
|
-
/* @__PURE__ */ jsx("h3", { className: styles$
|
|
24410
|
-
/* @__PURE__ */ jsx("p", { className: styles$
|
|
24621
|
+
/* @__PURE__ */ jsx("div", { className: styles$2.iconWrapper, children: /* @__PURE__ */ jsx(iconDefinitions.OneTimeBroadcast, {}) }),
|
|
24622
|
+
/* @__PURE__ */ jsx("h3", { className: styles$2.cardTitle, children: "One-Time Broadcast" }),
|
|
24623
|
+
/* @__PURE__ */ jsx("p", { className: styles$2.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
|
|
24411
24624
|
] });
|
|
24412
24625
|
};
|
|
24413
24626
|
const SetAutomationName = ({ selectedType, setAutomationName, automationName, iconDefinitions }) => {
|
|
@@ -24515,7 +24728,7 @@ const CreateAutomationModal = ({
|
|
|
24515
24728
|
});
|
|
24516
24729
|
};
|
|
24517
24730
|
if (isCreating || startedCreating) {
|
|
24518
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
24731
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
|
|
24519
24732
|
}
|
|
24520
24733
|
return /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
|
|
24521
24734
|
/* @__PURE__ */ jsxs(AnimatePresence, { mode: "wait", children: [
|
|
@@ -26861,7 +27074,7 @@ function getElementRef$1(element) {
|
|
|
26861
27074
|
}
|
|
26862
27075
|
return element.props.ref || element.ref;
|
|
26863
27076
|
}
|
|
26864
|
-
var NODES$
|
|
27077
|
+
var NODES$2 = [
|
|
26865
27078
|
"a",
|
|
26866
27079
|
"button",
|
|
26867
27080
|
"div",
|
|
@@ -26879,7 +27092,7 @@ var NODES$1 = [
|
|
|
26879
27092
|
"svg",
|
|
26880
27093
|
"ul"
|
|
26881
27094
|
];
|
|
26882
|
-
var Primitive$
|
|
27095
|
+
var Primitive$2 = NODES$2.reduce((primitive, node) => {
|
|
26883
27096
|
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
26884
27097
|
const { asChild, ...primitiveProps } = props;
|
|
26885
27098
|
const Comp = asChild ? Slot$1 : node;
|
|
@@ -26982,7 +27195,7 @@ var DismissableLayer$2 = React.forwardRef(
|
|
|
26982
27195
|
return () => document.removeEventListener(CONTEXT_UPDATE$2, handleUpdate);
|
|
26983
27196
|
}, []);
|
|
26984
27197
|
return /* @__PURE__ */ jsx(
|
|
26985
|
-
Primitive$
|
|
27198
|
+
Primitive$2.div,
|
|
26986
27199
|
{
|
|
26987
27200
|
...layerProps,
|
|
26988
27201
|
ref: composedRefs,
|
|
@@ -27015,7 +27228,7 @@ var DismissableLayerBranch$2 = React.forwardRef((props, forwardedRef) => {
|
|
|
27015
27228
|
};
|
|
27016
27229
|
}
|
|
27017
27230
|
}, [context.branches]);
|
|
27018
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
27231
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...props, ref: composedRefs });
|
|
27019
27232
|
});
|
|
27020
27233
|
DismissableLayerBranch$2.displayName = BRANCH_NAME$2;
|
|
27021
27234
|
function usePointerDownOutside$2(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -27212,7 +27425,7 @@ var FocusScope$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
27212
27425
|
},
|
|
27213
27426
|
[loop, trapped, focusScope.paused]
|
|
27214
27427
|
);
|
|
27215
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
27428
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
27216
27429
|
});
|
|
27217
27430
|
FocusScope$1.displayName = FOCUS_SCOPE_NAME$1;
|
|
27218
27431
|
function focusFirst$3(candidates, { select = false } = {}) {
|
|
@@ -27300,7 +27513,7 @@ var Portal$5 = React.forwardRef((props, forwardedRef) => {
|
|
|
27300
27513
|
const [mounted, setMounted] = React.useState(false);
|
|
27301
27514
|
useLayoutEffect2(() => setMounted(true), []);
|
|
27302
27515
|
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
27303
|
-
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$
|
|
27516
|
+
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$2.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
27304
27517
|
});
|
|
27305
27518
|
Portal$5.displayName = PORTAL_NAME$6;
|
|
27306
27519
|
var count = 0;
|
|
@@ -28145,7 +28358,7 @@ var DialogTrigger = React.forwardRef(
|
|
|
28145
28358
|
const context = useDialogContext(TRIGGER_NAME$5, __scopeDialog);
|
|
28146
28359
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
28147
28360
|
return /* @__PURE__ */ jsx(
|
|
28148
|
-
Primitive$
|
|
28361
|
+
Primitive$2.button,
|
|
28149
28362
|
{
|
|
28150
28363
|
type: "button",
|
|
28151
28364
|
"aria-haspopup": "dialog",
|
|
@@ -28188,7 +28401,7 @@ var DialogOverlayImpl = React.forwardRef(
|
|
|
28188
28401
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
28189
28402
|
// ie. when `Overlay` and `Content` are siblings
|
|
28190
28403
|
/* @__PURE__ */ jsx(ReactRemoveScroll$1, { as: Slot$1, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
|
|
28191
|
-
Primitive$
|
|
28404
|
+
Primitive$2.div,
|
|
28192
28405
|
{
|
|
28193
28406
|
"data-state": getState$1(context.open),
|
|
28194
28407
|
...overlayProps,
|
|
@@ -28326,7 +28539,7 @@ var DialogTitle$1 = React.forwardRef(
|
|
|
28326
28539
|
(props, forwardedRef) => {
|
|
28327
28540
|
const { __scopeDialog, ...titleProps } = props;
|
|
28328
28541
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
28329
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28542
|
+
return /* @__PURE__ */ jsx(Primitive$2.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
28330
28543
|
}
|
|
28331
28544
|
);
|
|
28332
28545
|
DialogTitle$1.displayName = TITLE_NAME;
|
|
@@ -28335,7 +28548,7 @@ var DialogDescription$1 = React.forwardRef(
|
|
|
28335
28548
|
(props, forwardedRef) => {
|
|
28336
28549
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
28337
28550
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
28338
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28551
|
+
return /* @__PURE__ */ jsx(Primitive$2.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
28339
28552
|
}
|
|
28340
28553
|
);
|
|
28341
28554
|
DialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
@@ -28345,7 +28558,7 @@ var DialogClose = React.forwardRef(
|
|
|
28345
28558
|
const { __scopeDialog, ...closeProps } = props;
|
|
28346
28559
|
const context = useDialogContext(CLOSE_NAME$1, __scopeDialog);
|
|
28347
28560
|
return /* @__PURE__ */ jsx(
|
|
28348
|
-
Primitive$
|
|
28561
|
+
Primitive$2.button,
|
|
28349
28562
|
{
|
|
28350
28563
|
type: "button",
|
|
28351
28564
|
...closeProps,
|
|
@@ -28400,6 +28613,63 @@ var Content$2 = DialogContent$1;
|
|
|
28400
28613
|
var Title = DialogTitle$1;
|
|
28401
28614
|
var Description = DialogDescription$1;
|
|
28402
28615
|
var Close = DialogClose;
|
|
28616
|
+
var NODES$1 = [
|
|
28617
|
+
"a",
|
|
28618
|
+
"button",
|
|
28619
|
+
"div",
|
|
28620
|
+
"form",
|
|
28621
|
+
"h2",
|
|
28622
|
+
"h3",
|
|
28623
|
+
"img",
|
|
28624
|
+
"input",
|
|
28625
|
+
"label",
|
|
28626
|
+
"li",
|
|
28627
|
+
"nav",
|
|
28628
|
+
"ol",
|
|
28629
|
+
"p",
|
|
28630
|
+
"span",
|
|
28631
|
+
"svg",
|
|
28632
|
+
"ul"
|
|
28633
|
+
];
|
|
28634
|
+
var Primitive$1 = NODES$1.reduce((primitive, node) => {
|
|
28635
|
+
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
28636
|
+
const { asChild, ...primitiveProps } = props;
|
|
28637
|
+
const Comp = asChild ? Slot$2 : node;
|
|
28638
|
+
if (typeof window !== "undefined") {
|
|
28639
|
+
window[Symbol.for("radix-ui")] = true;
|
|
28640
|
+
}
|
|
28641
|
+
return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
28642
|
+
});
|
|
28643
|
+
Node2.displayName = `Primitive.${node}`;
|
|
28644
|
+
return { ...primitive, [node]: Node2 };
|
|
28645
|
+
}, {});
|
|
28646
|
+
var NAME$3 = "VisuallyHidden";
|
|
28647
|
+
var VisuallyHidden = React.forwardRef(
|
|
28648
|
+
(props, forwardedRef) => {
|
|
28649
|
+
return /* @__PURE__ */ jsx(
|
|
28650
|
+
Primitive$1.span,
|
|
28651
|
+
{
|
|
28652
|
+
...props,
|
|
28653
|
+
ref: forwardedRef,
|
|
28654
|
+
style: {
|
|
28655
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
28656
|
+
position: "absolute",
|
|
28657
|
+
border: 0,
|
|
28658
|
+
width: 1,
|
|
28659
|
+
height: 1,
|
|
28660
|
+
padding: 0,
|
|
28661
|
+
margin: -1,
|
|
28662
|
+
overflow: "hidden",
|
|
28663
|
+
clip: "rect(0, 0, 0, 0)",
|
|
28664
|
+
whiteSpace: "nowrap",
|
|
28665
|
+
wordWrap: "normal",
|
|
28666
|
+
...props.style
|
|
28667
|
+
}
|
|
28668
|
+
}
|
|
28669
|
+
);
|
|
28670
|
+
}
|
|
28671
|
+
);
|
|
28672
|
+
VisuallyHidden.displayName = NAME$3;
|
|
28403
28673
|
function cn(...inputs) {
|
|
28404
28674
|
return twMerge(clsx(inputs));
|
|
28405
28675
|
}
|
|
@@ -28471,6 +28741,8 @@ const DialogDescription = React.forwardRef(({ className: className2, ...props },
|
|
|
28471
28741
|
}
|
|
28472
28742
|
));
|
|
28473
28743
|
DialogDescription.displayName = Description.displayName;
|
|
28744
|
+
const DialogVisuallyHidden = React.forwardRef(({ className: className2, children: children2, ...props }, ref) => /* @__PURE__ */ jsx(VisuallyHidden, { ref, className: cn(className2), ...props, children: children2 }));
|
|
28745
|
+
DialogVisuallyHidden.displayName = "DialogVisuallyHidden";
|
|
28474
28746
|
var DISMISSABLE_LAYER_NAME$1 = "DismissableLayer";
|
|
28475
28747
|
var CONTEXT_UPDATE$1 = "dismissableLayer.update";
|
|
28476
28748
|
var POINTER_DOWN_OUTSIDE$1 = "dismissableLayer.pointerDownOutside";
|
|
@@ -28559,7 +28831,7 @@ var DismissableLayer$1 = React.forwardRef(
|
|
|
28559
28831
|
return () => document.removeEventListener(CONTEXT_UPDATE$1, handleUpdate);
|
|
28560
28832
|
}, []);
|
|
28561
28833
|
return /* @__PURE__ */ jsx(
|
|
28562
|
-
Primitive$
|
|
28834
|
+
Primitive$3.div,
|
|
28563
28835
|
{
|
|
28564
28836
|
...layerProps,
|
|
28565
28837
|
ref: composedRefs,
|
|
@@ -28592,7 +28864,7 @@ var DismissableLayerBranch$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
28592
28864
|
};
|
|
28593
28865
|
}
|
|
28594
28866
|
}, [context.branches]);
|
|
28595
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28867
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...props, ref: composedRefs });
|
|
28596
28868
|
});
|
|
28597
28869
|
DismissableLayerBranch$1.displayName = BRANCH_NAME$1;
|
|
28598
28870
|
function usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -30514,7 +30786,7 @@ var NAME$2 = "Arrow";
|
|
|
30514
30786
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
30515
30787
|
const { children: children2, width = 10, height = 5, ...arrowProps } = props;
|
|
30516
30788
|
return /* @__PURE__ */ jsx(
|
|
30517
|
-
Primitive$
|
|
30789
|
+
Primitive$3.svg,
|
|
30518
30790
|
{
|
|
30519
30791
|
...arrowProps,
|
|
30520
30792
|
ref: forwardedRef,
|
|
@@ -30581,7 +30853,7 @@ var PopperAnchor = React.forwardRef(
|
|
|
30581
30853
|
React.useEffect(() => {
|
|
30582
30854
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
30583
30855
|
});
|
|
30584
|
-
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$
|
|
30856
|
+
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$3.div, { ...anchorProps, ref: composedRefs });
|
|
30585
30857
|
}
|
|
30586
30858
|
);
|
|
30587
30859
|
PopperAnchor.displayName = ANCHOR_NAME$2;
|
|
@@ -30708,7 +30980,7 @@ var PopperContent = React.forwardRef(
|
|
|
30708
30980
|
arrowY,
|
|
30709
30981
|
shouldHideArrow: cannotCenterArrow,
|
|
30710
30982
|
children: /* @__PURE__ */ jsx(
|
|
30711
|
-
Primitive$
|
|
30983
|
+
Primitive$3.div,
|
|
30712
30984
|
{
|
|
30713
30985
|
"data-side": placedSide,
|
|
30714
30986
|
"data-align": placedAlign,
|
|
@@ -30984,7 +31256,7 @@ var TooltipTrigger$1 = React.forwardRef(
|
|
|
30984
31256
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
30985
31257
|
}, [handlePointerUp]);
|
|
30986
31258
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
30987
|
-
Primitive$
|
|
31259
|
+
Primitive$3.button,
|
|
30988
31260
|
{
|
|
30989
31261
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
30990
31262
|
"data-state": context.stateAttribute,
|
|
@@ -31343,14 +31615,14 @@ const InfoTooltip = ({ title: title2, alertText, Icon: Icon2 = Info, onClick })
|
|
|
31343
31615
|
] }) })
|
|
31344
31616
|
] }) });
|
|
31345
31617
|
};
|
|
31346
|
-
const styles$
|
|
31618
|
+
const styles$1 = {
|
|
31347
31619
|
container: "flex flex-col items-center justify-center h-full"
|
|
31348
31620
|
};
|
|
31349
31621
|
const AutomationStatistics = ({ automationId, iconDefinitions }) => {
|
|
31350
31622
|
const [activeTab, setActiveTab] = useState("email");
|
|
31351
31623
|
const { statistics, isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
31352
31624
|
if (isStatisticsLoading || !statistics) {
|
|
31353
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
31625
|
+
return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
|
|
31354
31626
|
}
|
|
31355
31627
|
const StatsGrid = () => {
|
|
31356
31628
|
const statGridMainDiv = "flex items-center bg-white rounded-lg p-4 shadow-sm border border-gray-200 transform transition-all duration-300 hover:shadow-md";
|
|
@@ -33052,39 +33324,22 @@ function formatDistance$1(date2, baseDate, options) {
|
|
|
33052
33324
|
function formatDistanceToNow(date2, options) {
|
|
33053
33325
|
return formatDistance$1(date2, constructNow(date2), options);
|
|
33054
33326
|
}
|
|
33055
|
-
const
|
|
33056
|
-
const secondary$1 = "reach-styles-module__secondary___H-ae8";
|
|
33057
|
-
const destructive$1 = "reach-styles-module__destructive___JsRNh";
|
|
33058
|
-
const outline$1 = "reach-styles-module__outline___9FFlV";
|
|
33059
|
-
const google = "reach-styles-module__google___7eHwU";
|
|
33060
|
-
const date = "reach-styles-module__date___gU3Tt";
|
|
33061
|
-
const container = "reach-styles-module__container___5PrOx";
|
|
33062
|
-
const styles$2 = {
|
|
33063
|
-
base: base$1,
|
|
33064
|
-
"default": "reach-styles-module__default___8NuEB",
|
|
33065
|
-
secondary: secondary$1,
|
|
33066
|
-
destructive: destructive$1,
|
|
33067
|
-
outline: outline$1,
|
|
33068
|
-
google,
|
|
33069
|
-
date,
|
|
33070
|
-
container
|
|
33071
|
-
};
|
|
33072
|
-
const badgeVariants = cva([styles$2.base], {
|
|
33327
|
+
const badgeVariants = cva([styles$6.base], {
|
|
33073
33328
|
variants: {
|
|
33074
33329
|
variant: {
|
|
33075
|
-
default: styles$
|
|
33076
|
-
secondary: styles$
|
|
33077
|
-
destructive: styles$
|
|
33078
|
-
outline: styles$
|
|
33079
|
-
google: styles$
|
|
33080
|
-
date: styles$
|
|
33330
|
+
default: styles$6.default,
|
|
33331
|
+
secondary: styles$6.secondary,
|
|
33332
|
+
destructive: styles$6.destructive,
|
|
33333
|
+
outline: styles$6.outline,
|
|
33334
|
+
google: styles$6.google,
|
|
33335
|
+
date: styles$6.date
|
|
33081
33336
|
},
|
|
33082
33337
|
size: {
|
|
33083
|
-
default: styles$
|
|
33084
|
-
sm: styles$
|
|
33338
|
+
default: styles$6["size-default"],
|
|
33339
|
+
sm: styles$6["size-sm"]
|
|
33085
33340
|
},
|
|
33086
33341
|
iconOnly: {
|
|
33087
|
-
true: styles$
|
|
33342
|
+
true: styles$6["icon-only"],
|
|
33088
33343
|
false: ""
|
|
33089
33344
|
}
|
|
33090
33345
|
},
|
|
@@ -33092,7 +33347,7 @@ const badgeVariants = cva([styles$2.base], {
|
|
|
33092
33347
|
{
|
|
33093
33348
|
iconOnly: true,
|
|
33094
33349
|
size: "sm",
|
|
33095
|
-
class: styles$
|
|
33350
|
+
class: styles$6["icon-only-sm"]
|
|
33096
33351
|
}
|
|
33097
33352
|
],
|
|
33098
33353
|
defaultVariants: {
|
|
@@ -33102,13 +33357,13 @@ const badgeVariants = cva([styles$2.base], {
|
|
|
33102
33357
|
}
|
|
33103
33358
|
});
|
|
33104
33359
|
const Badge = React.forwardRef(
|
|
33105
|
-
({ className: className2, variant, size: size2, iconOnly, truncate, ...props }, ref) => {
|
|
33360
|
+
({ className: className2, variant, size: size2, iconOnly: iconOnly2, truncate, ...props }, ref) => {
|
|
33106
33361
|
return /* @__PURE__ */ jsx(
|
|
33107
33362
|
"div",
|
|
33108
33363
|
{
|
|
33109
33364
|
ref,
|
|
33110
33365
|
className: cn$1(
|
|
33111
|
-
badgeVariants({ variant, size: size2, iconOnly }),
|
|
33366
|
+
badgeVariants({ variant, size: size2, iconOnly: iconOnly2 }),
|
|
33112
33367
|
truncate && "max-w-[90px]",
|
|
33113
33368
|
className2
|
|
33114
33369
|
),
|
|
@@ -33119,7 +33374,7 @@ const Badge = React.forwardRef(
|
|
|
33119
33374
|
);
|
|
33120
33375
|
Badge.displayName = "Badge";
|
|
33121
33376
|
const BadgeContainer = React.forwardRef(({ className: className2, ...props }, ref) => {
|
|
33122
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$
|
|
33377
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$6.container, className2), ...props });
|
|
33123
33378
|
});
|
|
33124
33379
|
BadgeContainer.displayName = "BadgeContainer";
|
|
33125
33380
|
const Input = React.forwardRef(
|
|
@@ -35799,7 +36054,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
35799
36054
|
},
|
|
35800
36055
|
[loop, trapped, focusScope.paused]
|
|
35801
36056
|
);
|
|
35802
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
36057
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
35803
36058
|
});
|
|
35804
36059
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
35805
36060
|
function focusFirst$2(candidates, { select = false } = {}) {
|
|
@@ -35945,7 +36200,7 @@ var PopoverTrigger$1 = React.forwardRef(
|
|
|
35945
36200
|
const popperScope = usePopperScope$2(__scopePopover);
|
|
35946
36201
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
35947
36202
|
const trigger = /* @__PURE__ */ jsx(
|
|
35948
|
-
Primitive$
|
|
36203
|
+
Primitive$3.button,
|
|
35949
36204
|
{
|
|
35950
36205
|
type: "button",
|
|
35951
36206
|
"aria-haspopup": "dialog",
|
|
@@ -36130,7 +36385,7 @@ var PopoverClose = React.forwardRef(
|
|
|
36130
36385
|
const { __scopePopover, ...closeProps } = props;
|
|
36131
36386
|
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
36132
36387
|
return /* @__PURE__ */ jsx(
|
|
36133
|
-
Primitive$
|
|
36388
|
+
Primitive$3.button,
|
|
36134
36389
|
{
|
|
36135
36390
|
type: "button",
|
|
36136
36391
|
...closeProps,
|
|
@@ -36766,7 +37021,7 @@ var SelectTrigger$1 = React.forwardRef(
|
|
|
36766
37021
|
}
|
|
36767
37022
|
};
|
|
36768
37023
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
36769
|
-
Primitive$
|
|
37024
|
+
Primitive$3.button,
|
|
36770
37025
|
{
|
|
36771
37026
|
type: "button",
|
|
36772
37027
|
role: "combobox",
|
|
@@ -36825,7 +37080,7 @@ var SelectValue$1 = React.forwardRef(
|
|
|
36825
37080
|
onValueNodeHasChildrenChange(hasChildren);
|
|
36826
37081
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
36827
37082
|
return /* @__PURE__ */ jsx(
|
|
36828
|
-
Primitive$
|
|
37083
|
+
Primitive$3.span,
|
|
36829
37084
|
{
|
|
36830
37085
|
...valueProps,
|
|
36831
37086
|
ref: composedRefs,
|
|
@@ -36840,7 +37095,7 @@ var ICON_NAME = "SelectIcon";
|
|
|
36840
37095
|
var SelectIcon = React.forwardRef(
|
|
36841
37096
|
(props, forwardedRef) => {
|
|
36842
37097
|
const { __scopeSelect, children: children2, ...iconProps } = props;
|
|
36843
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37098
|
+
return /* @__PURE__ */ jsx(Primitive$3.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children2 || "▼" });
|
|
36844
37099
|
}
|
|
36845
37100
|
);
|
|
36846
37101
|
SelectIcon.displayName = ICON_NAME;
|
|
@@ -37248,7 +37503,7 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {
|
|
|
37248
37503
|
zIndex: contentZIndex
|
|
37249
37504
|
},
|
|
37250
37505
|
children: /* @__PURE__ */ jsx(
|
|
37251
|
-
Primitive$
|
|
37506
|
+
Primitive$3.div,
|
|
37252
37507
|
{
|
|
37253
37508
|
...popperProps,
|
|
37254
37509
|
ref: composedRefs,
|
|
@@ -37322,7 +37577,7 @@ var SelectViewport = React.forwardRef(
|
|
|
37322
37577
|
}
|
|
37323
37578
|
),
|
|
37324
37579
|
/* @__PURE__ */ jsx(Collection$2.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
37325
|
-
Primitive$
|
|
37580
|
+
Primitive$3.div,
|
|
37326
37581
|
{
|
|
37327
37582
|
"data-radix-select-viewport": "",
|
|
37328
37583
|
role: "presentation",
|
|
@@ -37377,7 +37632,7 @@ var SelectGroup = React.forwardRef(
|
|
|
37377
37632
|
(props, forwardedRef) => {
|
|
37378
37633
|
const { __scopeSelect, ...groupProps } = props;
|
|
37379
37634
|
const groupId = useId$1();
|
|
37380
|
-
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive$
|
|
37635
|
+
return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive$3.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
37381
37636
|
}
|
|
37382
37637
|
);
|
|
37383
37638
|
SelectGroup.displayName = GROUP_NAME$3;
|
|
@@ -37386,7 +37641,7 @@ var SelectLabel$1 = React.forwardRef(
|
|
|
37386
37641
|
(props, forwardedRef) => {
|
|
37387
37642
|
const { __scopeSelect, ...labelProps } = props;
|
|
37388
37643
|
const groupContext = useSelectGroupContext(LABEL_NAME$2, __scopeSelect);
|
|
37389
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37644
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
37390
37645
|
}
|
|
37391
37646
|
);
|
|
37392
37647
|
SelectLabel$1.displayName = LABEL_NAME$2;
|
|
@@ -37442,7 +37697,7 @@ var SelectItem$1 = React.forwardRef(
|
|
|
37442
37697
|
disabled,
|
|
37443
37698
|
textValue,
|
|
37444
37699
|
children: /* @__PURE__ */ jsx(
|
|
37445
|
-
Primitive$
|
|
37700
|
+
Primitive$3.div,
|
|
37446
37701
|
{
|
|
37447
37702
|
role: "option",
|
|
37448
37703
|
"aria-labelledby": textId,
|
|
@@ -37519,7 +37774,7 @@ var SelectItemText = React.forwardRef(
|
|
|
37519
37774
|
return () => onNativeOptionRemove(nativeOption);
|
|
37520
37775
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
37521
37776
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37522
|
-
/* @__PURE__ */ jsx(Primitive$
|
|
37777
|
+
/* @__PURE__ */ jsx(Primitive$3.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
|
37523
37778
|
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null
|
|
37524
37779
|
] });
|
|
37525
37780
|
}
|
|
@@ -37530,7 +37785,7 @@ var SelectItemIndicator = React.forwardRef(
|
|
|
37530
37785
|
(props, forwardedRef) => {
|
|
37531
37786
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
37532
37787
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
|
|
37533
|
-
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$
|
|
37788
|
+
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$3.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
37534
37789
|
}
|
|
37535
37790
|
);
|
|
37536
37791
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
|
|
@@ -37620,7 +37875,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
37620
37875
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
37621
37876
|
}, [getItems]);
|
|
37622
37877
|
return /* @__PURE__ */ jsx(
|
|
37623
|
-
Primitive$
|
|
37878
|
+
Primitive$3.div,
|
|
37624
37879
|
{
|
|
37625
37880
|
"aria-hidden": true,
|
|
37626
37881
|
...scrollIndicatorProps,
|
|
@@ -37647,7 +37902,7 @@ var SEPARATOR_NAME$2 = "SelectSeparator";
|
|
|
37647
37902
|
var SelectSeparator$1 = React.forwardRef(
|
|
37648
37903
|
(props, forwardedRef) => {
|
|
37649
37904
|
const { __scopeSelect, ...separatorProps } = props;
|
|
37650
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37905
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
37651
37906
|
}
|
|
37652
37907
|
);
|
|
37653
37908
|
SelectSeparator$1.displayName = SEPARATOR_NAME$2;
|
|
@@ -37685,7 +37940,7 @@ var BubbleSelect = React.forwardRef(
|
|
|
37685
37940
|
select.dispatchEvent(event);
|
|
37686
37941
|
}
|
|
37687
37942
|
}, [prevValue, value]);
|
|
37688
|
-
return /* @__PURE__ */ jsx(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
|
|
37943
|
+
return /* @__PURE__ */ jsx(VisuallyHidden$1, { asChild: true, children: /* @__PURE__ */ jsx("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
|
|
37689
37944
|
}
|
|
37690
37945
|
);
|
|
37691
37946
|
BubbleSelect.displayName = "BubbleSelect";
|
|
@@ -38127,7 +38382,7 @@ const NameAndDescription = ({ nameAndDescriptionState, setNameAndDescriptionStat
|
|
|
38127
38382
|
] })
|
|
38128
38383
|
] }) });
|
|
38129
38384
|
};
|
|
38130
|
-
const styles
|
|
38385
|
+
const styles = {
|
|
38131
38386
|
container: "relative rounded-lg"
|
|
38132
38387
|
};
|
|
38133
38388
|
const SegmentBuilder = ({
|
|
@@ -38281,17 +38536,17 @@ const SegmentBuilder = ({
|
|
|
38281
38536
|
}
|
|
38282
38537
|
};
|
|
38283
38538
|
if (isLoading) {
|
|
38284
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
38539
|
+
return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
|
|
38285
38540
|
}
|
|
38286
38541
|
if (isCreating || startedCreating) {
|
|
38287
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
38542
|
+
return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(
|
|
38288
38543
|
SpinLoader,
|
|
38289
38544
|
{
|
|
38290
38545
|
text: SEGMENT_ID && existingSegment ? ["Updating Segment", "Finishing up"] : ["Creating Segment", "Finishing up"]
|
|
38291
38546
|
}
|
|
38292
38547
|
) });
|
|
38293
38548
|
}
|
|
38294
|
-
return /* @__PURE__ */ jsxs("div", { className: styles
|
|
38549
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
|
|
38295
38550
|
/* @__PURE__ */ jsx("div", { className: "relative w-full flex justify-end mb-4", children: /* @__PURE__ */ jsx(
|
|
38296
38551
|
Button$1,
|
|
38297
38552
|
{
|
|
@@ -38401,7 +38656,7 @@ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
38401
38656
|
[]
|
|
38402
38657
|
),
|
|
38403
38658
|
children: /* @__PURE__ */ jsx(
|
|
38404
|
-
Primitive$
|
|
38659
|
+
Primitive$3.div,
|
|
38405
38660
|
{
|
|
38406
38661
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
38407
38662
|
"data-orientation": orientation,
|
|
@@ -38465,7 +38720,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
38465
38720
|
focusable,
|
|
38466
38721
|
active,
|
|
38467
38722
|
children: /* @__PURE__ */ jsx(
|
|
38468
|
-
Primitive$
|
|
38723
|
+
Primitive$3.span,
|
|
38469
38724
|
{
|
|
38470
38725
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
38471
38726
|
"data-orientation": context.orientation,
|
|
@@ -38572,7 +38827,7 @@ var Tabs$1 = React.forwardRef(
|
|
|
38572
38827
|
dir: direction,
|
|
38573
38828
|
activationMode,
|
|
38574
38829
|
children: /* @__PURE__ */ jsx(
|
|
38575
|
-
Primitive$
|
|
38830
|
+
Primitive$3.div,
|
|
38576
38831
|
{
|
|
38577
38832
|
dir: direction,
|
|
38578
38833
|
"data-orientation": orientation,
|
|
@@ -38600,7 +38855,7 @@ var TabsList$1 = React.forwardRef(
|
|
|
38600
38855
|
dir: context.dir,
|
|
38601
38856
|
loop,
|
|
38602
38857
|
children: /* @__PURE__ */ jsx(
|
|
38603
|
-
Primitive$
|
|
38858
|
+
Primitive$3.div,
|
|
38604
38859
|
{
|
|
38605
38860
|
role: "tablist",
|
|
38606
38861
|
"aria-orientation": context.orientation,
|
|
@@ -38630,7 +38885,7 @@ var TabsTrigger$1 = React.forwardRef(
|
|
|
38630
38885
|
focusable: !disabled,
|
|
38631
38886
|
active: isSelected,
|
|
38632
38887
|
children: /* @__PURE__ */ jsx(
|
|
38633
|
-
Primitive$
|
|
38888
|
+
Primitive$3.button,
|
|
38634
38889
|
{
|
|
38635
38890
|
type: "button",
|
|
38636
38891
|
role: "tab",
|
|
@@ -38679,7 +38934,7 @@ var TabsContent$1 = React.forwardRef(
|
|
|
38679
38934
|
return () => cancelAnimationFrame(rAF);
|
|
38680
38935
|
}, []);
|
|
38681
38936
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
|
|
38682
|
-
Primitive$
|
|
38937
|
+
Primitive$3.div,
|
|
38683
38938
|
{
|
|
38684
38939
|
"data-state": isSelected ? "active" : "inactive",
|
|
38685
38940
|
"data-orientation": context.orientation,
|
|
@@ -39232,7 +39487,7 @@ const AutomationRecipients = ({ automationId, iconDefinitions }) => {
|
|
|
39232
39487
|
const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
|
|
39233
39488
|
const { isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
39234
39489
|
if (isLoading || isStatisticsLoading) {
|
|
39235
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
39490
|
+
return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
|
|
39236
39491
|
}
|
|
39237
39492
|
if (fetchError) {
|
|
39238
39493
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -39370,7 +39625,7 @@ var DismissableLayer = React.forwardRef(
|
|
|
39370
39625
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
39371
39626
|
}, []);
|
|
39372
39627
|
return /* @__PURE__ */ jsx(
|
|
39373
|
-
Primitive$
|
|
39628
|
+
Primitive$3.div,
|
|
39374
39629
|
{
|
|
39375
39630
|
...layerProps,
|
|
39376
39631
|
ref: composedRefs,
|
|
@@ -39403,7 +39658,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
|
|
|
39403
39658
|
};
|
|
39404
39659
|
}
|
|
39405
39660
|
}, [context.branches]);
|
|
39406
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
39661
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...props, ref: composedRefs });
|
|
39407
39662
|
});
|
|
39408
39663
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
39409
39664
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -39808,7 +40063,7 @@ var GROUP_NAME$1 = "MenuGroup";
|
|
|
39808
40063
|
var MenuGroup = React.forwardRef(
|
|
39809
40064
|
(props, forwardedRef) => {
|
|
39810
40065
|
const { __scopeMenu, ...groupProps } = props;
|
|
39811
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
40066
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
39812
40067
|
}
|
|
39813
40068
|
);
|
|
39814
40069
|
MenuGroup.displayName = GROUP_NAME$1;
|
|
@@ -39816,7 +40071,7 @@ var LABEL_NAME$1 = "MenuLabel";
|
|
|
39816
40071
|
var MenuLabel = React.forwardRef(
|
|
39817
40072
|
(props, forwardedRef) => {
|
|
39818
40073
|
const { __scopeMenu, ...labelProps } = props;
|
|
39819
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
40074
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...labelProps, ref: forwardedRef });
|
|
39820
40075
|
}
|
|
39821
40076
|
);
|
|
39822
40077
|
MenuLabel.displayName = LABEL_NAME$1;
|
|
@@ -39892,7 +40147,7 @@ var MenuItemImpl = React.forwardRef(
|
|
|
39892
40147
|
disabled,
|
|
39893
40148
|
textValue: textValue ?? textContent,
|
|
39894
40149
|
children: /* @__PURE__ */ jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
|
|
39895
|
-
Primitive$
|
|
40150
|
+
Primitive$3.div,
|
|
39896
40151
|
{
|
|
39897
40152
|
role: "menuitem",
|
|
39898
40153
|
"data-highlighted": isFocused ? "" : void 0,
|
|
@@ -40000,7 +40255,7 @@ var MenuItemIndicator = React.forwardRef(
|
|
|
40000
40255
|
{
|
|
40001
40256
|
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
40002
40257
|
children: /* @__PURE__ */ jsx(
|
|
40003
|
-
Primitive$
|
|
40258
|
+
Primitive$3.span,
|
|
40004
40259
|
{
|
|
40005
40260
|
...itemIndicatorProps,
|
|
40006
40261
|
ref: forwardedRef,
|
|
@@ -40017,7 +40272,7 @@ var MenuSeparator = React.forwardRef(
|
|
|
40017
40272
|
(props, forwardedRef) => {
|
|
40018
40273
|
const { __scopeMenu, ...separatorProps } = props;
|
|
40019
40274
|
return /* @__PURE__ */ jsx(
|
|
40020
|
-
Primitive$
|
|
40275
|
+
Primitive$3.div,
|
|
40021
40276
|
{
|
|
40022
40277
|
role: "separator",
|
|
40023
40278
|
"aria-orientation": "horizontal",
|
|
@@ -40303,7 +40558,7 @@ var DropdownMenuTrigger$1 = React.forwardRef(
|
|
|
40303
40558
|
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
|
40304
40559
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
40305
40560
|
return /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
40306
|
-
Primitive$
|
|
40561
|
+
Primitive$3.button,
|
|
40307
40562
|
{
|
|
40308
40563
|
type: "button",
|
|
40309
40564
|
id: context.triggerId,
|
|
@@ -40691,34 +40946,13 @@ const BackNextButtonGroup = ({
|
|
|
40691
40946
|
)
|
|
40692
40947
|
] });
|
|
40693
40948
|
};
|
|
40694
|
-
const
|
|
40695
|
-
const destructive = "reach-styles-module__destructive___a6Swz";
|
|
40696
|
-
const outline = "reach-styles-module__outline___INmdX";
|
|
40697
|
-
const secondary = "reach-styles-module__secondary___Ym15V";
|
|
40698
|
-
const header = "reach-styles-module__header___CzneX";
|
|
40699
|
-
const title = "reach-styles-module__title___8ostO";
|
|
40700
|
-
const description = "reach-styles-module__description___xR5d4";
|
|
40701
|
-
const content = "reach-styles-module__content___XXeK2";
|
|
40702
|
-
const footer = "reach-styles-module__footer___35Xil";
|
|
40703
|
-
const styles = {
|
|
40704
|
-
base,
|
|
40705
|
-
"default": "reach-styles-module__default___S2tp4",
|
|
40706
|
-
destructive,
|
|
40707
|
-
outline,
|
|
40708
|
-
secondary,
|
|
40709
|
-
header,
|
|
40710
|
-
title,
|
|
40711
|
-
description,
|
|
40712
|
-
content,
|
|
40713
|
-
footer
|
|
40714
|
-
};
|
|
40715
|
-
const cardVariants = cva(styles.base, {
|
|
40949
|
+
const cardVariants = cva(styles$4.base, {
|
|
40716
40950
|
variants: {
|
|
40717
40951
|
variant: {
|
|
40718
|
-
default: styles.default,
|
|
40719
|
-
destructive: styles.destructive,
|
|
40720
|
-
outline: styles.outline,
|
|
40721
|
-
secondary: styles.secondary
|
|
40952
|
+
default: styles$4.default,
|
|
40953
|
+
destructive: styles$4.destructive,
|
|
40954
|
+
outline: styles$4.outline,
|
|
40955
|
+
secondary: styles$4.secondary
|
|
40722
40956
|
}
|
|
40723
40957
|
},
|
|
40724
40958
|
defaultVariants: {
|
|
@@ -40738,15 +40972,15 @@ const Card = React.forwardRef(
|
|
|
40738
40972
|
}
|
|
40739
40973
|
);
|
|
40740
40974
|
Card.displayName = "Card";
|
|
40741
|
-
const CardHeader = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.header, className2), ...props }));
|
|
40975
|
+
const CardHeader = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.header, className2), ...props }));
|
|
40742
40976
|
CardHeader.displayName = "CardHeader";
|
|
40743
|
-
const CardTitle = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.title, className2), ...props }));
|
|
40977
|
+
const CardTitle = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.title, className2), ...props }));
|
|
40744
40978
|
CardTitle.displayName = "CardTitle";
|
|
40745
|
-
const CardDescription = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.description, className2), ...props }));
|
|
40979
|
+
const CardDescription = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.description, className2), ...props }));
|
|
40746
40980
|
CardDescription.displayName = "CardDescription";
|
|
40747
|
-
const CardContent = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.content, className2), ...props }));
|
|
40981
|
+
const CardContent = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.content, className2), ...props }));
|
|
40748
40982
|
CardContent.displayName = "CardContent";
|
|
40749
|
-
const CardFooter = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.footer, className2), ...props }));
|
|
40983
|
+
const CardFooter = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.footer, className2), ...props }));
|
|
40750
40984
|
CardFooter.displayName = "CardFooter";
|
|
40751
40985
|
const getChannelAccounts = async () => {
|
|
40752
40986
|
const response = await baseRequest(
|
|
@@ -40779,7 +41013,7 @@ var ChannelAccountTypeEnum = /* @__PURE__ */ ((ChannelAccountTypeEnum2) => {
|
|
|
40779
41013
|
var NAME = "Label";
|
|
40780
41014
|
var Label$1 = React.forwardRef((props, forwardedRef) => {
|
|
40781
41015
|
return /* @__PURE__ */ jsx(
|
|
40782
|
-
Primitive$
|
|
41016
|
+
Primitive$3.label,
|
|
40783
41017
|
{
|
|
40784
41018
|
...props,
|
|
40785
41019
|
ref: forwardedRef,
|
|
@@ -44617,8 +44851,8 @@ function useSelectMultiple() {
|
|
|
44617
44851
|
}
|
|
44618
44852
|
return context;
|
|
44619
44853
|
}
|
|
44620
|
-
function addToRange(day,
|
|
44621
|
-
var _a =
|
|
44854
|
+
function addToRange(day, range2) {
|
|
44855
|
+
var _a = range2 || {}, from = _a.from, to = _a.to;
|
|
44622
44856
|
if (from && to) {
|
|
44623
44857
|
if (isSameDay(to, day) && isSameDay(from, day)) {
|
|
44624
44858
|
return void 0;
|
|
@@ -44838,9 +45072,9 @@ function isDateBeforeType(value) {
|
|
|
44838
45072
|
function isDayOfWeekType(value) {
|
|
44839
45073
|
return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
|
|
44840
45074
|
}
|
|
44841
|
-
function isDateInRange(date2,
|
|
45075
|
+
function isDateInRange(date2, range2) {
|
|
44842
45076
|
var _a;
|
|
44843
|
-
var from =
|
|
45077
|
+
var from = range2.from, to = range2.to;
|
|
44844
45078
|
if (from && to) {
|
|
44845
45079
|
var isRangeInverted = differenceInCalendarDays(to, from) < 0;
|
|
44846
45080
|
if (isRangeInverted) {
|
|
@@ -45111,7 +45345,7 @@ function useDayEventHandlers(date2, activeModifiers) {
|
|
|
45111
45345
|
var dayPicker = useDayPicker();
|
|
45112
45346
|
var single = useSelectSingle();
|
|
45113
45347
|
var multiple = useSelectMultiple();
|
|
45114
|
-
var
|
|
45348
|
+
var range2 = useSelectRange();
|
|
45115
45349
|
var _a = useFocusContext(), focusDayAfter = _a.focusDayAfter, focusDayBefore = _a.focusDayBefore, focusWeekAfter = _a.focusWeekAfter, focusWeekBefore = _a.focusWeekBefore, blur = _a.blur, focus2 = _a.focus, focusMonthBefore = _a.focusMonthBefore, focusMonthAfter = _a.focusMonthAfter, focusYearBefore = _a.focusYearBefore, focusYearAfter = _a.focusYearAfter, focusStartOfWeek = _a.focusStartOfWeek, focusEndOfWeek = _a.focusEndOfWeek;
|
|
45116
45350
|
var onClick = function(e4) {
|
|
45117
45351
|
var _a2, _b, _c, _d;
|
|
@@ -45120,7 +45354,7 @@ function useDayEventHandlers(date2, activeModifiers) {
|
|
|
45120
45354
|
} else if (isDayPickerMultiple(dayPicker)) {
|
|
45121
45355
|
(_b = multiple.onDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date2, activeModifiers, e4);
|
|
45122
45356
|
} else if (isDayPickerRange(dayPicker)) {
|
|
45123
|
-
(_c =
|
|
45357
|
+
(_c = range2.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range2, date2, activeModifiers, e4);
|
|
45124
45358
|
} else {
|
|
45125
45359
|
(_d = dayPicker.onDayClick) === null || _d === void 0 ? void 0 : _d.call(dayPicker, date2, activeModifiers, e4);
|
|
45126
45360
|
}
|
|
@@ -45238,8 +45472,8 @@ function useSelectedDays() {
|
|
|
45238
45472
|
var dayPicker = useDayPicker();
|
|
45239
45473
|
var single = useSelectSingle();
|
|
45240
45474
|
var multiple = useSelectMultiple();
|
|
45241
|
-
var
|
|
45242
|
-
var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ?
|
|
45475
|
+
var range2 = useSelectRange();
|
|
45476
|
+
var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ? range2.selected : void 0;
|
|
45243
45477
|
return selectedDays;
|
|
45244
45478
|
}
|
|
45245
45479
|
function isInternalModifier(modifier) {
|
|
@@ -46950,7 +47184,7 @@ const ViewAutomationModalContent = ({
|
|
|
46950
47184
|
return /* @__PURE__ */ jsx("div", { children: "Invalid automation ID" });
|
|
46951
47185
|
}
|
|
46952
47186
|
if (!automation && (isFetching || isLoading)) {
|
|
46953
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
47187
|
+
return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
|
|
46954
47188
|
}
|
|
46955
47189
|
if (fetchError) {
|
|
46956
47190
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -46961,7 +47195,7 @@ const ViewAutomationModalContent = ({
|
|
|
46961
47195
|
if (!automation) {
|
|
46962
47196
|
return /* @__PURE__ */ jsx("div", { children: "No automation found" });
|
|
46963
47197
|
}
|
|
46964
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
47198
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
|
|
46965
47199
|
/* @__PURE__ */ jsx(
|
|
46966
47200
|
ViewAutomationHeader,
|
|
46967
47201
|
{
|
|
@@ -47000,6 +47234,9 @@ const ViewAutomationModal = ({ inRouter = false, ...props }) => {
|
|
|
47000
47234
|
}
|
|
47001
47235
|
return /* @__PURE__ */ jsx(MemoryRouter, { children: /* @__PURE__ */ jsx(ViewAutomationModalContent, { ...props }) });
|
|
47002
47236
|
};
|
|
47237
|
+
Object.values(
|
|
47238
|
+
/* @__PURE__ */ Object.assign({ "../common/components/ui/alert/styles.module.css": __vite_glob_0_0, "../common/components/ui/badge/styles.module.css": __vite_glob_0_1, "../common/components/ui/banner/styles.module.css": __vite_glob_0_2, "../common/components/ui/button/styles.module.css": __vite_glob_0_3, "../common/components/ui/card/styles.module.css": __vite_glob_0_4, "../common/components/ui/interactive-button/styles.module.css": __vite_glob_0_5, "../common/components/ui/skeleton/styles.module.css": __vite_glob_0_6, "../common/components/ui/slider/styles.module.css": __vite_glob_0_7 })
|
|
47239
|
+
);
|
|
47003
47240
|
export {
|
|
47004
47241
|
$TRACK as $,
|
|
47005
47242
|
getQueryStatusColorByLabel as A,
|