@livechat/platform-workflows 0.0.5 → 0.0.8

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.
Files changed (3) hide show
  1. package/dist/index.js +476 -191
  2. package/dist/index.mjs +621 -330
  3. package/package.json +5 -11
package/dist/index.js CHANGED
@@ -8998,7 +8998,7 @@ var workflowBuilderUtils = {
8998
8998
  return JSON.stringify(json, null, space);
8999
8999
  },
9000
9000
  escapeTag(value) {
9001
- const valueWithoutQuotes = value.replaceAll('"', "");
9001
+ const valueWithoutQuotes = (value != null ? value : "").replaceAll('"', "");
9002
9002
  return valueWithoutQuotes.substring(2, valueWithoutQuotes.length - 1);
9003
9003
  },
9004
9004
  getRegex(prefix2 = "$") {
@@ -13539,8 +13539,7 @@ function CustomTagsPicker({
13539
13539
  }
13540
13540
 
13541
13541
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/Input.tsx
13542
- var import_react28 = require("react");
13543
- var import_react29 = __toESM(require("@yaireo/tagify/dist/react.tagify"));
13542
+ var import_react29 = require("react");
13544
13543
  var import_design_system_react_components12 = require("@livechat/design-system-react-components");
13545
13544
 
13546
13545
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/Tag/Icon.tsx
@@ -13684,6 +13683,292 @@ function CustomTagsInputTagTooltip({
13684
13683
  );
13685
13684
  }
13686
13685
 
13686
+ // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/Tags.tsx
13687
+ var import_react28 = require("react");
13688
+ var import_tagify = __toESM(require("@yaireo/tagify"));
13689
+ var import_jsx_runtime20 = require("react/jsx-runtime");
13690
+ var noop = (_) => _;
13691
+ var isSameDeep = (a, b) => {
13692
+ const trans = (x) => typeof x === "string" ? x : JSON.stringify(x);
13693
+ return trans(a) === trans(b);
13694
+ };
13695
+ function renderToStaticMarkup(element) {
13696
+ if (typeof element === "string") {
13697
+ return element;
13698
+ }
13699
+ if (Array.isArray(element)) {
13700
+ return element.map(renderToStaticMarkup).join("");
13701
+ }
13702
+ if (typeof element === "object" && element !== null) {
13703
+ if (typeof element.type === "function") {
13704
+ return renderToStaticMarkup(element.type(element.props));
13705
+ }
13706
+ if (typeof element.type === "string") {
13707
+ const attrs = Object.entries(element.props || {}).filter(([key]) => key !== "children").map(([key, value]) => `${key}="${value}"`).join(" ");
13708
+ const children = element.props.children ? renderToStaticMarkup(element.props.children) : "";
13709
+ return `<${element.type} ${attrs}>${children}</${element.type}>`;
13710
+ }
13711
+ }
13712
+ return "";
13713
+ }
13714
+ function templatesToString(templates) {
13715
+ if (templates) {
13716
+ for (const templateName in templates) {
13717
+ const Template = templates[templateName];
13718
+ const isReactComp = String(Template).includes("jsxRuntime");
13719
+ if (isReactComp)
13720
+ templates[templateName] = (...props) => renderToStaticMarkup(/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Template, { props }));
13721
+ }
13722
+ }
13723
+ }
13724
+ function compareStrings(str1, str2) {
13725
+ if (typeof str1 !== typeof str2)
13726
+ return;
13727
+ const words1 = str1.split(" ");
13728
+ const words2 = str2.split(" ");
13729
+ const added = words2.filter((word) => !words1.includes(word));
13730
+ const removed = words1.filter((word) => !words2.includes(word));
13731
+ return { added, removed };
13732
+ }
13733
+ var TagifyWrapper = ({
13734
+ name,
13735
+ value,
13736
+ loading = false,
13737
+ onInput = noop,
13738
+ onAdd = noop,
13739
+ onRemove = noop,
13740
+ onEditInput = noop,
13741
+ onEditBeforeUpdate = noop,
13742
+ onEditUpdated = noop,
13743
+ onEditStart = noop,
13744
+ onEditKeydown = noop,
13745
+ onInvalid = noop,
13746
+ onClick = noop,
13747
+ onKeydown = noop,
13748
+ onFocus = noop,
13749
+ onBlur = noop,
13750
+ onChange = noop,
13751
+ onDropdownShow = noop,
13752
+ onDropdownHide = noop,
13753
+ onDropdownSelect = noop,
13754
+ onDropdownScroll = noop,
13755
+ onDropdownNoMatch = noop,
13756
+ onDropdownUpdated = noop,
13757
+ readOnly,
13758
+ disabled,
13759
+ userInput = true,
13760
+ children,
13761
+ settings: settings2 = {},
13762
+ InputMode = "input",
13763
+ autoFocus,
13764
+ className,
13765
+ whitelist,
13766
+ tagifyRef,
13767
+ placeholder: placeholder2 = "",
13768
+ defaultValue,
13769
+ showDropdown
13770
+ }) => {
13771
+ const mountedRef = (0, import_react28.useRef)();
13772
+ const inputElmRef = (0, import_react28.useRef)(null);
13773
+ const tagify = (0, import_react28.useRef)();
13774
+ const lastClassNameRef = (0, import_react28.useRef)();
13775
+ const _value = defaultValue || value;
13776
+ const inputAttrs = (0, import_react28.useMemo)(
13777
+ () => ({
13778
+ ref: inputElmRef,
13779
+ name,
13780
+ defaultValue: children || typeof _value === "string" ? _value : JSON.stringify(_value),
13781
+ className,
13782
+ readOnly,
13783
+ disabled,
13784
+ autoFocus,
13785
+ placeholder: placeholder2
13786
+ }),
13787
+ []
13788
+ );
13789
+ const setFocus = (0, import_react28.useCallback)(() => {
13790
+ var _a;
13791
+ autoFocus && ((_a = tagify.current) == null ? void 0 : _a.DOM.input.focus());
13792
+ }, [tagify]);
13793
+ (0, import_react28.useEffect)(() => {
13794
+ templatesToString(settings2.templates);
13795
+ settings2.userInput = userInput;
13796
+ if (InputMode === "textarea")
13797
+ settings2.mode = "mix";
13798
+ if (whitelist == null ? void 0 : whitelist.length)
13799
+ settings2.whitelist = whitelist;
13800
+ const t = new import_tagify.default(inputElmRef.current, settings2);
13801
+ if (tagifyRef) {
13802
+ tagifyRef.current = t;
13803
+ }
13804
+ tagify.current = t;
13805
+ setFocus();
13806
+ return () => {
13807
+ t.destroy();
13808
+ };
13809
+ }, []);
13810
+ (0, import_react28.useEffect)(() => {
13811
+ var _a;
13812
+ (_a = tagify.current) == null ? void 0 : _a.off("change", onChange).on("change", onChange);
13813
+ }, [onChange]);
13814
+ (0, import_react28.useEffect)(() => {
13815
+ var _a;
13816
+ (_a = tagify.current) == null ? void 0 : _a.off("input", onInput).on("input", onInput);
13817
+ }, [onInput]);
13818
+ (0, import_react28.useEffect)(() => {
13819
+ var _a;
13820
+ (_a = tagify.current) == null ? void 0 : _a.off("add", onAdd).on("add", onAdd);
13821
+ }, [onAdd]);
13822
+ (0, import_react28.useEffect)(() => {
13823
+ var _a;
13824
+ (_a = tagify.current) == null ? void 0 : _a.off("remove", onRemove).on("remove", onRemove);
13825
+ }, [onRemove]);
13826
+ (0, import_react28.useEffect)(() => {
13827
+ var _a;
13828
+ (_a = tagify.current) == null ? void 0 : _a.off("invalid", onInvalid).on("invalid", onInvalid);
13829
+ }, [onInvalid]);
13830
+ (0, import_react28.useEffect)(() => {
13831
+ var _a;
13832
+ (_a = tagify.current) == null ? void 0 : _a.off("keydown", onKeydown).on("keydown", onKeydown);
13833
+ }, [onKeydown]);
13834
+ (0, import_react28.useEffect)(() => {
13835
+ var _a;
13836
+ (_a = tagify.current) == null ? void 0 : _a.off("focus", onFocus).on("focus", onFocus);
13837
+ }, [onFocus]);
13838
+ (0, import_react28.useEffect)(() => {
13839
+ var _a;
13840
+ (_a = tagify.current) == null ? void 0 : _a.off("blur", onBlur).on("blur", onBlur);
13841
+ }, [onBlur]);
13842
+ (0, import_react28.useEffect)(() => {
13843
+ var _a;
13844
+ (_a = tagify.current) == null ? void 0 : _a.off("click", onClick).on("click", onClick);
13845
+ }, [onClick]);
13846
+ (0, import_react28.useEffect)(() => {
13847
+ var _a;
13848
+ (_a = tagify.current) == null ? void 0 : _a.off("edit:input", onEditInput).on("edit:input", onEditInput);
13849
+ }, [onEditInput]);
13850
+ (0, import_react28.useEffect)(() => {
13851
+ var _a;
13852
+ (_a = tagify.current) == null ? void 0 : _a.off("edit:beforeUpdate", onEditBeforeUpdate).on("edit:beforeUpdate", onEditBeforeUpdate);
13853
+ }, [onEditBeforeUpdate]);
13854
+ (0, import_react28.useEffect)(() => {
13855
+ var _a;
13856
+ (_a = tagify.current) == null ? void 0 : _a.off("edit:updated", onEditUpdated).on("edit:updated", onEditUpdated);
13857
+ }, [onEditUpdated]);
13858
+ (0, import_react28.useEffect)(() => {
13859
+ var _a;
13860
+ (_a = tagify.current) == null ? void 0 : _a.off("edit:start", onEditStart).on("edit:start", onEditStart);
13861
+ }, [onEditStart]);
13862
+ (0, import_react28.useEffect)(() => {
13863
+ var _a;
13864
+ (_a = tagify.current) == null ? void 0 : _a.off("edit:keydown", onEditKeydown).on("edit:keydown", onEditKeydown);
13865
+ }, [onEditKeydown]);
13866
+ (0, import_react28.useEffect)(() => {
13867
+ var _a;
13868
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:show", onDropdownShow).on("dropdown:show", onDropdownShow);
13869
+ }, [onDropdownShow]);
13870
+ (0, import_react28.useEffect)(() => {
13871
+ var _a;
13872
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:hide", onDropdownHide).on("dropdown:hide", onDropdownHide);
13873
+ }, [onDropdownHide]);
13874
+ (0, import_react28.useEffect)(() => {
13875
+ var _a;
13876
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:select", onDropdownSelect).on("dropdown:select", onDropdownSelect);
13877
+ }, [onDropdownSelect]);
13878
+ (0, import_react28.useEffect)(() => {
13879
+ var _a;
13880
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:scroll", onDropdownScroll).on("dropdown:scroll", onDropdownScroll);
13881
+ }, [onDropdownScroll]);
13882
+ (0, import_react28.useEffect)(() => {
13883
+ var _a;
13884
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:noMatch", onDropdownNoMatch).on("dropdown:noMatch", onDropdownNoMatch);
13885
+ }, [onDropdownNoMatch]);
13886
+ (0, import_react28.useEffect)(() => {
13887
+ var _a;
13888
+ (_a = tagify.current) == null ? void 0 : _a.off("dropdown:updated", onDropdownUpdated).on("dropdown:updated", onDropdownUpdated);
13889
+ }, [onDropdownUpdated]);
13890
+ (0, import_react28.useEffect)(() => {
13891
+ setFocus();
13892
+ }, [autoFocus]);
13893
+ (0, import_react28.useEffect)(() => {
13894
+ var _a;
13895
+ if (mountedRef.current) {
13896
+ tagify.current.settings.whitelist.length = 0;
13897
+ (whitelist == null ? void 0 : whitelist.length) && ((_a = tagify.current) == null ? void 0 : _a.settings.whitelist.push(...whitelist));
13898
+ }
13899
+ }, [whitelist]);
13900
+ (0, import_react28.useEffect)(() => {
13901
+ const currentValue = tagify.current.getInputValue();
13902
+ if (mountedRef.current && !isSameDeep(value, currentValue)) {
13903
+ tagify.current.loadOriginalValues(value);
13904
+ }
13905
+ }, [value]);
13906
+ (0, import_react28.useEffect)(() => {
13907
+ if (mountedRef.current) {
13908
+ const { added, removed } = compareStrings(
13909
+ lastClassNameRef.current,
13910
+ className
13911
+ );
13912
+ added.filter(String).forEach((cls) => {
13913
+ tagify.current.toggleClass(cls, true);
13914
+ });
13915
+ removed.filter(String).forEach((cls) => {
13916
+ tagify.current.toggleClass(cls, false);
13917
+ });
13918
+ }
13919
+ lastClassNameRef.current = className;
13920
+ }, [className]);
13921
+ (0, import_react28.useEffect)(() => {
13922
+ var _a;
13923
+ if (mountedRef.current) {
13924
+ (_a = tagify.current) == null ? void 0 : _a.loading(loading);
13925
+ }
13926
+ }, [loading]);
13927
+ (0, import_react28.useEffect)(() => {
13928
+ var _a;
13929
+ if (mountedRef.current) {
13930
+ (_a = tagify.current) == null ? void 0 : _a.setReadonly(readOnly);
13931
+ }
13932
+ }, [readOnly]);
13933
+ (0, import_react28.useEffect)(() => {
13934
+ var _a;
13935
+ if (mountedRef.current) {
13936
+ (_a = tagify.current) == null ? void 0 : _a.setDisabled(disabled);
13937
+ }
13938
+ }, [disabled]);
13939
+ (0, import_react28.useEffect)(() => {
13940
+ if (mountedRef.current) {
13941
+ tagify.current.userInput = userInput;
13942
+ }
13943
+ }, [userInput]);
13944
+ (0, import_react28.useEffect)(() => {
13945
+ if (mountedRef.current) {
13946
+ tagify.current.setPlaceholder(placeholder2);
13947
+ }
13948
+ }, [placeholder2]);
13949
+ (0, import_react28.useEffect)(() => {
13950
+ const t = tagify.current;
13951
+ if (mountedRef.current) {
13952
+ if (showDropdown) {
13953
+ t.dropdown.show.call(t, showDropdown);
13954
+ t.toggleFocusClass(true);
13955
+ } else {
13956
+ t.dropdown.hide.call(t);
13957
+ }
13958
+ }
13959
+ }, [showDropdown]);
13960
+ (0, import_react28.useEffect)(() => {
13961
+ mountedRef.current = true;
13962
+ }, []);
13963
+ return (
13964
+ // a wrapper must be used because Tagify will appened inside it it's component,
13965
+ // keeping the virtual-DOM out of the way
13966
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "tags-input", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputMode, __spreadValues({}, inputAttrs)) })
13967
+ );
13968
+ };
13969
+ var Tags = (0, import_react28.memo)(TagifyWrapper);
13970
+ var Tags_default = Tags;
13971
+
13687
13972
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/utils.ts
13688
13973
  var createTagFromPath = (path, frame) => {
13689
13974
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
@@ -13747,7 +14032,7 @@ var convertValueToTags = (value, frame) => {
13747
14032
  };
13748
14033
 
13749
14034
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Forms/Schema/overrides/Fields/CustomTags/TagsInput/Input.tsx
13750
- var import_tagify = require("@yaireo/tagify/dist/tagify.css");
14035
+ var import_tagify2 = require("@yaireo/tagify/dist/tagify.css");
13751
14036
  var settings = {
13752
14037
  mode: "mix",
13753
14038
  editTags: false,
@@ -13782,23 +14067,23 @@ function CustomTagsInput({
13782
14067
  renderPicker,
13783
14068
  renderPickerTrigger
13784
14069
  }) {
13785
- const tagifyRef = (0, import_react28.useRef)();
14070
+ const tagifyRef = (0, import_react29.useRef)();
13786
14071
  const [tooltipData, { showTagTooltip, hideTagTooltip }] = useCustomTagsInputTagTooltipData();
13787
- const updateAllIcons = (0, import_react28.useCallback)(() => {
14072
+ const updateAllIcons = (0, import_react29.useCallback)(() => {
13788
14073
  const tagify = tagifyRef.current;
13789
14074
  if (!tagify) {
13790
14075
  return;
13791
14076
  }
13792
14077
  tagify.value.forEach(updateCustomTagsInputTagIcon);
13793
14078
  }, []);
13794
- const getCurrentValue = (0, import_react28.useCallback)(() => {
14079
+ const getCurrentValue = (0, import_react29.useCallback)(() => {
13795
14080
  const tagify = tagifyRef.current;
13796
14081
  if (!tagify) {
13797
14082
  return "";
13798
14083
  }
13799
14084
  return tagify.getMixedTagsAsString().replace(trim2 ? /\s+/g : /\r\n$/, "").replaceAll("[[", "${").replaceAll("]]", "}").replaceAll("\u200B", "");
13800
14085
  }, [trim2]);
13801
- const setCurrentValue = (0, import_react28.useCallback)(
14086
+ const setCurrentValue = (0, import_react29.useCallback)(
13802
14087
  (value2, frame) => {
13803
14088
  const tagify = tagifyRef.current;
13804
14089
  if (!tagify) {
@@ -13809,11 +14094,11 @@ function CustomTagsInput({
13809
14094
  },
13810
14095
  [updateAllIcons]
13811
14096
  );
13812
- const handleChange = (0, import_react28.useCallback)(() => {
14097
+ const handleChange = (0, import_react29.useCallback)(() => {
13813
14098
  onChange(getCurrentValue());
13814
14099
  updateAllIcons();
13815
14100
  }, [onChange, getCurrentValue, updateAllIcons]);
13816
- const handleKeyDown = (0, import_react28.useCallback)(
14101
+ const handleKeyDown = (0, import_react29.useCallback)(
13817
14102
  (e) => {
13818
14103
  if (e.detail.event.key !== "Backspace") {
13819
14104
  return;
@@ -13824,7 +14109,7 @@ function CustomTagsInput({
13824
14109
  },
13825
14110
  [handleChange]
13826
14111
  );
13827
- const addTag = (0, import_react28.useCallback)(
14112
+ const addTag = (0, import_react29.useCallback)(
13828
14113
  (tag) => {
13829
14114
  const tagify = tagifyRef.current;
13830
14115
  if (!tagify) {
@@ -13840,7 +14125,7 @@ function CustomTagsInput({
13840
14125
  },
13841
14126
  [trim2, onPickerToggle]
13842
14127
  );
13843
- (0, import_react28.useEffect)(() => {
14128
+ (0, import_react29.useEffect)(() => {
13844
14129
  const tagify = tagifyRef.current;
13845
14130
  if (!tagify) {
13846
14131
  return;
@@ -13866,7 +14151,7 @@ function CustomTagsInput({
13866
14151
  showTagTooltip,
13867
14152
  hideTagTooltip
13868
14153
  ]);
13869
- (0, import_react28.useEffect)(() => {
14154
+ (0, import_react29.useEffect)(() => {
13870
14155
  const tagify = tagifyRef.current;
13871
14156
  if (!tagify || !value) {
13872
14157
  return;
@@ -13891,7 +14176,7 @@ function CustomTagsInput({
13891
14176
  triggerOnHover: false,
13892
14177
  triggerRenderer: /* @__PURE__ */ jsxs2(Fragment3, { children: [
13893
14178
  /* @__PURE__ */ jsx7(
13894
- import_react29.default,
14179
+ Tags_default,
13895
14180
  {
13896
14181
  className: ["customLook", error ? "tagify--error" : void 0].filter(Boolean).join(" "),
13897
14182
  disabled,
@@ -14809,7 +15094,7 @@ var CustomToolbar_default = Toolbar_default;
14809
15094
  var import_react41 = require("react");
14810
15095
  var import_reactflow5 = require("reactflow");
14811
15096
  var import_design_system_react_components26 = require("@livechat/design-system-react-components");
14812
- var import_jsx_runtime38 = require("react/jsx-runtime");
15097
+ var import_jsx_runtime39 = require("react/jsx-runtime");
14813
15098
  var Wrapper2 = newStyled.div`
14814
15099
  &:hover {
14815
15100
  cursor: pointer;
@@ -14833,7 +15118,7 @@ function CustomNodeWrapper({
14833
15118
  onMouseEnter,
14834
15119
  onMouseLeave
14835
15120
  }) {
14836
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Wrapper2, { onMouseEnter, onMouseLeave, children });
15121
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Wrapper2, { onMouseEnter, onMouseLeave, children });
14837
15122
  }
14838
15123
  var options = [
14839
15124
  {
@@ -14875,22 +15160,22 @@ function Select({
14875
15160
  })
14876
15161
  );
14877
15162
  };
14878
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "custom-node__select", children: [
14879
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: "Edge Type" }),
14880
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("select", { className: "nodrag", onChange, value, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("option", { value: option.value, children: option.label }, option.value)) }),
14881
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_reactflow5.Handle, { id: handleId, position: import_reactflow5.Position.Right, type: "source" })
15163
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "custom-node__select", children: [
15164
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: "Edge Type" }),
15165
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("select", { className: "nodrag", onChange, value, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("option", { value: option.value, children: option.label }, option.value)) }),
15166
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_reactflow5.Handle, { id: handleId, position: import_reactflow5.Position.Right, type: "source" })
14882
15167
  ] });
14883
15168
  }
14884
15169
  function CustomNode({
14885
15170
  id,
14886
15171
  data
14887
15172
  }) {
14888
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
14889
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "custom-node__header", children: [
15173
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
15174
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "custom-node__header", children: [
14890
15175
  "This is a ",
14891
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("strong", { children: "custom node" })
15176
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("strong", { children: "custom node" })
14892
15177
  ] }),
14893
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "custom-node__body", children: Object.keys(data.selects).map((handleId) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15178
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "custom-node__body", children: Object.keys(data.selects).map((handleId) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
14894
15179
  Select,
14895
15180
  {
14896
15181
  handleId,
@@ -15159,7 +15444,7 @@ function IntegrationLoading() {
15159
15444
  var IntegrationLoading_default = IntegrationLoading;
15160
15445
 
15161
15446
  // src/views/Settings/Integrations/Common/IntegrationCallback.tsx
15162
- var import_jsx_runtime42 = require("react/jsx-runtime");
15447
+ var import_jsx_runtime43 = require("react/jsx-runtime");
15163
15448
  function integrationHandlerWrapper(output, handler, notifications, provider) {
15164
15449
  var _a, _b;
15165
15450
  const response = handler(output);
@@ -15255,12 +15540,12 @@ function IntegrationCallback({
15255
15540
  );
15256
15541
  callback(response, data);
15257
15542
  }, [callback, handler, notifications]);
15258
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IntegrationLoading_default, {});
15543
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IntegrationLoading_default, {});
15259
15544
  }
15260
15545
  var IntegrationCallback_default = IntegrationCallback;
15261
15546
 
15262
15547
  // src/views/Settings/Integrations/Common/IntegrationAction.tsx
15263
- var import_jsx_runtime43 = require("react/jsx-runtime");
15548
+ var import_jsx_runtime44 = require("react/jsx-runtime");
15264
15549
  var deserializeIntegrationActionData = (state) => import_developer_studio_ui_react21.serializerBase64.deserialize(state);
15265
15550
  var serializeIntegrationActionData = (data) => import_developer_studio_ui_react21.serializerBase64.serialize(data);
15266
15551
  var serializeContextState = (data) => {
@@ -15320,11 +15605,11 @@ function IntegrationAction(props) {
15320
15605
  }
15321
15606
  execute();
15322
15607
  }, [(_c = props.executor) == null ? void 0 : _c.type, state.isTriggered, execute]);
15323
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
15608
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
15324
15609
  ((_d = props.executor) == null ? void 0 : _d.type) === "manual" ? props.executor.render(() => {
15325
15610
  execute();
15326
15611
  }) : null,
15327
- state.isTriggered ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IntegrationLoading_default, {}) : null
15612
+ state.isTriggered ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IntegrationLoading_default, {}) : null
15328
15613
  ] });
15329
15614
  }
15330
15615
  function executeIntegrationAction(props, meta) {
@@ -15383,7 +15668,7 @@ function executeIntegrationAction(props, meta) {
15383
15668
  var IntegrationAction_default = IntegrationAction;
15384
15669
 
15385
15670
  // src/views/Settings/Integrations/BigCommerce/Action.tsx
15386
- var import_jsx_runtime44 = require("react/jsx-runtime");
15671
+ var import_jsx_runtime45 = require("react/jsx-runtime");
15387
15672
  function BigCommerceAction(props) {
15388
15673
  var _a;
15389
15674
  const { login } = (0, import_react46.useContext)(AuthContext);
@@ -15392,7 +15677,7 @@ function BigCommerceAction(props) {
15392
15677
  if (!action) {
15393
15678
  throw new Error("Invalid action");
15394
15679
  }
15395
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
15680
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
15396
15681
  IntegrationAction_default,
15397
15682
  {
15398
15683
  action,
@@ -15750,7 +16035,7 @@ var useFetchHubspotCredentials = () => {
15750
16035
  var import_react49 = require("react");
15751
16036
  var import_developer_studio_api29 = require("@livechat/developer-studio-api");
15752
16037
  var import_developer_studio_ui_react24 = require("@livechat/developer-studio-ui-react");
15753
- var import_jsx_runtime46 = require("react/jsx-runtime");
16038
+ var import_jsx_runtime47 = require("react/jsx-runtime");
15754
16039
  function HubSpotAction(props) {
15755
16040
  var _a;
15756
16041
  const { login } = (0, import_react49.useContext)(AuthContext);
@@ -15759,7 +16044,7 @@ function HubSpotAction(props) {
15759
16044
  if (!action) {
15760
16045
  throw new Error("Invalid action");
15761
16046
  }
15762
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
16047
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
15763
16048
  IntegrationAction_default,
15764
16049
  {
15765
16050
  action,
@@ -15934,7 +16219,7 @@ var useFetchMailchimpCredentials = () => {
15934
16219
  var import_react52 = require("react");
15935
16220
  var import_developer_studio_api31 = require("@livechat/developer-studio-api");
15936
16221
  var import_developer_studio_ui_react25 = require("@livechat/developer-studio-ui-react");
15937
- var import_jsx_runtime48 = require("react/jsx-runtime");
16222
+ var import_jsx_runtime49 = require("react/jsx-runtime");
15938
16223
  function MailchimpAction(props) {
15939
16224
  var _a;
15940
16225
  const { login } = (0, import_react52.useContext)(AuthContext);
@@ -15943,7 +16228,7 @@ function MailchimpAction(props) {
15943
16228
  if (!action) {
15944
16229
  throw new Error("Invalid action");
15945
16230
  }
15946
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
16231
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
15947
16232
  IntegrationAction_default,
15948
16233
  {
15949
16234
  action,
@@ -16309,7 +16594,7 @@ var useFetchShopifyCredentials = () => {
16309
16594
  var import_react57 = require("react");
16310
16595
  var import_developer_studio_api33 = require("@livechat/developer-studio-api");
16311
16596
  var import_developer_studio_ui_react27 = require("@livechat/developer-studio-ui-react");
16312
- var import_jsx_runtime51 = require("react/jsx-runtime");
16597
+ var import_jsx_runtime52 = require("react/jsx-runtime");
16313
16598
  function ShopifyAction(props) {
16314
16599
  var _a;
16315
16600
  const { login } = (0, import_react57.useContext)(AuthContext);
@@ -16318,7 +16603,7 @@ function ShopifyAction(props) {
16318
16603
  if (!action) {
16319
16604
  throw new Error("Invalid action");
16320
16605
  }
16321
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
16606
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
16322
16607
  IntegrationAction_default,
16323
16608
  {
16324
16609
  action,
@@ -17247,7 +17532,7 @@ var Node_default3 = (0, import_react65.memo)(SwitchNode);
17247
17532
  var import_design_system_icons21 = require("@livechat/design-system-icons");
17248
17533
  var import_design_system_react_components38 = require("@livechat/design-system-react-components");
17249
17534
  var import_developer_studio_ui_react29 = require("@livechat/developer-studio-ui-react");
17250
- var import_jsx_runtime60 = require("react/jsx-runtime");
17535
+ var import_jsx_runtime61 = require("react/jsx-runtime");
17251
17536
  var Node4 = newStyled.div`
17252
17537
  background-color: ${({ editing }) => editing ? `var(${import_design_system_react_components38.DesignToken.SurfacePrimaryActive})` : `var(${import_design_system_react_components38.DesignToken.SurfacePrimaryDefault})`};
17253
17538
  color: var(${import_design_system_react_components38.DesignToken.ContentBasicPrimary});
@@ -17290,7 +17575,7 @@ function TerminateNodeBase({
17290
17575
  const {
17291
17576
  state: { selection, visibility }
17292
17577
  } = useWorkflowContext();
17293
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
17578
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
17294
17579
  Node4,
17295
17580
  {
17296
17581
  editing: visibility.selection ? (selection == null ? void 0 : selection.id) === id : null,
@@ -17298,9 +17583,9 @@ function TerminateNodeBase({
17298
17583
  children: [
17299
17584
  top,
17300
17585
  toolbar,
17301
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Header5, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(Title4, { children: [
17302
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_design_system_react_components38.Icon, { size: "large", source: import_design_system_icons21.ArrowBarToRight }),
17303
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_developer_studio_ui_react29.Column, { notPadded: true, children: "END" })
17586
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Header5, { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Title4, { children: [
17587
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_design_system_react_components38.Icon, { size: "large", source: import_design_system_icons21.ArrowBarToRight }),
17588
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_developer_studio_ui_react29.Column, { notPadded: true, children: "END" })
17304
17589
  ] }) })
17305
17590
  ]
17306
17591
  }
@@ -18407,7 +18692,7 @@ var getSources = (sources) => {
18407
18692
  };
18408
18693
 
18409
18694
  // src/views/Flows/Definitions/Common/One/contexts/OneMessagesContext.tsx
18410
- var import_jsx_runtime74 = require("react/jsx-runtime");
18695
+ var import_jsx_runtime75 = require("react/jsx-runtime");
18411
18696
  var getInitialMessage = () => [
18412
18697
  {
18413
18698
  authorId: "live-assistant",
@@ -18494,7 +18779,7 @@ var OneMessagesProvider = ({
18494
18779
  [events, isLoading, isError]
18495
18780
  );
18496
18781
  const hasAdditionalEvents = events.length !== eventsGroup.length;
18497
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
18782
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18498
18783
  OneMessagesContext.Provider,
18499
18784
  {
18500
18785
  value: {
@@ -20171,7 +20456,7 @@ var import_react101 = require("react");
20171
20456
  var import_react_router_dom15 = require("react-router-dom");
20172
20457
  var import_reactflow15 = require("reactflow");
20173
20458
  var import_design_system_react_components62 = require("@livechat/design-system-react-components");
20174
- var import_jsx_runtime100 = require("react/jsx-runtime");
20459
+ var import_jsx_runtime101 = require("react/jsx-runtime");
20175
20460
  function SwitcherControls({
20176
20461
  isDraft,
20177
20462
  hasRelatedWorkflow,
@@ -20214,7 +20499,7 @@ function SwitcherControls({
20214
20499
  }
20215
20500
  };
20216
20501
  if (!visibility.switcher || !isDraft && !hasRelatedWorkflow) {
20217
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_jsx_runtime100.Fragment, {});
20502
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_jsx_runtime101.Fragment, {});
20218
20503
  }
20219
20504
  const handleVersionClick = (id) => {
20220
20505
  if (id === "draft" && isDraft) {
@@ -20229,14 +20514,14 @@ function SwitcherControls({
20229
20514
  });
20230
20515
  focus();
20231
20516
  };
20232
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
20517
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
20233
20518
  import_reactflow15.Controls,
20234
20519
  {
20235
20520
  position: "top-center",
20236
20521
  showFitView: false,
20237
20522
  showInteractive: false,
20238
20523
  showZoom: false,
20239
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
20524
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
20240
20525
  import_design_system_react_components62.SegmentedControl,
20241
20526
  {
20242
20527
  buttons: renderControlOptions(),
@@ -20306,7 +20591,7 @@ var Edges_default = CustomEdge_default;
20306
20591
 
20307
20592
  // src/views/Flows/Definitions/Common/Builder/Editors/Visual/Diagram/Diagram.tsx
20308
20593
  var import_style = require("reactflow/dist/style.css");
20309
- var import_jsx_runtime102 = require("react/jsx-runtime");
20594
+ var import_jsx_runtime103 = require("react/jsx-runtime");
20310
20595
  var nodeConfig = {
20311
20596
  [import_developer_studio_api40.WorkflowDefinitionTaskType.http]: Node_default2,
20312
20597
  [import_developer_studio_api40.WorkflowDefinitionTaskType.forkJoin]: Node_default,
@@ -20364,10 +20649,10 @@ function Diagram({
20364
20649
  if (forkNode.data.forkTasks.length > 2) {
20365
20650
  const indexHelper = edge.id.split("-");
20366
20651
  const pathIndex = indexHelper[indexHelper.length - 1];
20367
- edge.data.label = /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
20652
+ edge.data.label = /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20368
20653
  import_design_system_react_components64.Button,
20369
20654
  {
20370
- icon: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_design_system_react_components64.Icon, { source: import_design_system_icons33.Delete }),
20655
+ icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_design_system_react_components64.Icon, { source: import_design_system_icons33.Delete }),
20371
20656
  kind: "plain",
20372
20657
  onClick: () => {
20373
20658
  forkNode.data.forkTasks.splice(pathIndex, 1);
@@ -20395,8 +20680,8 @@ function Diagram({
20395
20680
  if (!workflow.draft && isRawEditorVisible) {
20396
20681
  onRawEditorToggle && onRawEditorToggle();
20397
20682
  }
20398
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
20399
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
20683
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
20684
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
20400
20685
  import_reactflow17.default,
20401
20686
  {
20402
20687
  attributionPosition: "bottom-right",
@@ -20430,7 +20715,7 @@ function Diagram({
20430
20715
  onNodesChange,
20431
20716
  proOptions: { hideAttribution: true },
20432
20717
  children: [
20433
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
20718
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20434
20719
  SwitcherControls,
20435
20720
  {
20436
20721
  hasRelatedWorkflow: Boolean(workflow.related_workflow_id),
@@ -20438,7 +20723,7 @@ function Diagram({
20438
20723
  relatedWorkflowId: workflow.related_workflow_id
20439
20724
  }
20440
20725
  ),
20441
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
20726
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20442
20727
  CustomControls_default,
20443
20728
  {
20444
20729
  isRawEditorVisible,
@@ -20454,7 +20739,7 @@ function Diagram({
20454
20739
  }
20455
20740
  }
20456
20741
  ),
20457
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
20742
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20458
20743
  import_reactflow17.Background,
20459
20744
  {
20460
20745
  color: `var(${import_design_system_react_components64.DesignToken.SurfaceSecondaryActive})`,
@@ -20465,7 +20750,7 @@ function Diagram({
20465
20750
  ]
20466
20751
  }
20467
20752
  ),
20468
- previewModalVisible.isVisible ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
20753
+ previewModalVisible.isVisible ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
20469
20754
  Preview_default,
20470
20755
  {
20471
20756
  onApply: () => {
@@ -20547,7 +20832,7 @@ function WorkflowBuilder() {
20547
20832
  var Builder_default = WorkflowBuilder;
20548
20833
 
20549
20834
  // src/views/Flows/Definitions/Common/Modals/Delete.tsx
20550
- var import_jsx_runtime105 = require("react/jsx-runtime");
20835
+ var import_jsx_runtime106 = require("react/jsx-runtime");
20551
20836
  var ModalContent2 = newStyled.div`
20552
20837
  display: grid;
20553
20838
  align-items: center;
@@ -20586,8 +20871,8 @@ function WorkflowDeleteModal({
20586
20871
  const amplitudeWorkflowsJourney = workflowsBlockAmplitudeJourneyFactory(
20587
20872
  user.meta.email
20588
20873
  );
20589
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_design_system_react_components66.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(ModalContent2, { children: [
20590
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
20874
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_design_system_react_components66.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(ModalContent2, { children: [
20875
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20591
20876
  import_design_system_react_components66.Icon,
20592
20877
  {
20593
20878
  customColor: `var(${import_design_system_react_components66.DesignToken.ContentBasicDisabled})`,
@@ -20595,20 +20880,20 @@ function WorkflowDeleteModal({
20595
20880
  source: import_design_system_icons34.Error
20596
20881
  }
20597
20882
  ),
20598
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_design_system_react_components66.Heading, { as: "h2", size: "md", children: [
20883
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_design_system_react_components66.Heading, { as: "h2", size: "md", children: [
20599
20884
  "You are",
20600
20885
  " ",
20601
20886
  version === "draft" ? `discarding a ${version}` : `deleting a ${version}`
20602
20887
  ] }),
20603
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_design_system_react_components66.Text, { size: "md", children: [
20888
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_design_system_react_components66.Text, { size: "md", children: [
20604
20889
  "You can\u2019t restore a",
20605
20890
  " ",
20606
20891
  version === "draft" ? `discarded ${version}` : `deleted ${version}`,
20607
20892
  ". Are you sure you want to continue?"
20608
20893
  ] }),
20609
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(ModalFooter, { children: [
20610
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_design_system_react_components66.Button, { kind: "secondary", onClick: onClose, children: "Cancel" }),
20611
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
20894
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(ModalFooter, { children: [
20895
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_design_system_react_components66.Button, { kind: "secondary", onClick: onClose, children: "Cancel" }),
20896
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20612
20897
  import_design_system_react_components66.Button,
20613
20898
  {
20614
20899
  kind: "destructive",
@@ -20637,7 +20922,7 @@ var import_react106 = require("react");
20637
20922
  var import_react_router_dom17 = require("react-router-dom");
20638
20923
  var import_design_system_icons35 = require("@livechat/design-system-icons");
20639
20924
  var import_design_system_react_components67 = require("@livechat/design-system-react-components");
20640
- var import_jsx_runtime106 = require("react/jsx-runtime");
20925
+ var import_jsx_runtime107 = require("react/jsx-runtime");
20641
20926
  var ModalContent3 = newStyled.div`
20642
20927
  display: grid;
20643
20928
  align-items: center;
@@ -20673,8 +20958,8 @@ function WorkflowEditModal({ onClose }) {
20673
20958
  const amplitudeWorkflowsJourney = workflowsBlockAmplitudeJourneyFactory(
20674
20959
  user.meta.email
20675
20960
  );
20676
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_design_system_react_components67.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(ModalContent3, { children: [
20677
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20961
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components67.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(ModalContent3, { children: [
20962
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20678
20963
  import_design_system_react_components67.Icon,
20679
20964
  {
20680
20965
  customColor: `var(${import_design_system_react_components67.DesignToken.ContentBasicDisabled})`,
@@ -20682,10 +20967,10 @@ function WorkflowEditModal({ onClose }) {
20682
20967
  source: import_design_system_icons35.Error
20683
20968
  }
20684
20969
  ),
20685
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_design_system_react_components67.Heading, { as: "h2", size: "md", children: "You have an existing draft" }),
20686
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_design_system_react_components67.Text, { size: "md", children: "You already have an existing draft, by editing the published version you can overwrite the current draft for this workflow. Do you want to continue?" }),
20687
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(ModalFooter2, { children: [
20688
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20970
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components67.Heading, { as: "h2", size: "md", children: "You have an existing draft" }),
20971
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components67.Text, { size: "md", children: "You already have an existing draft, by editing the published version you can overwrite the current draft for this workflow. Do you want to continue?" }),
20972
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(ModalFooter2, { children: [
20973
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20689
20974
  import_design_system_react_components67.Button,
20690
20975
  {
20691
20976
  kind: "secondary",
@@ -20698,7 +20983,7 @@ function WorkflowEditModal({ onClose }) {
20698
20983
  children: "Edit existing draft"
20699
20984
  }
20700
20985
  ),
20701
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
20986
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
20702
20987
  import_design_system_react_components67.Button,
20703
20988
  {
20704
20989
  kind: "destructive",
@@ -20717,7 +21002,7 @@ function WorkflowEditModal({ onClose }) {
20717
21002
  // src/views/Flows/Definitions/Common/Modals/Publish.tsx
20718
21003
  var import_design_system_icons36 = require("@livechat/design-system-icons");
20719
21004
  var import_design_system_react_components68 = require("@livechat/design-system-react-components");
20720
- var import_jsx_runtime107 = require("react/jsx-runtime");
21005
+ var import_jsx_runtime108 = require("react/jsx-runtime");
20721
21006
  var ModalContent4 = newStyled.div`
20722
21007
  display: grid;
20723
21008
  align-items: center;
@@ -20749,8 +21034,8 @@ function WorkflowPublishModal({
20749
21034
  },
20750
21035
  publishDraft
20751
21036
  } = useWorkflowContext();
20752
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components68.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(ModalContent4, { children: [
20753
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
21037
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_design_system_react_components68.Modal, { heading: true, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(ModalContent4, { children: [
21038
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20754
21039
  import_design_system_react_components68.Icon,
20755
21040
  {
20756
21041
  customColor: `var(${import_design_system_react_components68.DesignToken.ContentBasicDisabled})`,
@@ -20758,11 +21043,11 @@ function WorkflowPublishModal({
20758
21043
  source: import_design_system_icons36.Error
20759
21044
  }
20760
21045
  ),
20761
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components68.Heading, { as: "h2", size: "md", children: "You are publishing a workflow" }),
20762
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components68.Text, { size: "md", children: "Once published, this will be the working version of your workflow and will\xA0be\xA0automatically set to active." }),
20763
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(ModalFooter3, { children: [
20764
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_design_system_react_components68.Button, { kind: "secondary", onClick: onClose, children: "Cancel" }),
20765
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
21046
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_design_system_react_components68.Heading, { as: "h2", size: "md", children: "You are publishing a workflow" }),
21047
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_design_system_react_components68.Text, { size: "md", children: "Once published, this will be the working version of your workflow and will\xA0be\xA0automatically set to active." }),
21048
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(ModalFooter3, { children: [
21049
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_design_system_react_components68.Button, { kind: "secondary", onClick: onClose, children: "Cancel" }),
21050
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
20766
21051
  import_design_system_react_components68.Button,
20767
21052
  {
20768
21053
  kind: "primary",
@@ -24303,7 +24588,7 @@ var import_developer_studio_ui_react50 = require("@livechat/developer-studio-ui-
24303
24588
  var import_react126 = require("react");
24304
24589
  var import_design_system_icons44 = require("@livechat/design-system-icons");
24305
24590
  var import_design_system_react_components83 = require("@livechat/design-system-react-components");
24306
- var import_jsx_runtime126 = require("react/jsx-runtime");
24591
+ var import_jsx_runtime127 = require("react/jsx-runtime");
24307
24592
  function WorkflowStatusFilter({
24308
24593
  handleStatus,
24309
24594
  status
@@ -24335,7 +24620,7 @@ function WorkflowStatusFilter({
24335
24620
  }
24336
24621
  }
24337
24622
  ];
24338
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
24623
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
24339
24624
  import_design_system_react_components83.ActionMenu,
24340
24625
  {
24341
24626
  onClose: () => {
@@ -24343,10 +24628,10 @@ function WorkflowStatusFilter({
24343
24628
  },
24344
24629
  options: items,
24345
24630
  placement: "bottom",
24346
- triggerRenderer: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
24631
+ triggerRenderer: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
24347
24632
  import_design_system_react_components83.Button,
24348
24633
  {
24349
- icon: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_design_system_react_components83.Icon, { source: import_design_system_icons44.ToggleLeft }),
24634
+ icon: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_design_system_react_components83.Icon, { source: import_design_system_icons44.ToggleLeft }),
24350
24635
  kind: "secondary",
24351
24636
  onClick: () => {
24352
24637
  setIsVisible(!isVisible);
@@ -24737,7 +25022,7 @@ function WorkflowList() {
24737
25022
  var List_default2 = WorkflowList;
24738
25023
 
24739
25024
  // src/views/Flows/Definitions/index.tsx
24740
- var import_jsx_runtime131 = require("react/jsx-runtime");
25025
+ var import_jsx_runtime132 = require("react/jsx-runtime");
24741
25026
  function Workflows() {
24742
25027
  const navigate = (0, import_react_router_dom31.useNavigate)();
24743
25028
  const { isUserFetching, userHasAccessToWorkflows } = (0, import_react132.useContext)(UserContext);
@@ -24749,10 +25034,10 @@ function Workflows() {
24749
25034
  navigate("/");
24750
25035
  }
24751
25036
  }, [navigate, isUserFetching, userHasAccessToWorkflows]);
24752
- return /* @__PURE__ */ (0, import_jsx_runtime131.jsxs)(import_react_router_dom31.Routes, { children: [
24753
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_react_router_dom31.Navigate, { replace: true, to: "list" }), path: "" }),
24754
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(List_default2, {}), path: "list/*" }),
24755
- /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(Edit_default2, {}), path: ":id/*" })
25037
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_react_router_dom31.Routes, { children: [
25038
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom31.Navigate, { replace: true, to: "list" }), path: "" }),
25039
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(List_default2, {}), path: "list/*" }),
25040
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom31.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Edit_default2, {}), path: ":id/*" })
24756
25041
  ] });
24757
25042
  }
24758
25043
  var Definitions_default = Workflows;
@@ -24870,11 +25155,11 @@ function Waitlist() {
24870
25155
  var Waitlist_default = Waitlist;
24871
25156
 
24872
25157
  // src/views/Flows/index.tsx
24873
- var import_jsx_runtime133 = require("react/jsx-runtime");
25158
+ var import_jsx_runtime134 = require("react/jsx-runtime");
24874
25159
  function Flows() {
24875
- return /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(import_react_router_dom33.Routes, { children: [
24876
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Definitions_default, {}), path: "*" }),
24877
- /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(Waitlist_default, {}), path: "/waitlist" })
25160
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_react_router_dom33.Routes, { children: [
25161
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Definitions_default, {}), path: "*" }),
25162
+ /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(Waitlist_default, {}), path: "/waitlist" })
24878
25163
  ] });
24879
25164
  }
24880
25165
  var Flows_default = Flows;
@@ -24888,7 +25173,7 @@ var import_developer_studio_ui_react79 = require("@livechat/developer-studio-ui-
24888
25173
  // src/views/Settings/Integrations/Accounts/Action.tsx
24889
25174
  var import_developer_studio_api46 = require("@livechat/developer-studio-api");
24890
25175
  var import_developer_studio_ui_react53 = require("@livechat/developer-studio-ui-react");
24891
- var import_jsx_runtime134 = require("react/jsx-runtime");
25176
+ var import_jsx_runtime135 = require("react/jsx-runtime");
24892
25177
  function AccountsAction(props) {
24893
25178
  var _a;
24894
25179
  const match2 = (0, import_developer_studio_ui_react53.useMatch)();
@@ -24896,7 +25181,7 @@ function AccountsAction(props) {
24896
25181
  if (!action) {
24897
25182
  throw new Error("Invalid action");
24898
25183
  }
24899
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
25184
+ return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
24900
25185
  IntegrationAction_default,
24901
25186
  {
24902
25187
  action,
@@ -24939,14 +25224,14 @@ var Action_default5 = AccountsAction;
24939
25224
 
24940
25225
  // src/views/Settings/Integrations/Accounts/Callback.tsx
24941
25226
  var import_developer_studio_ui_react54 = require("@livechat/developer-studio-ui-react");
24942
- var import_jsx_runtime135 = require("react/jsx-runtime");
25227
+ var import_jsx_runtime136 = require("react/jsx-runtime");
24943
25228
  function AccountsCallback() {
24944
25229
  const match2 = (0, import_developer_studio_ui_react54.useMatch)();
24945
25230
  const action = match2.params.action;
24946
25231
  if (!action) {
24947
25232
  throw new Error("Invalid action");
24948
25233
  }
24949
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
25234
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
24950
25235
  IntegrationCallback_default,
24951
25236
  {
24952
25237
  handler: (output) => accountsActionHandlers()[action](output)
@@ -24958,7 +25243,7 @@ var Callback_default = AccountsCallback;
24958
25243
  // src/views/Settings/Integrations/BigCommerce/Callback.tsx
24959
25244
  var import_react135 = require("react");
24960
25245
  var import_developer_studio_ui_react55 = require("@livechat/developer-studio-ui-react");
24961
- var import_jsx_runtime136 = require("react/jsx-runtime");
25246
+ var import_jsx_runtime137 = require("react/jsx-runtime");
24962
25247
  function BigCommerceCallback() {
24963
25248
  const { login } = (0, import_react135.useContext)(AuthContext);
24964
25249
  const match2 = (0, import_developer_studio_ui_react55.useMatch)();
@@ -24966,7 +25251,7 @@ function BigCommerceCallback() {
24966
25251
  if (!action) {
24967
25252
  throw new Error("Invalid action");
24968
25253
  }
24969
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
25254
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
24970
25255
  IntegrationCallback_default,
24971
25256
  {
24972
25257
  handler: (output) => bigCommerceActionHandlers(login)[action](output)
@@ -25471,7 +25756,7 @@ var appRepositoryBlockAmplitudeJourneyFactory = (email) => ({
25471
25756
  });
25472
25757
 
25473
25758
  // src/views/Settings/Integrations/GitHub/Action.tsx
25474
- var import_jsx_runtime142 = require("react/jsx-runtime");
25759
+ var import_jsx_runtime143 = require("react/jsx-runtime");
25475
25760
  function GitHubAction(props) {
25476
25761
  var _a;
25477
25762
  const { login } = (0, import_react141.useContext)(AuthContext);
@@ -25481,7 +25766,7 @@ function GitHubAction(props) {
25481
25766
  if (!action) {
25482
25767
  throw new Error("Invalid action");
25483
25768
  }
25484
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
25769
+ return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
25485
25770
  IntegrationAction_default,
25486
25771
  {
25487
25772
  action,
@@ -25552,7 +25837,7 @@ var Action_default6 = GitHubAction;
25552
25837
  // src/views/Settings/Integrations/GitHub/Callback.tsx
25553
25838
  var import_react142 = require("react");
25554
25839
  var import_developer_studio_ui_react61 = require("@livechat/developer-studio-ui-react");
25555
- var import_jsx_runtime143 = require("react/jsx-runtime");
25840
+ var import_jsx_runtime144 = require("react/jsx-runtime");
25556
25841
  function GithubCallback() {
25557
25842
  const { login } = (0, import_react142.useContext)(AuthContext);
25558
25843
  const match2 = (0, import_developer_studio_ui_react61.useMatch)();
@@ -25561,7 +25846,7 @@ function GithubCallback() {
25561
25846
  if (!action) {
25562
25847
  throw new Error("Invalid action");
25563
25848
  }
25564
- return /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
25849
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
25565
25850
  IntegrationCallback_default,
25566
25851
  {
25567
25852
  handler: (output) => gitHubActionHandlers(login, user.meta.email)[action](
@@ -25927,7 +26212,7 @@ var Status_default2 = GitHubStatus;
25927
26212
  // src/views/Settings/Integrations/HubSpot/Callback.tsx
25928
26213
  var import_react147 = require("react");
25929
26214
  var import_developer_studio_ui_react63 = require("@livechat/developer-studio-ui-react");
25930
- var import_jsx_runtime145 = require("react/jsx-runtime");
26215
+ var import_jsx_runtime146 = require("react/jsx-runtime");
25931
26216
  function HubSpotCallback() {
25932
26217
  const { login } = (0, import_react147.useContext)(AuthContext);
25933
26218
  const match2 = (0, import_developer_studio_ui_react63.useMatch)();
@@ -25935,7 +26220,7 @@ function HubSpotCallback() {
25935
26220
  if (!action) {
25936
26221
  throw new Error("Invalid action");
25937
26222
  }
25938
- return /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
26223
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
25939
26224
  IntegrationCallback_default,
25940
26225
  {
25941
26226
  handler: (output) => hubSpotActionHandlers(login)[action](output)
@@ -26037,7 +26322,7 @@ var Status_default3 = HubspotStatus;
26037
26322
  // src/views/Settings/Integrations/Mailchimp/Callback.tsx
26038
26323
  var import_react149 = require("react");
26039
26324
  var import_developer_studio_ui_react64 = require("@livechat/developer-studio-ui-react");
26040
- var import_jsx_runtime147 = require("react/jsx-runtime");
26325
+ var import_jsx_runtime148 = require("react/jsx-runtime");
26041
26326
  function MailchimpCallback() {
26042
26327
  const { login } = (0, import_react149.useContext)(AuthContext);
26043
26328
  const match2 = (0, import_developer_studio_ui_react64.useMatch)();
@@ -26045,7 +26330,7 @@ function MailchimpCallback() {
26045
26330
  if (!action) {
26046
26331
  throw new Error("Invalid action");
26047
26332
  }
26048
- return /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
26333
+ return /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
26049
26334
  IntegrationCallback_default,
26050
26335
  {
26051
26336
  handler: (output) => mailchimpActionHandlers(login)[action](output)
@@ -26148,7 +26433,7 @@ var Status_default4 = MailchimpStatus;
26148
26433
  var import_react151 = require("react");
26149
26434
  var import_developer_studio_api55 = require("@livechat/developer-studio-api");
26150
26435
  var import_developer_studio_ui_react65 = require("@livechat/developer-studio-ui-react");
26151
- var import_jsx_runtime149 = require("react/jsx-runtime");
26436
+ var import_jsx_runtime150 = require("react/jsx-runtime");
26152
26437
  function NeonAction(props) {
26153
26438
  var _a;
26154
26439
  const { login } = (0, import_react151.useContext)(AuthContext);
@@ -26157,7 +26442,7 @@ function NeonAction(props) {
26157
26442
  if (!action) {
26158
26443
  throw new Error("Invalid action");
26159
26444
  }
26160
- return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
26445
+ return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
26161
26446
  IntegrationAction_default,
26162
26447
  {
26163
26448
  action,
@@ -26204,7 +26489,7 @@ var Action_default7 = NeonAction;
26204
26489
  // src/views/Settings/Integrations/Neon/Callback.tsx
26205
26490
  var import_react152 = require("react");
26206
26491
  var import_developer_studio_ui_react66 = require("@livechat/developer-studio-ui-react");
26207
- var import_jsx_runtime150 = require("react/jsx-runtime");
26492
+ var import_jsx_runtime151 = require("react/jsx-runtime");
26208
26493
  function NeonCallback() {
26209
26494
  const { login } = (0, import_react152.useContext)(AuthContext);
26210
26495
  const match2 = (0, import_developer_studio_ui_react66.useMatch)();
@@ -26212,7 +26497,7 @@ function NeonCallback() {
26212
26497
  if (!action) {
26213
26498
  throw new Error("Invalid action");
26214
26499
  }
26215
- return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
26500
+ return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
26216
26501
  IntegrationCallback_default,
26217
26502
  {
26218
26503
  handler: (output) => neonActionHandlers(login)[action](output)
@@ -26469,7 +26754,7 @@ var appDeploymentBlockAmplitudeJourneyFactory = (email) => ({
26469
26754
  });
26470
26755
 
26471
26756
  // src/views/Settings/Integrations/Netlify/Action.tsx
26472
- var import_jsx_runtime152 = require("react/jsx-runtime");
26757
+ var import_jsx_runtime153 = require("react/jsx-runtime");
26473
26758
  function NetlifyAction(props) {
26474
26759
  var _a;
26475
26760
  const { login } = (0, import_react157.useContext)(AuthContext);
@@ -26479,7 +26764,7 @@ function NetlifyAction(props) {
26479
26764
  if (!action) {
26480
26765
  throw new Error("Invalid action");
26481
26766
  }
26482
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
26767
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
26483
26768
  IntegrationAction_default,
26484
26769
  {
26485
26770
  action,
@@ -26562,7 +26847,7 @@ var Action_default8 = NetlifyAction;
26562
26847
  // src/views/Settings/Integrations/Netlify/Callback.tsx
26563
26848
  var import_react158 = require("react");
26564
26849
  var import_developer_studio_ui_react69 = require("@livechat/developer-studio-ui-react");
26565
- var import_jsx_runtime153 = require("react/jsx-runtime");
26850
+ var import_jsx_runtime154 = require("react/jsx-runtime");
26566
26851
  function NetlifyCallback() {
26567
26852
  const match2 = (0, import_developer_studio_ui_react69.useMatch)();
26568
26853
  const { login } = (0, import_react158.useContext)(AuthContext);
@@ -26571,7 +26856,7 @@ function NetlifyCallback() {
26571
26856
  if (!action) {
26572
26857
  throw new Error("Invalid action");
26573
26858
  }
26574
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
26859
+ return /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
26575
26860
  IntegrationCallback_default,
26576
26861
  {
26577
26862
  handler: (output) => netlifyActionHandlers(login, user.meta.email)[action](output)
@@ -26966,7 +27251,7 @@ var Status_default6 = NetlifyStatus;
26966
27251
  // src/views/Settings/Integrations/Shopify/Callback.tsx
26967
27252
  var import_react162 = require("react");
26968
27253
  var import_developer_studio_ui_react71 = require("@livechat/developer-studio-ui-react");
26969
- var import_jsx_runtime155 = require("react/jsx-runtime");
27254
+ var import_jsx_runtime156 = require("react/jsx-runtime");
26970
27255
  function ShopifyCallback() {
26971
27256
  const { login } = (0, import_react162.useContext)(AuthContext);
26972
27257
  const match2 = (0, import_developer_studio_ui_react71.useMatch)();
@@ -26974,7 +27259,7 @@ function ShopifyCallback() {
26974
27259
  if (!action) {
26975
27260
  throw new Error("Invalid action");
26976
27261
  }
26977
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
27262
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
26978
27263
  IntegrationCallback_default,
26979
27264
  {
26980
27265
  handler: (output) => shopifyActionHandlers(login)[action](output)
@@ -27201,7 +27486,7 @@ var Status_default7 = (0, import_design_system4.notificationConnect)(ShopifyStat
27201
27486
  var import_react164 = require("react");
27202
27487
  var import_developer_studio_api67 = require("@livechat/developer-studio-api");
27203
27488
  var import_developer_studio_ui_react73 = require("@livechat/developer-studio-ui-react");
27204
- var import_jsx_runtime157 = require("react/jsx-runtime");
27489
+ var import_jsx_runtime158 = require("react/jsx-runtime");
27205
27490
  function TextAction(props) {
27206
27491
  var _a;
27207
27492
  const { login } = (0, import_react164.useContext)(AuthContext);
@@ -27210,7 +27495,7 @@ function TextAction(props) {
27210
27495
  if (!action) {
27211
27496
  throw new Error("Invalid action");
27212
27497
  }
27213
- return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
27498
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
27214
27499
  IntegrationAction_default,
27215
27500
  {
27216
27501
  action,
@@ -27253,7 +27538,7 @@ var Action_default9 = TextAction;
27253
27538
  // src/views/Settings/Integrations/Text/Callback.tsx
27254
27539
  var import_react165 = require("react");
27255
27540
  var import_developer_studio_ui_react74 = require("@livechat/developer-studio-ui-react");
27256
- var import_jsx_runtime158 = require("react/jsx-runtime");
27541
+ var import_jsx_runtime159 = require("react/jsx-runtime");
27257
27542
  function TextCallback() {
27258
27543
  const { login } = (0, import_react165.useContext)(AuthContext);
27259
27544
  const match2 = (0, import_developer_studio_ui_react74.useMatch)();
@@ -27261,7 +27546,7 @@ function TextCallback() {
27261
27546
  if (!action) {
27262
27547
  throw new Error("Invalid action");
27263
27548
  }
27264
- return /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
27549
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
27265
27550
  IntegrationCallback_default,
27266
27551
  {
27267
27552
  handler: (output) => textActionHandlers(login)[action](output)
@@ -27353,7 +27638,7 @@ var Status_default8 = TextStatus;
27353
27638
  var import_react167 = require("react");
27354
27639
  var import_developer_studio_api69 = require("@livechat/developer-studio-api");
27355
27640
  var import_developer_studio_ui_react76 = require("@livechat/developer-studio-ui-react");
27356
- var import_jsx_runtime160 = require("react/jsx-runtime");
27641
+ var import_jsx_runtime161 = require("react/jsx-runtime");
27357
27642
  function VercelAction(props) {
27358
27643
  var _a;
27359
27644
  const { login } = (0, import_react167.useContext)(AuthContext);
@@ -27363,7 +27648,7 @@ function VercelAction(props) {
27363
27648
  if (!action) {
27364
27649
  throw new Error("Invalid action");
27365
27650
  }
27366
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
27651
+ return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
27367
27652
  IntegrationAction_default,
27368
27653
  {
27369
27654
  action,
@@ -27447,7 +27732,7 @@ var Action_default10 = VercelAction;
27447
27732
  // src/views/Settings/Integrations/Vercel/Callback.tsx
27448
27733
  var import_react168 = require("react");
27449
27734
  var import_developer_studio_ui_react77 = require("@livechat/developer-studio-ui-react");
27450
- var import_jsx_runtime161 = require("react/jsx-runtime");
27735
+ var import_jsx_runtime162 = require("react/jsx-runtime");
27451
27736
  function VercelCallback() {
27452
27737
  const { login } = (0, import_react168.useContext)(AuthContext);
27453
27738
  const match2 = (0, import_developer_studio_ui_react77.useMatch)();
@@ -27456,7 +27741,7 @@ function VercelCallback() {
27456
27741
  if (!action) {
27457
27742
  throw new Error("Invalid action");
27458
27743
  }
27459
- return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
27744
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
27460
27745
  IntegrationCallback_default,
27461
27746
  {
27462
27747
  handler: (output) => vercelActionHandlers(login, user.meta.email)[action](
@@ -27785,11 +28070,11 @@ function VercelStatus() {
27785
28070
  var Status_default9 = VercelStatus;
27786
28071
 
27787
28072
  // src/views/Settings/index.tsx
27788
- var import_jsx_runtime163 = require("react/jsx-runtime");
28073
+ var import_jsx_runtime164 = require("react/jsx-runtime");
27789
28074
  function SettingsSubNav() {
27790
28075
  const { pathname } = (0, import_react_router_dom34.useLocation)();
27791
28076
  const { userHasAccessToWorkflows } = useUserContext();
27792
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(
28077
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(
27793
28078
  import_design_system_react_components101.SideNavigationGroup,
27794
28079
  {
27795
28080
  className: "navigation-group",
@@ -27797,7 +28082,7 @@ function SettingsSubNav() {
27797
28082
  label: "Integrations",
27798
28083
  shouldOpenOnInit: pathname.includes("integrations"),
27799
28084
  children: [
27800
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28085
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27801
28086
  import_developer_studio_ui_react79.SubNavSection,
27802
28087
  {
27803
28088
  dataCy: `${import_developer_studio_api73.IntegrationNames.GitHub}-option`,
@@ -27805,7 +28090,7 @@ function SettingsSubNav() {
27805
28090
  path: "/settings/integrations/github/status"
27806
28091
  }
27807
28092
  ),
27808
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28093
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27809
28094
  import_developer_studio_ui_react79.SubNavSection,
27810
28095
  {
27811
28096
  dataCy: `${import_developer_studio_api73.IntegrationNames.Netlify}-option`,
@@ -27813,7 +28098,7 @@ function SettingsSubNav() {
27813
28098
  path: "/settings/integrations/netlify/status"
27814
28099
  }
27815
28100
  ),
27816
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28101
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27817
28102
  import_developer_studio_ui_react79.SubNavSection,
27818
28103
  {
27819
28104
  dataCy: `${import_developer_studio_api73.IntegrationNames.Vercel}-option`,
@@ -27821,7 +28106,7 @@ function SettingsSubNav() {
27821
28106
  path: "/settings/integrations/vercel/status"
27822
28107
  }
27823
28108
  ),
27824
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28109
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27825
28110
  import_developer_studio_ui_react79.SubNavSection,
27826
28111
  {
27827
28112
  dataCy: `${import_developer_studio_api73.IntegrationNames.Neon}-option`,
@@ -27829,8 +28114,8 @@ function SettingsSubNav() {
27829
28114
  path: "/settings/integrations/neon/status"
27830
28115
  }
27831
28116
  ),
27832
- userHasAccessToWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_jsx_runtime163.Fragment, { children: [
27833
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28117
+ userHasAccessToWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(import_jsx_runtime164.Fragment, { children: [
28118
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27834
28119
  import_developer_studio_ui_react79.SubNavSection,
27835
28120
  {
27836
28121
  dataCy: `${import_developer_studio_api73.IntegrationNames.Mailchimp}-option`,
@@ -27838,7 +28123,7 @@ function SettingsSubNav() {
27838
28123
  path: "/settings/integrations/mailchimp/status"
27839
28124
  }
27840
28125
  ),
27841
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28126
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27842
28127
  import_developer_studio_ui_react79.SubNavSection,
27843
28128
  {
27844
28129
  dataCy: `${import_developer_studio_api73.IntegrationNames.Shopify}-option`,
@@ -27846,7 +28131,7 @@ function SettingsSubNav() {
27846
28131
  path: "/settings/integrations/shopify/status"
27847
28132
  }
27848
28133
  ),
27849
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28134
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27850
28135
  import_developer_studio_ui_react79.SubNavSection,
27851
28136
  {
27852
28137
  dataCy: `${import_developer_studio_api73.IntegrationNames.HubSpot}-option`,
@@ -27854,7 +28139,7 @@ function SettingsSubNav() {
27854
28139
  path: "/settings/integrations/hubspot/status"
27855
28140
  }
27856
28141
  ),
27857
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28142
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27858
28143
  import_developer_studio_ui_react79.SubNavSection,
27859
28144
  {
27860
28145
  dataCy: `${import_developer_studio_api73.IntegrationNames.BigCommerce}-option`,
@@ -27862,7 +28147,7 @@ function SettingsSubNav() {
27862
28147
  path: "/settings/integrations/bigcommerce/status"
27863
28148
  }
27864
28149
  ),
27865
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28150
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27866
28151
  import_developer_studio_ui_react79.SubNavSection,
27867
28152
  {
27868
28153
  dataCy: `${import_developer_studio_api73.IntegrationNames.Text}-option`,
@@ -27876,166 +28161,166 @@ function SettingsSubNav() {
27876
28161
  );
27877
28162
  }
27878
28163
  function Settings() {
27879
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsxs)(import_react_router_dom34.Routes, { children: [
27880
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28164
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsxs)(import_react_router_dom34.Routes, { children: [
28165
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27881
28166
  import_react_router_dom34.Route,
27882
28167
  {
27883
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Navigate, { replace: true, to: "integrations/github/status" }),
28168
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Navigate, { replace: true, to: "integrations/github/status" }),
27884
28169
  path: "/"
27885
28170
  }
27886
28171
  ),
27887
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default2, {}), path: "integrations/github/status" }),
27888
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28172
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default2, {}), path: "integrations/github/status" }),
28173
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27889
28174
  import_react_router_dom34.Route,
27890
28175
  {
27891
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default6, {}),
28176
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default6, {}),
27892
28177
  path: "integrations/github/action/:action/:data?/:context?"
27893
28178
  }
27894
28179
  ),
27895
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28180
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27896
28181
  import_react_router_dom34.Route,
27897
28182
  {
27898
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default3, {}),
28183
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default3, {}),
27899
28184
  path: "integrations/github/callback/:action"
27900
28185
  }
27901
28186
  ),
27902
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default6, {}), path: "integrations/netlify/status" }),
27903
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28187
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default6, {}), path: "integrations/netlify/status" }),
28188
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27904
28189
  import_react_router_dom34.Route,
27905
28190
  {
27906
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default8, {}),
28191
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default8, {}),
27907
28192
  path: "integrations/netlify/action/:action/:data?/:context?"
27908
28193
  }
27909
28194
  ),
27910
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28195
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27911
28196
  import_react_router_dom34.Route,
27912
28197
  {
27913
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default7, {}),
28198
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default7, {}),
27914
28199
  path: "integrations/netlify/callback/:action"
27915
28200
  }
27916
28201
  ),
27917
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default9, {}), path: "integrations/vercel/status" }),
27918
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28202
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default9, {}), path: "integrations/vercel/status" }),
28203
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27919
28204
  import_react_router_dom34.Route,
27920
28205
  {
27921
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default10, {}),
28206
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default10, {}),
27922
28207
  path: "integrations/vercel/action/:action/:data?/:context?"
27923
28208
  }
27924
28209
  ),
27925
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28210
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27926
28211
  import_react_router_dom34.Route,
27927
28212
  {
27928
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default10, {}),
28213
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default10, {}),
27929
28214
  path: "integrations/vercel/callback/:action"
27930
28215
  }
27931
28216
  ),
27932
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default5, {}), path: "integrations/neon/status" }),
27933
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28217
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default5, {}), path: "integrations/neon/status" }),
28218
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27934
28219
  import_react_router_dom34.Route,
27935
28220
  {
27936
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default7, {}),
28221
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default7, {}),
27937
28222
  path: "integrations/neon/action/:action/:data?/:context?"
27938
28223
  }
27939
28224
  ),
27940
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28225
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27941
28226
  import_react_router_dom34.Route,
27942
28227
  {
27943
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default6, {}),
28228
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default6, {}),
27944
28229
  path: "integrations/neon/callback/:action"
27945
28230
  }
27946
28231
  ),
27947
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default4, {}), path: "integrations/mailchimp/status" }),
27948
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28232
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default4, {}), path: "integrations/mailchimp/status" }),
28233
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27949
28234
  import_react_router_dom34.Route,
27950
28235
  {
27951
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default3, {}),
28236
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default3, {}),
27952
28237
  path: "integrations/mailchimp/action/:action/:data?/:context?"
27953
28238
  }
27954
28239
  ),
27955
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28240
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27956
28241
  import_react_router_dom34.Route,
27957
28242
  {
27958
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default5, {}),
28243
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default5, {}),
27959
28244
  path: "integrations/mailchimp/callback/:action"
27960
28245
  }
27961
28246
  ),
27962
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default7, {}), path: "integrations/shopify/status" }),
27963
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28247
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default7, {}), path: "integrations/shopify/status" }),
28248
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27964
28249
  import_react_router_dom34.Route,
27965
28250
  {
27966
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default4, {}),
28251
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default4, {}),
27967
28252
  path: "integrations/shopify/action/:action/:data?/:context?"
27968
28253
  }
27969
28254
  ),
27970
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28255
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27971
28256
  import_react_router_dom34.Route,
27972
28257
  {
27973
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default8, {}),
28258
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default8, {}),
27974
28259
  path: "integrations/shopify/callback/:action"
27975
28260
  }
27976
28261
  ),
27977
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default3, {}), path: "integrations/hubspot/status" }),
27978
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28262
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default3, {}), path: "integrations/hubspot/status" }),
28263
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27979
28264
  import_react_router_dom34.Route,
27980
28265
  {
27981
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default2, {}),
28266
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default2, {}),
27982
28267
  path: "integrations/hubspot/action/:action/:data?/:context?"
27983
28268
  }
27984
28269
  ),
27985
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28270
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27986
28271
  import_react_router_dom34.Route,
27987
28272
  {
27988
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default4, {}),
28273
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default4, {}),
27989
28274
  path: "integrations/hubspot/callback/:action"
27990
28275
  }
27991
28276
  ),
27992
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28277
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27993
28278
  import_react_router_dom34.Route,
27994
28279
  {
27995
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default, {}),
28280
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default, {}),
27996
28281
  path: "integrations/bigcommerce/status"
27997
28282
  }
27998
28283
  ),
27999
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28284
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28000
28285
  import_react_router_dom34.Route,
28001
28286
  {
28002
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default, {}),
28287
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default, {}),
28003
28288
  path: "integrations/bigcommerce/action/:action/:data?/:context?"
28004
28289
  }
28005
28290
  ),
28006
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28291
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28007
28292
  import_react_router_dom34.Route,
28008
28293
  {
28009
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default2, {}),
28294
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default2, {}),
28010
28295
  path: "integrations/bigcommerce/callback/:action"
28011
28296
  }
28012
28297
  ),
28013
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Status_default8, {}), path: "integrations/text/status" }),
28014
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28298
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(import_react_router_dom34.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Status_default8, {}), path: "integrations/text/status" }),
28299
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28015
28300
  import_react_router_dom34.Route,
28016
28301
  {
28017
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default9, {}),
28302
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default9, {}),
28018
28303
  path: "integrations/text/action/:action/:data?/:context?"
28019
28304
  }
28020
28305
  ),
28021
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28306
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28022
28307
  import_react_router_dom34.Route,
28023
28308
  {
28024
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default9, {}),
28309
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default9, {}),
28025
28310
  path: "integrations/text/callback/:action"
28026
28311
  }
28027
28312
  ),
28028
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28313
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28029
28314
  import_react_router_dom34.Route,
28030
28315
  {
28031
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Action_default5, {}),
28316
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Action_default5, {}),
28032
28317
  path: "integrations/accounts/action/:action/:data?"
28033
28318
  }
28034
28319
  ),
28035
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
28320
+ /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
28036
28321
  import_react_router_dom34.Route,
28037
28322
  {
28038
- element: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Callback_default, {}),
28323
+ element: /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(Callback_default, {}),
28039
28324
  path: "integrations/accounts/callback/:action"
28040
28325
  }
28041
28326
  )