@embedreach/components 0.1.34 → 0.1.35

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/index.umd.js CHANGED
@@ -20,234 +20,6 @@
20
20
  }
21
21
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
22
22
  const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
23
- const base$5 = "reach-styles-module__base___1f29D";
24
- const destructive$3 = "reach-styles-module__destructive___I1tif";
25
- const title$1 = "reach-styles-module__title___gL-0t";
26
- const description$1 = "reach-styles-module__description___TBeKF";
27
- const styles_module$4 = {
28
- base: base$5,
29
- "default": "reach-styles-module__default___sG8Jl",
30
- destructive: destructive$3,
31
- title: title$1,
32
- description: description$1
33
- };
34
- const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35
- __proto__: null,
36
- base: base$5,
37
- default: styles_module$4,
38
- description: description$1,
39
- destructive: destructive$3,
40
- title: title$1
41
- }, Symbol.toStringTag, { value: "Module" }));
42
- const base$4 = "reach-styles-module__base___eJmcH";
43
- const secondary$3 = "reach-styles-module__secondary___H-ae8";
44
- const destructive$2 = "reach-styles-module__destructive___JsRNh";
45
- const outline$2 = "reach-styles-module__outline___9FFlV";
46
- const google = "reach-styles-module__google___7eHwU";
47
- const dark = "reach-styles-module__dark___gu5hq";
48
- const date$2 = "reach-styles-module__date___gU3Tt";
49
- const sizeDefault$3 = "reach-styles-module__size-default___bnA-o";
50
- const sizeSm$3 = "reach-styles-module__size-sm___-y5xc";
51
- const iconOnly = "reach-styles-module__icon-only___ae2yu";
52
- const iconOnlySm = "reach-styles-module__icon-only-sm___j9kLM";
53
- const container = "reach-styles-module__container___5PrOx";
54
- const styles$6 = {
55
- base: base$4,
56
- "default": "reach-styles-module__default___8NuEB",
57
- secondary: secondary$3,
58
- destructive: destructive$2,
59
- outline: outline$2,
60
- google,
61
- dark,
62
- date: date$2,
63
- sizeDefault: sizeDefault$3,
64
- sizeSm: sizeSm$3,
65
- iconOnly,
66
- iconOnlySm,
67
- container
68
- };
69
- const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
- __proto__: null,
71
- base: base$4,
72
- container,
73
- dark,
74
- date: date$2,
75
- default: styles$6,
76
- destructive: destructive$2,
77
- google,
78
- iconOnly,
79
- iconOnlySm,
80
- outline: outline$2,
81
- secondary: secondary$3,
82
- sizeDefault: sizeDefault$3,
83
- sizeSm: sizeSm$3
84
- }, Symbol.toStringTag, { value: "Module" }));
85
- const base$3 = "reach-styles-module__base___jV5oA";
86
- const primary = "reach-styles-module__primary___WEdH4";
87
- const success = "reach-styles-module__success___-eJqU";
88
- const warning$2 = "reach-styles-module__warning___KP0RW";
89
- const error$2 = "reach-styles-module__error___klJoJ";
90
- const sizeDefault$2 = "reach-styles-module__size-default___hgiNI";
91
- const sizeSm$2 = "reach-styles-module__size-sm___tiHOk";
92
- const sizeLg$2 = "reach-styles-module__size-lg___iGf5z";
93
- const positionDefault = "reach-styles-module__position-default___FzGg5";
94
- const positionTop = "reach-styles-module__position-top___NpFYx";
95
- const positionBottom = "reach-styles-module__position-bottom___-DbqR";
96
- const positionInline = "reach-styles-module__position-inline___I-BaY";
97
- const styles_module$3 = {
98
- base: base$3,
99
- "default": "reach-styles-module__default___eFUo9",
100
- primary,
101
- success,
102
- warning: warning$2,
103
- error: error$2,
104
- sizeDefault: sizeDefault$2,
105
- sizeSm: sizeSm$2,
106
- sizeLg: sizeLg$2,
107
- positionDefault,
108
- positionTop,
109
- positionBottom,
110
- positionInline
111
- };
112
- const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
113
- __proto__: null,
114
- base: base$3,
115
- default: styles_module$3,
116
- error: error$2,
117
- positionBottom,
118
- positionDefault,
119
- positionInline,
120
- positionTop,
121
- primary,
122
- sizeDefault: sizeDefault$2,
123
- sizeLg: sizeLg$2,
124
- sizeSm: sizeSm$2,
125
- success,
126
- warning: warning$2
127
- }, Symbol.toStringTag, { value: "Module" }));
128
- const base$2 = "reach-styles-module__base___RP4iu";
129
- const destructive$1 = "reach-styles-module__destructive___BZSYi";
130
- const outline$1 = "reach-styles-module__outline___bNcaI";
131
- const secondary$2 = "reach-styles-module__secondary___osvqQ";
132
- const ghost = "reach-styles-module__ghost___uU77B";
133
- const link = "reach-styles-module__link___nSLOW";
134
- const sizeDefault$1 = "reach-styles-module__size-default___kIvbz";
135
- const sizeSm$1 = "reach-styles-module__size-sm___45mpF";
136
- const sizeLg$1 = "reach-styles-module__size-lg___49p4A";
137
- const sizeIcon = "reach-styles-module__size-icon___-6vvi";
138
- const styles$5 = {
139
- base: base$2,
140
- "default": "reach-styles-module__default___pajjj",
141
- destructive: destructive$1,
142
- outline: outline$1,
143
- secondary: secondary$2,
144
- ghost,
145
- link,
146
- sizeDefault: sizeDefault$1,
147
- sizeSm: sizeSm$1,
148
- sizeLg: sizeLg$1,
149
- sizeIcon
150
- };
151
- const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152
- __proto__: null,
153
- base: base$2,
154
- default: styles$5,
155
- destructive: destructive$1,
156
- ghost,
157
- link,
158
- outline: outline$1,
159
- secondary: secondary$2,
160
- sizeDefault: sizeDefault$1,
161
- sizeIcon,
162
- sizeLg: sizeLg$1,
163
- sizeSm: sizeSm$1
164
- }, Symbol.toStringTag, { value: "Module" }));
165
- const base$1 = "reach-styles-module__base___ANlIr";
166
- const destructive = "reach-styles-module__destructive___a6Swz";
167
- const outline = "reach-styles-module__outline___INmdX";
168
- const secondary$1 = "reach-styles-module__secondary___Ym15V";
169
- const header = "reach-styles-module__header___CzneX";
170
- const title = "reach-styles-module__title___8ostO";
171
- const description = "reach-styles-module__description___xR5d4";
172
- const content = "reach-styles-module__content___XXeK2";
173
- const footer = "reach-styles-module__footer___35Xil";
174
- const styles$4 = {
175
- base: base$1,
176
- "default": "reach-styles-module__default___S2tp4",
177
- destructive,
178
- outline,
179
- secondary: secondary$1,
180
- header,
181
- title,
182
- description,
183
- content,
184
- footer
185
- };
186
- const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
187
- __proto__: null,
188
- base: base$1,
189
- content,
190
- default: styles$4,
191
- description,
192
- destructive,
193
- footer,
194
- header,
195
- outline,
196
- secondary: secondary$1,
197
- title
198
- }, Symbol.toStringTag, { value: "Module" }));
199
- const base = "reach-styles-module__base___ihq8K";
200
- const secondary = "reach-styles-module__secondary___-4DAF";
201
- const sizeDefault = "reach-styles-module__size-default___GR-0s";
202
- const sizeSm = "reach-styles-module__size-sm___di6Rw";
203
- const sizeLg = "reach-styles-module__size-lg___KGbCW";
204
- const styles_module$2 = {
205
- base,
206
- "default": "reach-styles-module__default___xYprf",
207
- secondary,
208
- sizeDefault,
209
- sizeSm,
210
- sizeLg
211
- };
212
- const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
213
- __proto__: null,
214
- base,
215
- default: styles_module$2,
216
- secondary,
217
- sizeDefault,
218
- sizeLg,
219
- sizeSm
220
- }, Symbol.toStringTag, { value: "Module" }));
221
- const skeleton = "reach-styles-module__skeleton___G4xtU";
222
- const pulse = "reach-styles-module__pulse___6mIhJ";
223
- const styles_module$1 = {
224
- skeleton,
225
- pulse
226
- };
227
- const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
228
- __proto__: null,
229
- default: styles_module$1,
230
- pulse,
231
- skeleton
232
- }, Symbol.toStringTag, { value: "Module" }));
233
- const root$1 = "reach-styles-module__root___eifex";
234
- const track = "reach-styles-module__track___NJnT0";
235
- const range = "reach-styles-module__range___mw-ny";
236
- const thumb = "reach-styles-module__thumb___hzq0o";
237
- const styles_module = {
238
- root: root$1,
239
- track,
240
- range,
241
- thumb
242
- };
243
- const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
244
- __proto__: null,
245
- default: styles_module,
246
- range,
247
- root: root$1,
248
- thumb,
249
- track
250
- }, Symbol.toStringTag, { value: "Module" }));
251
23
  var Subscribable = class {
252
24
  constructor() {
253
25
  this.listeners = /* @__PURE__ */ new Set();
@@ -2856,7 +2628,7 @@
2856
2628
  options2 = {};
2857
2629
  }
2858
2630
  let pr = null, initP = NO_INIT, id2 = null, scheduled = false, resolved = "initialValue" in options2, dynamic = typeof source === "function" && createMemo(source);
2859
- const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options2.storage || createSignal)(options2.initialValue), [error2, setError2] = createSignal(void 0), [track2, trigger] = createSignal(void 0, {
2631
+ const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options2.storage || createSignal)(options2.initialValue), [error2, setError2] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
2860
2632
  equals: false
2861
2633
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
2862
2634
  if (sharedConfig.context) {
@@ -11381,7 +11153,7 @@
11381
11153
  }
11382
11154
  Browser.type = "languageDetector";
11383
11155
  const ad_spend$1 = "Ad Spend";
11384
- const date$1 = "Date";
11156
+ const date$2 = "Date";
11385
11157
  const close$1 = "Close";
11386
11158
  const connected$1 = "Connected";
11387
11159
  const connecting$1 = "Connecting...";
@@ -11768,7 +11540,7 @@
11768
11540
  };
