@embedreach/components 0.1.17 → 0.1.19

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
- import React__default, { createContext as createContext$1, Component, useReducer, useMemo, useEffect, createElement as createElement$1, useRef, useId as useId$2, useContext as useContext$1, useInsertionEffect, useCallback, Children, isValidElement, useLayoutEffect, useState, forwardRef, Fragment as Fragment$1 } from "react";
3
+ import React__default, { createContext as createContext$1, Component, useReducer, useMemo, useEffect, useContext as useContext$1, createElement as createElement$1, useRef, useId as useId$2, useInsertionEffect, useCallback, Children, isValidElement, useLayoutEffect, useState, forwardRef, Fragment as Fragment$1 } from "react";
4
4
  import * as ReactDOM from "react-dom";
5
5
  import ReactDOM__default from "react-dom";
6
6
  var Subscribable = class {
@@ -4316,19 +4316,19 @@ function Portal$5(props) {
4316
4316
  createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
4317
4317
  onCleanup(cleanup);
4318
4318
  } else {
4319
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
4319
+ const container2 = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container2.attachShadow ? container2.attachShadow({
4320
4320
  mode: "open"
4321
- }) : container;
4322
- Object.defineProperty(container, "_$host", {
4321
+ }) : container2;
4322
+ Object.defineProperty(container2, "_$host", {
4323
4323
  get() {
4324
4324
  return marker.parentNode;
4325
4325
  },
4326
4326
  configurable: true
4327
4327
  });
4328
4328
  insert(renderRoot, content);
4329
- el.appendChild(container);
4330
- props.ref && props.ref(container);
4331
- onCleanup(() => el.removeChild(container));
4329
+ el.appendChild(container2);
4330
+ props.ref && props.ref(container2);
4331
+ onCleanup(() => el.removeChild(container2));
4332
4332
  }
4333
4333
  },
4334
4334
  void 0,
@@ -7873,7 +7873,7 @@ const createQueryClient = () => new QueryClient({
7873
7873
  }
7874
7874
  });
