@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.
@@ -3,234 +3,6 @@ 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" }));
234
6
  var Subscribable = class {
235
7
  constructor() {
236
8
  this.listeners = /* @__PURE__ */ new Set();
@@ -2839,7 +2611,7 @@ function createResource(pSource, pFetcher, pOptions) {
2839
2611
  options = {};
2840
2612
  }
2841
2613
  let pr = null, initP = NO_INIT, id2 = null, scheduled = false, resolved = "initialValue" in options, dynamic = typeof source === "function" && createMemo(source);
2842
- const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error2, setError2] = createSignal(void 0), [track2, trigger] = createSignal(void 0, {
2614
+ const contexts = /* @__PURE__ */ new Set(), [value, setValue] = (options.storage || createSignal)(options.initialValue), [error2, setError2] = createSignal(void 0), [track, trigger] = createSignal(void 0, {
2843
2615
  equals: false
2844
2616
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
2845
2617
  if (sharedConfig.context) {
@@ -11364,7 +11136,7 @@ class Browser {
11364
11136
  }
11365
11137
  Browser.type = "languageDetector";
11366
11138
  const ad_spend$1 = "Ad Spend";
11367
- const date$1 = "Date";
11139
+ const date$2 = "Date";
11368
11140
  const close$1 = "Close";
11369
11141
  const connected$1 = "Connected";
11370
11142
  const connecting$1 = "Connecting...";
@@ -11751,7 +11523,7 @@ const empty_state$1 = {
11751
11523
  };
11752
11524
  const enCommon = {
11753
11525
  ad_spend: ad_spend$1,
11754
- date: date$1,
11526
+ date: date$2,
11755
11527
  close: close$1,
11756
11528
  "continue": "Continue",
11757
11529
  connected: connected$1,
@@ -11790,7 +11562,7 @@ const enCommon = {
11790
11562
  empty_state: empty_state$1
11791
11563
  };
11792
11564
  const ad_spend = "Gasto en anuncios";
11793
- const date = "Fecha";
11565
+ const date$1 = "Fecha";
11794
11566
  const close = "Cerrar";
11795
11567
  const connected = "Conectado";
11796
11568
  const connecting = "Conectando...";
@@ -12177,7 +11949,7 @@ const empty_state = {
12177
11949
  };
12178
11950
  const esCommon = {
12179
11951
  ad_spend,
12180
- date,
11952
+ date: date$1,
12181
11953
  close,
12182
11954
  "continue": "Continuar",
12183
11955
  connected,
@@ -18479,7 +18251,7 @@ function press(elementOrSelector, onPressStart, options = {}) {
18479
18251
  return;
18480
18252
  isPressing.add(element);
18481
18253
  const onPressEnd = onPressStart(element, startEvent);
18482
- const onPointerEnd = (endEvent, success2) => {
18254
+ const onPointerEnd = (endEvent, success) => {
18483
18255
  window.removeEventListener("pointerup", onPointerUp);
18484
18256
  window.removeEventListener("pointercancel", onPointerCancel);
18485
18257
  if (!isValidPressEvent(endEvent) || !isPressing.has(element)) {
@@ -18487,7 +18259,7 @@ function press(elementOrSelector, onPressStart, options = {}) {
18487
18259
  }
18488
18260
  isPressing.delete(element);
18489
18261
  if (typeof onPressEnd === "function") {
18490
- onPressEnd(endEvent, { success: success2 });
18262
+ onPressEnd(endEvent, { success });
18491
18263
  }
18492
18264
  };
18493
18265
  const onPointerUp = (upEvent) => {
@@ -23549,7 +23321,7 @@ class PressGesture extends Feature {
23549
23321
  return;
23550
23322
  this.unmount = press(current, (_element, startEvent) => {
23551
23323
  handlePressEvent(this.node, startEvent, "Start");
23552
- return (endEvent, { success: success2 }) => handlePressEvent(this.node, endEvent, success2 ? "End" : "Cancel");
23324
+ return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? "End" : "Cancel");
23553
23325
  }, { useGlobalTarget: this.node.props.globalTapTarget });
23554
23326
  }
23555
23327
  unmount() {
@@ -24449,21 +24221,36 @@ function getElementRef$2(element) {
24449
24221
  }
24450
24222
  return element.props.ref || element.ref;
24451
24223
  }
24452
- const buttonVariants = cva([styles$5.base], {
24224
+ const base$2 = "reach-styles-module__base___RP4iu";
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], {
24453
24240
  variants: {
24454
24241
  variant: {
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
24242
+ default: styles$6.default,
24243
+ destructive: styles$6.destructive,
24244
+ outline: styles$6.outline,
24245
+ secondary: styles$6.secondary,
24246
+ ghost: styles$6.ghost,
24247
+ link: styles$6.link
24461
24248
  },
24462
24249
  size: {
24463
- default: styles$5["size-default"],
24464
- sm: styles$5["size-sm"],
24465
- lg: styles$5["size-lg"],
24466
- icon: styles$5["size-icon"]
24250
+ default: styles$6["size-default"],
24251
+ sm: styles$6["size-sm"],
24252
+ lg: styles$6["size-lg"],
24253
+ icon: styles$6["size-icon"]
24467
24254
  }
24468
24255
  },
24469
24256
  defaultVariants: {
@@ -24472,7 +24259,7 @@ const buttonVariants = cva([styles$5.base], {
24472
24259
  }
24473
24260
  });
24474
24261
  const Button$1 = React.forwardRef(
24475
- ({ className: className2, variant, size: size2, asChild = false, ...props }, ref) => {
24262
+ ({ className: className2, variant, size: size2 = "default", asChild = false, ...props }, ref) => {
24476
24263
  const Comp = asChild ? Slot$2 : "button";
24477
24264
  return /* @__PURE__ */ jsx(
24478
24265
  Comp,
@@ -24545,7 +24332,7 @@ const BigSelector = ({ onClick, title: title2, subtitle, icon, selected, disable
24545
24332
  }
24546
24333
  );
24547
24334
  };
24548
- const styles$3 = {
24335
+ const styles$5 = {
24549
24336
  title: "text-3xl mb-8",
24550
24337
  grid: "grid grid-cols-2 gap-6",
24551
24338
  container: "relative p-6 rounded-lg"
@@ -24554,9 +24341,9 @@ const ChooseAutomationType = ({ onNext, iconDefinitions }) => {
24554
24341
  const onClick = (type) => {
24555
24342
  onNext(type);
24556
24343
  };
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: [
24344
+ return /* @__PURE__ */ jsxs("div", { className: styles$5.container, children: [
24345
+ /* @__PURE__ */ jsx("h1", { className: styles$5.title, children: "Choose Your Automation Type" }),
24346
+ /* @__PURE__ */ jsxs("div", { className: styles$5.grid, children: [
24560
24347
  /* @__PURE__ */ jsx(
24561
24348
  BigSelector,
24562
24349
  {
@@ -24611,16 +24398,16 @@ function UnreachableCaseStatement(x3, enumObj) {
24611
24398
  `Unreachable case statement: ${JSON.stringify(x3)}. Valid values are: ${Object.values(enumObj).join(", ")}`
24612
24399
  );
24613
24400
  }
24614
- const styles$2 = {
24401
+ const styles$4 = {
24615
24402
  iconWrapper: "mb-4 flex items-center justify-center",
24616
24403
  cardTitle: "text-lg font-medium mb-2",
24617
24404
  cardDescription: "text-sm text-gray-600"
24618
24405
  };
24619
24406
  const OneTimeBroadcast = ({ iconDefinitions }) => {
24620
24407
  return /* @__PURE__ */ jsxs("div", { children: [
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." })
24408
+ /* @__PURE__ */ jsx("div", { className: styles$4.iconWrapper, children: /* @__PURE__ */ jsx(iconDefinitions.OneTimeBroadcast, {}) }),
24409
+ /* @__PURE__ */ jsx("h3", { className: styles$4.cardTitle, children: "One-Time Broadcast" }),
24410
+ /* @__PURE__ */ jsx("p", { className: styles$4.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
24624
24411
  ] });
24625
24412
  };
24626
24413
  const SetAutomationName = ({ selectedType, setAutomationName, automationName, iconDefinitions }) => {
@@ -24728,7 +24515,7 @@ const CreateAutomationModal = ({
24728
24515
  });
24729
24516
  };
24730
24517
  if (isCreating || startedCreating) {
24731
- return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
24518
+ return /* @__PURE__ */ jsx("div", { className: styles$5.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
24732
24519
  }
24733
24520
  return /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
24734
24521
  /* @__PURE__ */ jsxs(AnimatePresence, { mode: "wait", children: [
@@ -31615,14 +31402,14 @@ const InfoTooltip = ({ title: title2, alertText, Icon: Icon2 = Info, onClick })
31615
31402
  ] }) })
31616
31403
  ] }) });
31617
31404
  };
31618
- const styles$1 = {
31405
+ const styles$3 = {
31619
31406
  container: "flex flex-col items-center justify-center h-full"
31620
31407
  };
31621
31408
  const AutomationStatistics = ({ automationId, iconDefinitions }) => {
31622
31409
  const [activeTab, setActiveTab] = useState("email");
31623
31410
  const { statistics, isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
31624
31411
  if (isStatisticsLoading || !statistics) {
31625
- return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
31412
+ return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Statistics", "Finishing up"] }) });
31626
31413
  }
31627
31414
  const StatsGrid = () => {
31628
31415
  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";
@@ -33324,22 +33111,39 @@ function formatDistance$1(date2, baseDate, options) {
33324
33111
  function formatDistanceToNow(date2, options) {
33325
33112
  return formatDistance$1(date2, constructNow(date2), options);
33326
33113
  }
33327
- const badgeVariants = cva([styles$6.base], {
33114
+ const base$1 = "reach-styles-module__base___eJmcH";
33115
+ const secondary$1 = "reach-styles-module__secondary___H-ae8";
33116
+ const destructive$1 = "reach-styles-module__destructive___JsRNh";
33117
+ const outline$1 = "reach-styles-module__outline___9FFlV";
33118
+ const google = "reach-styles-module__google___7eHwU";
33119
+ const date = "reach-styles-module__date___gU3Tt";
33120
+ const container = "reach-styles-module__container___5PrOx";
33121
+ const styles$2 = {
33122
+ base: base$1,
33123
+ "default": "reach-styles-module__default___8NuEB",
33124
+ secondary: secondary$1,
33125
+ destructive: destructive$1,
33126
+ outline: outline$1,
33127
+ google,
33128
+ date,
33129
+ container
33130
+ };
33131
+ const badgeVariants = cva([styles$2.base], {
33328
33132
  variants: {
33329
33133
  variant: {
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
33134
+ default: styles$2.default,
33135
+ secondary: styles$2.secondary,
33136
+ destructive: styles$2.destructive,
33137
+ outline: styles$2.outline,
33138
+ google: styles$2.google,
33139
+ date: styles$2.date
33336
33140
  },
33337
33141
  size: {
33338
- default: styles$6["size-default"],
33339
- sm: styles$6["size-sm"]
33142
+ default: styles$2["size-default"],
33143
+ sm: styles$2["size-sm"]
33340
33144
  },
33341
33145
  iconOnly: {
33342
- true: styles$6["icon-only"],
33146
+ true: styles$2["icon-only"],
33343
33147
  false: ""
33344
33148
  }
33345
33149
  },
@@ -33347,7 +33151,7 @@ const badgeVariants = cva([styles$6.base], {
33347
33151
  {
33348
33152
  iconOnly: true,
33349
33153
  size: "sm",
33350
- class: styles$6["icon-only-sm"]
33154
+ class: styles$2["icon-only-sm"]
33351
33155
  }
33352
33156
  ],
33353
33157
  defaultVariants: {
@@ -33357,13 +33161,13 @@ const badgeVariants = cva([styles$6.base], {
33357
33161
  }
33358
33162
  });
33359
33163
  const Badge = React.forwardRef(
33360
- ({ className: className2, variant, size: size2, iconOnly: iconOnly2, truncate, ...props }, ref) => {
33164
+ ({ className: className2, variant, size: size2, iconOnly, truncate, ...props }, ref) => {
33361
33165
  return /* @__PURE__ */ jsx(
33362
33166
  "div",
33363
33167
  {
33364
33168
  ref,
33365
33169
  className: cn$1(
33366
- badgeVariants({ variant, size: size2, iconOnly: iconOnly2 }),
33170
+ badgeVariants({ variant, size: size2, iconOnly }),
33367
33171
  truncate && "max-w-[90px]",
33368
33172
  className2
33369
33173
  ),
@@ -33374,7 +33178,7 @@ const Badge = React.forwardRef(
33374
33178
  );
33375
33179
  Badge.displayName = "Badge";
33376
33180
  const BadgeContainer = React.forwardRef(({ className: className2, ...props }, ref) => {
33377
- return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$6.container, className2), ...props });
33181
+ return /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$2.container, className2), ...props });
33378
33182
  });
33379
33183
  BadgeContainer.displayName = "BadgeContainer";
33380
33184
  const Input = React.forwardRef(
@@ -38382,7 +38186,7 @@ const NameAndDescription = ({ nameAndDescriptionState, setNameAndDescriptionStat
38382
38186
  ] })
38383
38187
  ] }) });
38384
38188
  };
38385
- const styles = {
38189
+ const styles$1 = {
38386
38190
  container: "relative rounded-lg"
38387
38191
  };
38388
38192
  const SegmentBuilder = ({
@@ -38536,17 +38340,17 @@ const SegmentBuilder = ({
38536
38340
  }
38537
38341
  };
38538
38342
  if (isLoading) {
38539
- return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
38343
+ return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
38540
38344
  }
38541
38345
  if (isCreating || startedCreating) {
38542
- return /* @__PURE__ */ jsx("div", { className: styles.container, children: /* @__PURE__ */ jsx(
38346
+ return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(
38543
38347
  SpinLoader,
38544
38348
  {
38545
38349
  text: SEGMENT_ID && existingSegment ? ["Updating Segment", "Finishing up"] : ["Creating Segment", "Finishing up"]
38546
38350
  }
38547
38351
  ) });
38548
38352
  }
38549
- return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
38353
+ return /* @__PURE__ */ jsxs("div", { className: styles$1.container, children: [
38550
38354
  /* @__PURE__ */ jsx("div", { className: "relative w-full flex justify-end mb-4", children: /* @__PURE__ */ jsx(
38551
38355
  Button$1,
38552
38356
  {
@@ -39460,8 +39264,7 @@ const AutomationContent = ({ automationId, iconDefinitions }) => {
39460
39264
  }
39461
39265
  ) }),
39462
39266
  /* @__PURE__ */ jsx("h3", { className: "text-xl font-semibold text-gray-800 mb-2", children: "Automation Content Missing" }),
39463
- /* @__PURE__ */ 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." }),
39464
- /* @__PURE__ */ 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" })
39267
+ /* @__PURE__ */ 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!" })
39465
39268
  ] }) : /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
39466
39269
  /* @__PURE__ */ jsx(
39467
39270
  PreviewPanel,
@@ -39487,7 +39290,7 @@ const AutomationRecipients = ({ automationId, iconDefinitions }) => {
39487
39290
  const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
39488
39291
  const { isLoading: isStatisticsLoading } = useGetBusinessAutomationStatistics(automationId);
39489
39292
  if (isLoading || isStatisticsLoading) {
39490
- return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
39293
+ return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
39491
39294
  }
39492
39295
  if (fetchError) {
39493
39296
  return /* @__PURE__ */ jsxs("div", { children: [
@@ -40946,13 +40749,34 @@ const BackNextButtonGroup = ({
40946
40749
  )
40947
40750
  ] });
40948
40751
  };
40949
- const cardVariants = cva(styles$4.base, {
40752
+ const base = "reach-styles-module__base___ANlIr";
40753
+ const destructive = "reach-styles-module__destructive___a6Swz";
40754
+ const outline = "reach-styles-module__outline___INmdX";
40755
+ const secondary = "reach-styles-module__secondary___Ym15V";
40756
+ const header = "reach-styles-module__header___CzneX";
40757
+ const title = "reach-styles-module__title___8ostO";
40758
+ const description = "reach-styles-module__description___xR5d4";
40759
+ const content = "reach-styles-module__content___XXeK2";
40760
+ const footer = "reach-styles-module__footer___35Xil";
40761
+ const styles = {
40762
+ base,
40763
+ "default": "reach-styles-module__default___S2tp4",
40764
+ destructive,
40765
+ outline,
40766
+ secondary,
40767
+ header,
40768
+ title,
40769
+ description,
40770
+ content,
40771
+ footer
40772
+ };
40773
+ const cardVariants = cva(styles.base, {
40950
40774
  variants: {
40951
40775
  variant: {
40952
- default: styles$4.default,
40953
- destructive: styles$4.destructive,
40954
- outline: styles$4.outline,
40955
- secondary: styles$4.secondary
40776
+ default: styles.default,
40777
+ destructive: styles.destructive,
40778
+ outline: styles.outline,
40779
+ secondary: styles.secondary
40956
40780
  }
40957
40781
  },
40958
40782
  defaultVariants: {
@@ -40972,15 +40796,15 @@ const Card = React.forwardRef(
40972
40796
  }
40973
40797
  );
40974
40798
  Card.displayName = "Card";
40975
- const CardHeader = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.header, className2), ...props }));
40799
+ const CardHeader = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.header, className2), ...props }));
40976
40800
  CardHeader.displayName = "CardHeader";
40977
- const CardTitle = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.title, className2), ...props }));
40801
+ const CardTitle = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.title, className2), ...props }));
40978
40802
  CardTitle.displayName = "CardTitle";
40979
- const CardDescription = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.description, className2), ...props }));
40803
+ const CardDescription = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.description, className2), ...props }));
40980
40804
  CardDescription.displayName = "CardDescription";
40981
- const CardContent = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.content, className2), ...props }));
40805
+ const CardContent = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.content, className2), ...props }));
40982
40806
  CardContent.displayName = "CardContent";
40983
- const CardFooter = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles$4.footer, className2), ...props }));
40807
+ const CardFooter = React.forwardRef(({ className: className2, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn$1(styles.footer, className2), ...props }));
40984
40808
  CardFooter.displayName = "CardFooter";
40985
40809
  const getChannelAccounts = async () => {
40986
40810
  const response = await baseRequest(
@@ -44851,8 +44675,8 @@ function useSelectMultiple() {
44851
44675
  }
44852
44676
  return context;
44853
44677
  }
44854
- function addToRange(day, range2) {
44855
- var _a = range2 || {}, from = _a.from, to = _a.to;
44678
+ function addToRange(day, range) {
44679
+ var _a = range || {}, from = _a.from, to = _a.to;
44856
44680
  if (from && to) {
44857
44681
  if (isSameDay(to, day) && isSameDay(from, day)) {
44858
44682
  return void 0;
@@ -45072,9 +44896,9 @@ function isDateBeforeType(value) {
45072
44896
  function isDayOfWeekType(value) {
45073
44897
  return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
45074
44898
  }
45075
- function isDateInRange(date2, range2) {
44899
+ function isDateInRange(date2, range) {
45076
44900
  var _a;
45077
- var from = range2.from, to = range2.to;
44901
+ var from = range.from, to = range.to;
45078
44902
  if (from && to) {
45079
44903
  var isRangeInverted = differenceInCalendarDays(to, from) < 0;
45080
44904
  if (isRangeInverted) {
@@ -45345,7 +45169,7 @@ function useDayEventHandlers(date2, activeModifiers) {
45345
45169
  var dayPicker = useDayPicker();
45346
45170
  var single = useSelectSingle();
45347
45171
  var multiple = useSelectMultiple();
45348
- var range2 = useSelectRange();
45172
+ var range = useSelectRange();
45349
45173
  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;
45350
45174
  var onClick = function(e4) {
45351
45175
  var _a2, _b, _c, _d;
@@ -45354,7 +45178,7 @@ function useDayEventHandlers(date2, activeModifiers) {
45354
45178
  } else if (isDayPickerMultiple(dayPicker)) {
45355
45179
  (_b = multiple.onDayClick) === null || _b === void 0 ? void 0 : _b.call(multiple, date2, activeModifiers, e4);
45356
45180
  } else if (isDayPickerRange(dayPicker)) {
45357
- (_c = range2.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range2, date2, activeModifiers, e4);
45181
+ (_c = range.onDayClick) === null || _c === void 0 ? void 0 : _c.call(range, date2, activeModifiers, e4);
45358
45182
  } else {
45359
45183
  (_d = dayPicker.onDayClick) === null || _d === void 0 ? void 0 : _d.call(dayPicker, date2, activeModifiers, e4);
45360
45184
  }
@@ -45472,8 +45296,8 @@ function useSelectedDays() {
45472
45296
  var dayPicker = useDayPicker();
45473
45297
  var single = useSelectSingle();
45474
45298
  var multiple = useSelectMultiple();
45475
- var range2 = useSelectRange();
45476
- var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ? range2.selected : void 0;
45299
+ var range = useSelectRange();
45300
+ var selectedDays = isDayPickerSingle(dayPicker) ? single.selected : isDayPickerMultiple(dayPicker) ? multiple.selected : isDayPickerRange(dayPicker) ? range.selected : void 0;
45477
45301
  return selectedDays;
45478
45302
  }
45479
45303
  function isInternalModifier(modifier) {
@@ -47184,7 +47008,7 @@ const ViewAutomationModalContent = ({
47184
47008
  return /* @__PURE__ */ jsx("div", { children: "Invalid automation ID" });
47185
47009
  }
47186
47010
  if (!automation && (isFetching || isLoading)) {
47187
- return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
47011
+ return /* @__PURE__ */ jsx("div", { className: styles$5.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
47188
47012
  }
47189
47013
  if (fetchError) {
47190
47014
  return /* @__PURE__ */ jsxs("div", { children: [
@@ -47195,7 +47019,7 @@ const ViewAutomationModalContent = ({
47195
47019
  if (!automation) {
47196
47020
  return /* @__PURE__ */ jsx("div", { children: "No automation found" });
47197
47021
  }
47198
- return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
47022
+ return /* @__PURE__ */ jsxs("div", { className: styles$5.container, children: [
47199
47023
  /* @__PURE__ */ jsx(
47200
47024
  ViewAutomationHeader,
47201
47025
  {
@@ -47235,7 +47059,7 @@ const ViewAutomationModal = ({ inRouter = false, ...props }) => {
47235
47059
  return /* @__PURE__ */ jsx(MemoryRouter, { children: /* @__PURE__ */ jsx(ViewAutomationModalContent, { ...props }) });
47236
47060
  };
47237
47061
  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 })
47062
+ /* @__PURE__ */ Object.assign({})
47239
47063
  );
47240
47064
  export {
47241
47065
  $TRACK as $,