11769
11541
  const enCommon = {
11770
11542
  ad_spend: ad_spend$1,
11771
- date: date$1,
11543
+ date: date$2,
11772
11544
  close: close$1,
11773
11545
  "continue": "Continue",
11774
11546
  connected: connected$1,
@@ -11807,7 +11579,7 @@
11807
11579
  empty_state: empty_state$1
11808
11580
  };
11809
11581
  const ad_spend = "Gasto en anuncios";
11810
- const date = "Fecha";
11582
+ const date$1 = "Fecha";
11811
11583
  const close = "Cerrar";
11812
11584
  const connected = "Conectado";
11813
11585
  const connecting = "Conectando...";
@@ -12194,7 +11966,7 @@
12194
11966
  };
12195
11967
  const esCommon = {
12196
11968
  ad_spend,
12197
- date,
11969
+ date: date$1,
12198
11970
  close,
12199
11971
  "continue": "Continuar",
12200
11972
  connected,
@@ -18496,7 +18268,7 @@
18496
18268
  return;
18497
18269
  isPressing.add(element);
18498
18270
  const onPressEnd = onPressStart(element, startEvent);
18499
- const onPointerEnd = (endEvent, success2) => {
18271
+ const onPointerEnd = (endEvent, success) => {
18500
18272
  window.removeEventListener("pointerup", onPointerUp);
18501
18273
  window.removeEventListener("pointercancel", onPointerCancel);
18502
18274
  if (!isValidPressEvent(endEvent) || !isPressing.has(element)) {
@@ -18504,7 +18276,7 @@
18504
18276
  }
18505
18277
  isPressing.delete(element);
18506
18278
  if (typeof onPressEnd === "function") {
18507
- onPressEnd(endEvent, { success: success2 });
18279
+ onPressEnd(endEvent, { success });
18508
18280
  }
18509
18281
  };
18510
18282
  const onPointerUp = (upEvent) => {
@@ -23566,7 +23338,7 @@
23566
23338
  return;
23567
23339
  this.unmount = press(current, (_element, startEvent) => {
23568
23340
  handlePressEvent(this.node, startEvent, "Start");
23569
- return (endEvent, { success: success2 }) => handlePressEvent(this.node, endEvent, success2 ? "End" : "Cancel");
23341
+ return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? "End" : "Cancel");
23570
23342
  }, { useGlobalTarget: this.node.props.globalTapTarget });
23571
23343
  }
23572
23344
  unmount() {
@@ -24466,21 +24238,36 @@
24466
24238
  }
24467
24239
  return element.props.ref || element.ref;
24468
24240
  }