7875
7875
  const createDataContext = (reducer, actions, defaultValue, listeners) => {
7876
- const Context = React__default.createContext({
7876
+ const Context2 = React__default.createContext({
7877
7877
  state: defaultValue
7878
7878
  });
7879
7879
  const Provider2 = ({ children: children2 }) => {
@@ -7905,9 +7905,9 @@ const createDataContext = (reducer, actions, defaultValue, listeners) => {
7905
7905
  () => ({ state, ...boundActions }),
7906
7906
  [state, boundActions]
7907
7907
  );
7908
- return /* @__PURE__ */ jsx(Context.Provider, { value: contextValue, children: children2 });
7908
+ return /* @__PURE__ */ jsx(Context2.Provider, { value: contextValue, children: children2 });
7909
7909
  };
7910
- return { Context, Provider: Provider2 };
7910
+ return { Context: Context2, Provider: Provider2 };
7911
7911
  };
7912
7912
  const authReducer = (state, action) => {
7913
7913
  switch (action.type) {
@@ -7993,11 +7993,64 @@ const normalizeColor = (color2) => {
7993
7993
  return computed;
7994
7994
  };
7995
7995
  const isValidColor = (color2) => {
7996
+ if (/^\d+\s+\d+(?:\.\d+)?%\s+\d+(?:\.\d+)?%$/.test(color2.trim())) {
7997
+ return true;
7998
+ }
7996
7999
  const div = document.createElement("div");
7997
8000
  const prevColor = div.style.color;
7998
8001
  div.style.color = color2;
7999
8002
  return div.style.color !== prevColor;
8000
8003
  };
8004
+ const rgbToShadcnHsl = (r2, g2, b3) => {
8005
+ r2 /= 255;
8006
+ g2 /= 255;
8007
+ b3 /= 255;
8008
+ const max2 = Math.max(r2, g2, b3);
8009
+ const min2 = Math.min(r2, g2, b3);
8010
+ let h4 = 0, s3 = 0;
8011
+ const l2 = (max2 + min2) / 2;
8012
+ if (max2 !== min2) {
8013
+ const d4 = max2 - min2;
8014
+ s3 = l2 > 0.5 ? d4 / (2 - max2 - min2) : d4 / (max2 + min2);
8015
+ switch (max2) {
8016
+ case r2:
8017
+ h4 = (g2 - b3) / d4 + (g2 < b3 ? 6 : 0);
8018
+ break;
8019
+ case g2:
8020
+ h4 = (b3 - r2) / d4 + 2;
8021
+ break;
8022
+ case b3:
8023
+ h4 = (r2 - g2) / d4 + 4;
8024
+ break;
8025
+ }
8026
+ h4 *= 60;
8027
+ }
8028
+ return `${Math.round(h4)} ${Math.round(s3 * 100)}% ${Math.round(l2 * 100)}%`;
8029
+ };
8030
+ const extractRgb = (rgbColor) => {
8031
+ const matches = rgbColor.match(/\d+/g);
8032
+ if (!matches || matches.length < 3) {
8033
+ throw new Error(`Invalid RGB color format: ${rgbColor}`);
8034
+ }
8035
+ return [
8036
+ parseInt(matches[0], 10),
8037
+ parseInt(matches[1], 10),
8038
+ parseInt(matches[2], 10)
8039
+ ];
8040
+ };
8041
+ const toShadcnFormat = (color2) => {
8042
+ if (/^\d+\s+\d+(?:\.\d+)?%\s+\d+(?:\.\d+)?%$/.test(color2.trim())) {
8043
+ return color2.trim();
8044
+ }
8045
+ try {
8046
+ const rgbColor = normalizeColor(color2);
8047
+ const [r2, g2, b3] = extractRgb(rgbColor);
8048
+ return rgbToShadcnHsl(r2, g2, b3);
8049
+ } catch (e4) {
8050
+ console.warn(`Failed to convert color to shadcn format: ${color2}`, e4);
8051
+ return color2;
8052
+ }
8053
+ };
8001
8054
  const DEFAULT_THEME_STYLES = {
8002
8055
  primary: "hsl(222.2 47.4% 11.2%)",
8003
8056
  background: "hsl(0 0% 100%)",
@@ -8031,13 +8084,17 @@ const applyThemeStyles = (styles2) => {
8031
8084
  ${Object.entries(DEFAULT_THEME_STYLES).map(([key, defaultValue]) => {
8032
8085
  const userValue = styles2[key];
8033
8086
  let finalValue = defaultValue;
8034
- if (userValue && isValidColor(userValue)) {
8035
- try {
8036
- finalValue = normalizeColor(userValue);
8037
- } catch {
8038
- console.warn(
8039
- `Failed to normalize color for ${key}, using default`
8040
- );
8087
+ if (userValue !== void 0) {
8088
+ if (key === "radius") {
8089
+ finalValue = userValue;
8090
+ } else if (isValidColor(userValue)) {
8091
+ try {
8092
+ finalValue = toShadcnFormat(userValue);
8093
+ } catch (e4) {
8094
+ console.warn(
8095
+ `Failed to convert color for ${key}, using default`
8096
+ );
8097
+ }
8041
8098
  }
8042
8099
  }
8043
8100
  return `--reach-${key}: ${finalValue};`;
@@ -8047,10 +8104,17 @@ const applyThemeStyles = (styles2) => {
8047
8104
  styleElement.textContent = cssText;
8048
8105
  document.head.appendChild(styleElement);
8049
8106
  };
8107
+ const mergeThemeStyles = (themeConfig, overrides) => {
8108
+ return {
8109
+ ...DEFAULT_THEME_STYLES,
8110
+ ...themeConfig?.styles || {},
8111
+ ...{}
8112
+ };
8113
+ };
8050
8114
  const themeReducer = (state, action) => {
8051
8115
  switch (action.type) {
8052
8116
  case "set_theme":
8053
- if (action.payload) {
8117
+ if (action.payload && !state.theme) {
8054
8118
  applyThemeStyles(action.payload.styles);
8055
8119
  }
8056
8120
  return {
@@ -8077,7 +8141,7 @@ const themeReducer = (state, action) => {
8077
8141
  const setTheme = (dispatch) => (theme2) => dispatch({ type: "set_theme", payload: theme2 });
8078
8142
  const setLoading = (dispatch) => (loading2) => dispatch({ type: "set_loading", payload: loading2 });
8079
8143
  const setError = (dispatch) => (error2) => dispatch({ type: "set_error", payload: error2 });
8080
- const { Provider } = createDataContext(
8144
+ const { Context, Provider } = createDataContext(
8081
8145
  themeReducer,
8082
8146
  {
8083
8147
  setTheme,
@@ -8086,10 +8150,32 @@ const { Provider } = createDataContext(
8086
8150
  },
8087
8151
  {
8088
8152
  theme: null,
8089
- loading: false,
8153
+ loading: true,
8090
8154
  error: null
8091
8155
  }
8092
8156
  );
8157
+ const useThemeContext = () => {
8158
+ const context = useContext$1(Context);
8159
+ if (context === void 0) {
8160
+ throw new Error("useThemeContext must be used within a ThemeProvider");
8161
+ }
8162
+ const applyTheme = (themeConfig) => {
8163
+ if (!themeConfig) return;
8164
+ const mergedStyles = mergeThemeStyles(themeConfig);
8165
+ const finalTheme = {
8166
+ styles: mergedStyles
8167
+ };
8168
+ context.setTheme(finalTheme);
8169
+ };
8170
+ return {
8171
+ ...context.state,
8172
+ setTheme: context.setTheme,
8173
+ setLoading: context.setLoading,
8174
+ setError: context.setError,
8175
+ // Add the helper function
8176
+ applyTheme
8177
+ };
8178
+ };
8093
8179
  const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
8094
8180
  const htmlEntities = {
8095
8181
  "&amp;": "&",
@@ -10715,7 +10801,7 @@ class Browser {
10715
10801
  }
10716
10802
  Browser.type = "languageDetector";
10717
10803
  const ad_spend$1 = "Ad Spend";
10718
- const date$1 = "Date";
10804
+ const date$2 = "Date";
10719
10805
  const close$1 = "Close";
10720
10806
  const connected$1 = "Connected";
10721
10807
  const connecting$1 = "Connecting...";
@@ -11059,7 +11145,7 @@ const empty_state$1 = {
11059
11145
  };
11060
11146
  const enCommon = {
11061
11147
  ad_spend: ad_spend$1,
11062
- date: date$1,
11148
+ date: date$2,
11063
11149
  close: close$1,
11064
11150
  "continue": "Continue",
11065
11151
  connected: connected$1,
@@ -11098,7 +11184,7 @@ const enCommon = {
11098
11184
  empty_state: empty_state$1
11099
11185
  };
11100
11186
  const ad_spend = "Gasto en anuncios";
11101
- const date = "Fecha";
11187
+ const date$1 = "Fecha";
11102
11188
  const close = "Cerrar";
11103
11189
  const connected = "Conectado";
11104
11190
  const connecting = "Conectando...";
@@ -11442,7 +11528,7 @@ const empty_state = {
11442
11528
  };
11443
11529
  const esCommon = {
11444
11530
  ad_spend,
11445
- date,
11531
+ date: date$1,
11446
11532
  close,
11447
11533
  "continue": "Continuar",
11448
11534
  connected,
@@ -11532,6 +11618,7 @@ const I18nProvider = ({ children: children2 }) => {
11532
11618
  const ReachProvider = ({
11533
11619
  authToken: authToken2,
11534
11620
  tenantExternalId,
11621
+ theme: theme2,
11535
11622
  children: children2
11536
11623
  }) => {
11537
11624
  const [queryClient] = React__default.useState(() => {
@@ -11540,6 +11627,14 @@ const ReachProvider = ({
11540
11627
  }
11541
11628
  return createQueryClient();
11542
11629
  });
11630
+ const themeApplied = useRef(false);
11631
+ const { applyTheme } = useThemeContext();
11632
+ useEffect(() => {
11633
+ if (!themeApplied.current && theme2) {
11634
+ applyTheme(theme2);
11635
+ themeApplied.current = true;
11636
+ }
11637
+ }, [applyTheme, theme2]);
11543
11638
  return /* @__PURE__ */ jsxs(QueryClientProvider, { client: queryClient, children: [
11544
11639
  /* @__PURE__ */ jsx(
11545
11640
  D,
@@ -21881,7 +21976,7 @@ const ActionButtons$1 = ({
21881
21976
  )
21882
21977
  ] }) });
21883
21978
  };
21884
- const styles$4 = {
21979
+ const styles$5 = {
21885
21980
  iconWrapper: "mb-4",
21886
21981
  cardTitle: "text-lg font-medium mb-2",
21887
21982
  cardDescription: "text-sm text-gray-600",
@@ -21889,36 +21984,36 @@ const styles$4 = {
21889
21984
  };
21890
21985
  const OneTimeBroadcast = () => {
21891
21986
  return /* @__PURE__ */ jsxs("div", { children: [
21892
- /* @__PURE__ */ jsx("div", { className: styles$4.iconWrapper, children: "📨" }),
21893
- /* @__PURE__ */ jsx("h3", { className: styles$4.cardTitle, children: "One-Time Broadcast" }),
21894
- /* @__PURE__ */ jsx("p", { className: styles$4.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
21987
+ /* @__PURE__ */ jsx("div", { className: styles$5.iconWrapper, children: "📨" }),
21988
+ /* @__PURE__ */ jsx("h3", { className: styles$5.cardTitle, children: "One-Time Broadcast" }),
21989
+ /* @__PURE__ */ jsx("p", { className: styles$5.cardDescription, children: "Send a single message to your current list, like announcing a sale or newsletter." })
21895
21990
  ] });
21896
21991
  };
21897
21992
  const PatronEntersList = () => {
21898
21993
  return /* @__PURE__ */ jsxs("div", { children: [
21899
- /* @__PURE__ */ jsx("div", { className: styles$4.comingSoonBadge, children: "Coming Soon" }),
21900
- /* @__PURE__ */ jsx("div", { className: styles$4.iconWrapper, children: "✉️" }),
21901
- /* @__PURE__ */ jsx("h3", { className: styles$4.cardTitle, children: "Patron Enters a List" }),
21902
- /* @__PURE__ */ jsx("p", { className: styles$4.cardDescription, children: "Send whenever someone becomes qualified, like welcoming new subscribers who meet specific criteria." })
21994
+ /* @__PURE__ */ jsx("div", { className: styles$5.comingSoonBadge, children: "Coming Soon" }),
21995
+ /* @__PURE__ */ jsx("div", { className: styles$5.iconWrapper, children: "✉️" }),
21996
+ /* @__PURE__ */ jsx("h3", { className: styles$5.cardTitle, children: "Patron Enters a List" }),
21997
+ /* @__PURE__ */ jsx("p", { className: styles$5.cardDescription, children: "Send whenever someone becomes qualified, like welcoming new subscribers who meet specific criteria." })
21903
21998
  ] });
21904
21999
  };
21905
22000
  const DateMilestone = () => {
21906
22001
  return /* @__PURE__ */ jsxs("div", { children: [
21907
- /* @__PURE__ */ jsx("div", { className: styles$4.comingSoonBadge, children: "Coming Soon" }),
21908
- /* @__PURE__ */ jsx("div", { className: styles$4.iconWrapper, children: "📅" }),
21909
- /* @__PURE__ */ jsx("h3", { className: styles$4.cardTitle, children: "Date Milestone" }),
21910
- /* @__PURE__ */ jsx("p", { className: styles$4.cardDescription, children: "Schedules around specific dates in your contact data, like birthdays, membership anniversaries, or renewal dates." })
22002
+ /* @__PURE__ */ jsx("div", { className: styles$5.comingSoonBadge, children: "Coming Soon" }),
22003
+ /* @__PURE__ */ jsx("div", { className: styles$5.iconWrapper, children: "📅" }),
22004
+ /* @__PURE__ */ jsx("h3", { className: styles$5.cardTitle, children: "Date Milestone" }),
22005
+ /* @__PURE__ */ jsx("p", { className: styles$5.cardDescription, children: "Schedules around specific dates in your contact data, like birthdays, membership anniversaries, or renewal dates." })
21911
22006
  ] });
21912
22007
  };
21913
22008
  const RealtimeActivity = () => {
21914
22009
  return /* @__PURE__ */ jsxs("div", { children: [
21915
- /* @__PURE__ */ jsx("div", { className: styles$4.comingSoonBadge, children: "Coming Soon" }),
21916
- /* @__PURE__ */ jsx("div", { className: styles$4.iconWrapper, children: "📬" }),
21917
- /* @__PURE__ */ jsx("h3", { className: styles$4.cardTitle, children: "Realtime Activity" }),
21918
- /* @__PURE__ */ jsx("p", { className: styles$4.cardDescription, children: "Responds to immediate actions your contacts take, like abandoned carts, form submissions, or appointment bookings." })
22010
+ /* @__PURE__ */ jsx("div", { className: styles$5.comingSoonBadge, children: "Coming Soon" }),
22011
+ /* @__PURE__ */ jsx("div", { className: styles$5.iconWrapper, children: "📬" }),
22012
+ /* @__PURE__ */ jsx("h3", { className: styles$5.cardTitle, children: "Realtime Activity" }),
22013
+ /* @__PURE__ */ jsx("p", { className: styles$5.cardDescription, children: "Responds to immediate actions your contacts take, like abandoned carts, form submissions, or appointment bookings." })
21919
22014
  ] });
21920
22015
  };
21921
- const styles$3 = {
22016
+ const styles$4 = {
21922
22017
  title: "text-3xl mb-8",
21923
22018
  grid: "grid grid-cols-2 gap-6",
21924
22019
  card: "relative p-6 rounded-lg border border-gray-200 cursor-pointer flex flex-col items-center text-center hover:border-indigo-500 transition-colors",
@@ -21929,20 +22024,20 @@ const ChooseAutomationType = ({ onNext }) => {
21929
22024
  const onClick = (type) => {
21930
22025
  onNext(type);
21931
22026
  };
21932
- return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
21933
- /* @__PURE__ */ jsx("h1", { className: styles$3.title, children: "Choose Your Automation Type" }),
21934
- /* @__PURE__ */ jsxs("div", { className: styles$3.grid, children: [
22027
+ return /* @__PURE__ */ jsxs("div", { className: styles$4.container, children: [
22028
+ /* @__PURE__ */ jsx("h1", { className: styles$4.title, children: "Choose Your Automation Type" }),
22029
+ /* @__PURE__ */ jsxs("div", { className: styles$4.grid, children: [
21935
22030
  /* @__PURE__ */ jsx(
21936
22031
  "div",
21937
22032
  {
21938
- className: styles$3.card,
22033
+ className: styles$4.card,
21939
22034
  onClick: () => onClick(AutomationTriggerType.ONE_TIME),
21940
22035
  children: /* @__PURE__ */ jsx(OneTimeBroadcast, {})
21941
22036
  }
21942
22037
  ),
21943
- /* @__PURE__ */ jsx("div", { className: `${styles$3.card} ${styles$3.cardDisabled}`, children: /* @__PURE__ */ jsx(PatronEntersList, {}) }),
21944
- /* @__PURE__ */ jsx("div", { className: `${styles$3.card} ${styles$3.cardDisabled}`, children: /* @__PURE__ */ jsx(DateMilestone, {}) }),
21945
- /* @__PURE__ */ jsx("div", { className: `${styles$3.card} ${styles$3.cardDisabled}`, children: /* @__PURE__ */ jsx(RealtimeActivity, {}) })
22038
+ /* @__PURE__ */ jsx("div", { className: `${styles$4.card} ${styles$4.cardDisabled}`, children: /* @__PURE__ */ jsx(PatronEntersList, {}) }),
22039
+ /* @__PURE__ */ jsx("div", { className: `${styles$4.card} ${styles$4.cardDisabled}`, children: /* @__PURE__ */ jsx(DateMilestone, {}) }),
22040
+ /* @__PURE__ */ jsx("div", { className: `${styles$4.card} ${styles$4.cardDisabled}`, children: /* @__PURE__ */ jsx(RealtimeActivity, {}) })
21946
22041
  ] })
21947
22042
  ] });
21948
22043
  };
@@ -22060,7 +22155,7 @@ const CreateAutomationModal = ({
22060
22155
  });
22061
22156
  };
22062
22157
  if (isCreating || startedCreating) {
22063
- return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
22158
+ return /* @__PURE__ */ jsx("div", { className: styles$4.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Automation", "Finishing up"] }) });
22064
22159
  }
22065
22160
  return /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
22066
22161
  /* @__PURE__ */ jsxs(AnimatePresence, { mode: "wait", children: [
@@ -22393,7 +22488,7 @@ const NameAndDescription = ({ nameAndDescriptionState, setNameAndDescriptionStat
22393
22488
  ] })
22394
22489
  ] }) });
22395
22490
  };
22396
- const styles$2 = {
22491
+ const styles$3 = {
22397
22492
  container: "relative p-6 border border-gray-200 rounded-lg"
22398
22493
  };
22399
22494
  const SegmentBuilder = ({
@@ -22470,12 +22565,12 @@ const SegmentBuilder = ({
22470
22565
  });
22471
22566
  };
22472
22567
  if (isLoading) {
22473
- return /* @__PURE__ */ jsx("div", { className: styles$2.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
22568
+ return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Segment data", "Finishing up"] }) });
22474
22569
  }
22475
22570
  if (isCreating || startedCreating) {
22476
- return /* @__PURE__ */ jsx("div", { className: styles$2.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Segment", "Finishing up"] }) });
22571
+ return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Creating Segment", "Finishing up"] }) });
22477
22572
  }
22478
- return /* @__PURE__ */ jsxs("div", { className: styles$2.container, children: [
22573
+ return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
22479
22574
  /* @__PURE__ */ jsx(
22480
22575
  "button",
22481
22576
  {
@@ -22524,15 +22619,15 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
22524
22619
  };
22525
22620
  }
22526
22621
  function createContext2(rootComponentName, defaultContext) {
22527
- const Context = React.createContext(defaultContext);
22622
+ const Context2 = React.createContext(defaultContext);
22528
22623
  const Provider2 = (props) => {
22529
22624
  const { children: children2, ...context } = props;
22530
22625
  const value = React.useMemo(() => context, Object.values(context));
22531
- return /* @__PURE__ */ jsx(Context.Provider, { value, children: children2 });
22626
+ return /* @__PURE__ */ jsx(Context2.Provider, { value, children: children2 });
22532
22627
  };
22533
22628
  Provider2.displayName = rootComponentName + "Provider";
22534
22629
  function useContext2(consumerName) {
22535
- const context = React.useContext(Context);
22630
+ const context = React.useContext(Context2);
22536
22631
  if (context) return context;
22537
22632
  if (defaultContext !== void 0) return defaultContext;
22538
22633
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -22547,14 +22642,14 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
22547
22642
  defaultContexts = [...defaultContexts, defaultContext];
22548
22643
  const Provider2 = (props) => {
22549
22644
  const { scope, children: children2, ...context } = props;
22550
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
22645
+ const Context2 = scope?.[scopeName]?.[index2] || BaseContext;
22551
22646
  const value = React.useMemo(() => context, Object.values(context));
22552
- return /* @__PURE__ */ jsx(Context.Provider, { value, children: children2 });
22647
+ return /* @__PURE__ */ jsx(Context2.Provider, { value, children: children2 });
22553
22648
  };
22554
22649
  Provider2.displayName = rootComponentName + "Provider";
22555
22650
  function useContext2(consumerName, scope) {
22556
- const Context = scope?.[scopeName]?.[index2] || BaseContext;
22557
- const context = React.useContext(Context);
22651
+ const Context2 = scope?.[scopeName]?.[index2] || BaseContext;
22652
+ const context = React.useContext(Context2);
22558
22653
  if (context) return context;
22559
22654
  if (defaultContext !== void 0) return defaultContext;
22560
22655
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -23454,13 +23549,13 @@ const TableCell = React.forwardRef(({ className: className2, ...props }, ref) =>
23454
23549
  }
23455
23550
  ));
23456
23551
  TableCell.displayName = "TableCell";
23457
- const styles$1 = {
23552
+ const styles$2 = {
23458
23553
  container: "flex flex-col items-center justify-center h-full"
23459
23554
  };
23460
23555
  const AutomationRecipients = ({ automationId }) => {
23461
23556
  const { recipients, isLoading, fetchError } = useGetBusinessAutomationRecipients(automationId);
23462
23557
  if (isLoading) {
23463
- return /* @__PURE__ */ jsx("div", { className: styles$1.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
23558
+ return /* @__PURE__ */ jsx("div", { className: styles$2.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Recipients", "Finishing up"] }) });
23464
23559
  }
23465
23560
  if (fetchError) {
23466
23561
  return /* @__PURE__ */ jsxs("div", { children: [
@@ -25040,36 +25135,36 @@ const cva = (base2, config) => (props) => {
25040
25135
  }, []);
25041
25136
  return cx(base2, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
25042
25137
  };
25043
- const base = "reach-styles-module__base___RP4iu";
25044
- const destructive = "reach-styles-module__destructive___BZSYi";
25045
- const outline = "reach-styles-module__outline___bNcaI";
25046
- const secondary = "reach-styles-module__secondary___osvqQ";
25138
+ const base$1 = "reach-styles-module__base___RP4iu";
25139
+ const destructive$1 = "reach-styles-module__destructive___BZSYi";
25140
+ const outline$1 = "reach-styles-module__outline___bNcaI";
25141
+ const secondary$1 = "reach-styles-module__secondary___osvqQ";
25047
25142
  const ghost = "reach-styles-module__ghost___uU77B";
25048
25143
  const link = "reach-styles-module__link___nSLOW";
25049
- const styles = {
25050
- base,
25144
+ const styles$1 = {
25145
+ base: base$1,
25051
25146
  "default": "reach-styles-module__default___pajjj",
25052
- destructive,
25053
- outline,
25054
- secondary,
25147
+ destructive: destructive$1,
25148
+ outline: outline$1,
25149
+ secondary: secondary$1,
25055
25150
  ghost,
25056
25151
  link
25057
25152
  };
25058
- const buttonVariants$1 = cva([styles.base, "debug-button"], {
25153
+ const buttonVariants = cva([styles$1.base], {
25059
25154
  variants: {
25060
25155
  variant: {
25061
- default: styles.default,
25062
- destructive: styles.destructive,
25063
- outline: styles.outline,
25064
- secondary: styles.secondary,
25065
- ghost: styles.ghost,
25066
- link: styles.link
25156
+ default: styles$1.default,
25157
+ destructive: styles$1.destructive,
25158
+ outline: styles$1.outline,
25159
+ secondary: styles$1.secondary,
25160
+ ghost: styles$1.ghost,
25161
+ link: styles$1.link
25067
25162
  },
25068
25163
  size: {
25069
- default: styles["size-default"],
25070
- sm: styles["size-sm"],
25071
- lg: styles["size-lg"],
25072
- icon: styles["size-icon"]
25164
+ default: styles$1["size-default"],
25165
+ sm: styles$1["size-sm"],
25166
+ lg: styles$1["size-lg"],
25167
+ icon: styles$1["size-icon"]
25073
25168
  }
25074
25169
  },
25075
25170
  defaultVariants: {
@@ -25083,7 +25178,7 @@ const Button$1 = React.forwardRef(
25083
25178
  return /* @__PURE__ */ jsx(
25084
25179
  Comp,
25085
25180
  {
25086
- className: cn$1(buttonVariants$1({ variant, size: size2, className: className2 })),
25181
+ className: cn$1(buttonVariants({ variant, size: size2, className: className2 })),
25087
25182
  ref,
25088
25183
  ...props
25089
25184
  }
@@ -25316,7 +25411,7 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
25316
25411
  onUnmountAutoFocus: onUnmountAutoFocusProp,
25317
25412
  ...scopeProps
25318
25413
  } = props;
25319
- const [container, setContainer] = React.useState(null);
25414
+ const [container2, setContainer] = React.useState(null);
25320
25415
  const onMountAutoFocus = useCallbackRef$1(onMountAutoFocusProp);
25321
25416
  const onUnmountAutoFocus = useCallbackRef$1(onUnmountAutoFocusProp);
25322
25417
  const lastFocusedElementRef = React.useRef(null);
@@ -25333,69 +25428,69 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
25333
25428
  React.useEffect(() => {
25334
25429
  if (trapped) {
25335
25430
  let handleFocusIn2 = function(event) {
25336
- if (focusScope.paused || !container) return;
25431
+ if (focusScope.paused || !container2) return;
25337
25432
  const target = event.target;
25338
- if (container.contains(target)) {
25433
+ if (container2.contains(target)) {
25339
25434
  lastFocusedElementRef.current = target;
25340
25435
  } else {
25341
25436
  focus(lastFocusedElementRef.current, { select: true });
25342
25437
  }
25343
25438
  }, handleFocusOut2 = function(event) {
25344
- if (focusScope.paused || !container) return;
25439
+ if (focusScope.paused || !container2) return;
25345
25440
  const relatedTarget = event.relatedTarget;
25346
25441
  if (relatedTarget === null) return;
25347
- if (!container.contains(relatedTarget)) {
25442
+ if (!container2.contains(relatedTarget)) {
25348
25443
  focus(lastFocusedElementRef.current, { select: true });
25349
25444
  }
25350
25445
  }, handleMutations2 = function(mutations) {
25351
25446
  const focusedElement = document.activeElement;
25352
25447
  if (focusedElement !== document.body) return;
25353
25448
  for (const mutation of mutations) {
25354
- if (mutation.removedNodes.length > 0) focus(container);
25449
+ if (mutation.removedNodes.length > 0) focus(container2);
25355
25450
  }
25356
25451
  };
25357
25452
  document.addEventListener("focusin", handleFocusIn2);
25358
25453
  document.addEventListener("focusout", handleFocusOut2);
25359
25454
  const mutationObserver = new MutationObserver(handleMutations2);
25360
- if (container) mutationObserver.observe(container, { childList: true, subtree: true });
25455
+ if (container2) mutationObserver.observe(container2, { childList: true, subtree: true });
25361
25456
  return () => {
25362
25457
  document.removeEventListener("focusin", handleFocusIn2);
25363
25458
  document.removeEventListener("focusout", handleFocusOut2);
25364
25459
  mutationObserver.disconnect();
25365
25460
  };
25366
25461
  }
25367
- }, [trapped, container, focusScope.paused]);
25462
+ }, [trapped, container2, focusScope.paused]);
25368
25463
  React.useEffect(() => {
25369
- if (container) {
25464
+ if (container2) {
25370
25465
  focusScopesStack.add(focusScope);
25371
25466
  const previouslyFocusedElement = document.activeElement;
25372
- const hasFocusedCandidate = container.contains(previouslyFocusedElement);
25467
+ const hasFocusedCandidate = container2.contains(previouslyFocusedElement);
25373
25468
  if (!hasFocusedCandidate) {
25374
25469
  const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);
25375
- container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
25376
- container.dispatchEvent(mountEvent);
25470
+ container2.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
25471
+ container2.dispatchEvent(mountEvent);
25377
25472
  if (!mountEvent.defaultPrevented) {
25378
- focusFirst$1(removeLinks(getTabbableCandidates(container)), { select: true });
25473
+ focusFirst$1(removeLinks(getTabbableCandidates(container2)), { select: true });
25379
25474
  if (document.activeElement === previouslyFocusedElement) {
25380
- focus(container);
25475
+ focus(container2);
25381
25476
  }
25382
25477
  }
25383
25478
  }
25384
25479
  return () => {
25385
- container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
25480
+ container2.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
25386
25481
  setTimeout(() => {
25387
25482
  const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);
25388
- container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
25389
- container.dispatchEvent(unmountEvent);
25483
+ container2.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
25484
+ container2.dispatchEvent(unmountEvent);
25390
25485
  if (!unmountEvent.defaultPrevented) {
25391
25486
  focus(previouslyFocusedElement ?? document.body, { select: true });
25392
25487
  }
25393
- container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
25488
+ container2.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
25394
25489
  focusScopesStack.remove(focusScope);
25395
25490
  }, 0);
25396
25491
  };
25397
25492
  }
25398
- }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
25493
+ }, [container2, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
25399
25494
  const handleKeyDown = React.useCallback(
25400
25495
  (event) => {
25401
25496
  if (!loop && !trapped) return;
@@ -25403,11 +25498,11 @@ var FocusScope = React.forwardRef((props, forwardedRef) => {
25403
25498
  const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
25404
25499
  const focusedElement = document.activeElement;
25405
25500
  if (isTabKey && focusedElement) {
25406
- const container2 = event.currentTarget;
25407
- const [first, last] = getTabbableEdges(container2);
25501
+ const container22 = event.currentTarget;
25502
+ const [first, last] = getTabbableEdges(container22);
25408
25503
  const hasTabbableElementsInside = first && last;
25409
25504
  if (!hasTabbableElementsInside) {
25410
- if (focusedElement === container2) event.preventDefault();
25505
+ if (focusedElement === container22) event.preventDefault();
25411
25506
  } else {
25412
25507
  if (!event.shiftKey && focusedElement === last) {
25413
25508
  event.preventDefault();
@@ -25431,15 +25526,15 @@ function focusFirst$1(candidates, { select = false } = {}) {
25431
25526
  if (document.activeElement !== previouslyFocusedElement) return;
25432
25527
  }
25433
25528
  }
25434
- function getTabbableEdges(container) {
25435
- const candidates = getTabbableCandidates(container);
25436
- const first = findVisible(candidates, container);
25437
- const last = findVisible(candidates.reverse(), container);
25529
+ function getTabbableEdges(container2) {
25530
+ const candidates = getTabbableCandidates(container2);
25531
+ const first = findVisible(candidates, container2);
25532
+ const last = findVisible(candidates.reverse(), container2);
25438
25533
  return [first, last];
25439
25534
  }
25440
- function getTabbableCandidates(container) {
25535
+ function getTabbableCandidates(container2) {
25441
25536
  const nodes = [];
25442
- const walker2 = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
25537
+ const walker2 = document.createTreeWalker(container2, NodeFilter.SHOW_ELEMENT, {
25443
25538
  acceptNode: (node) => {
25444
25539
  const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
25445
25540
  if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
@@ -25449,9 +25544,9 @@ function getTabbableCandidates(container) {
25449
25544
  while (walker2.nextNode()) nodes.push(walker2.currentNode);
25450
25545
  return nodes;
25451
25546
  }
25452
- function findVisible(elements, container) {
25547
+ function findVisible(elements, container2) {
25453
25548
  for (const element of elements) {
25454
- if (!isHidden(element, { upTo: container })) return element;
25549
+ if (!isHidden(element, { upTo: container2 })) return element;
25455
25550
  }
25456
25551
  }
25457
25552
  function isHidden(node, { upTo }) {
@@ -25508,8 +25603,8 @@ var Portal$4 = React.forwardRef((props, forwardedRef) => {
25508
25603
  const { container: containerProp, ...portalProps } = props;
25509
25604
  const [mounted, setMounted] = React.useState(false);
25510
25605
  useLayoutEffect2(() => setMounted(true), []);
25511
- const container = containerProp || mounted && globalThis?.document?.body;
25512
- return container ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
25606
+ const container2 = containerProp || mounted && globalThis?.document?.body;
25607
+ return container2 ? ReactDOM__default.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container2) : null;
25513
25608
  });
25514
25609
  Portal$4.displayName = PORTAL_NAME$5;
25515
25610
  var count = 0;
@@ -26374,9 +26469,9 @@ var [PortalProvider$2, usePortalContext$2] = createDialogContext(PORTAL_NAME$4,
26374
26469
  forceMount: void 0
26375
26470
  });
26376
26471
  var DialogPortal$1 = (props) => {
26377
- const { __scopeDialog, forceMount, children: children2, container } = props;
26472
+ const { __scopeDialog, forceMount, children: children2, container: container2 } = props;
26378
26473
  const context = useDialogContext(PORTAL_NAME$4, __scopeDialog);
26379
- return /* @__PURE__ */ jsx(PortalProvider$2, { scope: __scopeDialog, forceMount, children: React.Children.map(children2, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container, children: child }) })) });
26474
+ return /* @__PURE__ */ jsx(PortalProvider$2, { scope: __scopeDialog, forceMount, children: React.Children.map(children2, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container: container2, children: child }) })) });
26380
26475
  };
26381
26476
  DialogPortal$1.displayName = PORTAL_NAME$4;
26382
26477
  var OVERLAY_NAME = "DialogOverlay";
@@ -29113,9 +29208,9 @@ var [PortalProvider$1, usePortalContext$1] = createMenuContext(PORTAL_NAME$3, {
29113
29208
  forceMount: void 0
29114
29209
  });
29115
29210
  var MenuPortal = (props) => {
29116
- const { __scopeMenu, forceMount, children: children2, container } = props;
29211
+ const { __scopeMenu, forceMount, children: children2, container: container2 } = props;
29117
29212
  const context = useMenuContext(PORTAL_NAME$3, __scopeMenu);
29118
- return /* @__PURE__ */ jsx(PortalProvider$1, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container, children: children2 }) }) });
29213
+ return /* @__PURE__ */ jsx(PortalProvider$1, { scope: __scopeMenu, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container: container2, children: children2 }) }) });
29119
29214
  };
29120
29215
  MenuPortal.displayName = PORTAL_NAME$3;
29121
29216
  var CONTENT_NAME$3 = "MenuContent";
@@ -35323,31 +35418,6 @@ function RootProvider(props) {
35323
35418
  function DayPicker(props) {
35324
35419
  return jsx(RootProvider, __assign({}, props, { children: jsx(Root, { initialProps: props }) }));
35325
35420
  }
35326
- const buttonVariants = cva(
35327
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
35328
- {
35329
- variants: {
35330
- variant: {
35331
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
35332
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
35333
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
35334
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
35335
- ghost: "hover:bg-accent hover:text-accent-foreground",
35336
- link: "text-primary underline-offset-4 hover:underline"
35337
- },
35338
- size: {
35339
- default: "h-9 px-4 py-2",
35340
- sm: "h-8 rounded-md px-3 text-xs",
35341
- lg: "h-10 rounded-md px-8",
35342
- icon: "h-9 w-9"
35343
- }
35344
- },
35345
- defaultVariants: {
35346
- variant: "default",
35347
- size: "default"
35348
- }
35349
- }
35350
- );
35351
35421
  function Calendar({
35352
35422
  className: className2,
35353
35423
  classNames,
@@ -35487,9 +35557,9 @@ var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME, {
35487
35557
  forceMount: void 0
35488
35558
  });
35489
35559
  var PopoverPortal = (props) => {
35490
- const { __scopePopover, forceMount, children: children2, container } = props;
35560
+ const { __scopePopover, forceMount, children: children2, container: container2 } = props;
35491
35561
  const context = usePopoverContext(PORTAL_NAME, __scopePopover);
35492
- return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container, children: children2 }) }) });
35562
+ return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$4, { asChild: true, container: container2, children: children2 }) }) });
35493
35563
  };
35494
35564
  PopoverPortal.displayName = PORTAL_NAME;
35495
35565
  var CONTENT_NAME = "PopoverContent";
@@ -36546,61 +36616,76 @@ const EditAutomationPopup = ({
36546
36616
  ) })
36547
36617
  ] });
36548
36618
  };
36549
- const badgeVariants = cva(
36550
- "inline-flex items-center rounded-full border text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
36551
- {
36552
- variants: {
36553
- variant: {
36554
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
36555
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
36556
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
36557
- outline: "text-foreground",
36558
- google: "border-transparent bg-blue-100 font-normal dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",
36559
- date: "border-transparent bg-gray-200 font-normal dark:bg-gray-800 text-gray-700 dark:text-gray-300"
36560
- },
36561
- size: {
36562
- default: "px-2.5 py-0.5",
36563
- sm: "px-1.5 py-0.5 text-[10px]"
36564
- },
36565
- iconOnly: {
36566
- true: "w-5 h-5 p-0 justify-center",
36567
- false: ""
36568
- }
36619
+ const base = "reach-styles-module__base___eJmcH";
36620
+ const secondary = "reach-styles-module__secondary___H-ae8";
36621
+ const destructive = "reach-styles-module__destructive___JsRNh";
36622
+ const outline = "reach-styles-module__outline___9FFlV";
36623
+ const google = "reach-styles-module__google___7eHwU";
36624
+ const date = "reach-styles-module__date___gU3Tt";
36625
+ const container = "reach-styles-module__container___5PrOx";
36626
+ const styles = {
36627
+ base,
36628
+ "default": "reach-styles-module__default___8NuEB",
36629
+ secondary,
36630
+ destructive,
36631
+ outline,
36632
+ google,
36633
+ date,
36634
+ container
36635
+ };
36636
+ const badgeVariants = cva([styles.base], {
36637
+ variants: {
36638
+ variant: {
36639
+ default: styles.default,
36640
+ secondary: styles.secondary,
36641
+ destructive: styles.destructive,
36642
+ outline: styles.outline,
36643
+ google: styles.google,
36644
+ date: styles.date
36569
36645
  },
36570
- compoundVariants: [
36646
+ size: {
36647
+ default: styles["size-default"],
36648
+ sm: styles["size-sm"]
36649
+ },
36650
+ iconOnly: {
36651
+ true: styles["icon-only"],
36652
+ false: ""
36653
+ }
36654
+ },
36655
+ compoundVariants: [
36656
+ {
36657
+ iconOnly: true,
36658
+ size: "sm",
36659
+ class: styles["icon-only-sm"]
36660
+ }
36661
+ ],
36662
+ defaultVariants: {
36663
+ variant: "default",
36664
+ size: "default",
36665
+ iconOnly: false
36666
+ }
36667
+ });
36668
+ const Badge = React.forwardRef(
36669
+ ({ className: className2, variant, size: size2, iconOnly, truncate, ...props }, ref) => {
36670
+ return /* @__PURE__ */ jsx(
36671
+ "div",
36571
36672
  {
36572
- iconOnly: true,
36573
- size: "sm",
36574
- class: "w-4 h-4"
36673
+ ref,
36674
+ className: cn(
36675
+ badgeVariants({ variant, size: size2, iconOnly }),
36676
+ truncate && "max-w-[90px]",
36677
+ className2
36678
+ ),
36679
+ ...props
36575
36680
  }
36576
- ],
36577
- defaultVariants: {
36578
- variant: "default",
36579
- size: "default",
36580
- iconOnly: false
36581
- }
36681
+ );
36582
36682
  }
36583
36683
  );
36584
- function Badge({
36585
- className: className2,
36586
- variant,
36587
- size: size2,
36588
- iconOnly,
36589
- truncate,
36590
- ...props
36591
- }) {
36592
- return /* @__PURE__ */ jsx(
36593
- "div",
36594
- {
36595
- className: cn$1(
36596
- badgeVariants({ variant, size: size2, iconOnly }),
36597
- truncate && "max-w-[90px]",
36598
- className2
36599
- ),
36600
- ...props
36601
- }
36602
- );
36603
- }
36684
+ Badge.displayName = "Badge";
36685
+ const BadgeContainer = React.forwardRef(({ className: className2, ...props }, ref) => {
36686
+ return /* @__PURE__ */ jsx("div", { ref, className: cn(styles.container, className2), ...props });
36687
+ });
36688
+ BadgeContainer.displayName = "BadgeContainer";
36604
36689
  const StatusBadge = ({
36605
36690
  status
36606
36691
  }) => {
@@ -36733,7 +36818,7 @@ const ViewAutomationModal = ({
36733
36818
  const mergedIconDefinitions = mergeIconDefinitions(iconDefinitions);
36734
36819
  const { automation, isFetching, isLoading, fetchError } = useGetBusinessAutomation(AUTOMATION_ID);
36735
36820
  if (!automation && (isFetching || isLoading)) {
36736
- return /* @__PURE__ */ jsx("div", { className: styles$3.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
36821
+ return /* @__PURE__ */ jsx("div", { className: styles$4.container, children: /* @__PURE__ */ jsx(SpinLoader, { text: ["Fetching Automation data", "Finishing up"] }) });
36737
36822
  }
36738
36823
  if (fetchError) {
36739
36824
  return /* @__PURE__ */ jsxs("div", { children: [
@@ -36744,7 +36829,7 @@ const ViewAutomationModal = ({
36744
36829
  if (!automation) {
36745
36830
  return /* @__PURE__ */ jsx("div", { children: "No automation found" });
36746
36831
  }
36747
- return /* @__PURE__ */ jsxs("div", { className: styles$3.container, children: [
36832
+ return /* @__PURE__ */ jsxs("div", { className: styles$4.container, children: [
36748
36833
  /* @__PURE__ */ jsx(
36749
36834
  ViewAutomationHeader,
36750
36835
  {