@embedreach/components 0.1.32 → 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 +642 -195
- package/dist/index.d.ts +3 -1
- package/dist/index.umd.js +654 -207
- package/dist/styles.css +849 -390
- package/package.json +2 -3
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: [
|
|
@@ -24719,6 +24932,102 @@ function isDate$2(val) {
|
|
|
24719
24932
|
*
|
|
24720
24933
|
* @license MIT
|
|
24721
24934
|
*/
|
|
24935
|
+
function createMemoryHistory(options = {}) {
|
|
24936
|
+
let { initialEntries = ["/"], initialIndex, v5Compat = false } = options;
|
|
24937
|
+
let entries;
|
|
24938
|
+
entries = initialEntries.map(
|
|
24939
|
+
(entry, index22) => createMemoryLocation(
|
|
24940
|
+
entry,
|
|
24941
|
+
typeof entry === "string" ? null : entry.state,
|
|
24942
|
+
index22 === 0 ? "default" : void 0
|
|
24943
|
+
)
|
|
24944
|
+
);
|
|
24945
|
+
let index2 = clampIndex(
|
|
24946
|
+
initialIndex == null ? entries.length - 1 : initialIndex
|
|
24947
|
+
);
|
|
24948
|
+
let action = "POP";
|
|
24949
|
+
let listener = null;
|
|
24950
|
+
function clampIndex(n2) {
|
|
24951
|
+
return Math.min(Math.max(n2, 0), entries.length - 1);
|
|
24952
|
+
}
|
|
24953
|
+
function getCurrentLocation() {
|
|
24954
|
+
return entries[index2];
|
|
24955
|
+
}
|
|
24956
|
+
function createMemoryLocation(to, state = null, key) {
|
|
24957
|
+
let location = createLocation(
|
|
24958
|
+
entries ? getCurrentLocation().pathname : "/",
|
|
24959
|
+
to,
|
|
24960
|
+
state,
|
|
24961
|
+
key
|
|
24962
|
+
);
|
|
24963
|
+
warning(
|
|
24964
|
+
location.pathname.charAt(0) === "/",
|
|
24965
|
+
`relative pathnames are not supported in memory history: ${JSON.stringify(
|
|
24966
|
+
to
|
|
24967
|
+
)}`
|
|
24968
|
+
);
|
|
24969
|
+
return location;
|
|
24970
|
+
}
|
|
24971
|
+
function createHref2(to) {
|
|
24972
|
+
return typeof to === "string" ? to : createPath(to);
|
|
24973
|
+
}
|
|
24974
|
+
let history = {
|
|
24975
|
+
get index() {
|
|
24976
|
+
return index2;
|
|
24977
|
+
},
|
|
24978
|
+
get action() {
|
|
24979
|
+
return action;
|
|
24980
|
+
},
|
|
24981
|
+
get location() {
|
|
24982
|
+
return getCurrentLocation();
|
|
24983
|
+
},
|
|
24984
|
+
createHref: createHref2,
|
|
24985
|
+
createURL(to) {
|
|
24986
|
+
return new URL(createHref2(to), "http://localhost");
|
|
24987
|
+
},
|
|
24988
|
+
encodeLocation(to) {
|
|
24989
|
+
let path2 = typeof to === "string" ? parsePath(to) : to;
|
|
24990
|
+
return {
|
|
24991
|
+
pathname: path2.pathname || "",
|
|
24992
|
+
search: path2.search || "",
|
|
24993
|
+
hash: path2.hash || ""
|
|
24994
|
+
};
|
|
24995
|
+
},
|
|
24996
|
+
push(to, state) {
|
|
24997
|
+
action = "PUSH";
|
|
24998
|
+
let nextLocation = createMemoryLocation(to, state);
|
|
24999
|
+
index2 += 1;
|
|
25000
|
+
entries.splice(index2, entries.length, nextLocation);
|
|
25001
|
+
if (v5Compat && listener) {
|
|
25002
|
+
listener({ action, location: nextLocation, delta: 1 });
|
|
25003
|
+
}
|
|
25004
|
+
},
|
|
25005
|
+
replace(to, state) {
|
|
25006
|
+
action = "REPLACE";
|
|
25007
|
+
let nextLocation = createMemoryLocation(to, state);
|
|
25008
|
+
entries[index2] = nextLocation;
|
|
25009
|
+
if (v5Compat && listener) {
|
|
25010
|
+
listener({ action, location: nextLocation, delta: 0 });
|
|
25011
|
+
}
|
|
25012
|
+
},
|
|
25013
|
+
go(delta) {
|
|
25014
|
+
action = "POP";
|
|
25015
|
+
let nextIndex = clampIndex(index2 + delta);
|
|
25016
|
+
let nextLocation = entries[nextIndex];
|
|
25017
|
+
index2 = nextIndex;
|
|
25018
|
+
if (listener) {
|
|
25019
|
+
listener({ action, location: nextLocation, delta });
|
|
25020
|
+
}
|
|
25021
|
+
},
|
|
25022
|
+
listen(fn) {
|
|
25023
|
+
listener = fn;
|
|
25024
|
+
return () => {
|
|
25025
|
+
listener = null;
|
|
25026
|
+
};
|
|
25027
|
+
}
|
|
25028
|
+
};
|
|
25029
|
+
return history;
|
|
25030
|
+
}
|
|
24722
25031
|
function invariant(value, message2) {
|
|
24723
25032
|
if (value === false || value === null || typeof value === "undefined") {
|
|
24724
25033
|
throw new Error(message2);
|
|
@@ -24733,6 +25042,24 @@ function warning(cond, message2) {
|
|
|
24733
25042
|
}
|
|
24734
25043
|
}
|
|
24735
25044
|
}
|
|
25045
|
+
function createKey() {
|
|
25046
|
+
return Math.random().toString(36).substring(2, 10);
|
|
25047
|
+
}
|
|
25048
|
+
function createLocation(current, to, state = null, key) {
|
|
25049
|
+
let location = {
|
|
25050
|
+
pathname: typeof current === "string" ? current : current.pathname,
|
|
25051
|
+
search: "",
|
|
25052
|
+
hash: "",
|
|
25053
|
+
...typeof to === "string" ? parsePath(to) : to,
|
|
25054
|
+
state,
|
|
25055
|
+
// TODO: This could be cleaned up. push/replace should probably just take
|
|
25056
|
+
// full Locations now and avoid the need to run through this flow at all
|
|
25057
|
+
// But that's a pretty big refactor to the current test suite so going to
|
|
25058
|
+
// keep as is for the time being and just let any incoming keys take precedence
|
|
25059
|
+
key: to && to.key || key || createKey()
|
|
25060
|
+
};
|
|
25061
|
+
return location;
|
|
25062
|
+
}
|
|
24736
25063
|
function createPath({
|
|
24737
25064
|
pathname = "/",
|
|
24738
25065
|
search = "",
|
|
@@ -25610,6 +25937,100 @@ function DataRoutes({
|
|
|
25610
25937
|
}) {
|
|
25611
25938
|
return useRoutesImpl(routes, void 0, state, future);
|
|
25612
25939
|
}
|
|
25940
|
+
function MemoryRouter({
|
|
25941
|
+
basename,
|
|
25942
|
+
children: children2,
|
|
25943
|
+
initialEntries,
|
|
25944
|
+
initialIndex
|
|
25945
|
+
}) {
|
|
25946
|
+
let historyRef = React.useRef();
|
|
25947
|
+
if (historyRef.current == null) {
|
|
25948
|
+
historyRef.current = createMemoryHistory({
|
|
25949
|
+
initialEntries,
|
|
25950
|
+
initialIndex,
|
|
25951
|
+
v5Compat: true
|
|
25952
|
+
});
|
|
25953
|
+
}
|
|
25954
|
+
let history = historyRef.current;
|
|
25955
|
+
let [state, setStateImpl] = React.useState({
|
|
25956
|
+
action: history.action,
|
|
25957
|
+
location: history.location
|
|
25958
|
+
});
|
|
25959
|
+
let setState = React.useCallback(
|
|
25960
|
+
(newState) => {
|
|
25961
|
+
React.startTransition(() => setStateImpl(newState));
|
|
25962
|
+
},
|
|
25963
|
+
[setStateImpl]
|
|
25964
|
+
);
|
|
25965
|
+
React.useLayoutEffect(() => history.listen(setState), [history, setState]);
|
|
25966
|
+
return /* @__PURE__ */ React.createElement(
|
|
25967
|
+
Router,
|
|
25968
|
+
{
|
|
25969
|
+
basename,
|
|
25970
|
+
children: children2,
|
|
25971
|
+
location: state.location,
|
|
25972
|
+
navigationType: state.action,
|
|
25973
|
+
navigator: history
|
|
25974
|
+
}
|
|
25975
|
+
);
|
|
25976
|
+
}
|
|
25977
|
+
function Router({
|
|
25978
|
+
basename: basenameProp = "/",
|
|
25979
|
+
children: children2 = null,
|
|
25980
|
+
location: locationProp,
|
|
25981
|
+
navigationType = "POP",
|
|
25982
|
+
navigator: navigator2,
|
|
25983
|
+
static: staticProp = false
|
|
25984
|
+
}) {
|
|
25985
|
+
invariant(
|
|
25986
|
+
!useInRouterContext(),
|
|
25987
|
+
`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`
|
|
25988
|
+
);
|
|
25989
|
+
let basename = basenameProp.replace(/^\/*/, "/");
|
|
25990
|
+
let navigationContext = React.useMemo(
|
|
25991
|
+
() => ({
|
|
25992
|
+
basename,
|
|
25993
|
+
navigator: navigator2,
|
|
25994
|
+
static: staticProp,
|
|
25995
|
+
future: {}
|
|
25996
|
+
}),
|
|
25997
|
+
[basename, navigator2, staticProp]
|
|
25998
|
+
);
|
|
25999
|
+
if (typeof locationProp === "string") {
|
|
26000
|
+
locationProp = parsePath(locationProp);
|
|
26001
|
+
}
|
|
26002
|
+
let {
|
|
26003
|
+
pathname = "/",
|
|
26004
|
+
search = "",
|
|
26005
|
+
hash = "",
|
|
26006
|
+
state = null,
|
|
26007
|
+
key = "default"
|
|
26008
|
+
} = locationProp;
|
|
26009
|
+
let locationContext = React.useMemo(() => {
|
|
26010
|
+
let trailingPathname = stripBasename(pathname, basename);
|
|
26011
|
+
if (trailingPathname == null) {
|
|
26012
|
+
return null;
|
|
26013
|
+
}
|
|
26014
|
+
return {
|
|
26015
|
+
location: {
|
|
26016
|
+
pathname: trailingPathname,
|
|
26017
|
+
search,
|
|
26018
|
+
hash,
|
|
26019
|
+
state,
|
|
26020
|
+
key
|
|
26021
|
+
},
|
|
26022
|
+
navigationType
|
|
26023
|
+
};
|
|
26024
|
+
}, [basename, pathname, search, hash, state, key, navigationType]);
|
|
26025
|
+
warning(
|
|
26026
|
+
locationContext != null,
|
|
26027
|
+
`<Router basename="${basename}"> is not able to match the URL "${pathname}${search}${hash}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
26028
|
+
);
|
|
26029
|
+
if (locationContext == null) {
|
|
26030
|
+
return null;
|
|
26031
|
+
}
|
|
26032
|
+
return /* @__PURE__ */ React.createElement(NavigationContext$1.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(LocationContext.Provider, { children: children2, value: locationContext }));
|
|
26033
|
+
}
|
|
25613
26034
|
var defaultMethod = "get";
|
|
25614
26035
|
var defaultEncType = "application/x-www-form-urlencoded";
|
|
25615
26036
|
function isHtmlElement(object) {
|
|
@@ -26653,7 +27074,7 @@ function getElementRef$1(element) {
|
|
|
26653
27074
|
}
|
|
26654
27075
|
return element.props.ref || element.ref;
|
|
26655
27076
|
}
|
|
26656
|
-
var NODES$
|
|
27077
|
+
var NODES$2 = [
|
|
26657
27078
|
"a",
|
|
26658
27079
|
"button",
|
|
26659
27080
|
"div",
|
|
@@ -26671,7 +27092,7 @@ var NODES$1 = [
|
|
|
26671
27092
|
"svg",
|
|
26672
27093
|
"ul"
|
|
26673
27094
|
];
|
|
26674
|
-
var Primitive$
|
|
27095
|
+
var Primitive$2 = NODES$2.reduce((primitive, node) => {
|
|
26675
27096
|
const Node2 = React.forwardRef((props, forwardedRef) => {
|
|
26676
27097
|
const { asChild, ...primitiveProps } = props;
|
|
26677
27098
|
const Comp = asChild ? Slot$1 : node;
|
|
@@ -26774,7 +27195,7 @@ var DismissableLayer$2 = React.forwardRef(
|
|
|
26774
27195
|
return () => document.removeEventListener(CONTEXT_UPDATE$2, handleUpdate);
|
|
26775
27196
|
}, []);
|
|
26776
27197
|
return /* @__PURE__ */ jsx(
|
|
26777
|
-
Primitive$
|
|
27198
|
+
Primitive$2.div,
|
|
26778
27199
|
{
|
|
26779
27200
|
...layerProps,
|
|
26780
27201
|
ref: composedRefs,
|
|
@@ -26807,7 +27228,7 @@ var DismissableLayerBranch$2 = React.forwardRef((props, forwardedRef) => {
|
|
|
26807
27228
|
};
|
|
26808
27229
|
}
|
|
26809
27230
|
}, [context.branches]);
|
|
26810
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
27231
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { ...props, ref: composedRefs });
|
|
26811
27232
|
});
|
|
26812
27233
|
DismissableLayerBranch$2.displayName = BRANCH_NAME$2;
|
|
26813
27234
|
function usePointerDownOutside$2(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -27004,7 +27425,7 @@ var FocusScope$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
27004
27425
|
},
|
|
27005
27426
|
[loop, trapped, focusScope.paused]
|
|
27006
27427
|
);
|
|
27007
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
27428
|
+
return /* @__PURE__ */ jsx(Primitive$2.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
27008
27429
|
});
|
|
27009
27430
|
FocusScope$1.displayName = FOCUS_SCOPE_NAME$1;
|
|
27010
27431
|
function focusFirst$3(candidates, { select = false } = {}) {
|
|
@@ -27092,7 +27513,7 @@ var Portal$5 = React.forwardRef((props, forwardedRef) => {
|
|
|
27092
27513
|
const [mounted, setMounted] = React.useState(false);
|
|
27093
27514
|
useLayoutEffect2(() => setMounted(true), []);
|
|
27094
27515
|
const container2 = containerProp || mounted && globalThis?.document?.body;
|
|
27095
|
-
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$
|
|
27516
|
+
return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive$2.div, { ...portalProps, ref: forwardedRef }), container2) : null;
|
|
27096
27517
|
});
|
|
27097
27518
|
Portal$5.displayName = PORTAL_NAME$6;
|
|
27098
27519
|
var count = 0;
|
|
@@ -27937,7 +28358,7 @@ var DialogTrigger = React.forwardRef(
|
|
|
27937
28358
|
const context = useDialogContext(TRIGGER_NAME$5, __scopeDialog);
|
|
27938
28359
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
27939
28360
|
return /* @__PURE__ */ jsx(
|
|
27940
|
-
Primitive$
|
|
28361
|
+
Primitive$2.button,
|
|
27941
28362
|
{
|
|
27942
28363
|
type: "button",
|
|
27943
28364
|
"aria-haspopup": "dialog",
|
|
@@ -27980,7 +28401,7 @@ var DialogOverlayImpl = React.forwardRef(
|
|
|
27980
28401
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
27981
28402
|
// ie. when `Overlay` and `Content` are siblings
|
|
27982
28403
|
/* @__PURE__ */ jsx(ReactRemoveScroll$1, { as: Slot$1, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
|
|
27983
|
-
Primitive$
|
|
28404
|
+
Primitive$2.div,
|
|
27984
28405
|
{
|
|
27985
28406
|
"data-state": getState$1(context.open),
|
|
27986
28407
|
...overlayProps,
|
|
@@ -28118,7 +28539,7 @@ var DialogTitle$1 = React.forwardRef(
|
|
|
28118
28539
|
(props, forwardedRef) => {
|
|
28119
28540
|
const { __scopeDialog, ...titleProps } = props;
|
|
28120
28541
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
28121
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28542
|
+
return /* @__PURE__ */ jsx(Primitive$2.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
28122
28543
|
}
|
|
28123
28544
|
);
|
|
28124
28545
|
DialogTitle$1.displayName = TITLE_NAME;
|
|
@@ -28127,7 +28548,7 @@ var DialogDescription$1 = React.forwardRef(
|
|
|
28127
28548
|
(props, forwardedRef) => {
|
|
28128
28549
|
const { __scopeDialog, ...descriptionProps } = props;
|
|
28129
28550
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
28130
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28551
|
+
return /* @__PURE__ */ jsx(Primitive$2.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
28131
28552
|
}
|
|
28132
28553
|
);
|
|
28133
28554
|
DialogDescription$1.displayName = DESCRIPTION_NAME;
|
|
@@ -28137,7 +28558,7 @@ var DialogClose = React.forwardRef(
|
|
|
28137
28558
|
const { __scopeDialog, ...closeProps } = props;
|
|
28138
28559
|
const context = useDialogContext(CLOSE_NAME$1, __scopeDialog);
|
|
28139
28560
|
return /* @__PURE__ */ jsx(
|
|
28140
|
-
Primitive$
|
|
28561
|
+
Primitive$2.button,
|
|
28141
28562
|
{
|
|
28142
28563
|
type: "button",
|
|
28143
28564
|
...closeProps,
|
|
@@ -28192,6 +28613,63 @@ var Content$2 = DialogContent$1;
|
|
|
28192
28613
|
var Title = DialogTitle$1;
|
|
28193
28614
|
var Description = DialogDescription$1;
|
|
28194
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;
|
|
28195
28673
|
function cn(...inputs) {
|
|
28196
28674
|
return twMerge(clsx(inputs));
|
|
28197
28675
|
}
|
|
@@ -28263,6 +28741,8 @@ const DialogDescription = React.forwardRef(({ className: className2, ...props },
|
|
|
28263
28741
|
}
|
|
28264
28742
|
));
|
|
28265
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";
|
|
28266
28746
|
var DISMISSABLE_LAYER_NAME$1 = "DismissableLayer";
|
|
28267
28747
|
var CONTEXT_UPDATE$1 = "dismissableLayer.update";
|
|
28268
28748
|
var POINTER_DOWN_OUTSIDE$1 = "dismissableLayer.pointerDownOutside";
|
|
@@ -28351,7 +28831,7 @@ var DismissableLayer$1 = React.forwardRef(
|
|
|
28351
28831
|
return () => document.removeEventListener(CONTEXT_UPDATE$1, handleUpdate);
|
|
28352
28832
|
}, []);
|
|
28353
28833
|
return /* @__PURE__ */ jsx(
|
|
28354
|
-
Primitive$
|
|
28834
|
+
Primitive$3.div,
|
|
28355
28835
|
{
|
|
28356
28836
|
...layerProps,
|
|
28357
28837
|
ref: composedRefs,
|
|
@@ -28384,7 +28864,7 @@ var DismissableLayerBranch$1 = React.forwardRef((props, forwardedRef) => {
|
|
|
28384
28864
|
};
|
|
28385
28865
|
}
|
|
28386
28866
|
}, [context.branches]);
|
|
28387
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
28867
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...props, ref: composedRefs });
|
|
28388
28868
|
});
|
|
28389
28869
|
DismissableLayerBranch$1.displayName = BRANCH_NAME$1;
|
|
28390
28870
|
function usePointerDownOutside$1(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -30306,7 +30786,7 @@ var NAME$2 = "Arrow";
|
|
|
30306
30786
|
var Arrow$1 = React.forwardRef((props, forwardedRef) => {
|
|
30307
30787
|
const { children: children2, width = 10, height = 5, ...arrowProps } = props;
|
|
30308
30788
|
return /* @__PURE__ */ jsx(
|
|
30309
|
-
Primitive$
|
|
30789
|
+
Primitive$3.svg,
|
|
30310
30790
|
{
|
|
30311
30791
|
...arrowProps,
|
|
30312
30792
|
ref: forwardedRef,
|
|
@@ -30373,7 +30853,7 @@ var PopperAnchor = React.forwardRef(
|
|
|
30373
30853
|
React.useEffect(() => {
|
|
30374
30854
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
30375
30855
|
});
|
|
30376
|
-
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$
|
|
30856
|
+
return virtualRef ? null : /* @__PURE__ */ jsx(Primitive$3.div, { ...anchorProps, ref: composedRefs });
|
|
30377
30857
|
}
|
|
30378
30858
|
);
|
|
30379
30859
|
PopperAnchor.displayName = ANCHOR_NAME$2;
|
|
@@ -30500,7 +30980,7 @@ var PopperContent = React.forwardRef(
|
|
|
30500
30980
|
arrowY,
|
|
30501
30981
|
shouldHideArrow: cannotCenterArrow,
|
|
30502
30982
|
children: /* @__PURE__ */ jsx(
|
|
30503
|
-
Primitive$
|
|
30983
|
+
Primitive$3.div,
|
|
30504
30984
|
{
|
|
30505
30985
|
"data-side": placedSide,
|
|
30506
30986
|
"data-align": placedAlign,
|
|
@@ -30776,7 +31256,7 @@ var TooltipTrigger$1 = React.forwardRef(
|
|
|
30776
31256
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
30777
31257
|
}, [handlePointerUp]);
|
|
30778
31258
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
30779
|
-
Primitive$
|
|
31259
|
+
Primitive$3.button,
|
|
30780
31260
|
{
|
|
30781
31261
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
30782
31262
|
"data-state": context.stateAttribute,
|
|
@@ -31135,14 +31615,14 @@ const InfoTooltip = ({ title: title2, alertText, Icon: Icon2 = Info, onClick })
|
|
|
31135
31615
|
] }) })
|
|
31136
31616
|
] }) });
|
|
31137
31617
|
};
|
|
31138
|
-
const styles$
|
|
31618
|
+
const styles$1 = {
|
|
31139
31619
|
container: "flex flex-col items-center justify-center h-full"
|
|
31140
31620
|
};
|
|
31141
31621
|
const AutomationStatistics = ({ automationId, iconDefinitions }) => {
|
|
31142
31622
|
const [activeTab, setActiveTab] = useState("email");
|
|
31143
31623
|
const { statistics, isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
31144
31624
|
if (isStatisticsLoading || !statistics) {
|
|
31145
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
31625
|
+
return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
|
|
31146
31626
|
}
|
|
31147
31627
|
const StatsGrid = () => {
|
|
31148
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";
|
|
@@ -32844,39 +33324,22 @@ function formatDistance$1(date2, baseDate, options) {
|
|
|
32844
33324
|
function formatDistanceToNow(date2, options) {
|
|
32845
33325
|
return formatDistance$1(date2, constructNow(date2), options);
|
|
32846
33326
|
}
|
|
32847
|
-
const
|
|
32848
|
-
const secondary$1 = "reach-styles-module__secondary___H-ae8";
|
|
32849
|
-
const destructive$1 = "reach-styles-module__destructive___JsRNh";
|
|
32850
|
-
const outline$1 = "reach-styles-module__outline___9FFlV";
|
|
32851
|
-
const google = "reach-styles-module__google___7eHwU";
|
|
32852
|
-
const date = "reach-styles-module__date___gU3Tt";
|
|
32853
|
-
const container = "reach-styles-module__container___5PrOx";
|
|
32854
|
-
const styles$2 = {
|
|
32855
|
-
base: base$1,
|
|
32856
|
-
"default": "reach-styles-module__default___8NuEB",
|
|
32857
|
-
secondary: secondary$1,
|
|
32858
|
-
destructive: destructive$1,
|
|
32859
|
-
outline: outline$1,
|
|
32860
|
-
google,
|
|
32861
|
-
date,
|
|
32862
|
-
container
|
|
32863
|
-
};
|
|
32864
|
-
const badgeVariants = cva([styles$2.base], {
|
|
33327
|
+
const badgeVariants = cva([styles$6.base], {
|
|
32865
33328
|
variants: {
|
|
32866
33329
|
variant: {
|
|
32867
|
-
default: styles$
|
|
32868
|
-
secondary: styles$
|
|
32869
|
-
destructive: styles$
|
|
32870
|
-
outline: styles$
|
|
32871
|
-
google: styles$
|
|
32872
|
-
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
|
|
32873
33336
|
},
|
|
32874
33337
|
size: {
|
|
32875
|
-
default: styles$
|
|
32876
|
-
sm: styles$
|
|
33338
|
+
default: styles$6["size-default"],
|
|
33339
|
+
sm: styles$6["size-sm"]
|
|
32877
33340
|
},
|
|
32878
33341
|
iconOnly: {
|
|
32879
|
-
true: styles$
|
|
33342
|
+
true: styles$6["icon-only"],
|
|
32880
33343
|
false: ""
|
|
32881
33344
|
}
|
|
32882
33345
|
},
|
|
@@ -32884,7 +33347,7 @@ const badgeVariants = cva([styles$2.base], {
|
|
|
32884
33347
|
{
|
|
32885
33348
|
iconOnly: true,
|
|
32886
33349
|
size: "sm",
|
|
32887
|
-
class: styles$
|
|
33350
|
+
class: styles$6["icon-only-sm"]
|
|
32888
33351
|
}
|
|
32889
33352
|
],
|
|
32890
33353
|
defaultVariants: {
|
|
@@ -32894,13 +33357,13 @@ const badgeVariants = cva([styles$2.base], {
|
|
|
32894
33357
|
}
|
|
32895
33358
|
});
|
|
32896
33359
|
const Badge = React.forwardRef(
|
|
32897
|
-
({ className: className2, variant, size: size2, iconOnly, truncate, ...props }, ref) => {
|
|
33360
|
+
({ className: className2, variant, size: size2, iconOnly: iconOnly2, truncate, ...props }, ref) => {
|
|
32898
33361
|
return /* @__PURE__ */ jsx(
|
|
32899
33362
|
"div",
|
|
32900
33363
|
{
|
|
32901
33364
|
ref,
|
|
32902
33365
|
className: cn$1(
|
|
32903
|
-
badgeVariants({ variant, size: size2, iconOnly }),
|
|
33366
|
+
badgeVariants({ variant, size: size2, iconOnly: iconOnly2 }),
|
|
32904
33367
|
truncate && "max-w-[90px]",
|
|
32905
33368
|
className2
|
|
32906
33369
|
),
|
|
@@ -32911,7 +33374,7 @@ const Badge = React.forwardRef(
|
|
|
32911
33374
|
);
|
|
32912
33375
|
Badge.displayName = "Badge";
|
|
32913
33376
|
const BadgeContainer = React.forwardRef(({ className: className2, ...props }, ref) => {
|
|
32914
|
-
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$
|
|
33377
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$6.container, className2), ...props });
|
|
32915
33378
|
});
|
|
32916
33379
|
BadgeContainer.displayName = "BadgeContainer";
|
|
32917
33380
|
const Input = React.forwardRef(
|
|
@@ -35591,7 +36054,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
|
|
|
35591
36054
|
},
|
|
35592
36055
|
[loop, trapped, focusScope.paused]
|
|
35593
36056
|
);
|
|
35594
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
36057
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
35595
36058
|
});
|
|
35596
36059
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
35597
36060
|
function focusFirst$2(candidates, { select = false } = {}) {
|
|
@@ -35737,7 +36200,7 @@ var PopoverTrigger$1 = React.forwardRef(
|
|
|
35737
36200
|
const popperScope = usePopperScope$2(__scopePopover);
|
|
35738
36201
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
35739
36202
|
const trigger = /* @__PURE__ */ jsx(
|
|
35740
|
-
Primitive$
|
|
36203
|
+
Primitive$3.button,
|
|
35741
36204
|
{
|
|
35742
36205
|
type: "button",
|
|
35743
36206
|
"aria-haspopup": "dialog",
|
|
@@ -35922,7 +36385,7 @@ var PopoverClose = React.forwardRef(
|
|
|
35922
36385
|
const { __scopePopover, ...closeProps } = props;
|
|
35923
36386
|
const context = usePopoverContext(CLOSE_NAME, __scopePopover);
|
|
35924
36387
|
return /* @__PURE__ */ jsx(
|
|
35925
|
-
Primitive$
|
|
36388
|
+
Primitive$3.button,
|
|
35926
36389
|
{
|
|
35927
36390
|
type: "button",
|
|
35928
36391
|
...closeProps,
|
|
@@ -36558,7 +37021,7 @@ var SelectTrigger$1 = React.forwardRef(
|
|
|
36558
37021
|
}
|
|
36559
37022
|
};
|
|
36560
37023
|
return /* @__PURE__ */ jsx(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(
|
|
36561
|
-
Primitive$
|
|
37024
|
+
Primitive$3.button,
|
|
36562
37025
|
{
|
|
36563
37026
|
type: "button",
|
|
36564
37027
|
role: "combobox",
|
|
@@ -36617,7 +37080,7 @@ var SelectValue$1 = React.forwardRef(
|
|
|
36617
37080
|
onValueNodeHasChildrenChange(hasChildren);
|
|
36618
37081
|
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
36619
37082
|
return /* @__PURE__ */ jsx(
|
|
36620
|
-
Primitive$
|
|
37083
|
+
Primitive$3.span,
|
|
36621
37084
|
{
|
|
36622
37085
|
...valueProps,
|
|
36623
37086
|
ref: composedRefs,
|
|
@@ -36632,7 +37095,7 @@ var ICON_NAME = "SelectIcon";
|
|
|
36632
37095
|
var SelectIcon = React.forwardRef(
|
|
36633
37096
|
(props, forwardedRef) => {
|
|
36634
37097
|
const { __scopeSelect, children: children2, ...iconProps } = props;
|
|
36635
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37098
|
+
return /* @__PURE__ */ jsx(Primitive$3.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children2 || "▼" });
|
|
36636
37099
|
}
|
|
36637
37100
|
);
|
|
36638
37101
|
SelectIcon.displayName = ICON_NAME;
|
|
@@ -37040,7 +37503,7 @@ var SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {
|
|
|
37040
37503
|
zIndex: contentZIndex
|
|
37041
37504
|
},
|
|
37042
37505
|
children: /* @__PURE__ */ jsx(
|
|
37043
|
-
Primitive$
|
|
37506
|
+
Primitive$3.div,
|
|
37044
37507
|
{
|
|
37045
37508
|
...popperProps,
|
|
37046
37509
|
ref: composedRefs,
|
|
@@ -37114,7 +37577,7 @@ var SelectViewport = React.forwardRef(
|
|
|
37114
37577
|
}
|
|
37115
37578
|
),
|
|
37116
37579
|
/* @__PURE__ */ jsx(Collection$2.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(
|
|
37117
|
-
Primitive$
|
|
37580
|
+
Primitive$3.div,
|
|
37118
37581
|
{
|
|
37119
37582
|
"data-radix-select-viewport": "",
|
|
37120
37583
|
role: "presentation",
|
|
@@ -37169,7 +37632,7 @@ var SelectGroup = React.forwardRef(
|
|
|
37169
37632
|
(props, forwardedRef) => {
|
|
37170
37633
|
const { __scopeSelect, ...groupProps } = props;
|
|
37171
37634
|
const groupId = useId$1();
|
|
37172
|
-
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 }) });
|
|
37173
37636
|
}
|
|
37174
37637
|
);
|
|
37175
37638
|
SelectGroup.displayName = GROUP_NAME$3;
|
|
@@ -37178,7 +37641,7 @@ var SelectLabel$1 = React.forwardRef(
|
|
|
37178
37641
|
(props, forwardedRef) => {
|
|
37179
37642
|
const { __scopeSelect, ...labelProps } = props;
|
|
37180
37643
|
const groupContext = useSelectGroupContext(LABEL_NAME$2, __scopeSelect);
|
|
37181
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37644
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
37182
37645
|
}
|
|
37183
37646
|
);
|
|
37184
37647
|
SelectLabel$1.displayName = LABEL_NAME$2;
|
|
@@ -37234,7 +37697,7 @@ var SelectItem$1 = React.forwardRef(
|
|
|
37234
37697
|
disabled,
|
|
37235
37698
|
textValue,
|
|
37236
37699
|
children: /* @__PURE__ */ jsx(
|
|
37237
|
-
Primitive$
|
|
37700
|
+
Primitive$3.div,
|
|
37238
37701
|
{
|
|
37239
37702
|
role: "option",
|
|
37240
37703
|
"aria-labelledby": textId,
|
|
@@ -37311,7 +37774,7 @@ var SelectItemText = React.forwardRef(
|
|
|
37311
37774
|
return () => onNativeOptionRemove(nativeOption);
|
|
37312
37775
|
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
37313
37776
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37314
|
-
/* @__PURE__ */ jsx(Primitive$
|
|
37777
|
+
/* @__PURE__ */ jsx(Primitive$3.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
|
37315
37778
|
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null
|
|
37316
37779
|
] });
|
|
37317
37780
|
}
|
|
@@ -37322,7 +37785,7 @@ var SelectItemIndicator = React.forwardRef(
|
|
|
37322
37785
|
(props, forwardedRef) => {
|
|
37323
37786
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
37324
37787
|
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME$1, __scopeSelect);
|
|
37325
|
-
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$
|
|
37788
|
+
return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive$3.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
37326
37789
|
}
|
|
37327
37790
|
);
|
|
37328
37791
|
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME$1;
|
|
@@ -37412,7 +37875,7 @@ var SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
37412
37875
|
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
37413
37876
|
}, [getItems]);
|
|
37414
37877
|
return /* @__PURE__ */ jsx(
|
|
37415
|
-
Primitive$
|
|
37878
|
+
Primitive$3.div,
|
|
37416
37879
|
{
|
|
37417
37880
|
"aria-hidden": true,
|
|
37418
37881
|
...scrollIndicatorProps,
|
|
@@ -37439,7 +37902,7 @@ var SEPARATOR_NAME$2 = "SelectSeparator";
|
|
|
37439
37902
|
var SelectSeparator$1 = React.forwardRef(
|
|
37440
37903
|
(props, forwardedRef) => {
|
|
37441
37904
|
const { __scopeSelect, ...separatorProps } = props;
|
|
37442
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
37905
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
37443
37906
|
}
|
|
37444
37907
|
);
|
|
37445
37908
|
SelectSeparator$1.displayName = SEPARATOR_NAME$2;
|
|
@@ -37477,7 +37940,7 @@ var BubbleSelect = React.forwardRef(
|
|
|
37477
37940
|
select.dispatchEvent(event);
|
|
37478
37941
|
}
|
|
37479
37942
|
}, [prevValue, value]);
|
|
37480
|
-
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 }) });
|
|
37481
37944
|
}
|
|
37482
37945
|
);
|
|
37483
37946
|
BubbleSelect.displayName = "BubbleSelect";
|
|
@@ -37919,7 +38382,7 @@ const NameAndDescription = ({ nameAndDescriptionState, setNameAndDescriptionStat
|
|
|
37919
38382
|
] })
|
|
37920
38383
|
] }) });
|
|
37921
38384
|
};
|
|
37922
|
-
const styles
|
|
38385
|
+
const styles = {
|
|
37923
38386
|
container: "relative rounded-lg"
|
|
37924
38387
|
};
|
|
37925
38388
|
const SegmentBuilder = ({
|
|
@@ -38073,17 +38536,17 @@ const SegmentBuilder = ({
|
|
|
38073
38536
|
}
|
|
38074
38537
|
};
|
|
38075
38538
|
if (isLoading) {
|
|
38076
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
38539
|
+
return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
|
|
38077
38540
|
}
|
|
38078
38541
|
if (isCreating || startedCreating) {
|
|
38079
|
-
return /* @__PURE__ */ jsx("div", { className: styles
|
|
38542
|
+
return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(
|
|
38080
38543
|
SpinLoader,
|
|
38081
38544
|
{
|
|
38082
38545
|
text: SEGMENT_ID && existingSegment ? ["Updating Segment", "Finishing up"] : ["Creating Segment", "Finishing up"]
|
|
38083
38546
|
}
|
|
38084
38547
|
) });
|
|
38085
38548
|
}
|
|
38086
|
-
return /* @__PURE__ */ jsxs("div", { className: styles
|
|
38549
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
|
|
38087
38550
|
/* @__PURE__ */ jsx("div", { className: "relative w-full flex justify-end mb-4", children: /* @__PURE__ */ jsx(
|
|
38088
38551
|
Button$1,
|
|
38089
38552
|
{
|
|
@@ -38193,7 +38656,7 @@ var RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {
|
|
|
38193
38656
|
[]
|
|
38194
38657
|
),
|
|
38195
38658
|
children: /* @__PURE__ */ jsx(
|
|
38196
|
-
Primitive$
|
|
38659
|
+
Primitive$3.div,
|
|
38197
38660
|
{
|
|
38198
38661
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
38199
38662
|
"data-orientation": orientation,
|
|
@@ -38257,7 +38720,7 @@ var RovingFocusGroupItem = React.forwardRef(
|
|
|
38257
38720
|
focusable,
|
|
38258
38721
|
active,
|
|
38259
38722
|
children: /* @__PURE__ */ jsx(
|
|
38260
|
-
Primitive$
|
|
38723
|
+
Primitive$3.span,
|
|
38261
38724
|
{
|
|
38262
38725
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
38263
38726
|
"data-orientation": context.orientation,
|
|
@@ -38364,7 +38827,7 @@ var Tabs$1 = React.forwardRef(
|
|
|
38364
38827
|
dir: direction,
|
|
38365
38828
|
activationMode,
|
|
38366
38829
|
children: /* @__PURE__ */ jsx(
|
|
38367
|
-
Primitive$
|
|
38830
|
+
Primitive$3.div,
|
|
38368
38831
|
{
|
|
38369
38832
|
dir: direction,
|
|
38370
38833
|
"data-orientation": orientation,
|
|
@@ -38392,7 +38855,7 @@ var TabsList$1 = React.forwardRef(
|
|
|
38392
38855
|
dir: context.dir,
|
|
38393
38856
|
loop,
|
|
38394
38857
|
children: /* @__PURE__ */ jsx(
|
|
38395
|
-
Primitive$
|
|
38858
|
+
Primitive$3.div,
|
|
38396
38859
|
{
|
|
38397
38860
|
role: "tablist",
|
|
38398
38861
|
"aria-orientation": context.orientation,
|
|
@@ -38422,7 +38885,7 @@ var TabsTrigger$1 = React.forwardRef(
|
|
|
38422
38885
|
focusable: !disabled,
|
|
38423
38886
|
active: isSelected,
|
|
38424
38887
|
children: /* @__PURE__ */ jsx(
|
|
38425
|
-
Primitive$
|
|
38888
|
+
Primitive$3.button,
|
|
38426
38889
|
{
|
|
38427
38890
|
type: "button",
|
|
38428
38891
|
role: "tab",
|
|
@@ -38471,7 +38934,7 @@ var TabsContent$1 = React.forwardRef(
|
|
|
38471
38934
|
return () => cancelAnimationFrame(rAF);
|
|
38472
38935
|
}, []);
|
|
38473
38936
|
return /* @__PURE__ */ jsx(Presence, { present: forceMount || isSelected, children: ({ present }) => /* @__PURE__ */ jsx(
|
|
38474
|
-
Primitive$
|
|
38937
|
+
Primitive$3.div,
|
|
38475
38938
|
{
|
|
38476
38939
|
"data-state": isSelected ? "active" : "inactive",
|
|
38477
38940
|
"data-orientation": context.orientation,
|
|
@@ -39024,7 +39487,7 @@ const AutomationRecipients = ({ automationId, iconDefinitions }) => {
|
|
|
39024
39487
|
const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
|
|
39025
39488
|
const { isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
|
|
39026
39489
|
if (isLoading || isStatisticsLoading) {
|
|
39027
|
-
return /* @__PURE__ */ jsx("div", { className: styles$
|
|
39490
|
+
return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
|
|
39028
39491
|
}
|
|
39029
39492
|
if (fetchError) {
|
|
39030
39493
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -39162,7 +39625,7 @@ var DismissableLayer = React.forwardRef(
|
|
|
39162
39625
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
39163
39626
|
}, []);
|
|
39164
39627
|
return /* @__PURE__ */ jsx(
|
|
39165
|
-
Primitive$
|
|
39628
|
+
Primitive$3.div,
|
|
39166
39629
|
{
|
|
39167
39630
|
...layerProps,
|
|
39168
39631
|
ref: composedRefs,
|
|
@@ -39195,7 +39658,7 @@ var DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {
|
|
|
39195
39658
|
};
|
|
39196
39659
|
}
|
|
39197
39660
|
}, [context.branches]);
|
|
39198
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
39661
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...props, ref: composedRefs });
|
|
39199
39662
|
});
|
|
39200
39663
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
39201
39664
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -39600,7 +40063,7 @@ var GROUP_NAME$1 = "MenuGroup";
|
|
|
39600
40063
|
var MenuGroup = React.forwardRef(
|
|
39601
40064
|
(props, forwardedRef) => {
|
|
39602
40065
|
const { __scopeMenu, ...groupProps } = props;
|
|
39603
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
40066
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
39604
40067
|
}
|
|
39605
40068
|
);
|
|
39606
40069
|
MenuGroup.displayName = GROUP_NAME$1;
|
|
@@ -39608,7 +40071,7 @@ var LABEL_NAME$1 = "MenuLabel";
|
|
|
39608
40071
|
var MenuLabel = React.forwardRef(
|
|
39609
40072
|
(props, forwardedRef) => {
|
|
39610
40073
|
const { __scopeMenu, ...labelProps } = props;
|
|
39611
|
-
return /* @__PURE__ */ jsx(Primitive$
|
|
40074
|
+
return /* @__PURE__ */ jsx(Primitive$3.div, { ...labelProps, ref: forwardedRef });
|
|
39612
40075
|
}
|
|
39613
40076
|
);
|
|
39614
40077
|
MenuLabel.displayName = LABEL_NAME$1;
|
|
@@ -39684,7 +40147,7 @@ var MenuItemImpl = React.forwardRef(
|
|
|
39684
40147
|
disabled,
|
|
39685
40148
|
textValue: textValue ?? textContent,
|
|
39686
40149
|
children: /* @__PURE__ */ jsx(Item, { asChild: true, ...rovingFocusGroupScope, focusable: !disabled, children: /* @__PURE__ */ jsx(
|
|
39687
|
-
Primitive$
|
|
40150
|
+
Primitive$3.div,
|
|
39688
40151
|
{
|
|
39689
40152
|
role: "menuitem",
|
|
39690
40153
|
"data-highlighted": isFocused ? "" : void 0,
|
|
@@ -39792,7 +40255,7 @@ var MenuItemIndicator = React.forwardRef(
|
|
|
39792
40255
|
{
|
|
39793
40256
|
present: forceMount || isIndeterminate(indicatorContext.checked) || indicatorContext.checked === true,
|
|
39794
40257
|
children: /* @__PURE__ */ jsx(
|
|
39795
|
-
Primitive$
|
|
40258
|
+
Primitive$3.span,
|
|
39796
40259
|
{
|
|
39797
40260
|
...itemIndicatorProps,
|
|
39798
40261
|
ref: forwardedRef,
|
|
@@ -39809,7 +40272,7 @@ var MenuSeparator = React.forwardRef(
|
|
|
39809
40272
|
(props, forwardedRef) => {
|
|
39810
40273
|
const { __scopeMenu, ...separatorProps } = props;
|
|
39811
40274
|
return /* @__PURE__ */ jsx(
|
|
39812
|
-
Primitive$
|
|
40275
|
+
Primitive$3.div,
|
|
39813
40276
|
{
|
|
39814
40277
|
role: "separator",
|
|
39815
40278
|
"aria-orientation": "horizontal",
|
|
@@ -40095,7 +40558,7 @@ var DropdownMenuTrigger$1 = React.forwardRef(
|
|
|
40095
40558
|
const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
|
|
40096
40559
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
40097
40560
|
return /* @__PURE__ */ jsx(Anchor2, { asChild: true, ...menuScope, children: /* @__PURE__ */ jsx(
|
|
40098
|
-
Primitive$
|
|
40561
|
+
Primitive$3.button,
|
|
40099
40562
|
{
|
|
40100
40563
|
type: "button",
|
|
40101
40564
|
id: context.triggerId,
|
|
@@ -40483,34 +40946,13 @@ const BackNextButtonGroup = ({
|
|
|
40483
40946
|
)
|
|
40484
40947
|
] });
|
|
40485
40948
|
};
|
|
40486
|
-
const
|
|
40487
|
-
const destructive = "reach-styles-module__destructive___a6Swz";
|
|
40488
|
-
const outline = "reach-styles-module__outline___INmdX";
|
|
40489
|
-
const secondary = "reach-styles-module__secondary___Ym15V";
|
|
40490
|
-
const header = "reach-styles-module__header___CzneX";
|
|
40491
|
-
const title = "reach-styles-module__title___8ostO";
|
|
40492
|
-
const description = "reach-styles-module__description___xR5d4";
|
|
40493
|
-
const content = "reach-styles-module__content___XXeK2";
|
|
40494
|
-
const footer = "reach-styles-module__footer___35Xil";
|
|
40495
|
-
const styles = {
|
|
40496
|
-
base,
|
|
40497
|
-
"default": "reach-styles-module__default___S2tp4",
|
|
40498
|
-
destructive,
|
|
40499
|
-
outline,
|
|
40500
|
-
secondary,
|
|
40501
|
-
header,
|
|
40502
|
-
title,
|
|
40503
|
-
description,
|
|
40504
|
-
content,
|
|
40505
|
-
footer
|
|
40506
|
-
};
|
|
40507
|
-
const cardVariants = cva(styles.base, {
|
|
40949
|
+
const cardVariants = cva(styles$4.base, {
|
|
40508
40950
|
variants: {
|
|
40509
40951
|
variant: {
|
|
40510
|
-
default: styles.default,
|
|
40511
|
-
destructive: styles.destructive,
|
|
40512
|
-
outline: styles.outline,
|
|
40513
|
-
secondary: styles.secondary
|
|
40952
|
+
default: styles$4.default,
|
|
40953
|
+
destructive: styles$4.destructive,
|
|
40954
|
+
outline: styles$4.outline,
|
|
40955
|
+
secondary: styles$4.secondary
|
|
40514
40956
|
}
|
|
40515
40957
|
},
|
|
40516
40958
|
defaultVariants: {
|
|
@@ -40530,15 +40972,15 @@ const Card = React.forwardRef(
|
|
|
40530
40972
|
}
|
|
40531
40973
|
);
|
|
40532
40974
|
Card.displayName = "Card";
|
|
40533
|
-
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 }));
|
|
40534
40976
|
CardHeader.displayName = "CardHeader";
|
|
40535
|
-
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 }));
|
|
40536
40978
|
CardTitle.displayName = "CardTitle";
|
|
40537
|
-
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 }));
|
|
40538
40980
|
CardDescription.displayName = "CardDescription";
|
|
40539
|
-
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 }));
|
|
40540
40982
|
CardContent.displayName = "CardContent";
|
|
40541
|
-
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 }));
|
|
40542
40984
|
CardFooter.displayName = "CardFooter";
|
|
40543
40985
|
const getChannelAccounts = async () => {
|
|
40544
40986
|
const response = await baseRequest(
|
|
@@ -40571,7 +41013,7 @@ var ChannelAccountTypeEnum = /* @__PURE__ */ ((ChannelAccountTypeEnum2) => {
|
|
|
40571
41013
|
var NAME = "Label";
|
|
40572
41014
|
var Label$1 = React.forwardRef((props, forwardedRef) => {
|
|
40573
41015
|
return /* @__PURE__ */ jsx(
|
|
40574
|
-
Primitive$
|
|
41016
|
+
Primitive$3.label,
|
|
40575
41017
|
{
|
|
40576
41018
|
...props,
|
|
40577
41019
|
ref: forwardedRef,
|
|
@@ -44409,8 +44851,8 @@ function useSelectMultiple() {
|
|
|
44409
44851
|
}
|
|
44410
44852
|
return context;
|
|
44411
44853
|
}
|
|
44412
|
-
function addToRange(day,
|
|
44413
|
-
var _a =
|
|
44854
|
+
function addToRange(day, range2) {
|
|
44855
|
+
var _a = range2 || {}, from = _a.from, to = _a.to;
|
|
44414
44856
|
if (from && to) {
|
|
44415
44857
|
if (isSameDay(to, day) && isSameDay(from, day)) {
|
|
44416
44858
|
return void 0;
|
|
@@ -44630,9 +45072,9 @@ function isDateBeforeType(value) {
|
|
|
44630
45072
|
function isDayOfWeekType(value) {
|
|
44631
45073
|
return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
|
|
44632
45074
|
}
|
|
44633
|
-
function isDateInRange(date2,
|
|
45075
|
+
function isDateInRange(date2, range2) {
|
|
44634
45076
|
var _a;
|
|
44635
|
-
var from =
|
|
45077
|
+
var from = range2.from, to = range2.to;
|
|
44636
45078
|
if (from && to) {
|
|
44637
45079
|
var isRangeInverted = differenceInCalendarDays(to, from) < 0;
|
|
44638
45080
|
if (isRangeInverted) {
|
|
@@ -44903,7 +45345,7 @@ function useDayEventHandlers(date2, activeModifiers) {
|
|
|
44903
45345
|
var dayPicker = useDayPicker();
|
|
44904
45346
|
var single = useSelectSingle();
|
|
44905
45347
|
var multiple = useSelectMultiple();
|
|
44906
|
-
var
|
|
45348
|
+
var range2 = useSelectRange();
|
|
44907
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;
|
|
44908
45350
|
var onClick = function(e4) {
|
|
44909
45351
|
var _a2, _b, _c, _d;
|
|
@@ -44912,7 +45354,7 @@ function useDayEventHandlers(date2, activeModifiers) {
|
|
|
44912
45354
|
} else if (isDayPickerMultiple(dayPicker)) {
|
|
44913
45355
|
(_b = multiple.onDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date2, activeModifiers, e4);
|
|
44914
45356
|
} else if (isDayPickerRange(dayPicker)) {
|
|
44915
|
-
(_c =
|
|
45357
|
+
(_c = range2.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range2, date2, activeModifiers, e4);
|
|
44916
45358
|
} else {
|
|
44917
45359
|
(_d = dayPicker.onDayClick) === null || _d === void 0 ? void 0 : _d.call(dayPicker, date2, activeModifiers, e4);
|
|
44918
45360
|
}
|
|
@@ -45030,8 +45472,8 @@ function useSelectedDays() {
|
|
|
45030
45472
|
var dayPicker = useDayPicker();
|
|
45031
45473
|
var single = useSelectSingle();
|
|
45032
45474
|
var multiple = useSelectMultiple();
|
|
45033
|
-
var
|
|
45034
|
-
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;
|
|
45035
45477
|
return selectedDays;
|
|
45036
45478
|
}
|
|
45037
45479
|
function isInternalModifier(modifier) {
|
|
@@ -46724,19 +47166,15 @@ const ViewAutomationHeader = ({
|
|
|
46724
47166
|
] })
|
|
46725
47167
|
] });
|
|
46726
47168
|
};
|
|
46727
|
-
const
|
|
46728
|
-
const params = useParams();
|
|
46729
|
-
const [searchParams] = useSearchParams();
|
|
46730
|
-
return { params, searchParams };
|
|
46731
|
-
};
|
|
46732
|
-
const ViewAutomationModal = ({
|
|
47169
|
+
const ViewAutomationModalContent = ({
|
|
46733
47170
|
iconDefinitions,
|
|
46734
47171
|
autoOpenEditPopup,
|
|
46735
47172
|
automationId,
|
|
46736
47173
|
showBackButton = false,
|
|
46737
47174
|
logoUrl
|
|
46738
47175
|
}) => {
|
|
46739
|
-
const
|
|
47176
|
+
const params = useParams();
|
|
47177
|
+
const [searchParams] = useSearchParams();
|
|
46740
47178
|
const FINAL_AUTOMATION_ID = automationId || params?.automationId || searchParams.get("automationId");
|
|
46741
47179
|
const AUTO_OPEN_EDIT_POPUP = autoOpenEditPopup || searchParams.get("autoOpenEditPopup");
|
|
46742
47180
|
const FINAL_SHOW_BACK_BUTTON = searchParams.get("showBackButton") === "true" || showBackButton;
|
|
@@ -46746,7 +47184,7 @@ const ViewAutomationModal = ({
|
|
|
46746
47184
|
return /* @__PURE__ */ jsx("div", { children: "Invalid automation ID" });
|
|
46747
47185
|
}
|
|
46748
47186
|
if (!automation && (isFetching || isLoading)) {
|
|
46749
|
-
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"] }) });
|
|
46750
47188
|
}
|
|
46751
47189
|
if (fetchError) {
|
|
46752
47190
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -46757,7 +47195,7 @@ const ViewAutomationModal = ({
|
|
|
46757
47195
|
if (!automation) {
|
|
46758
47196
|
return /* @__PURE__ */ jsx("div", { children: "No automation found" });
|
|
46759
47197
|
}
|
|
46760
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
47198
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
|
|
46761
47199
|
/* @__PURE__ */ jsx(
|
|
46762
47200
|
ViewAutomationHeader,
|
|
46763
47201
|
{
|
|
@@ -46790,6 +47228,15 @@ const ViewAutomationModal = ({
|
|
|
46790
47228
|
] }) })
|
|
46791
47229
|
] });
|
|
46792
47230
|
};
|
|
47231
|
+
const ViewAutomationModal = ({ inRouter = false, ...props }) => {
|
|
47232
|
+
if (inRouter) {
|
|
47233
|
+
return /* @__PURE__ */ jsx(ViewAutomationModalContent, { ...props });
|
|
47234
|
+
}
|
|
47235
|
+
return /* @__PURE__ */ jsx(MemoryRouter, { children: /* @__PURE__ */ jsx(ViewAutomationModalContent, { ...props }) });
|
|
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
|
+
);
|
|
46793
47240
|
export {
|
|
46794
47241
|
$TRACK as $,
|
|
46795
47242
|
getQueryStatusColorByLabel as A,
|