24469
- const buttonVariants = cva([styles$5.base], {
24241
+ const base$2 = "reach-styles-module__base___RP4iu";
24242
+ const destructive$2 = "reach-styles-module__destructive___BZSYi";
24243
+ const outline$2 = "reach-styles-module__outline___bNcaI";
24244
+ const secondary$2 = "reach-styles-module__secondary___osvqQ";
24245
+ const ghost = "reach-styles-module__ghost___uU77B";
24246
+ const link = "reach-styles-module__link___nSLOW";
24247
+ const styles$6 = {
24248
+ base: base$2,
24249
+ "default": "reach-styles-module__default___pajjj",
24250
+ destructive: destructive$2,
24251
+ outline: outline$2,
24252
+ secondary: secondary$2,
24253
+ ghost,
24254
+ link
24255
+ };
24256
+ const buttonVariants = cva([styles$6.base], {
24470
24257
  variants: {
24471
24258
  variant: {
24472
- default: styles$5.default,
24473
- destructive: styles$5.destructive,
24474
- outline: styles$5.outline,
24475
- secondary: styles$5.secondary,
24476
- ghost: styles$5.ghost,
24477
- link: styles$5.link
24259
+ default: styles$6.default,
24260
+ destructive: styles$6.destructive,
24261
+ outline: styles$6.outline,
24262
+ secondary: styles$6.secondary,
24263
+ ghost: styles$6.ghost,
24264
+ link: styles$6.link
24478
24265
  },
24479
24266
  size: {
24480
- default: styles$5["size-default"],
24481
- sm: styles$5["size-sm"],
24482
- lg: styles$5["size-lg"],
24483
- icon: styles$5["size-icon"]
24267
+ default: styles$6["size-default"],
24268
+ sm: styles$6["size-sm"],
24269
+ lg: styles$6["size-lg"],
24270
+ icon: styles$6["size-icon"]
24484
24271
  }
24485
24272
  },
24486
24273
  defaultVariants: {
@@ -24489,7 +24276,7 @@
24489
24276
  }
24490
24277
  });
24491
24278
  const Button$2 = React__namespace.forwardRef(
24492
- ({ className: className2, variant, size: size3, asChild = false, ...props }, ref) => {
24279
+ ({ className: className2, variant, size: size3 = "default", asChild = false, ...props }, ref) => {
24493
24280
  const Comp = asChild ? Slot$2 : "button";
24494
24281
  return /* @__PURE__ */ jsxRuntime.jsx(
24495
24282
  Comp,
@@ -24562,7 +24349,7 @@
24562
24349
  }
24563
24350
  );
24564
24351
  };
24565
- const styles$3 = {
24352
+ const styles$5 = {
24566
24353
  title: "text-3xl mb-8",
24567
24354
  grid: "grid grid-cols-2 gap-6",
24568
24355
  container: "relative p-6 rounded-lg"
@@ -24571,9 +24358,9 @@
24571
24358
  const onClick = (type) => {
24572
24359
  onNext(type);
24573
24360
  };
24574
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$3.container, children: [
24575
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: styles$3.title, children: "Choose Your Automation Type" }),
24576
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$3.grid, children: [
24361
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$5.container, children: [
24362
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: styles$5.title, children: "Choose Your Automation Type" }),
24363
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$5.grid, children: [
24577
24364
  /* @__PURE__ */ jsxRuntime.jsx(
24578
24365
  BigSelector,
24579
24366
  {
@@ -24628,16 +24415,16 @@
24628
24415
  `Unreachable case statement: ${JSON.stringify(x2)}. Valid values are: ${Object.values(enumObj).join(", ")}`
24629
24416
  );
24630
24417
  }
24631
- const styles$2 = {
24418
+ const styles$4 = {
24632
24419
  iconWrapper: "mb-4 flex items-center justify-center",
24633
24420
  cardTitle: "text-lg font-medium mb-2",
24634
24421
  cardDescription: "text-sm text-gray-600"
24635
24422
  };
24636
24423
  const OneTimeBroadcast = ({ iconDefinitions }) => {
24637
24424
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
24638
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$2.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(iconDefinitions.OneTimeBroadcast, {}) }),
24639
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: styles$2.cardTitle, children: "One-Time Broadcast" }),
24640
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$2.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
24425
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$4.iconWrapper, children: /* @__PURE__ */ jsxRuntime.jsx(iconDefinitions.OneTimeBroadcast, {}) }),
24426
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: styles$4.cardTitle, children: "One-Time Broadcast" }),
24427
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles$4.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
24641
24428
  ] });
24642
24429
  };
24643
24430
  const SetAutomationName = ({ selectedType, setAutomationName, automationName, iconDefinitions }) => {
@@ -24745,7 +24532,7 @@
24745
24532
  });
24746
24533
  };
24747
24534
  if (isCreating || startedCreating) {
24748
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
24535
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$5.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
24749
24536
  }
24750
24537
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative overflow-hidden", children: [
24751
24538
  /* @__PURE__ */ jsxRuntime.jsxs(AnimatePresence, { mode: "wait", children: [
@@ -31632,14 +31419,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
31632
31419
  ] }) })
31633
31420
  ] }) });
31634
31421
  };
31635
- const styles$1 = {
31422
+ const styles$3 = {
31636
31423
  container: "flex flex-col items-center justify-center h-full"
31637
31424
  };
31638
31425
  const AutomationStatistics = ({ automationId, iconDefinitions }) => {
31639
31426
  const [activeTab, setActiveTab] = React.useState("email");
31640
31427
  const { statistics, isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
31641
31428
  if (isStatisticsLoading || !statistics) {
31642
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
31429
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
31643
31430
  }
31644
31431
  const StatsGrid = () => {
31645
31432
  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";
@@ -33341,22 +33128,39 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
33341
33128
  function formatDistanceToNow(date2, options2) {
33342
33129
  return formatDistance$1(date2, constructNow(date2), options2);
33343
33130
  }
33344
- const badgeVariants = cva([styles$6.base], {
33131
+ const base$1 = "reach-styles-module__base___eJmcH";
33132
+ const secondary$1 = "reach-styles-module__secondary___H-ae8";
33133
+ const destructive$1 = "reach-styles-module__destructive___JsRNh";
33134
+ const outline$1 = "reach-styles-module__outline___9FFlV";
33135
+ const google = "reach-styles-module__google___7eHwU";
33136
+ const date = "reach-styles-module__date___gU3Tt";
33137
+ const container = "reach-styles-module__container___5PrOx";
33138
+ const styles$2 = {
33139
+ base: base$1,
33140
+ "default": "reach-styles-module__default___8NuEB",
33141
+ secondary: secondary$1,
33142
+ destructive: destructive$1,
33143
+ outline: outline$1,
33144
+ google,
33145
+ date,
33146
+ container
33147
+ };
33148
+ const badgeVariants = cva([styles$2.base], {
33345
33149
  variants: {
33346
33150
  variant: {
33347
- default: styles$6.default,
33348
- secondary: styles$6.secondary,
33349
- destructive: styles$6.destructive,
33350
- outline: styles$6.outline,
33351
- google: styles$6.google,
33352
- date: styles$6.date
33151
+ default: styles$2.default,
33152
+ secondary: styles$2.secondary,
33153
+ destructive: styles$2.destructive,
33154
+ outline: styles$2.outline,
33155
+ google: styles$2.google,
33156
+ date: styles$2.date
33353
33157
  },
33354
33158
  size: {
33355
- default: styles$6["size-default"],
33356
- sm: styles$6["size-sm"]
33159
+ default: styles$2["size-default"],
33160
+ sm: styles$2["size-sm"]
33357
33161
  },
33358
33162
  iconOnly: {
33359
- true: styles$6["icon-only"],
33163
+ true: styles$2["icon-only"],
33360
33164
  false: ""
33361
33165
  }
33362
33166
  },
@@ -33364,7 +33168,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
33364
33168
  {
33365
33169
  iconOnly: true,
33366
33170
  size: "sm",
33367
- class: styles$6["icon-only-sm"]
33171
+ class: styles$2["icon-only-sm"]
33368
33172
  }
33369
33173
  ],
33370
33174
  defaultVariants: {
@@ -33374,13 +33178,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
33374
33178
  }
33375
33179
  });
33376
33180
  const Badge = React__namespace.forwardRef(
33377
- ({ className: className2, variant, size: size3, iconOnly: iconOnly2, truncate, ...props }, ref) => {
33181
+ ({ className: className2, variant, size: size3, iconOnly, truncate, ...props }, ref) => {
33378
33182
  return /* @__PURE__ */ jsxRuntime.jsx(
33379
33183
  "div",
33380
33184
  {
33381
33185
  ref,
33382
33186
  className: cn$1(
33383
- badgeVariants({ variant, size: size3, iconOnly: iconOnly2 }),
33187
+ badgeVariants({ variant, size: size3, iconOnly }),
33384
33188
  truncate && "max-w-[90px]",
33385
33189
  className2
33386
33190
  ),
@@ -33391,7 +33195,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
33391
33195
  );
33392
33196
  Badge.displayName = "Badge";
33393
33197
  const BadgeContainer = React__namespace.forwardRef(({ className: className2, ...props }, ref) => {
33394
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$6.container, className2), ...props });
33198
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$2.container, className2), ...props });
33395
33199
  });
33396
33200
  BadgeContainer.displayName = "BadgeContainer";
33397
33201
  const Input = React__namespace.forwardRef(
@@ -38399,7 +38203,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
38399
38203
  ] })
38400
38204
  ] }) });
38401
38205
  };
38402
- const styles = {
38206
+ const styles$1 = {
38403
38207
  container: "relative rounded-lg"
38404
38208
  };
38405
38209
  const SegmentBuilder = ({
@@ -38553,17 +38357,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
38553
38357
  }
38554
38358
  };
38555
38359
  if (isLoading) {
38556
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
38360
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
38557
38361
  }
38558
38362
  if (isCreating || startedCreating) {
38559
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.container, children: /* @__PURE__ */ jsxRuntime.jsx(
38363
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsxRuntime.jsx(
38560
38364
  SpinLoader,
38561
38365
  {
38562
38366
  text: SEGMENT_ID && existingSegment ? ["Updating Segment", "Finishing up"] : ["Creating Segment", "Finishing up"]
38563
38367
  }
38564
38368
  ) });
38565
38369
  }
38566
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.container, children: [
38370
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$1.container, children: [
38567
38371
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full flex justify-end mb-4", children: /* @__PURE__ */ jsxRuntime.jsx(
38568
38372
  Button$2,
38569
38373
  {
@@ -39477,8 +39281,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
39477
39281
  }
39478
39282
  ) }),
39479
39283
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-semibold text-gray-800 mb-2", children: "Automation Content Missing" }),
39480
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-500 max-w-md", children: "Complete your automation setup to preview the content here. We'll guide you through each step." }),
39481
- /* @__PURE__ */ jsxRuntime.jsx("button", { className: "mt-6 px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors duration-200 ease-in-out", children: "Set Up Automation" })
39284
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-500 max-w-md", children: "Complete your automation setup to preview the content here. We'll guide you through each step. Start by clicking Actions in the top right, and then click Edit!" })
39482
39285
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", children: [
39483
39286
  /* @__PURE__ */ jsxRuntime.jsx(
39484
39287
  PreviewPanel,
@@ -39504,7 +39307,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
39504
39307
  const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
39505
39308
  const { isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
39506
39309
  if (isLoading || isStatisticsLoading) {
39507
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
39310
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
39508
39311
  }
39509
39312
  if (fetchError) {
39510
39313
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -40963,13 +40766,34 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
40963
40766
  )
40964
40767
  ] });
40965
40768
  };
40966
- const cardVariants = cva(styles$4.base, {
40769
+ const base = "reach-styles-module__base___ANlIr";
40770
+ const destructive = "reach-styles-module__destructive___a6Swz";
40771
+ const outline = "reach-styles-module__outline___INmdX";
40772
+ const secondary = "reach-styles-module__secondary___Ym15V";
40773
+ const header = "reach-styles-module__header___CzneX";
40774
+ const title = "reach-styles-module__title___8ostO";
40775
+ const description = "reach-styles-module__description___xR5d4";
40776
+ const content = "reach-styles-module__content___XXeK2";
40777
+ const footer = "reach-styles-module__footer___35Xil";
40778
+ const styles = {
40779
+ base,
40780
+ "default": "reach-styles-module__default___S2tp4",
40781
+ destructive,
40782
+ outline,
40783
+ secondary,
40784
+ header,
40785
+ title,
40786
+ description,
40787
+ content,
40788
+ footer
40789
+ };
40790
+ const cardVariants = cva(styles.base, {
40967
40791
  variants: {
40968
40792
  variant: {
40969
- default: styles$4.default,
40970
- destructive: styles$4.destructive,
40971
- outline: styles$4.outline,
40972
- secondary: styles$4.secondary
40793
+ default: styles.default,
40794
+ destructive: styles.destructive,
40795
+ outline: styles.outline,
40796
+ secondary: styles.secondary
40973
40797
  }
40974
40798
  },
40975
40799
  defaultVariants: {
@@ -40989,15 +40813,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
40989
40813
  }
40990
40814
  );
40991
40815
  Card.displayName = "Card";
40992
- const CardHeader = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$4.header, className2), ...props }));
40816
+ const CardHeader = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles.header, className2), ...props }));
40993
40817
  CardHeader.displayName = "CardHeader";
40994
- const CardTitle = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$4.title, className2), ...props }));
40818
+ const CardTitle = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles.title, className2), ...props }));
40995
40819
  CardTitle.displayName = "CardTitle";
40996
- const CardDescription = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$4.description, className2), ...props }));
40820
+ const CardDescription = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles.description, className2), ...props }));
40997
40821
  CardDescription.displayName = "CardDescription";
40998
- const CardContent = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$4.content, className2), ...props }));
40822
+ const CardContent = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles.content, className2), ...props }));
40999
40823
  CardContent.displayName = "CardContent";
41000
- const CardFooter = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles$4.footer, className2), ...props }));
40824
+ const CardFooter = React__namespace.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn$1(styles.footer, className2), ...props }));
41001
40825
  CardFooter.displayName = "CardFooter";
41002
40826
  const getChannelAccounts = async () => {
41003
40827
  const response = await baseRequest(
@@ -44868,8 +44692,8 @@ ${message2 ?? ""}`);
44868
44692
  }
44869
44693
  return context;
44870
44694
  }
44871
- function addToRange(day, range2) {
44872
- var _a = range2 || {}, from = _a.from, to = _a.to;
44695
+ function addToRange(day, range) {
44696
+ var _a = range || {}, from = _a.from, to = _a.to;
44873
44697
  if (from && to) {
44874
44698
  if (isSameDay(to, day) && isSameDay(from, day)) {
44875
44699
  return void 0;
@@ -45089,9 +44913,9 @@ ${message2 ?? ""}`);
45089
44913
  function isDayOfWeekType(value) {
45090
44914
  return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
45091
44915
  }
45092
- function isDateInRange(date2, range2) {
44916
+ function isDateInRange(date2, range) {
45093
44917
  var _a;
45094
- var from = range2.from, to = range2.to;
44918
+ var from = range.from, to = range.to;
45095
44919
  if (from && to) {
45096
44920
  var isRangeInverted = differenceInCalendarDays(to, from) < 0;
45097
44921
  if (isRangeInverted) {
@@ -45362,7 +45186,7 @@ ${message2 ?? ""}`);
45362
45186
  var dayPicker = useDayPicker();
45363
45187
  var single = useSelectSingle();
45364
45188
  var multiple = useSelectMultiple();
45365
- var range2 = useSelectRange();
45189
+ var range = useSelectRange();
45366
45190
  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;
45367
45191
  var onClick = function(e2) {
45368
45192
  var _a2, _b, _c, _d;
@@ -45371,7 +45195,7 @@ ${message2 ?? ""}`);
45371
45195
  } else if (isDayPickerMultiple(dayPicker)) {
45372
45196
  (_b = multiple.onDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date2, activeModifiers, e2);
45373
45197
  } else if (isDayPickerRange(dayPicker)) {
45374
- (_c = range2.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range2, date2, activeModifiers, e2);
45198
+ (_c = range.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range, date2, activeModifiers, e2);
45375
45199
  } else {
45376
45200
  (_d = dayPicker.onDayClick) === null || _d === void 0 ? void 0 : _d.call(dayPicker, date2, activeModifiers, e2);
45377
45201
  }
@@ -45489,8 +45313,8 @@ ${message2 ?? ""}`);
45489
45313
  var dayPicker = useDayPicker();
45490
45314
  var single = useSelectSingle();
45491
45315
  var multiple = useSelectMultiple();
45492
- var range2 = useSelectRange();
45493
- var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ? range2.selected : void 0;
45316
+ var range = useSelectRange();
45317
+ var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ? range.selected : void 0;
45494
45318
  return selectedDays;
45495
45319
  }
45496
45320
  function isInternalModifier(modifier) {
@@ -47201,7 +47025,7 @@ ${message2 ?? ""}`);
47201
47025
  return /* @__PURE__ */ jsxRuntime.jsx("div", { children: "Invalid automation ID" });
47202
47026
  }
47203
47027
  if (!automation && (isFetching || isLoading)) {
47204
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
47028
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$5.container, children: /* @__PURE__ */ jsxRuntime.jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
47205
47029
  }
47206
47030
  if (fetchError) {
47207
47031
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -47212,7 +47036,7 @@ ${message2 ?? ""}`);
47212
47036
  if (!automation) {
47213
47037
  return /* @__PURE__ */ jsxRuntime.jsx("div", { children: "No automation found" });
47214
47038
  }
47215
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$3.container, children: [
47039
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles$5.container, children: [
47216
47040
  /* @__PURE__ */ jsxRuntime.jsx(
47217
47041
  ViewAutomationHeader,
47218
47042
  {
@@ -47252,7 +47076,7 @@ ${message2 ?? ""}`);
47252
47076
  return /* @__PURE__ */ jsxRuntime.jsx(MemoryRouter, { children: /* @__PURE__ */ jsxRuntime.jsx(ViewAutomationModalContent, { ...props }) });
47253
47077
  };
47254
47078
  Object.values(
47255
- /* @__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 })
47079
+ /* @__PURE__ */ Object.assign({})
47256
47080
  );
47257
47081
  var isNonNullable = (i2) => i2 != null;
47258
47082
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
@@ -56341,7 +56165,7 @@ ${message2 ?? ""}`);
56341
56165
  size: size3,
56342
56166
  border
56343
56167
  } = tokens;
56344
- const t2 = (light, dark2) => theme2 === "light" ? light : dark2;
56168
+ const t2 = (light, dark) => theme2 === "light" ? light : dark;
56345
56169
  return {
56346
56170
  entry: css`
56347
56171
  & * {
@@ -56652,7 +56476,7 @@ ${message2 ?? ""}`);
56652
56476
  const {
56653
56477
  colors
56654
56478
  } = tokens;
56655
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
56479
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
56656
56480
  if (panelWidth() < secondBreakpoint) {
56657
56481
  return css`
56658
56482
  flex-direction: column;
@@ -56718,7 +56542,7 @@ ${message2 ?? ""}`);
56718
56542
  const {
56719
56543
  colors
56720
56544
  } = tokens;
56721
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
56545
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
56722
56546
  if (panelWidth() < secondBreakpoint) {
56723
56547
  return css`
56724
56548
  flex-direction: column;
@@ -56842,7 +56666,7 @@ ${message2 ?? ""}`);
56842
56666
  const {
56843
56667
  colors
56844
56668
  } = tokens;
56845
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
56669
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
56846
56670
  if (panelWidth() < secondBreakpoint) {
56847
56671
  return css`
56848
56672
  flex-direction: column;
@@ -57416,7 +57240,7 @@ ${message2 ?? ""}`);
57416
57240
  colors,
57417
57241
  alpha: alpha2
57418
57242
  } = tokens;
57419
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
57243
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
57420
57244
  const queryState = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
57421
57245
  queryKey: props.query.queryKey
57422
57246
  })?.state, true, (e2) => e2.query.queryHash === props.query.queryHash);
@@ -57490,7 +57314,7 @@ ${message2 ?? ""}`);
57490
57314
  colors,
57491
57315
  alpha: alpha2
57492
57316
  } = tokens;
57493
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
57317
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
57494
57318
  const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
57495
57319
  const mutations = mutationCache().getAll();
57496
57320
  const mutation = mutations.find((m2) => m2.mutationId === props.mutation.mutationId);
@@ -57646,7 +57470,7 @@ ${message2 ?? ""}`);
57646
57470
  })();
57647
57471
  };
57648
57472
  var MutationStatusCount = () => {
57649
- const success2 = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m2) => getMutationStatusColor({
57473
+ const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m2) => getMutationStatusColor({
57650
57474
  isPaused: m2.state.isPaused,
57651
57475
  status: m2.state.status
57652
57476
  }) === "green").length);
@@ -57689,7 +57513,7 @@ ${message2 ?? ""}`);
57689
57513
  label: "Success",
57690
57514
  color: "green",
57691
57515
  get count() {
57692
- return success2();
57516
+ return success();
57693
57517
  }
57694
57518
  }), null);
57695
57519
  insert(_el$57, createComponent(QueryStatus, {
@@ -57715,7 +57539,7 @@ ${message2 ?? ""}`);
57715
57539
  colors,
57716
57540
  alpha: alpha2
57717
57541
  } = tokens;
57718
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
57542
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
57719
57543
  let tagRef;
57720
57544
  const [mouseOver, setMouseOver] = createSignal(false);
57721
57545
  const [focused, setFocused] = createSignal(false);
@@ -57810,7 +57634,7 @@ ${message2 ?? ""}`);
57810
57634
  const {
57811
57635
  colors
57812
57636
  } = tokens;
57813
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
57637
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
57814
57638
  const queryClient = useQueryDevtoolsContext().client;
57815
57639
  const [restoringLoading, setRestoringLoading] = createSignal(false);
57816
57640
  const [dataMode, setDataMode] = createSignal("view");
@@ -58181,7 +58005,7 @@ ${message2 ?? ""}`);
58181
58005
  const {
58182
58006
  colors
58183
58007
  } = tokens;
58184
- const t2 = (light, dark2) => theme2() === "dark" ? dark2 : light;
58008
+ const t2 = (light, dark) => theme2() === "dark" ? dark : light;
58185
58009
  const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
58186
58010
  const mutations = mutationCache().getAll();
58187
58011
  const mutation = mutations.find((m2) => m2.mutationId === selectedMutationId());
@@ -58392,7 +58216,7 @@ ${message2 ?? ""}`);
58392
58216
  shadow,
58393
58217
  border
58394
58218
  } = tokens;
58395
- const t2 = (light, dark2) => theme2 === "light" ? light : dark2;
58219
+ const t2 = (light, dark) => theme2 === "light" ? light : dark;
58396
58220
  return {
58397
58221
  devtoolsBtn: css`
58398
58222
  z-index: 100000;