@boltic/swirl 1.0.2-uat.76 → 1.0.2-uat.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/swirl.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Te from "react";
2
2
  import re, { useState as ve, useEffect as ke, useCallback as ut, useRef as Pt, useMemo as Kt, createContext as No, useContext as xo, forwardRef as Ur, useLayoutEffect as yN, useDeferredValue as TI, Suspense as Ra, lazy as vN, useReducer as Fd, Component as IG, Fragment as Qa, memo as va, useImperativeHandle as $u, createElement as hy, PureComponent as pae, isValidElement as Ay, cloneElement as my, Children as hae } from "react";
3
3
  import { Box as Be, useTheme as It, Portal as Aae, Snackbar as mae, Alert as gae, Typography as Ve, IconButton as tr, Slide as TN, Stack as ce, Button as fr, Tooltip as mr, Divider as _n, TextField as jo, ListSubheader as DA, OutlinedInput as xl, MenuItem as en, alpha as ps, Chip as Vi, InputAdornment as Xl, CircularProgress as Yn, Dialog as DG, Fade as Eae, DialogTitle as PG, DialogContent as NG, DialogActions as LG, List as UE, ListItem as Xs, ListItemAvatar as SN, Avatar as Pu, ListItemText as ZA, Card as Oae, Accordion as Nc, AccordionSummary as Lc, AccordionDetails as Mc, FormControlLabel as ts, Switch as Rc, Grid as Pe, Stepper as yae, Step as vae, StepLabel as Tae, styled as KS, StepConnector as Sae, Tabs as xN, Tab as lT, Skeleton as fa, FormLabel as MG, debounce as HE, FormControl as ur, Select as Do, Paper as P0, FormHelperText as dn, Menu as VE, MenuList as Q5, Checkbox as za, FormGroup as FG, Autocomplete as bN, Link as kd, InputBase as kG, RadioGroup as ZS, Radio as JS, Slider as BG, Collapse as xae, InputLabel as JA, ButtonGroup as bae, Input as Cae, Popover as _ae, ListItemButton as wae, StyledEngineProvider as Rae, ThemeProvider as CN, CssBaseline as Iae, Breadcrumbs as Dae, TableContainer as Pae, Table as Nae, TableHead as Lae, TableRow as hC, TableCell as AC, TableBody as Mae } from "@mui/material";
4
- import { MarkerType as Fl, addEdge as cT, useReactFlow as Ji, useStore as Fae, Panel as mC, MiniMap as kae, useNodes as Za, useEdges as tc, getBezierPath as _N, Handle as xf, useKeyPress as gy, useUpdateNodeInternals as gh, Position as xi, ReactFlow as Bae, SelectionMode as jae, Background as $ae, getNodesBounds as Uae, getViewportForBounds as Hae, useNodesState as Vae, useEdgesState as Wae, useNodesInitialized as Gae, applyNodeChanges as Qae, useOnViewportChange as zae, ReactFlowProvider as wN } from "@xyflow/react";
4
+ import { MarkerType as Fl, addEdge as cT, useReactFlow as eo, useStore as Fae, Panel as mC, MiniMap as kae, useNodes as Za, useEdges as tc, getBezierPath as _N, Handle as xf, useKeyPress as gy, useUpdateNodeInternals as gh, Position as xi, ReactFlow as Bae, SelectionMode as jae, Background as $ae, getNodesBounds as Uae, getViewportForBounds as Hae, useNodesState as Vae, useEdgesState as Wae, useNodesInitialized as Gae, applyNodeChanges as Qae, useOnViewportChange as zae, ReactFlowProvider as wN } from "@xyflow/react";
5
5
  import { useDispatch as Lr, useSelector as Jt, Provider as RN } from "react-redux";
6
6
  import { configureStore as Xae, createSelector as Fc } from "@reduxjs/toolkit";
7
7
  import { DOMEditor as Yae, withDOM as qae, IS_ANDROID as $l, EDITOR_TO_PENDING_SELECTION as mp, EDITOR_TO_ON_CHANGE as z5, EDITOR_TO_FORCE_RENDER as jG, IS_READ_ONLY as Kae, IS_NODE_MAP_DIRTY as fg, IS_WEBKIT as gp, getActiveElement as Zae, getSelection as gC, IS_FOCUSED as qO, getDefaultView as Jae, EDITOR_TO_WINDOW as ele, EDITOR_TO_ELEMENT as EC, NODE_TO_ELEMENT as Up, ELEMENT_TO_NODE as uT, IS_FIREFOX as X5, containsShadowAware as Y5, EDITOR_TO_USER_SELECTION as OC, IS_COMPOSING as OA, HAS_BEFORE_INPUT_SUPPORT as Yd, PLACEHOLDER_SYMBOL as dT, MARK_PLACEHOLDER_SYMBOL as $G, EDITOR_TO_PENDING_INSERTION_MARKS as wp, isPlainTextOnlyPaste as tle, Hotkeys as yo, IS_CHROME as rle, IS_FIREFOX_LEGACY as nle, IS_IOS as ile, IS_WECHATBROWSER as ole, IS_UC_MOBILE as sle, EDITOR_TO_USER_MARKS as Rp, isDOMNode as SI, TRIPLE_CLICK as ale, isDOMElement as lle, CAN_USE_DOM as Ey, EDITOR_TO_SCHEDULE_FLUSH as cle, NODE_TO_INDEX as Gm, NODE_TO_PARENT as Oy, isTrackedMutation as UG, EDITOR_TO_PENDING_DIFFS as qd, applyStringDiff as ule, isDOMSelection as dle, EDITOR_TO_PENDING_ACTION as Fh, targetRange as fle, verifyDiffState as ple, splitDecorationsByChild as hle, isElementDecorationsEqual as IN, Key as Ale, EDITOR_TO_PLACEHOLDER_ELEMENT as xI, normalizeStringDiff as mle, mergeStringDiffs as gle, normalizeRange as q5, normalizePoint as Ele, EDITOR_TO_KEY_TO_ELEMENT as HG, isTextDecorationsEqual as VG } from "slate-dom";
@@ -2738,7 +2738,7 @@ const sue = () => {
2738
2738
  display: "flex",
2739
2739
  flexDirection: "row",
2740
2740
  alignItems: "center"
2741
- }, Ki = (e) => ({
2741
+ }, Zi = (e) => ({
2742
2742
  "&:hover": {
2743
2743
  backgroundColor: "transparent",
2744
2744
  "& svg": {
@@ -2994,7 +2994,7 @@ const hQ = () => {
2994
2994
  {
2995
2995
  "aria-label": "close",
2996
2996
  onClick: p || A,
2997
- sx: Ki(t),
2997
+ sx: Zi(t),
2998
2998
  children: /* @__PURE__ */ f.jsx(
2999
2999
  Qe,
3000
3000
  {
@@ -3250,8 +3250,8 @@ function uue() {
3250
3250
  return Dn;
3251
3251
  if (!Mo(me))
3252
3252
  return me;
3253
- var Wi = ii(me);
3254
- if (Wi) {
3253
+ var Gi = ii(me);
3254
+ if (Gi) {
3255
3255
  if (Dn = fn(me), !He)
3256
3256
  return mn(me, Dn);
3257
3257
  } else {
@@ -3273,7 +3273,7 @@ function uue() {
3273
3273
  var Oo = gn.get(me);
3274
3274
  if (Oo)
3275
3275
  return Oo;
3276
- if (gn.set(me, Dn), !Wi)
3276
+ if (gn.set(me, Dn), !Gi)
3277
3277
  var fi = dt ? _e(me) : os(me);
3278
3278
  return j(fi || me, function(oo, fo) {
3279
3279
  fi && (fo = oo, oo = me[fo]), In(Dn, fo, Un(oo, He, dt, Ut, fo, me, gn));
@@ -9777,9 +9777,15 @@ const wC = {
9777
9777
  bolticStorageActivity: {
9778
9778
  event: "Select an event",
9779
9779
  file_content: "URL, content, or Base64-encoded data for the file.",
9780
+ file_path: "Path of the file in Boltic Storage.",
9781
+ file_paths: "Enter one or more file paths. Use comma or newline to pass multiple files.",
9780
9782
  folder_name: "The folder will be created exclusively at the root level.",
9781
9783
  folder_path: "If left blank, the file will be saved to the root location by default",
9782
- expire_in: "Enter minutes, If left blank, default is 60 minutes. Expiry should be between 1 minute to 43800 minutes"
9784
+ is_public_permanent: "Makes the uploaded file publicly accessible through its public URL.",
9785
+ expire_in: "Enter minutes, If left blank, default is 60 minutes. Expiry should be between 1 minute to 10080 minutes",
9786
+ ttl_seconds: "Optional cache TTL, in seconds, when making a file public.",
9787
+ page_size: "Maximum number of files/folders to return.",
9788
+ next_page_token: "Leave blank for the first page. To fetch the next page, pass next_page_token from the previous List Files/Folders result."
9783
9789
  },
9784
9790
  monitor: {
9785
9791
  events: "Choose monitoring event(s) to trigger your workflow.",
@@ -11793,12 +11799,32 @@ const ife = (e = c6, t) => {
11793
11799
  { value: 10, title: "10" }
11794
11800
  ], E6 = [
11795
11801
  {
11796
- title: "Make a folder",
11802
+ title: "Upload file",
11803
+ value: "upload_file"
11804
+ },
11805
+ {
11806
+ title: "Download file",
11807
+ value: "download_file"
11808
+ },
11809
+ {
11810
+ title: "Create folder",
11797
11811
  value: "create_folder"
11798
11812
  },
11799
11813
  {
11800
- title: "Upload file",
11801
- value: "upload_file"
11814
+ title: "List files and folders",
11815
+ value: "list_files"
11816
+ },
11817
+ {
11818
+ title: "Make files public",
11819
+ value: "make_file_public"
11820
+ },
11821
+ {
11822
+ title: "Make files private",
11823
+ value: "make_file_private"
11824
+ },
11825
+ {
11826
+ title: "Delete files or folders",
11827
+ value: "delete_file"
11802
11828
  }
11803
11829
  ], Mfe = [
11804
11830
  {
@@ -11958,7 +11984,11 @@ const ife = (e = c6, t) => {
11958
11984
  trigger: {
11959
11985
  events: {
11960
11986
  "storage.file.uploaded": "File Uploaded",
11961
- "storage.folder.created": "Folder Created"
11987
+ "storage.file.deleted": "File Deleted",
11988
+ "storage.file.public": "File Made Public",
11989
+ "storage.file.private": "File Made Private",
11990
+ "storage.folder.created": "Folder Created",
11991
+ "storage.folder.deleted": "Folder Deleted"
11962
11992
  },
11963
11993
  default: "Select an event"
11964
11994
  }
@@ -12256,8 +12286,13 @@ const ife = (e = c6, t) => {
12256
12286
  bolticStorageActivity: {
12257
12287
  integration: {
12258
12288
  event: {
12259
- create_folder: "Make a folder",
12260
- upload_file: "Upload file"
12289
+ upload_file: "Upload file",
12290
+ download_file: "Download file",
12291
+ create_folder: "Create folder",
12292
+ list_files: "List files and folders",
12293
+ make_file_public: "Make files public",
12294
+ make_file_private: "Make files private",
12295
+ delete_file: "Delete files or folders"
12261
12296
  },
12262
12297
  default: "Select an event"
12263
12298
  }
@@ -17287,7 +17322,7 @@ const GI = async (e, t, r, n = "TB") => {
17287
17322
  onAutoLayout: o,
17288
17323
  bottomOffsetPx: s = 0
17289
17324
  }) => {
17290
- const a = It(), l = Lr(), c = Ji(), { setNodes: u, getNodes: d, zoomIn: p, zoomOut: h, fitView: A } = c, { setViewport: g, getViewport: m, zoomTo: E } = c, [O, y] = ve(!1), [v, b] = ve(!1), S = d(), { activities: x, triggers: C } = Jt((B) => B.activities), { canvasWorkflow: w, autoSaving: _, viewOnly: I } = Jt((B) => B.canvas), [N, D] = ve(!1), P = !!(x?.data?.data && C?.data?.data && (x.data.data.length > 0 || C.data.data.length > 0));
17325
+ const a = It(), l = Lr(), c = eo(), { setNodes: u, getNodes: d, zoomIn: p, zoomOut: h, fitView: A } = c, { setViewport: g, getViewport: m, zoomTo: E } = c, [O, y] = ve(!1), [v, b] = ve(!1), S = d(), { activities: x, triggers: C } = Jt((B) => B.activities), { canvasWorkflow: w, autoSaving: _, viewOnly: I } = Jt((B) => B.canvas), [N, D] = ve(!1), P = !!(x?.data?.data && C?.data?.data && (x.data.data.length > 0 || C.data.data.length > 0));
17291
17326
  ke(() => {
17292
17327
  D(!!_);
17293
17328
  }, [_]);
@@ -18998,7 +19033,7 @@ const phe = ({ theme: e, choice: t, renderSteps: r }) => /* @__PURE__ */ f.jsxs(
18998
19033
  onClick: r,
18999
19034
  sx: {
19000
19035
  p: 0,
19001
- ...Ki(A)
19036
+ ...Zi(A)
19002
19037
  },
19003
19038
  "data-testid": "button-close-dialog",
19004
19039
  children: /* @__PURE__ */ f.jsx(
@@ -19430,7 +19465,7 @@ Ja.prototype.property = "";
19430
19465
  Ja.prototype.spaceSeparated = !1;
19431
19466
  Ja.prototype.space = void 0;
19432
19467
  let Nhe = 0;
19433
- const Mn = yh(), Xo = yh(), XI = yh(), dr = yh(), zi = yh(), LA = yh(), al = yh();
19468
+ const Mn = yh(), Xo = yh(), XI = yh(), dr = yh(), Xi = yh(), LA = yh(), al = yh();
19434
19469
  function yh() {
19435
19470
  return 2 ** ++Nhe;
19436
19471
  }
@@ -19442,7 +19477,7 @@ const YI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19442
19477
  commaSeparated: LA,
19443
19478
  number: dr,
19444
19479
  overloadedBoolean: XI,
19445
- spaceSeparated: zi
19480
+ spaceSeparated: Xi
19446
19481
  }, Symbol.toStringTag, { value: "Module" })), I_ = (
19447
19482
  /** @type {ReadonlyArray<keyof typeof types>} */
19448
19483
  Object.keys(YI)
@@ -19497,36 +19532,36 @@ const az = F0({
19497
19532
  ariaColCount: dr,
19498
19533
  ariaColIndex: dr,
19499
19534
  ariaColSpan: dr,
19500
- ariaControls: zi,
19535
+ ariaControls: Xi,
19501
19536
  ariaCurrent: null,
19502
- ariaDescribedBy: zi,
19537
+ ariaDescribedBy: Xi,
19503
19538
  ariaDetails: null,
19504
19539
  ariaDisabled: Xo,
19505
- ariaDropEffect: zi,
19540
+ ariaDropEffect: Xi,
19506
19541
  ariaErrorMessage: null,
19507
19542
  ariaExpanded: Xo,
19508
- ariaFlowTo: zi,
19543
+ ariaFlowTo: Xi,
19509
19544
  ariaGrabbed: Xo,
19510
19545
  ariaHasPopup: null,
19511
19546
  ariaHidden: Xo,
19512
19547
  ariaInvalid: null,
19513
19548
  ariaKeyShortcuts: null,
19514
19549
  ariaLabel: null,
19515
- ariaLabelledBy: zi,
19550
+ ariaLabelledBy: Xi,
19516
19551
  ariaLevel: dr,
19517
19552
  ariaLive: null,
19518
19553
  ariaModal: Xo,
19519
19554
  ariaMultiLine: Xo,
19520
19555
  ariaMultiSelectable: Xo,
19521
19556
  ariaOrientation: null,
19522
- ariaOwns: zi,
19557
+ ariaOwns: Xi,
19523
19558
  ariaPlaceholder: null,
19524
19559
  ariaPosInSet: dr,
19525
19560
  ariaPressed: Xo,
19526
19561
  ariaReadOnly: Xo,
19527
19562
  ariaRelevant: null,
19528
19563
  ariaRequired: Xo,
19529
- ariaRoleDescription: zi,
19564
+ ariaRoleDescription: Xi,
19530
19565
  ariaRowCount: dr,
19531
19566
  ariaRowIndex: dr,
19532
19567
  ariaRowSpan: dr,
@@ -19561,8 +19596,8 @@ const Lhe = F0({
19561
19596
  // Standard Properties.
19562
19597
  abbr: null,
19563
19598
  accept: LA,
19564
- acceptCharset: zi,
19565
- accessKey: zi,
19599
+ acceptCharset: Xi,
19600
+ accessKey: Xi,
19566
19601
  action: null,
19567
19602
  allow: null,
19568
19603
  allowFullScreen: Mn,
@@ -19572,21 +19607,21 @@ const Lhe = F0({
19572
19607
  as: null,
19573
19608
  async: Mn,
19574
19609
  autoCapitalize: null,
19575
- autoComplete: zi,
19610
+ autoComplete: Xi,
19576
19611
  autoFocus: Mn,
19577
19612
  autoPlay: Mn,
19578
- blocking: zi,
19613
+ blocking: Xi,
19579
19614
  capture: null,
19580
19615
  charSet: null,
19581
19616
  checked: Mn,
19582
19617
  cite: null,
19583
- className: zi,
19618
+ className: Xi,
19584
19619
  cols: dr,
19585
19620
  colSpan: null,
19586
19621
  content: null,
19587
19622
  contentEditable: Xo,
19588
19623
  controls: Mn,
19589
- controlsList: zi,
19624
+ controlsList: Xi,
19590
19625
  coords: dr | LA,
19591
19626
  crossOrigin: null,
19592
19627
  data: null,
@@ -19608,14 +19643,14 @@ const Lhe = F0({
19608
19643
  formMethod: null,
19609
19644
  formNoValidate: Mn,
19610
19645
  formTarget: null,
19611
- headers: zi,
19646
+ headers: Xi,
19612
19647
  height: dr,
19613
19648
  hidden: XI,
19614
19649
  high: dr,
19615
19650
  href: null,
19616
19651
  hrefLang: null,
19617
- htmlFor: zi,
19618
- httpEquiv: zi,
19652
+ htmlFor: Xi,
19653
+ httpEquiv: Xi,
19619
19654
  id: null,
19620
19655
  imageSizes: null,
19621
19656
  imageSrcSet: null,
@@ -19625,10 +19660,10 @@ const Lhe = F0({
19625
19660
  is: null,
19626
19661
  isMap: Mn,
19627
19662
  itemId: null,
19628
- itemProp: zi,
19629
- itemRef: zi,
19663
+ itemProp: Xi,
19664
+ itemRef: Xi,
19630
19665
  itemScope: Mn,
19631
- itemType: zi,
19666
+ itemType: Xi,
19632
19667
  kind: null,
19633
19668
  label: null,
19634
19669
  lang: null,
@@ -19741,7 +19776,7 @@ const Lhe = F0({
19741
19776
  open: Mn,
19742
19777
  optimum: dr,
19743
19778
  pattern: null,
19744
- ping: zi,
19779
+ ping: Xi,
19745
19780
  placeholder: null,
19746
19781
  playsInline: Mn,
19747
19782
  popover: null,
@@ -19751,12 +19786,12 @@ const Lhe = F0({
19751
19786
  preload: null,
19752
19787
  readOnly: Mn,
19753
19788
  referrerPolicy: null,
19754
- rel: zi,
19789
+ rel: Xi,
19755
19790
  required: Mn,
19756
19791
  reversed: Mn,
19757
19792
  rows: dr,
19758
19793
  rowSpan: dr,
19759
- sandbox: zi,
19794
+ sandbox: Xi,
19760
19795
  scope: null,
19761
19796
  scoped: Mn,
19762
19797
  seamless: Mn,
@@ -19794,7 +19829,7 @@ const Lhe = F0({
19794
19829
  // Several. Use CSS `text-align` instead,
19795
19830
  aLink: null,
19796
19831
  // `<body>`. Use CSS `a:active {color}` instead
19797
- archive: zi,
19832
+ archive: Xi,
19798
19833
  // `<object>`. List of URIs to archives
19799
19834
  axis: null,
19800
19835
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -20109,7 +20144,7 @@ const Lhe = F0({
20109
20144
  by: null,
20110
20145
  calcMode: null,
20111
20146
  capHeight: dr,
20112
- className: zi,
20147
+ className: Xi,
20113
20148
  clip: null,
20114
20149
  clipPath: null,
20115
20150
  clipPathUnits: null,
@@ -20344,7 +20379,7 @@ const Lhe = F0({
20344
20379
  patternTransform: null,
20345
20380
  patternUnits: null,
20346
20381
  phase: null,
20347
- ping: zi,
20382
+ ping: Xi,
20348
20383
  pitch: null,
20349
20384
  playbackOrder: null,
20350
20385
  pointerEvents: null,
@@ -21251,7 +21286,7 @@ function k0(e) {
21251
21286
  }
21252
21287
  return t.join("") + e.slice(n);
21253
21288
  }
21254
- function Zi(e, t, r, n) {
21289
+ function Ji(e, t, r, n) {
21255
21290
  const i = n ? n - 1 : Number.POSITIVE_INFINITY;
21256
21291
  let o = 0;
21257
21292
  return s;
@@ -21274,7 +21309,7 @@ function RAe(e) {
21274
21309
  e.consume(a);
21275
21310
  return;
21276
21311
  }
21277
- return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), Zi(e, t, "linePrefix");
21312
+ return e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), Ji(e, t, "linePrefix");
21278
21313
  }
21279
21314
  function i(a) {
21280
21315
  return e.enter("paragraph"), o(a);
@@ -21412,7 +21447,7 @@ function DAe(e) {
21412
21447
  }
21413
21448
  }
21414
21449
  function PAe(e, t, r) {
21415
- return Zi(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
21450
+ return Ji(e, e.attempt(this.parser.constructs.document, t, r), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
21416
21451
  }
21417
21452
  function GM(e) {
21418
21453
  if (e === null || $a(e) || _Ae(e))
@@ -21552,7 +21587,7 @@ const Ax = {
21552
21587
  function kAe(e, t, r) {
21553
21588
  return n;
21554
21589
  function n(o) {
21555
- return Ei(o) ? Zi(e, i, "linePrefix")(o) : i(o);
21590
+ return Ei(o) ? Ji(e, i, "linePrefix")(o) : i(o);
21556
21591
  }
21557
21592
  function i(o) {
21558
21593
  return o === null || vn(o) ? t(o) : r(o);
@@ -21586,7 +21621,7 @@ function jAe(e, t, r) {
21586
21621
  const n = this;
21587
21622
  return i;
21588
21623
  function i(s) {
21589
- return Ei(s) ? Zi(e, o, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : o(s);
21624
+ return Ei(s) ? Ji(e, o, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : o(s);
21590
21625
  }
21591
21626
  function o(s) {
21592
21627
  return e.attempt(vz, t, r)(s);
@@ -21656,7 +21691,7 @@ function VAe(e, t, r) {
21656
21691
  return o = x && x[1].type === "linePrefix" ? x[2].sliceSerialize(x[1], !0).length : 0, a = S, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(S);
21657
21692
  }
21658
21693
  function u(S) {
21659
- return S === a ? (s++, e.consume(S), u) : s < 3 ? r(S) : (e.exit("codeFencedFenceSequence"), Ei(S) ? Zi(e, d, "whitespace")(S) : d(S));
21694
+ return S === a ? (s++, e.consume(S), u) : s < 3 ? r(S) : (e.exit("codeFencedFenceSequence"), Ei(S) ? Ji(e, d, "whitespace")(S) : d(S));
21660
21695
  }
21661
21696
  function d(S) {
21662
21697
  return S === null || vn(S) ? (e.exit("codeFencedFence"), n.interrupt ? t(S) : e.check(zM, g, v)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -21664,7 +21699,7 @@ function VAe(e, t, r) {
21664
21699
  }), p(S));
21665
21700
  }
21666
21701
  function p(S) {
21667
- return S === null || vn(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) : Ei(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Zi(e, h, "whitespace")(S)) : S === 96 && S === a ? r(S) : (e.consume(S), p);
21702
+ return S === null || vn(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(S)) : Ei(S) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ji(e, h, "whitespace")(S)) : S === 96 && S === a ? r(S) : (e.consume(S), p);
21668
21703
  }
21669
21704
  function h(S) {
21670
21705
  return S === null || vn(S) ? d(S) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -21681,7 +21716,7 @@ function VAe(e, t, r) {
21681
21716
  return e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), E;
21682
21717
  }
21683
21718
  function E(S) {
21684
- return o > 0 && Ei(S) ? Zi(e, O, "linePrefix", o + 1)(S) : O(S);
21719
+ return o > 0 && Ei(S) ? Ji(e, O, "linePrefix", o + 1)(S) : O(S);
21685
21720
  }
21686
21721
  function O(S) {
21687
21722
  return S === null || vn(S) ? e.check(zM, g, v)(S) : (e.enter("codeFlowValue"), y(S));
@@ -21699,13 +21734,13 @@ function VAe(e, t, r) {
21699
21734
  return S.enter("lineEnding"), S.consume(L), S.exit("lineEnding"), I;
21700
21735
  }
21701
21736
  function I(L) {
21702
- return S.enter("codeFencedFence"), Ei(L) ? Zi(S, N, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : N(L);
21737
+ return S.enter("codeFencedFence"), Ei(L) ? Ji(S, N, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : N(L);
21703
21738
  }
21704
21739
  function N(L) {
21705
21740
  return L === a ? (S.enter("codeFencedFenceSequence"), D(L)) : C(L);
21706
21741
  }
21707
21742
  function D(L) {
21708
- return L === a ? (w++, S.consume(L), D) : w >= s ? (S.exit("codeFencedFenceSequence"), Ei(L) ? Zi(S, P, "whitespace")(L) : P(L)) : C(L);
21743
+ return L === a ? (w++, S.consume(L), D) : w >= s ? (S.exit("codeFencedFenceSequence"), Ei(L) ? Ji(S, P, "whitespace")(L) : P(L)) : C(L);
21709
21744
  }
21710
21745
  function P(L) {
21711
21746
  return L === null || vn(L) ? (S.exit("codeFencedFence"), x(L)) : C(L);
@@ -21733,7 +21768,7 @@ function QAe(e, t, r) {
21733
21768
  const n = this;
21734
21769
  return i;
21735
21770
  function i(c) {
21736
- return e.enter("codeIndented"), Zi(e, o, "linePrefix", 5)(c);
21771
+ return e.enter("codeIndented"), Ji(e, o, "linePrefix", 5)(c);
21737
21772
  }
21738
21773
  function o(c) {
21739
21774
  const u = n.events[n.events.length - 1];
@@ -21753,7 +21788,7 @@ function zAe(e, t, r) {
21753
21788
  const n = this;
21754
21789
  return i;
21755
21790
  function i(s) {
21756
- return n.parser.lazy[n.now().line] ? r(s) : vn(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), i) : Zi(e, o, "linePrefix", 5)(s);
21791
+ return n.parser.lazy[n.now().line] ? r(s) : vn(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), i) : Ji(e, o, "linePrefix", 5)(s);
21757
21792
  }
21758
21793
  function o(s) {
21759
21794
  const a = n.events[n.events.length - 1];
@@ -22057,7 +22092,7 @@ function i0e(e, t, r) {
22057
22092
  const n = this;
22058
22093
  return i;
22059
22094
  function i(s) {
22060
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Zi(e, o, "linePrefix");
22095
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Ji(e, o, "linePrefix");
22061
22096
  }
22062
22097
  function o(s) {
22063
22098
  if (s === null || vn(s))
@@ -22127,7 +22162,7 @@ function _z(e, t, r, n, i, o) {
22127
22162
  return p === s ? (e.enter(i), e.consume(p), e.exit(i), e.exit(n), t) : (e.enter(o), c(p));
22128
22163
  }
22129
22164
  function c(p) {
22130
- return p === s ? (e.exit(o), l(s)) : p === null ? r(p) : vn(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Zi(e, c, "linePrefix")) : (e.enter("chunkString", {
22165
+ return p === s ? (e.exit(o), l(s)) : p === null ? r(p) : vn(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), Ji(e, c, "linePrefix")) : (e.enter("chunkString", {
22131
22166
  contentType: "string"
22132
22167
  }), u(p));
22133
22168
  }
@@ -22142,7 +22177,7 @@ function mg(e, t) {
22142
22177
  let r;
22143
22178
  return n;
22144
22179
  function n(i) {
22145
- return vn(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), r = !0, n) : Ei(i) ? Zi(e, n, r ? "linePrefix" : "lineSuffix")(i) : t(i);
22180
+ return vn(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), r = !0, n) : Ei(i) ? Ji(e, n, r ? "linePrefix" : "lineSuffix")(i) : t(i);
22146
22181
  }
22147
22182
  }
22148
22183
  const o0e = {
@@ -22194,7 +22229,7 @@ function a0e(e, t, r) {
22194
22229
  return e.attempt(s0e, d, d)(h);
22195
22230
  }
22196
22231
  function d(h) {
22197
- return Ei(h) ? Zi(e, p, "whitespace")(h) : p(h);
22232
+ return Ei(h) ? Ji(e, p, "whitespace")(h) : p(h);
22198
22233
  }
22199
22234
  function p(h) {
22200
22235
  return h === null || vn(h) ? (e.exit("definition"), n.parser.defined.push(i), t(h)) : r(h);
@@ -22209,7 +22244,7 @@ function l0e(e, t, r) {
22209
22244
  return _z(e, o, r, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
22210
22245
  }
22211
22246
  function o(a) {
22212
- return Ei(a) ? Zi(e, s, "whitespace")(a) : s(a);
22247
+ return Ei(a) ? Ji(e, s, "whitespace")(a) : s(a);
22213
22248
  }
22214
22249
  function s(a) {
22215
22250
  return a === null || vn(a) ? t(a) : r(a);
@@ -22259,7 +22294,7 @@ function p0e(e, t, r) {
22259
22294
  return u === 35 && n++ < 6 ? (e.consume(u), s) : u === null || $a(u) ? (e.exit("atxHeadingSequence"), a(u)) : r(u);
22260
22295
  }
22261
22296
  function a(u) {
22262
- return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || vn(u) ? (e.exit("atxHeading"), t(u)) : Ei(u) ? Zi(e, a, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
22297
+ return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || vn(u) ? (e.exit("atxHeading"), t(u)) : Ei(u) ? Ji(e, a, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
22263
22298
  }
22264
22299
  function l(u) {
22265
22300
  return u === 35 ? (e.consume(u), l) : (e.exit("atxHeadingSequence"), a(u));
@@ -22560,7 +22595,7 @@ function S0e(e, t, r) {
22560
22595
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), U;
22561
22596
  }
22562
22597
  function U(M) {
22563
- return Ei(M) ? Zi(e, X, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : X(M);
22598
+ return Ei(M) ? Ji(e, X, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(M) : X(M);
22564
22599
  }
22565
22600
  function X(M) {
22566
22601
  return e.enter("htmlTextData"), s(M);
@@ -22747,7 +22782,7 @@ const L_ = {
22747
22782
  function k0e(e, t) {
22748
22783
  return r;
22749
22784
  function r(n) {
22750
- return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), Zi(e, t, "linePrefix");
22785
+ return e.enter("lineEnding"), e.consume(n), e.exit("lineEnding"), Ji(e, t, "linePrefix");
22751
22786
  }
22752
22787
  }
22753
22788
  const pv = {
@@ -22767,7 +22802,7 @@ function B0e(e, t, r) {
22767
22802
  return c === i ? (e.enter("thematicBreakSequence"), l(c)) : n >= 3 && (c === null || vn(c)) ? (e.exit("thematicBreak"), t(c)) : r(c);
22768
22803
  }
22769
22804
  function l(c) {
22770
- return c === i ? (e.consume(c), n++, l) : (e.exit("thematicBreakSequence"), Ei(c) ? Zi(e, a, "whitespace")(c) : a(c));
22805
+ return c === i ? (e.consume(c), n++, l) : (e.exit("thematicBreakSequence"), Ei(c) ? Ji(e, a, "whitespace")(c) : a(c));
22771
22806
  }
22772
22807
  }
22773
22808
  const ba = {
@@ -22825,18 +22860,18 @@ function H0e(e, t, r) {
22825
22860
  const n = this;
22826
22861
  return n.containerState._closeFlow = void 0, e.check(Ax, i, o);
22827
22862
  function i(a) {
22828
- return n.containerState.furtherBlankLines = n.containerState.furtherBlankLines || n.containerState.initialBlankLine, Zi(e, t, "listItemIndent", n.containerState.size + 1)(a);
22863
+ return n.containerState.furtherBlankLines = n.containerState.furtherBlankLines || n.containerState.initialBlankLine, Ji(e, t, "listItemIndent", n.containerState.size + 1)(a);
22829
22864
  }
22830
22865
  function o(a) {
22831
22866
  return n.containerState.furtherBlankLines || !Ei(a) ? (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, s(a)) : (n.containerState.furtherBlankLines = void 0, n.containerState.initialBlankLine = void 0, e.attempt($0e, t, s)(a));
22832
22867
  }
22833
22868
  function s(a) {
22834
- return n.containerState._closeFlow = !0, n.interrupt = void 0, Zi(e, e.attempt(ba, t, r), "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
22869
+ return n.containerState._closeFlow = !0, n.interrupt = void 0, Ji(e, e.attempt(ba, t, r), "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
22835
22870
  }
22836
22871
  }
22837
22872
  function V0e(e, t, r) {
22838
22873
  const n = this;
22839
- return Zi(e, i, "listItemIndent", n.containerState.size + 1);
22874
+ return Ji(e, i, "listItemIndent", n.containerState.size + 1);
22840
22875
  function i(o) {
22841
22876
  const s = n.events[n.events.length - 1];
22842
22877
  return s && s[1].type === "listItemIndent" && s[2].sliceSerialize(s[1], !0).length === n.containerState.size ? t(o) : r(o);
@@ -22847,7 +22882,7 @@ function W0e(e) {
22847
22882
  }
22848
22883
  function G0e(e, t, r) {
22849
22884
  const n = this;
22850
- return Zi(e, i, "listItemPrefixWhitespace", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
22885
+ return Ji(e, i, "listItemPrefixWhitespace", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
22851
22886
  function i(o) {
22852
22887
  const s = n.events[n.events.length - 1];
22853
22888
  return !Ei(o) && s && s[1].type === "listItemPrefixWhitespace" ? t(o) : r(o);
@@ -22899,7 +22934,7 @@ function z0e(e, t, r) {
22899
22934
  return e.enter("setextHeadingLineSequence"), a(c);
22900
22935
  }
22901
22936
  function a(c) {
22902
- return c === i ? (e.consume(c), a) : (e.exit("setextHeadingLineSequence"), Ei(c) ? Zi(e, l, "lineSuffix")(c) : l(c));
22937
+ return c === i ? (e.consume(c), a) : (e.exit("setextHeadingLineSequence"), Ei(c) ? Ji(e, l, "lineSuffix")(c) : l(c));
22903
22938
  }
22904
22939
  function l(c) {
22905
22940
  return c === null || vn(c) ? (e.exit("setextHeadingLine"), t(c)) : r(c);
@@ -22914,7 +22949,7 @@ function Y0e(e) {
22914
22949
  Ax,
22915
22950
  n,
22916
22951
  // Try to parse initial flow (essentially, only code).
22917
- e.attempt(this.parser.constructs.flowInitial, i, Zi(e, e.attempt(this.parser.constructs.flow, i, e.attempt(e0e, i)), "linePrefix"))
22952
+ e.attempt(this.parser.constructs.flowInitial, i, Ji(e, e.attempt(this.parser.constructs.flow, i, e.attempt(e0e, i)), "linePrefix"))
22918
22953
  );
22919
22954
  return r;
22920
22955
  function n(o) {
@@ -26102,7 +26137,7 @@ function Qge(e) {
26102
26137
  $ge.test(e.slice(0, t)) ? e : ""
26103
26138
  );
26104
26139
  }
26105
- const Uz = No(void 0), eo = () => {
26140
+ const Uz = No(void 0), Wi = () => {
26106
26141
  const e = xo(Uz);
26107
26142
  if (e === void 0)
26108
26143
  throw new Error("useWorkflow must be used within a WorkflowUrlsProvider");
@@ -26113,17 +26148,27 @@ const Uz = No(void 0), eo = () => {
26113
26148
  children: r,
26114
26149
  analytics: n,
26115
26150
  userData: i,
26116
- openAddonModal: o,
26117
- currentSubscription: s,
26118
- allowedAccount: a
26151
+ openUpgradeModal: o,
26152
+ openAddonModal: s,
26153
+ currentSubscription: a,
26154
+ allowedAccount: l
26119
26155
  }) => /* @__PURE__ */ f.jsx(
26120
26156
  Uz.Provider,
26121
26157
  {
26122
- value: { WORKFLOW_URLS: e, ENTITY_ID: t, analytics: n, userData: i, openAddonModal: o, currentSubscription: s, allowedAccount: a },
26158
+ value: {
26159
+ WORKFLOW_URLS: e,
26160
+ ENTITY_ID: t,
26161
+ analytics: n,
26162
+ userData: i,
26163
+ openUpgradeModal: o,
26164
+ openAddonModal: s,
26165
+ currentSubscription: a,
26166
+ allowedAccount: l
26167
+ },
26123
26168
  children: r
26124
26169
  }
26125
26170
  ), zge = ({ selectedNode: e, setOpenDocs: t, openDocs: r }) => {
26126
- const n = It(), { WORKFLOW_URLS: i } = eo(), { GYRATE_MAIN_URL: o } = i, { activities: s, triggers: a } = Jt((A) => A.activities), l = _i(
26171
+ const n = It(), { WORKFLOW_URLS: i } = Wi(), { GYRATE_MAIN_URL: o } = i, { activities: s, triggers: a } = Jt((A) => A.activities), l = _i(
26127
26172
  s?.data?.data,
26128
26173
  a?.data?.data,
26129
26174
  e?.data,
@@ -26197,7 +26242,7 @@ const Uz = No(void 0), eo = () => {
26197
26242
  children: "Open full doc"
26198
26243
  }
26199
26244
  ),
26200
- /* @__PURE__ */ f.jsx(tr, { onClick: () => t(!r), sx: Ki(n), children: /* @__PURE__ */ f.jsx(Qe, { width: 24, height: 24, src: "ic_close" }) })
26245
+ /* @__PURE__ */ f.jsx(tr, { onClick: () => t(!r), sx: Zi(n), children: /* @__PURE__ */ f.jsx(Qe, { width: 24, height: 24, src: "ic_close" }) })
26201
26246
  ] })
26202
26247
  ]
26203
26248
  }
@@ -26244,7 +26289,7 @@ var Ex = (e) => /^\w*$/.test(e), Ao = (e) => e === void 0, pL = (e) => Array.isA
26244
26289
  return r;
26245
26290
  const n = (Ex(t) ? [t] : hL(t)).reduce((i, o) => Ia(i) ? i : i[o], e);
26246
26291
  return Ao(n) || n === e ? Ao(e[t]) ? r : e[t] : n;
26247
- }, ul = (e) => typeof e == "boolean", pa = (e) => typeof e == "function", Qi = (e, t, r) => {
26292
+ }, ul = (e) => typeof e == "boolean", pa = (e) => typeof e == "function", zi = (e, t, r) => {
26248
26293
  let n = -1;
26249
26294
  const i = Ex(t) ? [t] : hL(t), o = i.length, s = o - 1;
26250
26295
  for (; ++n < o; ) {
@@ -26457,7 +26502,7 @@ function Kge(e) {
26457
26502
  };
26458
26503
  if (S(r, !0), v) {
26459
26504
  const x = Wo(_r(i._options.defaultValues, r, p.current.defaultValue));
26460
- Qi(i._defaultValues, r, x), Ao(_r(i._formValues, r)) && Qi(i._formValues, r, x);
26505
+ zi(i._defaultValues, r, x), Ao(_r(i._formValues, r)) && zi(i._formValues, r, x);
26461
26506
  }
26462
26507
  return !l && i.register(r), h.current = r, () => {
26463
26508
  (l ? v && !i._state.action : v) ? i.unregister(r) : S(r, !1);
@@ -26640,7 +26685,7 @@ var nEe = (e, t, r, n) => {
26640
26685
  const i = {};
26641
26686
  for (const o of e) {
26642
26687
  const s = _r(t, o);
26643
- s && Qi(i, o, s._f);
26688
+ s && zi(i, o, s._f);
26644
26689
  }
26645
26690
  return {
26646
26691
  criteriaMode: r,
@@ -26708,7 +26753,7 @@ var sEe = (e, t, r, n) => {
26708
26753
  return la(o) || Object.keys(o).length >= Object.keys(t).length || Object.keys(o).find((s) => t[s] === (!n || gc.all));
26709
26754
  }, aEe = (e, t, r) => !e || !t || e === t || Eg(e).some((n) => n && (r ? n === t : n.startsWith(t) || t.startsWith(n))), lEe = (e, t, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(t || e) : (r ? n.isOnBlur : i.isOnBlur) ? !e : (r ? n.isOnChange : i.isOnChange) ? e : !0, cEe = (e, t) => !pL(_r(e, t)).length && Go(e, t), uEe = (e, t, r) => {
26710
26755
  const n = Eg(_r(e, r));
26711
- return Qi(n, "root", t[r]), Qi(e, r, n), e;
26756
+ return zi(n, "root", t[r]), zi(e, r, n), e;
26712
26757
  };
26713
26758
  function xF(e, t, r = "validate") {
26714
26759
  if (hl(e) || Array.isArray(e) && e.every(hl) || ul(e) && !e)
@@ -26866,7 +26911,7 @@ function fEe(e = {}) {
26866
26911
  }
26867
26912
  }, E = (Y, ee) => {
26868
26913
  !t.disabled && (d.isValidating || d.validatingFields || p.isValidating || p.validatingFields) && ((Y || Array.from(a.mount)).forEach((ae) => {
26869
- ae && (ee ? Qi(r.validatingFields, ae, ee) : Go(r.validatingFields, ae));
26914
+ ae && (ee ? zi(r.validatingFields, ae, ee) : Go(r.validatingFields, ae));
26870
26915
  }), h.state.next({
26871
26916
  validatingFields: r.validatingFields,
26872
26917
  isValidating: !la(r.validatingFields)
@@ -26875,15 +26920,15 @@ function fEe(e = {}) {
26875
26920
  if (pe && ae && !t.disabled) {
26876
26921
  if (s.action = !0, fe && Array.isArray(_r(n, Y))) {
26877
26922
  const xe = ae(_r(n, Y), pe.argA, pe.argB);
26878
- Ae && Qi(n, Y, xe);
26923
+ Ae && zi(n, Y, xe);
26879
26924
  }
26880
26925
  if (fe && Array.isArray(_r(r.errors, Y))) {
26881
26926
  const xe = ae(_r(r.errors, Y), pe.argA, pe.argB);
26882
- Ae && Qi(r.errors, Y, xe), cEe(r.errors, Y);
26927
+ Ae && zi(r.errors, Y, xe), cEe(r.errors, Y);
26883
26928
  }
26884
26929
  if ((d.touchedFields || p.touchedFields) && fe && Array.isArray(_r(r.touchedFields, Y))) {
26885
26930
  const xe = ae(_r(r.touchedFields, Y), pe.argA, pe.argB);
26886
- Ae && Qi(r.touchedFields, Y, xe);
26931
+ Ae && zi(r.touchedFields, Y, xe);
26887
26932
  }
26888
26933
  (d.dirtyFields || p.dirtyFields) && (r.dirtyFields = dA(i, o)), h.state.next({
26889
26934
  name: Y,
@@ -26893,9 +26938,9 @@ function fEe(e = {}) {
26893
26938
  isValid: r.isValid
26894
26939
  });
26895
26940
  } else
26896
- Qi(o, Y, ee);
26941
+ zi(o, Y, ee);
26897
26942
  }, y = (Y, ee) => {
26898
- Qi(r.errors, Y, ee), h.state.next({
26943
+ zi(r.errors, Y, ee), h.state.next({
26899
26944
  errors: r.errors
26900
26945
  });
26901
26946
  }, v = (Y) => {
@@ -26907,7 +26952,7 @@ function fEe(e = {}) {
26907
26952
  const Ae = _r(n, Y);
26908
26953
  if (Ae) {
26909
26954
  const fe = _r(o, Y, Ao(ae) ? _r(i, Y) : ae);
26910
- Ao(fe) || pe && pe.defaultChecked || ee ? Qi(o, Y, ee ? fe : OF(Ae._f)) : L(Y, fe), s.mount && !s.action && m();
26955
+ Ao(fe) || pe && pe.defaultChecked || ee ? zi(o, Y, ee ? fe : OF(Ae._f)) : L(Y, fe), s.mount && !s.action && m();
26911
26956
  }
26912
26957
  }, S = (Y, ee, ae, pe, Ae) => {
26913
26958
  let fe = !1, xe = !1;
@@ -26918,18 +26963,18 @@ function fEe(e = {}) {
26918
26963
  if (!ae || pe) {
26919
26964
  (d.isDirty || p.isDirty) && (xe = r.isDirty, r.isDirty = ge.isDirty = N(), fe = xe !== ge.isDirty);
26920
26965
  const ye = Ec(_r(i, Y), ee);
26921
- xe = !!_r(r.dirtyFields, Y), ye ? Go(r.dirtyFields, Y) : Qi(r.dirtyFields, Y, !0), ge.dirtyFields = r.dirtyFields, fe = fe || (d.dirtyFields || p.dirtyFields) && xe !== !ye;
26966
+ xe = !!_r(r.dirtyFields, Y), ye ? Go(r.dirtyFields, Y) : zi(r.dirtyFields, Y, !0), ge.dirtyFields = r.dirtyFields, fe = fe || (d.dirtyFields || p.dirtyFields) && xe !== !ye;
26922
26967
  }
26923
26968
  if (ae) {
26924
26969
  const ye = _r(r.touchedFields, Y);
26925
- ye || (Qi(r.touchedFields, Y, ae), ge.touchedFields = r.touchedFields, fe = fe || (d.touchedFields || p.touchedFields) && ye !== ae);
26970
+ ye || (zi(r.touchedFields, Y, ae), ge.touchedFields = r.touchedFields, fe = fe || (d.touchedFields || p.touchedFields) && ye !== ae);
26926
26971
  }
26927
26972
  fe && Ae && h.state.next(ge);
26928
26973
  }
26929
26974
  return fe ? ge : {};
26930
26975
  }, x = (Y, ee, ae, pe) => {
26931
26976
  const Ae = _r(r.errors, Y), fe = (d.isValid || p.isValid) && ul(ee) && r.isValid !== ee;
26932
- if (t.delayError && ae ? (l = g(() => y(Y, ae)), l(t.delayError)) : (clearTimeout(c), l = null, ae ? Qi(r.errors, Y, ae) : Go(r.errors, Y)), (ae ? !Ec(Ae, ae) : Ae) || !la(pe) || fe) {
26977
+ if (t.delayError && ae ? (l = g(() => y(Y, ae)), l(t.delayError)) : (clearTimeout(c), l = null, ae ? zi(r.errors, Y, ae) : Go(r.errors, Y)), (ae ? !Ec(Ae, ae) : Ae) || !la(pe) || fe) {
26933
26978
  const xe = {
26934
26979
  ...pe,
26935
26980
  ...fe && ul(ee) ? { isValid: ee } : {},
@@ -26946,7 +26991,7 @@ function fEe(e = {}) {
26946
26991
  if (E(Y), Y)
26947
26992
  for (const ae of Y) {
26948
26993
  const pe = _r(ee, ae);
26949
- pe ? Qi(r.errors, ae, pe) : Go(r.errors, ae);
26994
+ pe ? zi(r.errors, ae, pe) : Go(r.errors, ae);
26950
26995
  }
26951
26996
  else
26952
26997
  r.errors = ee;
@@ -26964,7 +27009,7 @@ function fEe(e = {}) {
26964
27009
  const Ge = await bF(Ae, a.disabled, o, A, t.shouldUseNativeValidation && !ee, ge);
26965
27010
  if (ye && d.validatingFields && E([fe.name]), Ge[fe.name] && (ae.valid = !1, ee || e.shouldUseNativeValidation))
26966
27011
  break;
26967
- !ee && (_r(Ge, fe.name) ? ge ? uEe(r.errors, Ge, fe.name) : Qi(r.errors, fe.name, Ge[fe.name]) : Go(r.errors, fe.name));
27012
+ !ee && (_r(Ge, fe.name) ? ge ? uEe(r.errors, Ge, fe.name) : zi(r.errors, fe.name, Ge[fe.name]) : Go(r.errors, fe.name));
26968
27013
  }
26969
27014
  !la(xe) && await _(xe, ee, ae);
26970
27015
  }
@@ -26976,14 +27021,14 @@ function fEe(e = {}) {
26976
27021
  ee && (ee._f.refs ? ee._f.refs.every((ae) => !V_(ae)) : !V_(ee._f.ref)) && $(Y);
26977
27022
  }
26978
27023
  a.unMount = /* @__PURE__ */ new Set();
26979
- }, N = (Y, ee) => !t.disabled && (Y && ee && Qi(o, Y, ee), !Ec(H(), i)), D = (Y, ee, ae) => nD(Y, a, {
27024
+ }, N = (Y, ee) => !t.disabled && (Y && ee && zi(o, Y, ee), !Ec(H(), i)), D = (Y, ee, ae) => nD(Y, a, {
26980
27025
  ...s.mount ? o : Ao(ee) ? i : hl(Y) ? { [Y]: ee } : ee
26981
27026
  }, ae, ee), P = (Y) => pL(_r(s.mount ? o : i, Y, t.shouldUnregister ? _r(i, Y, []) : [])), L = (Y, ee, ae = {}) => {
26982
27027
  const pe = _r(n, Y);
26983
27028
  let Ae = ee;
26984
27029
  if (pe) {
26985
27030
  const fe = pe._f;
26986
- fe && (!fe.disabled && Qi(o, Y, Zz(ee, fe)), Ae = xT(fe.ref) && Ia(ee) ? "" : ee, Yz(fe.ref) ? [...fe.ref.options].forEach((xe) => xe.selected = Ae.includes(xe.value)) : fe.refs ? tO(fe.ref) ? fe.refs.forEach((xe) => {
27031
+ fe && (!fe.disabled && zi(o, Y, Zz(ee, fe)), Ae = xT(fe.ref) && Ia(ee) ? "" : ee, Yz(fe.ref) ? [...fe.ref.options].forEach((xe) => xe.selected = Ae.includes(xe.value)) : fe.refs ? tO(fe.ref) ? fe.refs.forEach((xe) => {
26987
27032
  (!xe.defaultChecked || !xe.disabled) && (Array.isArray(Ae) ? xe.checked = !!Ae.find((ge) => ge === xe.value) : xe.checked = Ae === xe.value || !!Ae);
26988
27033
  }) : fe.refs.forEach((xe) => xe.checked = xe.value === Ae) : OL(fe.ref) ? fe.ref.value = "" : (fe.ref.value = Ae, fe.ref.type || h.state.next({
26989
27034
  name: Y,
@@ -27000,7 +27045,7 @@ function fEe(e = {}) {
27000
27045
  }
27001
27046
  }, W = (Y, ee, ae = {}) => {
27002
27047
  const pe = _r(n, Y), Ae = a.array.has(Y), fe = Wo(ee);
27003
- Qi(o, Y, fe), Ae ? (h.array.next({
27048
+ zi(o, Y, fe), Ae ? (h.array.next({
27004
27049
  name: Y,
27005
27050
  values: Wo(o)
27006
27051
  }), (d.isDirty || d.dirtyFields || p.isDirty || p.dirtyFields) && ae.shouldDirty && h.state.next({
@@ -27025,7 +27070,7 @@ function fEe(e = {}) {
27025
27070
  if (Ae) {
27026
27071
  let ye, Ge;
27027
27072
  const Ke = ee.type ? OF(Ae._f) : Vz(Y), We = Y.type === ST.BLUR || Y.type === ST.FOCUS_OUT, ot = !oEe(Ae._f) && !t.resolver && !_r(r.errors, ae) && !Ae._f.deps || lEe(We, _r(r.touchedFields, ae), r.isSubmitted, ge, xe), lt = TF(ae, a, We);
27028
- Qi(o, ae, Ke), We ? (!ee || !ee.readOnly) && (Ae._f.onBlur && Ae._f.onBlur(Y), l && l(0)) : Ae._f.onChange && Ae._f.onChange(Y);
27073
+ zi(o, ae, Ke), We ? (!ee || !ee.readOnly) && (Ae._f.onBlur && Ae._f.onBlur(Y), l && l(0)) : Ae._f.onChange && Ae._f.onChange(Y);
27029
27074
  const at = S(ae, Ke, We), Ie = !la(at) || lt;
27030
27075
  if (!We && h.state.next({
27031
27076
  name: ae,
@@ -27084,7 +27129,7 @@ function fEe(e = {}) {
27084
27129
  });
27085
27130
  }, k = (Y, ee, ae) => {
27086
27131
  const pe = (_r(n, Y, { _f: {} })._f || {}).ref, Ae = _r(r.errors, Y) || {}, { ref: fe, message: xe, type: ge, ...ye } = Ae;
27087
- Qi(r.errors, Y, {
27132
+ zi(r.errors, Y, {
27088
27133
  ...ye,
27089
27134
  ...ee,
27090
27135
  ref: pe
@@ -27130,7 +27175,7 @@ function fEe(e = {}) {
27130
27175
  }, Q = (Y, ee = {}) => {
27131
27176
  let ae = _r(n, Y);
27132
27177
  const pe = ul(ee.disabled) || ul(t.disabled);
27133
- return Qi(n, Y, {
27178
+ return zi(n, Y, {
27134
27179
  ...ae || {},
27135
27180
  _f: {
27136
27181
  ...ae && ae._f ? ae._f : { ref: { name: Y } },
@@ -27160,7 +27205,7 @@ function fEe(e = {}) {
27160
27205
  const fe = Ao(Ae.value) && Ae.querySelectorAll && Ae.querySelectorAll("input,select,textarea")[0] || Ae, xe = Jge(fe), ge = ae._f.refs || [];
27161
27206
  if (xe ? ge.find((ye) => ye === fe) : fe === ae._f.ref)
27162
27207
  return;
27163
- Qi(n, Y, {
27208
+ zi(n, Y, {
27164
27209
  _f: {
27165
27210
  ...ae._f,
27166
27211
  ...xe ? {
@@ -27218,7 +27263,7 @@ function fEe(e = {}) {
27218
27263
  }), pe)
27219
27264
  throw pe;
27220
27265
  }, te = (Y, ee = {}) => {
27221
- _r(n, Y) && (Ao(ee.defaultValue) ? W(Y, Wo(_r(i, Y))) : (W(Y, ee.defaultValue), Qi(i, Y, Wo(ee.defaultValue))), ee.keepTouched || Go(r.touchedFields, Y), ee.keepDirty || (Go(r.dirtyFields, Y), r.isDirty = ee.defaultValue ? N(Y, Wo(_r(i, Y))) : N()), ee.keepError || (Go(r.errors, Y), d.isValid && m()), h.state.next({ ...r }));
27266
+ _r(n, Y) && (Ao(ee.defaultValue) ? W(Y, Wo(_r(i, Y))) : (W(Y, ee.defaultValue), zi(i, Y, Wo(ee.defaultValue))), ee.keepTouched || Go(r.touchedFields, Y), ee.keepDirty || (Go(r.dirtyFields, Y), r.isDirty = ee.defaultValue ? N(Y, Wo(_r(i, Y))) : N()), ee.keepError || (Go(r.errors, Y), d.isValid && m()), h.state.next({ ...r }));
27222
27267
  }, le = (Y, ee = {}) => {
27223
27268
  const ae = Y ? Wo(Y) : i, pe = Wo(ae), Ae = la(Y), fe = Ae ? i : pe;
27224
27269
  if (ee.keepDefaultValues || (i = ae), !ee.keepValues) {
@@ -27229,7 +27274,7 @@ function fEe(e = {}) {
27229
27274
  ]);
27230
27275
  for (const ge of Array.from(xe)) {
27231
27276
  const ye = _r(r.dirtyFields, ge), Ge = _r(o, ge), Ke = _r(fe, ge);
27232
- ye && !Ao(Ge) ? Qi(fe, ge, Ge) : !ye && !Ao(Ke) && W(ge, Ke);
27277
+ ye && !Ao(Ge) ? zi(fe, ge, Ge) : !ye && !Ao(Ke) && W(ge, Ke);
27233
27278
  }
27234
27279
  } else {
27235
27280
  if (fL && Ao(Y))
@@ -27454,7 +27499,7 @@ const pEe = Ur(
27454
27499
  },
27455
27500
  activityExecutionList: u = null
27456
27501
  }, d) => {
27457
- const p = Jt((x) => x.canvas.showDebugLogs), { getNodes: h } = Ji(), A = h(), { data: g } = A.find((x) => x.id === s?.id) || {}, { blt_node_states: { test: m = "", node: E } = {} } = g || {}, O = () => a === 0 ? {
27502
+ const p = Jt((x) => x.canvas.showDebugLogs), { getNodes: h } = eo(), A = h(), { data: g } = A.find((x) => x.id === s?.id) || {}, { blt_node_states: { test: m = "", node: E } = {} } = g || {}, O = () => a === 0 ? {
27458
27503
  secondaryButtonText: "Cancel",
27459
27504
  primaryButtonText: th.includes(t) ? "Save" : "Next"
27460
27505
  } : a === 1 && (m === "default" || m === "") ? {
@@ -29792,7 +29837,7 @@ var AOe = {
29792
29837
  affinity: n
29793
29838
  } = e;
29794
29839
  if (r != null) {
29795
- var i = Xi.transform(r, t, {
29840
+ var i = Yi.transform(r, t, {
29796
29841
  affinity: n
29797
29842
  });
29798
29843
  e.current = i, i == null && e.unref();
@@ -30071,7 +30116,7 @@ var rr = {
30071
30116
  return t;
30072
30117
  },
30073
30118
  equals(e, t) {
30074
- return Xi.equals(e.anchor, t.anchor) && Xi.equals(e.focus, t.focus);
30119
+ return Yi.equals(e.anchor, t.anchor) && Yi.equals(e.focus, t.focus);
30075
30120
  },
30076
30121
  surrounds(e, t) {
30077
30122
  var r = rr.intersection(e, t);
@@ -30082,14 +30127,14 @@ var rr = {
30082
30127
  if (rr.includes(e, t.anchor) || rr.includes(e, t.focus))
30083
30128
  return !0;
30084
30129
  var [r, n] = rr.edges(e), [i, o] = rr.edges(t);
30085
- return Xi.isBefore(r, i) && Xi.isAfter(n, o);
30130
+ return Yi.isBefore(r, i) && Yi.isAfter(n, o);
30086
30131
  }
30087
30132
  var [s, a] = rr.edges(e), l = !1, c = !1;
30088
- return Pn.isPoint(t) ? (l = Xi.compare(t, s) >= 0, c = Xi.compare(t, a) <= 0) : (l = gt.compare(t, s.path) >= 0, c = gt.compare(t, a.path) <= 0), l && c;
30133
+ return Pn.isPoint(t) ? (l = Yi.compare(t, s) >= 0, c = Yi.compare(t, a) <= 0) : (l = gt.compare(t, s.path) >= 0, c = gt.compare(t, a.path) <= 0), l && c;
30089
30134
  },
30090
30135
  intersection(e, t) {
30091
- var r = Td(e, vOe), [n, i] = rr.edges(e), [o, s] = rr.edges(t), a = Xi.isBefore(n, o) ? o : n, l = Xi.isBefore(i, s) ? i : s;
30092
- return Xi.isBefore(l, a) ? null : TOe({
30136
+ var r = Td(e, vOe), [n, i] = rr.edges(e), [o, s] = rr.edges(t), a = Yi.isBefore(n, o) ? o : n, l = Yi.isBefore(i, s) ? i : s;
30137
+ return Yi.isBefore(l, a) ? null : TOe({
30093
30138
  anchor: a,
30094
30139
  focus: l
30095
30140
  }, r);
@@ -30099,14 +30144,14 @@ var rr = {
30099
30144
  anchor: t,
30100
30145
  focus: r
30101
30146
  } = e;
30102
- return Xi.isAfter(t, r);
30147
+ return Yi.isAfter(t, r);
30103
30148
  },
30104
30149
  isCollapsed(e) {
30105
30150
  var {
30106
30151
  anchor: t,
30107
30152
  focus: r
30108
30153
  } = e;
30109
- return Xi.equals(t, r);
30154
+ return Yi.equals(t, r);
30110
30155
  },
30111
30156
  isExpanded(e) {
30112
30157
  return !rr.isCollapsed(e);
@@ -30115,7 +30160,7 @@ var rr = {
30115
30160
  return !rr.isBackward(e);
30116
30161
  },
30117
30162
  isRange(e) {
30118
- return Ds(e) && Xi.isPoint(e.anchor) && Xi.isPoint(e.focus);
30163
+ return Ds(e) && Yi.isPoint(e.anchor) && Yi.isPoint(e.focus);
30119
30164
  },
30120
30165
  *points(e) {
30121
30166
  yield [e.anchor, "anchor"], yield [e.focus, "focus"];
@@ -30135,9 +30180,9 @@ var rr = {
30135
30180
  var s = rr.isCollapsed(e);
30136
30181
  rr.isForward(e) ? (i = "forward", o = s ? i : "backward") : (i = "backward", o = s ? i : "forward");
30137
30182
  } else n === "outward" ? rr.isForward(e) ? (i = "backward", o = "forward") : (i = "forward", o = "backward") : (i = n, o = n);
30138
- var a = Xi.transform(e.anchor, t, {
30183
+ var a = Yi.transform(e.anchor, t, {
30139
30184
  affinity: i
30140
- }), l = Xi.transform(e.focus, t, {
30185
+ }), l = Yi.transform(e.focus, t, {
30141
30186
  affinity: o
30142
30187
  });
30143
30188
  return !a || !l ? null : {
@@ -30878,7 +30923,7 @@ var GOe = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u
30878
30923
  shouldMergeNodesRemovePrevNode: (e, t, r) => e.shouldMergeNodesRemovePrevNode(t, r)
30879
30924
  }, Pn = {
30880
30925
  isLocation(e) {
30881
- return gt.isPath(e) || Xi.isPoint(e) || rr.isRange(e);
30926
+ return gt.isPath(e) || Yi.isPoint(e) || rr.isRange(e);
30882
30927
  },
30883
30928
  isPath(e) {
30884
30929
  return Array.isArray(e);
@@ -30914,16 +30959,16 @@ function nk(e) {
30914
30959
  }
30915
30960
  return e;
30916
30961
  }
30917
- var Xi = {
30962
+ var Yi = {
30918
30963
  compare(e, t) {
30919
30964
  var r = gt.compare(e.path, t.path);
30920
30965
  return r === 0 ? e.offset < t.offset ? -1 : e.offset > t.offset ? 1 : 0 : r;
30921
30966
  },
30922
30967
  isAfter(e, t) {
30923
- return Xi.compare(e, t) === 1;
30968
+ return Yi.compare(e, t) === 1;
30924
30969
  },
30925
30970
  isBefore(e, t) {
30926
- return Xi.compare(e, t) === -1;
30971
+ return Yi.compare(e, t) === -1;
30927
30972
  },
30928
30973
  equals(e, t) {
30929
30974
  return e.offset === t.offset && gt.equals(e.path, t.path);
@@ -31253,7 +31298,7 @@ var KOe = {
31253
31298
  if (Ep(e, gt.parent(O), (Q) => uD(Q, y, 1)), e.selection) {
31254
31299
  var v = Fo({}, e.selection);
31255
31300
  for (var [b, S] of rr.points(v)) {
31256
- var x = Xi.transform(b, t);
31301
+ var x = Yi.transform(b, t);
31257
31302
  if (v != null && x != null)
31258
31303
  v[S] = x;
31259
31304
  else {
@@ -31376,7 +31421,7 @@ var KOe = {
31376
31421
  if (r && e.selection) {
31377
31422
  var G = Fo({}, e.selection);
31378
31423
  for (var [$, j] of rr.points(G))
31379
- G[j] = Xi.transform($, t);
31424
+ G[j] = Yi.transform($, t);
31380
31425
  rr.equals(G, e.selection) || (e.selection = G);
31381
31426
  }
31382
31427
  }
@@ -31992,7 +32037,7 @@ var R1e = function(t, r) {
31992
32037
  return r.length === 0 || r.length === 1 && vt.isText(n) && n.text === "" && !e.isVoid(t);
31993
32038
  }, N1e = (e, t, r) => {
31994
32039
  var n = je.end(e, r);
31995
- return Xi.equals(t, n);
32040
+ return Yi.equals(t, n);
31996
32041
  }, L1e = (e) => {
31997
32042
  var t = hX.get(e);
31998
32043
  return t === void 0 ? !0 : t;
@@ -32000,7 +32045,7 @@ var R1e = function(t, r) {
32000
32045
  if (t.offset !== 0)
32001
32046
  return !1;
32002
32047
  var n = je.start(e, r);
32003
- return Xi.equals(t, n);
32048
+ return Yi.equals(t, n);
32004
32049
  }, F1e = (e, t) => {
32005
32050
  var r = je.path(e, t, {
32006
32051
  edge: "end"
@@ -32580,7 +32625,7 @@ var oye = (e, t) => {
32580
32625
  if (!rr.isCollapsed(c)) {
32581
32626
  if (!u) {
32582
32627
  var [, m] = rr.edges(c), E = je.end(t, []);
32583
- Xi.equals(m, E) || (c = je.unhangRange(t, c, {
32628
+ Yi.equals(m, E) || (c = je.unhangRange(t, c, {
32584
32629
  voids: l
32585
32630
  }));
32586
32631
  }
@@ -32891,7 +32936,7 @@ var Eye = function(t, r) {
32891
32936
  } = e, n = {}, i = {};
32892
32937
  if (r) {
32893
32938
  for (var o in t)
32894
- (o === "anchor" && t.anchor != null && !Xi.equals(t.anchor, r.anchor) || o === "focus" && t.focus != null && !Xi.equals(t.focus, r.focus) || o !== "anchor" && o !== "focus" && t[o] !== r[o]) && (n[o] = r[o], i[o] = t[o]);
32939
+ (o === "anchor" && t.anchor != null && !Yi.equals(t.anchor, r.anchor) || o === "focus" && t.focus != null && !Yi.equals(t.focus, r.focus) || o !== "anchor" && o !== "focus" && t[o] !== r[o]) && (n[o] = r[o], i[o] = t[o]);
32895
32940
  Object.keys(n).length > 0 && e.apply({
32896
32941
  type: "set_selection",
32897
32942
  properties: n,
@@ -37367,7 +37412,7 @@ const VX = Ur(
37367
37412
  sx: {
37368
37413
  cursor: "grab",
37369
37414
  "&:active": { cursor: "grabbing" },
37370
- ...Ki(v)
37415
+ ...Zi(v)
37371
37416
  },
37372
37417
  onMouseDown: x,
37373
37418
  "data-testid": "suggestions-popup-drag-btn",
@@ -37384,7 +37429,7 @@ const VX = Ur(
37384
37429
  P.preventDefault(), P.stopPropagation(), O(!0);
37385
37430
  },
37386
37431
  sx: {
37387
- ...Ki(v)
37432
+ ...Zi(v)
37388
37433
  },
37389
37434
  size: "small",
37390
37435
  "data-testid": "suggestions-popup-close-btn",
@@ -39215,9 +39260,9 @@ const VX = Ur(
39215
39260
  showSuggestion: y = !1,
39216
39261
  ...v
39217
39262
  }, b) => {
39218
- const S = It(), { getNodes: x, setNodes: C, getEdges: w } = Ji(), _ = x(), { loopSuggestionsData: I = {} } = Jt((Ae) => Ae.loopActivity), [N, D] = ve(!1), { canvasWorkflow: P, activityExecutionData: L, selectedActivityId: F, aiGeneratedFieldMap: W } = Jt(
39263
+ const S = It(), { getNodes: x, setNodes: C, getEdges: w } = eo(), _ = x(), { loopSuggestionsData: I = {} } = Jt((Ae) => Ae.loopActivity), [N, D] = ve(!1), { canvasWorkflow: P, activityExecutionData: L, selectedActivityId: F, aiGeneratedFieldMap: W } = Jt(
39219
39264
  (Ae) => Ae.canvas
39220
- ), U = Pt(null), { WORKFLOW_URLS: X, ENTITY_ID: M = "", analytics: H, openAddonModal: V, currentSubscription: R } = eo(), { VORTEX_MAIN_URL: k } = X, B = rs(), z = jn(B), G = jn(Wr.VERSION);
39265
+ ), U = Pt(null), { WORKFLOW_URLS: X, ENTITY_ID: M = "", analytics: H, openAddonModal: V, currentSubscription: R } = Wi(), { VORTEX_MAIN_URL: k } = X, B = rs(), z = jn(B), G = jn(Wr.VERSION);
39221
39266
  ke(() => () => {
39222
39267
  U.current && clearTimeout(U.current);
39223
39268
  }, []);
@@ -45826,9 +45871,9 @@ class Oc {
45826
45871
  return new Oc(this.from, this.length + t.length, this.top, this.height + t.height, r);
45827
45872
  }
45828
45873
  }
45829
- var Yi = /* @__PURE__ */ (function(e) {
45874
+ var qi = /* @__PURE__ */ (function(e) {
45830
45875
  return e[e.ByPos = 0] = "ByPos", e[e.ByHeight = 1] = "ByHeight", e[e.ByPosNoHeight = 2] = "ByPosNoHeight", e;
45831
- })(Yi || (Yi = {}));
45876
+ })(qi || (qi = {}));
45832
45877
  const vv = 1e-3;
45833
45878
  class ma {
45834
45879
  constructor(t, r, n = 2) {
@@ -45859,9 +45904,9 @@ class ma {
45859
45904
  applyChanges(t, r, n, i) {
45860
45905
  let o = this, s = n.doc;
45861
45906
  for (let a = i.length - 1; a >= 0; a--) {
45862
- let { fromA: l, toA: c, fromB: u, toB: d } = i[a], p = o.lineAt(l, Yi.ByPosNoHeight, n.setDoc(r), 0, 0), h = p.to >= c ? p : o.lineAt(c, Yi.ByPosNoHeight, n, 0, 0);
45907
+ let { fromA: l, toA: c, fromB: u, toB: d } = i[a], p = o.lineAt(l, qi.ByPosNoHeight, n.setDoc(r), 0, 0), h = p.to >= c ? p : o.lineAt(c, qi.ByPosNoHeight, n, 0, 0);
45863
45908
  for (d += h.to - c, c = h.to; a > 0 && p.from <= i[a - 1].toA; )
45864
- l = i[a - 1].fromA, u = i[a - 1].fromB, a--, l < p.from && (p = o.lineAt(l, Yi.ByPosNoHeight, n, 0, 0));
45909
+ l = i[a - 1].fromA, u = i[a - 1].fromB, a--, l < p.from && (p = o.lineAt(l, qi.ByPosNoHeight, n, 0, 0));
45865
45910
  u += p.from - l, l = p.from;
45866
45911
  let A = zL.build(n.setDoc(s), t, u, d);
45867
45912
  o = jT(o, o.replace(l, c, A));
@@ -45920,7 +45965,7 @@ class ZY extends ma {
45920
45965
  return this.spaceAbove ? this.blockAt(0, n, i, o).join(s) : s;
45921
45966
  }
45922
45967
  forEachLine(t, r, n, i, o, s) {
45923
- t <= o + this.length && r >= o && s(this.lineAt(0, Yi.ByPos, n, i, o));
45968
+ t <= o + this.length && r >= o && s(this.lineAt(0, qi.ByPos, n, i, o));
45924
45969
  }
45925
45970
  setMeasuredHeight(t) {
45926
45971
  let r = t.heights[t.index++];
@@ -45975,9 +46020,9 @@ class Is extends ma {
45975
46020
  }
45976
46021
  }
45977
46022
  lineAt(t, r, n, i, o) {
45978
- if (r == Yi.ByHeight)
46023
+ if (r == qi.ByHeight)
45979
46024
  return this.blockAt(t, n, i, o);
45980
- if (r == Yi.ByPosNoHeight) {
46025
+ if (r == qi.ByPosNoHeight) {
45981
46026
  let { from: h, to: A } = n.doc.lineAt(t);
45982
46027
  return new Oc(h, A - h, 0, 0, 0);
45983
46028
  }
@@ -46049,10 +46094,10 @@ class Ixe extends ma {
46049
46094
  return t < o ? this.left.blockAt(t, r, n, i) : this.right.blockAt(t, r, o, i + this.left.length + this.break);
46050
46095
  }
46051
46096
  lineAt(t, r, n, i, o) {
46052
- let s = i + this.left.height, a = o + this.left.length + this.break, l = r == Yi.ByHeight ? t < s : t < a, c = l ? this.left.lineAt(t, r, n, i, o) : this.right.lineAt(t, r, n, s, a);
46097
+ let s = i + this.left.height, a = o + this.left.length + this.break, l = r == qi.ByHeight ? t < s : t < a, c = l ? this.left.lineAt(t, r, n, i, o) : this.right.lineAt(t, r, n, s, a);
46053
46098
  if (this.break || (l ? c.to < a : c.from > a))
46054
46099
  return c;
46055
- let u = r == Yi.ByPosNoHeight ? Yi.ByPosNoHeight : Yi.ByPos;
46100
+ let u = r == qi.ByPosNoHeight ? qi.ByPosNoHeight : qi.ByPos;
46056
46101
  return l ? c.join(this.right.lineAt(a, u, n, s, a)) : this.left.lineAt(a, u, n, i, o).join(c);
46057
46102
  }
46058
46103
  forEachLine(t, r, n, i, o, s) {
@@ -46060,7 +46105,7 @@ class Ixe extends ma {
46060
46105
  if (this.break)
46061
46106
  t < l && this.left.forEachLine(t, r, n, i, o, s), r >= l && this.right.forEachLine(t, r, n, a, l, s);
46062
46107
  else {
46063
- let c = this.lineAt(l, Yi.ByPos, n, i, o);
46108
+ let c = this.lineAt(l, qi.ByPos, n, i, o);
46064
46109
  t < c.from && this.left.forEachLine(t, c.from - 1, n, i, o, s), c.to >= t && c.from <= r && s(c), r > c.to && this.right.forEachLine(c.to + 1, r, n, a, l, s);
46065
46110
  }
46066
46111
  }
@@ -46345,26 +46390,26 @@ class zB {
46345
46390
  return this.scaler.fromDOM(this.pixelViewport.bottom);
46346
46391
  }
46347
46392
  getViewport(t, r) {
46348
- let n = 0.5 - Math.max(-0.5, Math.min(0.5, t / 1e3 / 2)), i = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: a } = this, l = new v1(i.lineAt(s - n * 1e3, Yi.ByHeight, o, 0, 0).from, i.lineAt(a + (1 - n) * 1e3, Yi.ByHeight, o, 0, 0).to);
46393
+ let n = 0.5 - Math.max(-0.5, Math.min(0.5, t / 1e3 / 2)), i = this.heightMap, o = this.heightOracle, { visibleTop: s, visibleBottom: a } = this, l = new v1(i.lineAt(s - n * 1e3, qi.ByHeight, o, 0, 0).from, i.lineAt(a + (1 - n) * 1e3, qi.ByHeight, o, 0, 0).to);
46349
46394
  if (r) {
46350
46395
  let { head: c } = r.range;
46351
46396
  if (c < l.from || c > l.to) {
46352
- let u = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), d = i.lineAt(c, Yi.ByPos, o, 0, 0), p;
46353
- r.y == "center" ? p = (d.top + d.bottom) / 2 - u / 2 : r.y == "start" || r.y == "nearest" && c < l.from ? p = d.top : p = d.bottom - u, l = new v1(i.lineAt(p - 1e3 / 2, Yi.ByHeight, o, 0, 0).from, i.lineAt(p + u + 1e3 / 2, Yi.ByHeight, o, 0, 0).to);
46397
+ let u = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), d = i.lineAt(c, qi.ByPos, o, 0, 0), p;
46398
+ r.y == "center" ? p = (d.top + d.bottom) / 2 - u / 2 : r.y == "start" || r.y == "nearest" && c < l.from ? p = d.top : p = d.bottom - u, l = new v1(i.lineAt(p - 1e3 / 2, qi.ByHeight, o, 0, 0).from, i.lineAt(p + u + 1e3 / 2, qi.ByHeight, o, 0, 0).to);
46354
46399
  }
46355
46400
  }
46356
46401
  return l;
46357
46402
  }
46358
46403
  mapViewport(t, r) {
46359
46404
  let n = r.mapPos(t.from, -1), i = r.mapPos(t.to, 1);
46360
- return new v1(this.heightMap.lineAt(n, Yi.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(i, Yi.ByPos, this.heightOracle, 0, 0).to);
46405
+ return new v1(this.heightMap.lineAt(n, qi.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(i, qi.ByPos, this.heightOracle, 0, 0).to);
46361
46406
  }
46362
46407
  // Checks if a given viewport covers the visible part of the
46363
46408
  // document and not too much beyond that.
46364
46409
  viewportIsAppropriate({ from: t, to: r }, n = 0) {
46365
46410
  if (!this.inView)
46366
46411
  return !0;
46367
- let { top: i } = this.heightMap.lineAt(t, Yi.ByPos, this.heightOracle, 0, 0), { bottom: o } = this.heightMap.lineAt(r, Yi.ByPos, this.heightOracle, 0, 0), { visibleTop: s, visibleBottom: a } = this;
46412
+ let { top: i } = this.heightMap.lineAt(t, qi.ByPos, this.heightOracle, 0, 0), { bottom: o } = this.heightMap.lineAt(r, qi.ByPos, this.heightOracle, 0, 0), { visibleTop: s, visibleBottom: a } = this;
46368
46413
  return (t == 0 || i <= s - Math.max(10, Math.min(
46369
46414
  -n,
46370
46415
  250
@@ -46477,10 +46522,10 @@ class zB {
46477
46522
  return this.visibleRanges = n, i;
46478
46523
  }
46479
46524
  lineBlockAt(t) {
46480
- return t >= this.viewport.from && t <= this.viewport.to && this.viewportLines.find((r) => r.from <= t && r.to >= t) || Zm(this.heightMap.lineAt(t, Yi.ByPos, this.heightOracle, 0, 0), this.scaler);
46525
+ return t >= this.viewport.from && t <= this.viewport.to && this.viewportLines.find((r) => r.from <= t && r.to >= t) || Zm(this.heightMap.lineAt(t, qi.ByPos, this.heightOracle, 0, 0), this.scaler);
46481
46526
  }
46482
46527
  lineBlockAtHeight(t) {
46483
- return t >= this.viewportLines[0].top && t <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((r) => r.top <= t && r.bottom >= t) || Zm(this.heightMap.lineAt(this.scaler.fromDOM(t), Yi.ByHeight, this.heightOracle, 0, 0), this.scaler);
46528
+ return t >= this.viewportLines[0].top && t <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((r) => r.top <= t && r.bottom >= t) || Zm(this.heightMap.lineAt(this.scaler.fromDOM(t), qi.ByHeight, this.heightOracle, 0, 0), this.scaler);
46484
46529
  }
46485
46530
  getScrollOffset() {
46486
46531
  return (this.scrollParent == this.view.scrollDOM ? this.scrollParent.scrollTop : (this.scrollParent ? this.scrollParent.getBoundingClientRect().top : 0) - this.view.contentDOM.getBoundingClientRect().top) * this.scaleY;
@@ -46563,7 +46608,7 @@ class XL {
46563
46608
  constructor(t, r, n) {
46564
46609
  let i = 0, o = 0, s = 0;
46565
46610
  this.viewports = n.map(({ from: a, to: l }) => {
46566
- let c = r.lineAt(a, Yi.ByPos, t, 0, 0).top, u = r.lineAt(l, Yi.ByPos, t, 0, 0).bottom;
46611
+ let c = r.lineAt(a, qi.ByPos, t, 0, 0).top, u = r.lineAt(l, qi.ByPos, t, 0, 0).bottom;
46567
46612
  return i += u - c, { from: a, to: l, top: c, bottom: u, domTop: 0, domBottom: 0 };
46568
46613
  }), this.scale = (7e6 - i) / (r.height - i);
46569
46614
  for (let a of this.viewports)
@@ -92856,7 +92901,7 @@ const fh = /* @__PURE__ */ ai(Y7e), q7e = (e) => !e || typeof e != "string" ? ""
92856
92901
  suggestionLabel: S,
92857
92902
  allowArrayAtRoot: x = !1,
92858
92903
  ...C
92859
- } = e, w = Kt(() => u && typeof u == "object" && Object.keys(u).length > 0 ? u : {}, [JSON.stringify(u)]), [_, I] = ve(null), N = Pt(null), D = Pt(null), P = Lr(), L = Pt(null), F = Pt(null), [W, U] = ve(!1), X = Za(), { canvasWorkflow: M, activityExecutionData: H } = Jt((Ae) => Ae.canvas), { WORKFLOW_URLS: V, ENTITY_ID: R = "", analytics: k, openAddonModal: B, currentSubscription: z } = eo(), { VORTEX_MAIN_URL: G } = V, $ = rs(), j = jn($), K = jn(Wr.VERSION) || j, { setNodes: J, getEdges: se } = Ji(), { MCP_INTEGRATION_FORM: te } = el(), le = (Ae) => {
92904
+ } = e, w = Kt(() => u && typeof u == "object" && Object.keys(u).length > 0 ? u : {}, [JSON.stringify(u)]), [_, I] = ve(null), N = Pt(null), D = Pt(null), P = Lr(), L = Pt(null), F = Pt(null), [W, U] = ve(!1), X = Za(), { canvasWorkflow: M, activityExecutionData: H } = Jt((Ae) => Ae.canvas), { WORKFLOW_URLS: V, ENTITY_ID: R = "", analytics: k, openAddonModal: B, currentSubscription: z } = Wi(), { VORTEX_MAIN_URL: G } = V, $ = rs(), j = jn($), K = jn(Wr.VERSION) || j, { setNodes: J, getEdges: se } = eo(), { MCP_INTEGRATION_FORM: te } = el(), le = (Ae) => {
92860
92905
  try {
92861
92906
  if (l !== "json")
92862
92907
  return !0;
@@ -94217,7 +94262,7 @@ const Ko = re.memo(jd(f9e), p9e), Vee = /* @__PURE__ */ Object.freeze(/* @__PURE
94217
94262
  viewOnly: r = !1,
94218
94263
  excludeUrlLanguage: n = !1
94219
94264
  }) => {
94220
- const i = Lr(), o = It(), { getNodes: s } = Ji(), a = s(), { trigger_help: l, workflow: c } = Jt((b) => b.workflows), [u, d] = ve(""), [p, h] = ve("get"), [A, g] = ve({}), m = jn(), E = jn("version");
94265
+ const i = Lr(), o = It(), { getNodes: s } = eo(), a = s(), { trigger_help: l, workflow: c } = Jt((b) => b.workflows), [u, d] = ve(""), [p, h] = ve("get"), [A, g] = ve({}), m = jn(), E = jn("version");
94221
94266
  ke(() => {
94222
94267
  if (!St(l)) {
94223
94268
  const b = {}, S = [];
@@ -94921,7 +94966,7 @@ const Ko = re.memo(jd(f9e), p9e), Vee = /* @__PURE__ */ Object.freeze(/* @__PURE
94921
94966
  height: 32,
94922
94967
  border: `1px solid ${s.palette.grey.outlined.border}`,
94923
94968
  borderRadius: 1.5,
94924
- ...Ki(s),
94969
+ ...Zi(s),
94925
94970
  ...i
94926
94971
  },
94927
94972
  "data-testid": "button-refresh",
@@ -95811,7 +95856,7 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
95811
95856
  ] });
95812
95857
  }
95813
95858
  ), $9e = Ur((e, t) => {
95814
- const r = It(), { getNodes: n } = Ji(), { selectedActivityId: i, nodes: o, aiGeneratedFieldMap: s } = Jt((ge) => ge.canvas), a = ut(
95859
+ const r = It(), { getNodes: n } = eo(), { selectedActivityId: i, nodes: o, aiGeneratedFieldMap: s } = Jt((ge) => ge.canvas), a = ut(
95815
95860
  (ge, ye, Ge, Ke, We, ot = !1) => {
95816
95861
  const { multiple: lt, renderOption: at, name: Ie, handleChange: ze } = e, Xe = Array.isArray(ye) ? ye.map(
95817
95862
  (de) => de && typeof de == "object" && "value" in de ? de.value : de
@@ -97437,8 +97482,16 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97437
97482
  ] })
97438
97483
  ] });
97439
97484
  }), J$ = {
97440
- Folder: [{ name: "Created", value: "storage.folder.created" }],
97441
- File: [{ name: "Uploaded", value: "storage.file.uploaded" }]
97485
+ Folder: [
97486
+ { name: "Created", value: "storage.folder.created" },
97487
+ { name: "Deleted", value: "storage.folder.deleted" }
97488
+ ],
97489
+ File: [
97490
+ { name: "Uploaded", value: "storage.file.uploaded" },
97491
+ { name: "Deleted", value: "storage.file.deleted" },
97492
+ { name: "Made Public", value: "storage.file.public" },
97493
+ { name: "Made Private", value: "storage.file.private" }
97494
+ ]
97442
97495
  }, X9e = Ur((e, t) => {
97443
97496
  const { viewOnly: r = !1 } = e, { setValue: n } = nn(), { control: i } = nn(), o = {
97444
97497
  "storage.file.uploaded": "Workflow will be triggered when a new file is uploaded to the boltic storage.",
@@ -97493,25 +97546,41 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97493
97546
  file_name: "",
97494
97547
  folder_path: "",
97495
97548
  overwrite: !1,
97496
- is_public: !1
97497
- }, { id: c, isLoop: u = !1, viewOnly: d = !1, type: p } = e, h = (g) => (m) => {
97549
+ is_public: !1,
97550
+ is_public_permanent: !1
97551
+ }, c = {
97552
+ file_paths: "",
97553
+ ttl_seconds: ""
97554
+ }, u = {
97555
+ file_path: ""
97556
+ }, d = {
97557
+ folder_path: "",
97558
+ page_size: "",
97559
+ next_page_token: ""
97560
+ }, { id: p, isLoop: h = !1, viewOnly: A = !1, type: g } = e, m = (O) => (y) => {
97498
97561
  if (s?.event === "upload_file") {
97499
- if (g === "file_name") {
97500
- if (m?.trim() === "")
97562
+ if (O === "file_name") {
97563
+ if (y?.trim() === "")
97501
97564
  return "File name is required";
97502
- if (m?.trim()?.includes("/"))
97565
+ if (y?.trim()?.includes("/"))
97503
97566
  return "'/' is not allowed in file name.";
97504
97567
  }
97505
- return g === "file_content" && m?.trim() === "" ? "File content is required" : g === "expire_in" && (m < 1 || m > 10080) ? "Expiry values between 1 to 10080 are accepted." : !0;
97506
- } else if (s?.event === "create_folder") {
97507
- if (m?.trim() === "")
97508
- return "Folder name can not be empty";
97509
- const E = /^[A-Za-z0-9 _-]*$/, O = /{{[^{}]+}}/g, y = m.replace(O, "");
97510
- if (!qfe(m) && !E.test(y))
97511
- return "Folder name should not contain special characters [!@#$%^&*()+{}[]:;<>,.?~/].";
97568
+ return O === "file_content" && y?.trim() === "" ? "File content is required" : O === "expire_in" && (y < 1 || y > 10080) ? "Expiry values between 1 to 10080 are accepted." : !0;
97569
+ } else {
97570
+ if (["delete_file", "make_file_public", "make_file_private"].includes(s?.event))
97571
+ return O === "file_paths" && y?.trim() === "" ? "File path is required" : !0;
97572
+ if (s?.event === "download_file")
97573
+ return O === "file_path" && y?.trim() === "" ? "File path is required" : !0;
97574
+ if (s?.event === "create_folder") {
97575
+ if (y?.trim() === "")
97576
+ return "Folder name can not be empty";
97577
+ const v = /^[A-Za-z0-9 _-]*$/, b = /{{[^{}]+}}/g, S = y.replace(b, "");
97578
+ if (!qfe(y) && !v.test(S))
97579
+ return "Folder name should not contain special characters [!@#$%^&*()+{}[]:;<>,.?~/].";
97580
+ }
97512
97581
  }
97513
97582
  return !0;
97514
- }, A = () => ({
97583
+ }, E = () => ({
97515
97584
  create_folder: [
97516
97585
  {
97517
97586
  required: !0,
@@ -97557,6 +97626,13 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97557
97626
  fieldName: "is_public",
97558
97627
  placeholder: ""
97559
97628
  },
97629
+ {
97630
+ required: !1,
97631
+ type: "checkbox",
97632
+ label: "Make file public",
97633
+ fieldName: "is_public_permanent",
97634
+ placeholder: ""
97635
+ },
97560
97636
  {
97561
97637
  required: !1,
97562
97638
  type: "number",
@@ -97565,67 +97641,136 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97565
97641
  placeholder: "Enter minute(s)",
97566
97642
  helperText: "Default is 60min"
97567
97643
  }
97644
+ ],
97645
+ download_file: [
97646
+ {
97647
+ required: !0,
97648
+ type: "text",
97649
+ label: "File Path",
97650
+ fieldName: "file_path",
97651
+ placeholder: "folder/file.csv",
97652
+ description: "Path of the file to download. The workflow output returns Base64 file content."
97653
+ }
97654
+ ],
97655
+ delete_file: [
97656
+ {
97657
+ required: !0,
97658
+ type: "text",
97659
+ label: "File Path(s)",
97660
+ fieldName: "file_paths",
97661
+ placeholder: "file.csv or folder/file.csv"
97662
+ }
97663
+ ],
97664
+ make_file_public: [
97665
+ {
97666
+ required: !0,
97667
+ type: "text",
97668
+ label: "File Path(s)",
97669
+ fieldName: "file_paths",
97670
+ placeholder: "file.csv or folder/file.csv"
97671
+ },
97672
+ {
97673
+ required: !1,
97674
+ type: "number",
97675
+ label: "Cache TTL seconds",
97676
+ fieldName: "ttl_seconds",
97677
+ placeholder: "300"
97678
+ }
97679
+ ],
97680
+ make_file_private: [
97681
+ {
97682
+ required: !0,
97683
+ type: "text",
97684
+ label: "File Path(s)",
97685
+ fieldName: "file_paths",
97686
+ placeholder: "file.csv or folder/file.csv"
97687
+ }
97688
+ ],
97689
+ list_files: [
97690
+ {
97691
+ required: !1,
97692
+ type: "text",
97693
+ label: "Folder Path or File Prefix",
97694
+ fieldName: "folder_path",
97695
+ placeholder: "reports/ or report.csv",
97696
+ description: "Use a trailing slash to list a folder (for example, reports/). Enter a file name or prefix to search files. Leave blank for root."
97697
+ },
97698
+ {
97699
+ required: !1,
97700
+ type: "number",
97701
+ label: "Page Size",
97702
+ fieldName: "page_size",
97703
+ placeholder: "100"
97704
+ },
97705
+ {
97706
+ required: !1,
97707
+ type: "text",
97708
+ label: "Next Page Token",
97709
+ fieldName: "next_page_token",
97710
+ placeholder: "{{listFiles1.files.next_page_token}}",
97711
+ description: "Leave blank for the first page. To fetch the next page, pass next_page_token from the previous List Files/Folders result."
97712
+ }
97568
97713
  ]
97569
- }[s.event] || []).map(({ label: E, fieldName: O, type: y, required: v, placeholder: b }) => {
97570
- if (y === "text")
97714
+ }[s.event] || []).map(({ label: v, fieldName: b, type: S, required: x, placeholder: C, description: w }) => {
97715
+ if (S === "text")
97571
97716
  return /* @__PURE__ */ f.jsx(
97572
97717
  on,
97573
97718
  {
97574
- name: `properties.${s.event}.${O}`,
97719
+ name: `properties.${s.event}.${b}`,
97575
97720
  control: i,
97576
97721
  meta: {
97577
- displayName: E,
97578
- description: Hn(p, O),
97579
- placeholder: b
97722
+ displayName: v,
97723
+ description: w || Hn(g, b),
97724
+ placeholder: C
97580
97725
  },
97581
97726
  validationRules: {
97582
- validate: h(O)
97727
+ validate: m(b)
97583
97728
  },
97584
- editorId: `${y}-bs-activity-${O}`,
97585
- id: c,
97586
- required: v,
97587
- isLoop: u,
97588
- viewOnly: d,
97729
+ editorId: `${S}-bs-activity-${b}`,
97730
+ id: p,
97731
+ required: x,
97732
+ isLoop: h,
97733
+ viewOnly: A,
97589
97734
  showSuggestions: !0
97590
97735
  },
97591
- O
97736
+ b
97592
97737
  );
97593
- if (y == "number" && s?.upload_file?.is_public)
97738
+ if (S == "number" && (s?.event !== "upload_file" || s?.upload_file?.is_public))
97594
97739
  return /* @__PURE__ */ f.jsx(
97595
97740
  on,
97596
97741
  {
97597
- name: `properties.${s.event}.${O}`,
97742
+ name: `properties.${s.event}.${b}`,
97598
97743
  control: i,
97599
97744
  meta: {
97600
- displayName: E,
97601
- description: Hn(p, O),
97602
- placeholder: b
97745
+ displayName: v,
97746
+ description: Hn(g, b),
97747
+ placeholder: C
97603
97748
  },
97604
97749
  validationRules: {
97605
- validate: h(O)
97750
+ validate: m(b)
97606
97751
  },
97607
- editorId: `${y}-bs-activity-${O}`,
97608
- id: c,
97752
+ editorId: `${S}-bs-activity-${b}`,
97753
+ id: p,
97609
97754
  fieldType: "number",
97610
- required: v,
97611
- isLoop: u,
97612
- viewOnly: d,
97755
+ required: x,
97756
+ isLoop: h,
97757
+ viewOnly: A,
97613
97758
  showSuggestions: !0
97614
97759
  },
97615
- O
97760
+ b
97616
97761
  );
97617
- if (y === "checkbox")
97762
+ if (S === "checkbox")
97618
97763
  return /* @__PURE__ */ f.jsx(Be, { sx: { width: "100%" }, children: /* @__PURE__ */ f.jsx(
97619
97764
  Rr,
97620
97765
  {
97621
- name: `properties.upload_file.${O}`,
97766
+ name: `properties.upload_file.${b}`,
97622
97767
  control: i,
97623
97768
  rules: {
97624
- validate: h(O)
97769
+ validate: m(b)
97625
97770
  },
97626
97771
  render: ({
97627
- field: { value: S, ...x },
97628
- fieldState: { error: C }
97772
+ field: { value: _, ...I },
97773
+ fieldState: { error: N }
97629
97774
  }) => /* @__PURE__ */ f.jsxs(FG, { children: [
97630
97775
  /* @__PURE__ */ f.jsx(
97631
97776
  ts,
@@ -97633,7 +97778,7 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97633
97778
  control: /* @__PURE__ */ f.jsx(
97634
97779
  za,
97635
97780
  {
97636
- ...x,
97781
+ ...I,
97637
97782
  icon: /* @__PURE__ */ f.jsx(
97638
97783
  Qe,
97639
97784
  {
@@ -97651,20 +97796,20 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97651
97796
  sx: {
97652
97797
  p: 0,
97653
97798
  "& .MuiSvgIcon-root": {
97654
- fontSize: (w) => w.typography.xlMedium.fontSize
97799
+ fontSize: (D) => D.typography.xlMedium.fontSize
97655
97800
  }
97656
97801
  },
97657
- readOnly: d,
97658
- checked: S
97802
+ readOnly: A,
97803
+ checked: _
97659
97804
  }
97660
97805
  ),
97661
- label: E
97806
+ label: v
97662
97807
  }
97663
97808
  ),
97664
- C?.message && /* @__PURE__ */ f.jsx(dn, { children: C.message })
97809
+ N?.message && /* @__PURE__ */ f.jsx(dn, { children: N.message })
97665
97810
  ] })
97666
97811
  }
97667
- ) }, O);
97812
+ ) }, b);
97668
97813
  });
97669
97814
  return /* @__PURE__ */ f.jsx(qn, { children: /* @__PURE__ */ f.jsxs(Pe, { container: !0, gap: 1.5, children: [
97670
97815
  /* @__PURE__ */ f.jsx(Pe, { item: !0, xs: 12, children: /* @__PURE__ */ f.jsx(
@@ -97683,28 +97828,40 @@ const Z$ = 40, B9e = 400, j9e = re.forwardRef(
97683
97828
  validationRules: {
97684
97829
  required: "Event is required"
97685
97830
  },
97686
- viewOnly: d,
97831
+ viewOnly: A,
97687
97832
  id: "event",
97688
- handleChange: (g) => {
97689
- const { value: m } = g;
97690
- m == "create_folder" ? n("properties", {
97833
+ handleChange: (O) => {
97834
+ const { value: y } = O;
97835
+ y == "create_folder" ? n("properties", {
97691
97836
  ...s,
97692
97837
  create_folder: a,
97693
- event: m
97694
- }) : n("properties", {
97838
+ event: y
97839
+ }) : y === "upload_file" ? n("properties", {
97695
97840
  ...s,
97696
97841
  upload_file: l,
97697
- event: m
97842
+ event: y
97843
+ }) : y === "download_file" ? n("properties", {
97844
+ ...s,
97845
+ download_file: u,
97846
+ event: y
97847
+ }) : y === "list_files" ? n("properties", {
97848
+ ...s,
97849
+ list_files: d,
97850
+ event: y
97851
+ }) : n("properties", {
97852
+ ...s,
97853
+ [y]: c,
97854
+ event: y
97698
97855
  });
97699
97856
  },
97700
- renderValueUi: (g) => {
97701
- const m = E6.find((E) => E.value === g);
97702
- return m ? m.title : "";
97857
+ renderValueUi: (O) => {
97858
+ const y = E6.find((v) => v.value === O);
97859
+ return y ? y.title : "";
97703
97860
  }
97704
97861
  }
97705
97862
  ) }),
97706
- A(),
97707
- !u && /* @__PURE__ */ f.jsx(Pe, { item: !0, xs: 12, children: /* @__PURE__ */ f.jsx(ro, { viewOnly: d, type: p }) })
97863
+ E(),
97864
+ !h && /* @__PURE__ */ f.jsx(Pe, { item: !0, xs: 12, children: /* @__PURE__ */ f.jsx(ro, { viewOnly: A, type: g }) })
97708
97865
  ] }) });
97709
97866
  }), g3 = ({
97710
97867
  type: e = "",
@@ -101175,7 +101332,7 @@ const h2 = (e) => !e.field || typeof e.field == "object" && Object.keys(e.field)
101175
101332
  insert: M
101176
101333
  }
101177
101334
  }), B(""), G("");
101178
- }, et = Pt(null), [ht, nt] = ve(!1), { canvasWorkflow: Tt, activityExecutionData: bt } = Jt((Vt) => Vt.canvas), { getNodes: $t, setNodes: Ne, getEdges: st } = Ji(), it = $t(), { ENTITY_ID: Le = "", analytics: ft, openAddonModal: Ot, currentSubscription: or } = eo(), { VORTEX_MAIN_URL: Sr = "", GYRATE_MAIN_URL: Hr = "" } = h || {}, Rn = rs(), Sn = jn(Rn), gr = jn(Wr.VERSION) || Sn, jr = async (Vt) => {
101335
+ }, et = Pt(null), [ht, nt] = ve(!1), { canvasWorkflow: Tt, activityExecutionData: bt } = Jt((Vt) => Vt.canvas), { getNodes: $t, setNodes: Ne, getEdges: st } = eo(), it = $t(), { ENTITY_ID: Le = "", analytics: ft, openAddonModal: Ot, currentSubscription: or } = Wi(), { VORTEX_MAIN_URL: Sr = "", GYRATE_MAIN_URL: Hr = "" } = h || {}, Rn = rs(), Sn = jn(Rn), gr = jn(Wr.VERSION) || Sn, jr = async (Vt) => {
101179
101336
  const ar = [...Array.isArray(it) ? it : []], Kr = {
101180
101337
  workflow_json: [vd({ ...Vt })],
101181
101338
  result: nO(Tt, it, bt, Vt?.id, st())
@@ -111203,7 +111360,7 @@ const fU = vN(() => Promise.resolve().then(() => Vee)), pU = () => /* @__PURE__
111203
111360
  viewOnly: p = !1,
111204
111361
  hideLabel: h = !1
111205
111362
  }, A) => {
111206
- const g = It(), { MCP_INTEGRATION_FORM: m } = el(), { getNodes: E } = Ji(), { selectedActivityId: O, aiGeneratedFieldMap: y } = Jt((V) => V.canvas), v = wo(l), [b, S] = ve(""), x = Pt(null), C = Pt(null), [w, _] = ve(""), I = (V) => {
111363
+ const g = It(), { MCP_INTEGRATION_FORM: m } = el(), { getNodes: E } = eo(), { selectedActivityId: O, aiGeneratedFieldMap: y } = Jt((V) => V.canvas), v = wo(l), [b, S] = ve(""), x = Pt(null), C = Pt(null), [w, _] = ve(""), I = (V) => {
111207
111364
  S(V.target.value);
111208
111365
  }, N = () => {
111209
111366
  if (b.trim() !== "") {
@@ -112304,9 +112461,9 @@ function s$e() {
112304
112461
  if (En && !cn)
112305
112462
  return Zt || (Zt = new gr()), pr || fo(be) ? Es(be, qe, mt, Ct, er, Zt) : Ri(be, qe, xr, mt, Ct, er, Zt);
112306
112463
  if (!(er & s)) {
112307
- var hn = cn && ot.call(be, "__wrapped__"), Gi = qr && ot.call(qe, "__wrapped__");
112308
- if (hn || Gi) {
112309
- var ss = hn ? be.value() : be, Vs = Gi ? qe.value() : qe;
112464
+ var hn = cn && ot.call(be, "__wrapped__"), Qi = qr && ot.call(qe, "__wrapped__");
112465
+ if (hn || Qi) {
112466
+ var ss = hn ? be.value() : be, Vs = Qi ? qe.value() : qe;
112310
112467
  return Zt || (Zt = new gr()), mt(ss, Vs, Ct, er, Zt);
112311
112468
  }
112312
112469
  }
@@ -112419,9 +112576,9 @@ function s$e() {
112419
112576
  return Vr == qe;
112420
112577
  var cn = -1, qr = !0, En = er & o ? new Rn() : void 0;
112421
112578
  for (Zt.set(be, qe), Zt.set(qe, be); ++cn < Cr; ) {
112422
- var hn = be[cn], Gi = qe[cn];
112579
+ var hn = be[cn], Qi = qe[cn];
112423
112580
  if (Ct)
112424
- var ss = pr ? Ct(Gi, hn, cn, qe, be, Zt) : Ct(hn, Gi, cn, be, qe, Zt);
112581
+ var ss = pr ? Ct(Qi, hn, cn, qe, be, Zt) : Ct(hn, Qi, cn, be, qe, Zt);
112425
112582
  if (ss !== void 0) {
112426
112583
  if (ss)
112427
112584
  continue;
@@ -112436,7 +112593,7 @@ function s$e() {
112436
112593
  qr = !1;
112437
112594
  break;
112438
112595
  }
112439
- } else if (!(hn === Gi || mt(hn, Gi, Ct, er, Zt))) {
112596
+ } else if (!(hn === Qi || mt(hn, Qi, Ct, er, Zt))) {
112440
112597
  qr = !1;
112441
112598
  break;
112442
112599
  }
@@ -112490,7 +112647,7 @@ function s$e() {
112490
112647
  var hn = Zt.get(be);
112491
112648
  if (hn && Zt.get(qe))
112492
112649
  return hn == qe;
112493
- var Gi = !0;
112650
+ var Qi = !0;
112494
112651
  Zt.set(be, qe), Zt.set(qe, be);
112495
112652
  for (var ss = pr; ++qr < xr; ) {
112496
112653
  En = Cr[qr];
@@ -112498,16 +112655,16 @@ function s$e() {
112498
112655
  if (Ct)
112499
112656
  var Xd = pr ? Ct(so, Vs, En, qe, be, Zt) : Ct(Vs, so, En, be, qe, Zt);
112500
112657
  if (!(Xd === void 0 ? Vs === so || mt(Vs, so, Ct, er, Zt) : Xd)) {
112501
- Gi = !1;
112658
+ Qi = !1;
112502
112659
  break;
112503
112660
  }
112504
112661
  ss || (ss = En == "constructor");
112505
112662
  }
112506
- if (Gi && !ss) {
112663
+ if (Qi && !ss) {
112507
112664
  var XO = be.constructor, YO = qe.constructor;
112508
- XO != YO && "constructor" in be && "constructor" in qe && !(typeof XO == "function" && XO instanceof XO && typeof YO == "function" && YO instanceof YO) && (Gi = !1);
112665
+ XO != YO && "constructor" in be && "constructor" in qe && !(typeof XO == "function" && XO instanceof XO && typeof YO == "function" && YO instanceof YO) && (Qi = !1);
112509
112666
  }
112510
- return Zt.delete(be), Zt.delete(qe), Gi;
112667
+ return Zt.delete(be), Zt.delete(qe), Qi;
112511
112668
  }
112512
112669
  function yn(be, qe) {
112513
112670
  var mt = be.__data__;
@@ -112629,13 +112786,13 @@ function s$e() {
112629
112786
  return be === qe || be !== be && qe !== qe;
112630
112787
  }
112631
112788
  function $r(be) {
112632
- return Wi(be) && ot.call(be, "callee") && (!Xe.call(be, "callee") || lt.call(be) == l);
112789
+ return Gi(be) && ot.call(be, "callee") && (!Xe.call(be, "callee") || lt.call(be) == l);
112633
112790
  }
112634
112791
  var gn = Array.isArray;
112635
112792
  function Dn(be) {
112636
112793
  return be != null && io(be.length) && !zn(be);
112637
112794
  }
112638
- function Wi(be) {
112795
+ function Gi(be) {
112639
112796
  return fi(be) && Dn(be);
112640
112797
  }
112641
112798
  function zn(be) {
@@ -112909,7 +113066,7 @@ function l$e() {
112909
113066
  qe || (Ct = Ri(he), Ct = Ct == l ? E : Ct), mt || (er = Ri(Fe), er = er == l ? E : er);
112910
113067
  var Zt = Ct == E && !ee(he), pr = er == E && !ee(Fe), Cr = Ct == er;
112911
113068
  if (Cr && !Zt)
112912
- return be || (be = new In()), qe || Wi(he) ? pn(he, Fe, tt, Et, Gt, be) : di(he, Fe, Ct, tt, Et, Gt, be);
113069
+ return be || (be = new In()), qe || Gi(he) ? pn(he, Fe, tt, Et, Gt, be) : di(he, Fe, Ct, tt, Et, Gt, be);
112913
113070
  if (!(Gt & s)) {
112914
113071
  var xr = Zt && We.call(he, "__wrapped__"), Vr = pr && We.call(Fe, "__wrapped__");
112915
113072
  if (xr || Vr) {
@@ -113094,8 +113251,8 @@ function l$e() {
113094
113251
  cn || (cn = Cr == "constructor");
113095
113252
  }
113096
113253
  if (Vr && !cn) {
113097
- var Gi = he.constructor, ss = Fe.constructor;
113098
- Gi != ss && "constructor" in he && "constructor" in Fe && !(typeof Gi == "function" && Gi instanceof Gi && typeof ss == "function" && ss instanceof ss) && (Vr = !1);
113254
+ var Qi = he.constructor, ss = Fe.constructor;
113255
+ Qi != ss && "constructor" in he && "constructor" in Fe && !(typeof Qi == "function" && Qi instanceof Qi && typeof ss == "function" && ss instanceof ss) && (Vr = !1);
113099
113256
  }
113100
113257
  return be.delete(he), be.delete(Fe), Vr;
113101
113258
  }
@@ -113242,7 +113399,7 @@ function l$e() {
113242
113399
  function Dn(he) {
113243
113400
  return typeof he == "symbol" || gn(he) && ot.call(he) == S;
113244
113401
  }
113245
- var Wi = Oe ? q(Oe) : mn;
113402
+ var Gi = Oe ? q(Oe) : mn;
113246
113403
  function zn(he) {
113247
113404
  return he == null ? "" : Ft(he);
113248
113405
  }
@@ -147167,7 +147324,7 @@ const Rtt = ({ slotProps: e = {}, ...t }) => {
147167
147324
  currentQuery: i,
147168
147325
  form: o = null
147169
147326
  }) => {
147170
- const s = It(), [a, l] = ve(!1), [c, u] = ve(""), [d, p] = ve(null), [h, A] = ve([]), [g, m] = ve([]), [E, O] = ve(/* @__PURE__ */ new Map()), [y, v] = ve(/* @__PURE__ */ new Set()), [b, S] = ve(""), [x, C] = ve(""), [w, _] = ve("query"), { WORKFLOW_URLS: I, ENTITY_ID: N = "" } = eo(), { VORTEX_MAIN_URL: D } = I, P = Kt(
147327
+ const s = It(), [a, l] = ve(!1), [c, u] = ve(""), [d, p] = ve(null), [h, A] = ve([]), [g, m] = ve([]), [E, O] = ve(/* @__PURE__ */ new Map()), [y, v] = ve(/* @__PURE__ */ new Set()), [b, S] = ve(""), [x, C] = ve(""), [w, _] = ve("query"), { WORKFLOW_URLS: I, ENTITY_ID: N = "" } = Wi(), { VORTEX_MAIN_URL: D } = I, P = Kt(
147171
147328
  () => Ol((te) => {
147172
147329
  C(te);
147173
147330
  }, 300),
@@ -149080,7 +149237,7 @@ const Ftt = ns(Hne, ""), ktt = Ur((e, t) => {
149080
149237
  viewOnly: d = !1,
149081
149238
  SET_INTEGRATION_DATA: p,
149082
149239
  source: h
149083
- } = e, A = It(), g = Pt({}), m = Pt({}), { getNodes: E } = Ji(), O = E(), { activities: y } = Jt((M) => M.activities), [v, b] = ve([]), [S, x] = ve({}), C = Lr(), { watch: w, control: _, setValue: I } = nn(), N = w("properties"), D = vL({
149240
+ } = e, A = It(), g = Pt({}), m = Pt({}), { getNodes: E } = eo(), O = E(), { activities: y } = Jt((M) => M.activities), [v, b] = ve([]), [S, x] = ve({}), C = Lr(), { watch: w, control: _, setValue: I } = nn(), N = w("properties"), D = vL({
149084
149241
  defaultValues: St(N) ? {} : AT(S, h),
149085
149242
  mode: "onChange"
149086
149243
  });
@@ -149726,13 +149883,13 @@ function Jtt() {
149726
149883
  }
149727
149884
  jr.prototype.clear = Un, jr.prototype.delete = Vt, jr.prototype.get = ar, jr.prototype.has = Kr, jr.prototype.set = kr;
149728
149885
  function Dr(me, He) {
149729
- var dt = ci(me), Ut = !dt && yn(me), ln = !dt && !Ut && Ni(me), $r = !dt && !Ut && !ln && Hs(me), gn = dt || Ut || ln || $r, Dn = gn ? oe(me.length, String) : [], Wi = Dn.length;
149886
+ var dt = ci(me), Ut = !dt && yn(me), ln = !dt && !Ut && Ni(me), $r = !dt && !Ut && !ln && Hs(me), gn = dt || Ut || ln || $r, Dn = gn ? oe(me.length, String) : [], Gi = Dn.length;
149730
149887
  for (var zn in me)
149731
149888
  Ge.call(me, zn) && !(gn && // Safari 9 has enumerable `arguments.length` in strict mode.
149732
149889
  (zn == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
149733
149890
  ln && (zn == "offset" || zn == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
149734
149891
  $r && (zn == "buffer" || zn == "byteLength" || zn == "byteOffset") || // Skip index properties.
149735
- di(zn, Wi))) && Dn.push(zn);
149892
+ di(zn, Gi))) && Dn.push(zn);
149736
149893
  return Dn;
149737
149894
  }
149738
149895
  function zr(me, He) {
@@ -149755,16 +149912,16 @@ function Jtt() {
149755
149912
  return me === He ? !0 : me == null || He == null || !Mo(me) && !Mo(He) ? me !== me && He !== He : Qn(me, He, dt, Ut, Ln, ln);
149756
149913
  }
149757
149914
  function Qn(me, He, dt, Ut, ln, $r) {
149758
- var gn = ci(me), Dn = ci(He), Wi = gn ? l : pn(me), zn = Dn ? l : pn(He);
149759
- Wi = Wi == a ? O : Wi, zn = zn == a ? O : zn;
149760
- var io = Wi == O, Oo = zn == O, fi = Wi == zn;
149915
+ var gn = ci(me), Dn = ci(He), Gi = gn ? l : pn(me), zn = Dn ? l : pn(He);
149916
+ Gi = Gi == a ? O : Gi, zn = zn == a ? O : zn;
149917
+ var io = Gi == O, Oo = zn == O, fi = Gi == zn;
149761
149918
  if (fi && Ni(me)) {
149762
149919
  if (!Ni(He))
149763
149920
  return !1;
149764
149921
  gn = !0, io = !1;
149765
149922
  }
149766
149923
  if (fi && !io)
149767
- return $r || ($r = new jr()), gn || Hs(me) ? Lo(me, He, dt, Ut, ln, $r) : ie(me, He, Wi, dt, Ut, ln, $r);
149924
+ return $r || ($r = new jr()), gn || Hs(me) ? Lo(me, He, dt, Ut, ln, $r) : ie(me, He, Gi, dt, Ut, ln, $r);
149768
149925
  if (!(dt & i)) {
149769
149926
  var oo = io && Ge.call(me, "__wrapped__"), fo = Oo && Ge.call(He, "__wrapped__");
149770
149927
  if (oo || fo) {
@@ -149792,8 +149949,8 @@ function Jtt() {
149792
149949
  return He;
149793
149950
  }
149794
149951
  function Lo(me, He, dt, Ut, ln, $r) {
149795
- var gn = dt & i, Dn = me.length, Wi = He.length;
149796
- if (Dn != Wi && !(gn && Wi > Dn))
149952
+ var gn = dt & i, Dn = me.length, Gi = He.length;
149953
+ if (Dn != Gi && !(gn && Gi > Dn))
149797
149954
  return !1;
149798
149955
  var zn = $r.get(me);
149799
149956
  if (zn && $r.get(He))
@@ -149844,8 +150001,8 @@ function Jtt() {
149844
150001
  case g:
149845
150002
  var Dn = ee;
149846
150003
  case S:
149847
- var Wi = Ut & i;
149848
- if (Dn || (Dn = pe), me.size != He.size && !Wi)
150004
+ var Gi = Ut & i;
150005
+ if (Dn || (Dn = pe), me.size != He.size && !Gi)
149849
150006
  return !1;
149850
150007
  var zn = gn.get(me);
149851
150008
  if (zn)
@@ -149860,10 +150017,10 @@ function Jtt() {
149860
150017
  return !1;
149861
150018
  }
149862
150019
  function _e(me, He, dt, Ut, ln, $r) {
149863
- var gn = dt & i, Dn = Ze(me), Wi = Dn.length, zn = Ze(He), io = zn.length;
149864
- if (Wi != io && !gn)
150020
+ var gn = dt & i, Dn = Ze(me), Gi = Dn.length, zn = Ze(He), io = zn.length;
150021
+ if (Gi != io && !gn)
149865
150022
  return !1;
149866
- for (var Oo = Wi; Oo--; ) {
150023
+ for (var Oo = Gi; Oo--; ) {
149867
150024
  var fi = Dn[Oo];
149868
150025
  if (!(gn ? fi in He : Ge.call(He, fi)))
149869
150026
  return !1;
@@ -149873,7 +150030,7 @@ function Jtt() {
149873
150030
  return oo == He;
149874
150031
  var fo = !0;
149875
150032
  $r.set(me, He), $r.set(He, me);
149876
- for (var oa = gn; ++Oo < Wi; ) {
150033
+ for (var oa = gn; ++Oo < Gi; ) {
149877
150034
  fi = Dn[Oo];
149878
150035
  var he = me[fi], Fe = He[fi];
149879
150036
  if (Ut)
@@ -152322,11 +152479,11 @@ function cs(e) {
152322
152479
  return e;
152323
152480
  return t;
152324
152481
  }
152325
- var BO = (e) => Array.isArray(e) ? e.filter(Boolean) : [], qi = (e) => e === void 0, Or = (e, t, r) => {
152482
+ var BO = (e) => Array.isArray(e) ? e.filter(Boolean) : [], Ki = (e) => e === void 0, Or = (e, t, r) => {
152326
152483
  if (!t || !ms(e))
152327
152484
  return r;
152328
152485
  const n = BO(t.split(/[,[\].]+?/)).reduce((i, o) => ca(i) ? i : i[o], e);
152329
- return qi(n) || n === e ? qi(e[t]) ? r : e[t] : n;
152486
+ return Ki(n) || n === e ? Ki(e[t]) ? r : e[t] : n;
152330
152487
  }, hu = (e) => typeof e == "boolean", m5 = (e) => /^\w*$/.test(e), Xne = (e) => BO(e.replace(/["|']|\]/g, "").split(/\.|\[/)), Fi = (e, t, r) => {
152331
152488
  let n = -1;
152332
152489
  const i = m5(t) ? [t] : Xne(t), o = i.length, s = o - 1;
@@ -152449,7 +152606,7 @@ function Trt(e) {
152449
152606
  };
152450
152607
  if (d(r, !0), u) {
152451
152608
  const p = cs(Or(i._options.defaultValues, r));
152452
- Fi(i._defaultValues, r, p), qi(Or(i._formValues, r)) && Fi(i._formValues, r, p);
152609
+ Fi(i._defaultValues, r, p), Ki(Or(i._formValues, r)) && Fi(i._formValues, r, p);
152453
152610
  }
152454
152611
  return () => {
152455
152612
  (s ? u && !i._state.action : u) ? i.unregister(r) : d(r, !1);
@@ -152528,7 +152685,7 @@ var Srt = (e, t, r, n, i) => t ? {
152528
152685
  const r = (Math.random() * 16 + e) % 16 | 0;
152529
152686
  return (t == "x" ? r : r & 3 | 8).toString(16);
152530
152687
  });
152531
- }, W2 = (e, t, r = {}) => r.shouldFocus || qi(r.shouldFocus) ? r.focusName || `${e}.${qi(r.focusIndex) ? t : r.focusIndex}.` : "", Ug = (e) => ({
152688
+ }, W2 = (e, t, r = {}) => r.shouldFocus || Ki(r.shouldFocus) ? r.focusName || `${e}.${Ki(r.focusIndex) ? t : r.focusIndex}.` : "", Ug = (e) => ({
152532
152689
  isOnSubmit: !e || e === Hl.onSubmit,
152533
152690
  isOnBlur: e === Hl.onBlur,
152534
152691
  isOnChange: e === Hl.onChange,
@@ -152571,7 +152728,7 @@ var rie = (e) => {
152571
152728
  }
152572
152729
  return e[0].checked && !e[0].disabled ? (
152573
152730
  // @ts-expect-error expected to work in the browser
152574
- e[0].attributes && !qi(e[0].attributes.value) ? qi(e[0].value) || e[0].value === "" ? wV : { value: e[0].value, isValid: !0 } : wV
152731
+ e[0].attributes && !Ki(e[0].attributes.value) ? Ki(e[0].value) || e[0].value === "" ? wV : { value: e[0].value, isValid: !0 } : wV
152575
152732
  ) : _V;
152576
152733
  }
152577
152734
  return _V;
@@ -152601,7 +152758,7 @@ var nA = (e) => ms(e) && !DS(e) ? e : {
152601
152758
  return {};
152602
152759
  const y = s ? s[0] : o, v = (N) => {
152603
152760
  n && y.reportValidity && (y.setCustomValidity(hu(N) ? "" : N || ""), y.reportValidity());
152604
- }, b = {}, S = E5(o), x = kO(o), C = S || x, w = (g || g5(o)) && qi(o.value) && qi(O) || IS(o) && o.value === "" || O === "" || Array.isArray(O) && !O.length, _ = Srt.bind(null, A, r, b), I = (N, D, P, L = Ku.maxLength, F = Ku.minLength) => {
152761
+ }, b = {}, S = E5(o), x = kO(o), C = S || x, w = (g || g5(o)) && Ki(o.value) && Ki(O) || IS(o) && o.value === "" || O === "" || Array.isArray(O) && !O.length, _ = Srt.bind(null, A, r, b), I = (N, D, P, L = Ku.maxLength, F = Ku.minLength) => {
152605
152762
  const W = N ? D : P;
152606
152763
  b[A] = {
152607
152764
  type: N ? L : F,
@@ -152687,7 +152844,7 @@ function z2(e, t, r) {
152687
152844
  ...e.slice(t)
152688
152845
  ];
152689
152846
  }
152690
- var X2 = (e, t, r) => Array.isArray(e) ? (qi(e[r]) && (e[r] = void 0), e.splice(r, 0, e.splice(t, 1)[0]), e) : [], Y2 = (e, t) => [
152847
+ var X2 = (e, t, r) => Array.isArray(e) ? (Ki(e[r]) && (e[r] = void 0), e.splice(r, 0, e.splice(t, 1)[0]), e) : [], Y2 = (e, t) => [
152691
152848
  ...ka(t),
152692
152849
  ...ka(e)
152693
152850
  ];
@@ -152698,19 +152855,19 @@ function xrt(e, t) {
152698
152855
  n.splice(i - r, 1), r++;
152699
152856
  return BO(n).length ? n : [];
152700
152857
  }
152701
- var q2 = (e, t) => qi(t) ? [] : xrt(e, ka(t).sort((r, n) => r - n)), K2 = (e, t, r) => {
152858
+ var q2 = (e, t) => Ki(t) ? [] : xrt(e, ka(t).sort((r, n) => r - n)), K2 = (e, t, r) => {
152702
152859
  [e[t], e[r]] = [e[r], e[t]];
152703
152860
  };
152704
152861
  function brt(e, t) {
152705
152862
  const r = t.slice(0, -1).length;
152706
152863
  let n = 0;
152707
152864
  for (; n < r; )
152708
- e = qi(e) ? n++ : e[t[n++]];
152865
+ e = Ki(e) ? n++ : e[t[n++]];
152709
152866
  return e;
152710
152867
  }
152711
152868
  function Crt(e) {
152712
152869
  for (const t in e)
152713
- if (e.hasOwnProperty(t) && !qi(e[t]))
152870
+ if (e.hasOwnProperty(t) && !Ki(e[t]))
152714
152871
  return !1;
152715
152872
  return !0;
152716
152873
  }
@@ -152873,14 +153030,14 @@ function aie(e, t, r) {
152873
153030
  const n = Array.isArray(e);
152874
153031
  if (ms(e) || n)
152875
153032
  for (const i in e)
152876
- Array.isArray(e[i]) || ms(e[i]) && !sie(e[i]) ? qi(t) || PS(r[i]) ? r[i] = Array.isArray(e[i]) ? NS(e[i], []) : { ...NS(e[i]) } : aie(e[i], ca(t) ? {} : t[i], r[i]) : r[i] = !jp(e[i], t[i]);
153033
+ Array.isArray(e[i]) || ms(e[i]) && !sie(e[i]) ? Ki(t) || PS(r[i]) ? r[i] = Array.isArray(e[i]) ? NS(e[i], []) : { ...NS(e[i]) } : aie(e[i], ca(t) ? {} : t[i], r[i]) : r[i] = !jp(e[i], t[i]);
152877
153034
  return r;
152878
153035
  }
152879
- var dy = (e, t) => aie(e, t, NS(t)), lie = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => qi(e) ? e : t ? e === "" ? NaN : e && +e : r && xu(e) ? new Date(e) : n ? n(e) : e;
153036
+ var dy = (e, t) => aie(e, t, NS(t)), lie = (e, { valueAsNumber: t, valueAsDate: r, setValueAs: n }) => Ki(e) ? e : t ? e === "" ? NaN : e && +e : r && xu(e) ? new Date(e) : n ? n(e) : e;
152880
153037
  function eI(e) {
152881
153038
  const t = e.ref;
152882
153039
  if (!(e.refs ? e.refs.every((r) => r.disabled) : t.disabled))
152883
- return g5(t) ? t.files : E5(t) ? nie(e.refs).value : oie(t) ? [...t.selectedOptions].map(({ value: r }) => r) : kO(t) ? rie(e.refs).value : lie(qi(t.value) ? e.ref.value : t.value, e);
153040
+ return g5(t) ? t.files : E5(t) ? nie(e.refs).value : oie(t) ? [...t.selectedOptions].map(({ value: r }) => r) : kO(t) ? rie(e.refs).value : lie(Ki(t.value) ? e.ref.value : t.value, e);
152884
153041
  }
152885
153042
  var wrt = (e, t, r, n) => {
152886
153043
  const i = {};
@@ -152894,7 +153051,7 @@ var wrt = (e, t, r, n) => {
152894
153051
  fields: i,
152895
153052
  shouldUseNativeValidation: n
152896
153053
  };
152897
- }, $m = (e) => qi(e) ? e : DS(e) ? e.source : ms(e) ? DS(e.value) ? e.value.source : e.value : e, Rrt = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
153054
+ }, $m = (e) => Ki(e) ? e : DS(e) ? e.source : ms(e) ? DS(e.value) ? e.value.source : e.value : e, Rrt = (e) => e.mount && (e.required || e.min || e.max || e.maxLength || e.minLength || e.pattern || e.validate);
152898
153055
  function PV(e, t, r) {
152899
153056
  const n = Or(e, r);
152900
153057
  if (n || m5(r))
@@ -153015,8 +153172,8 @@ function Nrt(e = {}) {
153015
153172
  }, b = (oe, ne, q, Y) => {
153016
153173
  const ee = Or(n, oe);
153017
153174
  if (ee) {
153018
- const ae = Or(o, oe, qi(q) ? Or(i, oe) : q);
153019
- qi(ae) || Y && Y.defaultChecked || ne ? Fi(o, oe, ne ? ae : eI(ee._f)) : L(oe, ae), s.mount && m();
153175
+ const ae = Or(o, oe, Ki(q) ? Or(i, oe) : q);
153176
+ Ki(ae) || Y && Y.defaultChecked || ne ? Fi(o, oe, ne ? ae : eI(ee._f)) : L(oe, ae), s.mount && m();
153020
153177
  }
153021
153178
  }, S = (oe, ne, q, Y, ee) => {
153022
153179
  let ae = !1, pe = !1;
@@ -153087,7 +153244,7 @@ function Nrt(e = {}) {
153087
153244
  }
153088
153245
  a.unMount = /* @__PURE__ */ new Set();
153089
153246
  }, N = (oe, ne) => (oe && ne && Fi(o, oe, ne), !jp(H(), i)), D = (oe, ne, q) => Jne(oe, a, {
153090
- ...s.mount ? o : qi(ne) ? i : xu(oe) ? { [oe]: ne } : ne
153247
+ ...s.mount ? o : Ki(ne) ? i : xu(oe) ? { [oe]: ne } : ne
153091
153248
  }, q, ne), P = (oe) => BO(Or(s.mount ? o : i, oe, e.shouldUnregister ? Or(i, oe, []) : [])), L = (oe, ne, q = {}) => {
153092
153249
  const Y = Or(n, oe);
153093
153250
  let ee = ne;
@@ -153152,7 +153309,7 @@ function Nrt(e = {}) {
153152
153309
  let q, Y;
153153
153310
  const ee = ka(oe);
153154
153311
  if (t.resolver) {
153155
- const ae = await w(qi(oe) ? oe : ee);
153312
+ const ae = await w(Ki(oe) ? oe : ee);
153156
153313
  q = wa(ae), Y = oe ? !ee.some((pe) => Or(ae, pe)) : q;
153157
153314
  } else oe ? (Y = (await Promise.all(ee.map(async (ae) => {
153158
153315
  const pe = Or(n, ae);
@@ -153167,7 +153324,7 @@ function Nrt(e = {}) {
153167
153324
  const ne = {
153168
153325
  ...s.mount ? o : i
153169
153326
  };
153170
- return qi(oe) ? ne : xu(oe) ? Or(ne, oe) : oe.map((q) => Or(ne, q));
153327
+ return Ki(oe) ? ne : xu(oe) ? Or(ne, oe) : oe.map((q) => Or(ne, q));
153171
153328
  }, V = (oe, ne) => ({
153172
153329
  invalid: !!Or((ne || r).errors, oe),
153173
153330
  isDirty: !!Or((ne || r).dirtyFields, oe),
@@ -153202,7 +153359,7 @@ function Nrt(e = {}) {
153202
153359
  }), !ne.keepIsValid && m();
153203
153360
  }, G = ({ disabled: oe, name: ne, field: q, fields: Y, value: ee }) => {
153204
153361
  if (hu(oe) && s.mount || oe) {
153205
- const ae = oe ? void 0 : qi(ee) ? eI(q ? q._f : Or(Y, ne)._f) : ee;
153362
+ const ae = oe ? void 0 : Ki(ee) ? eI(q ? q._f : Or(Y, ne)._f) : ee;
153206
153363
  Fi(o, ne, ae), S(ne, ae, !1, !1, !0);
153207
153364
  }
153208
153365
  }, $ = (oe, ne = {}) => {
@@ -153237,7 +153394,7 @@ function Nrt(e = {}) {
153237
153394
  ref: (ee) => {
153238
153395
  if (ee) {
153239
153396
  $(oe, ne), q = Or(n, oe);
153240
- const ae = qi(ee.value) && ee.querySelectorAll && ee.querySelectorAll("input,select,textarea")[0] || ee, pe = _rt(ae), Ae = q._f.refs || [];
153397
+ const ae = Ki(ee.value) && ee.querySelectorAll && ee.querySelectorAll("input,select,textarea")[0] || ee, pe = _rt(ae), Ae = q._f.refs || [];
153241
153398
  if (pe ? Ae.find((fe) => fe === ae) : ae === q._f.ref)
153242
153399
  return;
153243
153400
  Fi(n, oe, {
@@ -153295,7 +153452,7 @@ function Nrt(e = {}) {
153295
153452
  }), Y)
153296
153453
  throw Y;
153297
153454
  }, J = (oe, ne = {}) => {
153298
- Or(n, oe) && (qi(ne.defaultValue) ? W(oe, cs(Or(i, oe))) : (W(oe, ne.defaultValue), Fi(i, oe, cs(ne.defaultValue))), ne.keepTouched || Qo(r.touchedFields, oe), ne.keepDirty || (Qo(r.dirtyFields, oe), r.isDirty = ne.defaultValue ? N(oe, cs(Or(i, oe))) : N()), ne.keepError || (Qo(r.errors, oe), u.isValid && m()), d.state.next({ ...r }));
153455
+ Or(n, oe) && (Ki(ne.defaultValue) ? W(oe, cs(Or(i, oe))) : (W(oe, ne.defaultValue), Fi(i, oe, cs(ne.defaultValue))), ne.keepTouched || Qo(r.touchedFields, oe), ne.keepDirty || (Qo(r.dirtyFields, oe), r.isDirty = ne.defaultValue ? N(oe, cs(Or(i, oe))) : N()), ne.keepError || (Qo(r.errors, oe), u.isValid && m()), d.state.next({ ...r }));
153299
153456
  }, se = (oe, ne = {}) => {
153300
153457
  const q = oe ? cs(oe) : i, Y = cs(q), ee = wa(oe), ae = ee ? i : Y;
153301
153458
  if (ne.keepDefaultValues || (i = q), !ne.keepValues) {
@@ -153303,7 +153460,7 @@ function Nrt(e = {}) {
153303
153460
  for (const pe of a.mount)
153304
153461
  Or(r.dirtyFields, pe) ? Fi(ae, pe, Or(o, pe)) : W(pe, Or(ae, pe));
153305
153462
  else {
153306
- if (A5 && qi(oe))
153463
+ if (A5 && Ki(oe))
153307
153464
  for (const pe of a.mount) {
153308
153465
  const Ae = Or(n, pe);
153309
153466
  if (Ae && Ae._f) {
@@ -164243,7 +164400,7 @@ const US = (e) => {
164243
164400
  headers: {},
164244
164401
  query: "",
164245
164402
  variables: {}
164246
- }), b = Pt(!1), S = Pt(null), x = Lr(), [C, w] = ve(!1), { WORKFLOW_URLS: _, ENTITY_ID: I = "" } = eo(), { VORTEX_MAIN_URL: N, TESSERACT_MAIN_URL: D, FRONTEND_URL: P } = _, L = r?.data?.type, F = r?.data?.properties?.activity_name, W = r?.data?.properties?.activity_id, U = r?.data?.properties?.integration_slug, X = (te) => {
164403
+ }), b = Pt(!1), S = Pt(null), x = Lr(), [C, w] = ve(!1), { WORKFLOW_URLS: _, ENTITY_ID: I = "" } = Wi(), { VORTEX_MAIN_URL: N, TESSERACT_MAIN_URL: D, FRONTEND_URL: P } = _, L = r?.data?.type, F = r?.data?.properties?.activity_name, W = r?.data?.properties?.activity_id, U = r?.data?.properties?.integration_slug, X = (te) => {
164247
164404
  if (!te)
164248
164405
  return {};
164249
164406
  if (typeof te == "string")
@@ -167881,7 +168038,7 @@ const US = (e) => {
167881
168038
  actionRef: p,
167882
168039
  MCP_INTEGRATION_FORM: h = !1
167883
168040
  }) => {
167884
- const A = It(), g = Lr(), m = Za(), { setNodes: E, getNode: O, getEdges: y } = Ji(), v = p || Pt(null), b = Pt(null), S = Kt(() => rs(), []), { activities: x, triggers: C, reserved_keywords: w, activity_names: _ } = Jt(
168041
+ const A = It(), g = Lr(), m = Za(), { setNodes: E, getNode: O, getEdges: y } = eo(), v = p || Pt(null), b = Pt(null), S = Kt(() => rs(), []), { activities: x, triggers: C, reserved_keywords: w, activity_names: _ } = Jt(
167885
168042
  (nt) => nt.activities
167886
168043
  ), { canvasWorkflow: I, activityExecutionData: N, viewOnly: D = !1, triggerNodeTest: P } = Jt(
167887
168044
  (nt) => nt.canvas
@@ -167890,10 +168047,10 @@ const US = (e) => {
167890
168047
  C?.data?.data,
167891
168048
  t.data,
167892
168049
  "slug"
167893
- ), { ENTITY_ID: F, WORKFLOW_URLS: W, openAddonModal: U, currentSubscription: X } = eo(), { workflow: M } = Jt((nt) => nt.workflows), H = d || M?.source || "", V = AT(t, H), R = vL({
168050
+ ), { ENTITY_ID: F, WORKFLOW_URLS: W, openAddonModal: U, currentSubscription: X } = Wi(), { workflow: M } = Jt((nt) => nt.workflows), H = d || M?.source || "", V = AT(t, H), R = vL({
167894
168051
  defaultValues: V,
167895
168052
  mode: "onChange"
167896
- }), k = Pt(null), { analytics: B = {} } = eo(), [z, G] = ve(!1), [$, j] = ve([]), [Q, K] = ve(!1), J = Pt(null), se = Pt(0), { data: te } = m.find((nt) => nt.id === t?.id) || {}, { blt_node_states: le } = te || {}, {
168053
+ }), k = Pt(null), { analytics: B = {} } = Wi(), [z, G] = ve(!1), [$, j] = ve([]), [Q, K] = ve(!1), J = Pt(null), se = Pt(0), { data: te } = m.find((nt) => nt.id === t?.id) || {}, { blt_node_states: le } = te || {}, {
167897
168054
  test: Oe = "",
167898
168055
  setup_and_configure: Se = "",
167899
168056
  node: oe = ""
@@ -168566,7 +168723,7 @@ const US = (e) => {
168566
168723
  ]
168567
168724
  }
168568
168725
  ),
168569
- /* @__PURE__ */ f.jsx(tr, { onClick: Z, sx: Ki(A), children: /* @__PURE__ */ f.jsx(Qe, { width: 24, height: 24, src: "ic_close" }) })
168726
+ /* @__PURE__ */ f.jsx(tr, { onClick: Z, sx: Zi(A), children: /* @__PURE__ */ f.jsx(Qe, { width: 24, height: 24, src: "ic_close" }) })
168570
168727
  ] })
168571
168728
  ]
168572
168729
  }
@@ -168643,7 +168800,7 @@ const US = (e) => {
168643
168800
  }
168644
168801
  );
168645
168802
  }, Ult = va((e) => {
168646
- const t = It(), r = Za(), n = tc(), { setNodes: i, setEdges: o } = Ji(), { canvasWorkflow: s } = Jt((E) => E.canvas), a = s?.meta?.isHorizontal ?? !0, { fromX: l, fromY: c, toX: u, toY: d, fromNode: p, sourcePosition: h, targetPosition: A } = e;
168803
+ const t = It(), r = Za(), n = tc(), { setNodes: i, setEdges: o } = eo(), { canvasWorkflow: s } = Jt((E) => E.canvas), a = s?.meta?.isHorizontal ?? !0, { fromX: l, fromY: c, toX: u, toY: d, fromNode: p, sourcePosition: h, targetPosition: A } = e;
168647
168804
  if ([l, c, u, d].some((E) => typeof E != "number" || Number.isNaN(E)))
168648
168805
  return null;
168649
168806
  ke(() => {
@@ -168753,7 +168910,7 @@ const US = (e) => {
168753
168910
  ] }) })
168754
168911
  ] });
168755
168912
  }, Vlt = (e) => {
168756
- const t = It(), { canvasWorkflow: r } = Jt((G) => G.canvas), { ENTITY_ID: n, allowedAccount: i } = eo(), o = jO(n, i), s = r?.meta?.isHorizontal ?? !0, {
168913
+ const t = It(), { canvasWorkflow: r } = Jt((G) => G.canvas), { ENTITY_ID: n, allowedAccount: i } = Wi(), o = jO(n, i), s = r?.meta?.isHorizontal ?? !0, {
168757
168914
  id: a,
168758
168915
  sourceX: l,
168759
168916
  sourceY: c,
@@ -168770,7 +168927,7 @@ const US = (e) => {
168770
168927
  } = e;
168771
168928
  if ([l, c, u, d].some((G) => typeof G != "number" || Number.isNaN(G)) || !p || !h)
168772
168929
  return null;
168773
- const v = tc(), b = Za(), { deleteElements: S } = Ji(), x = Lr(), { viewOnly: C } = Jt((G) => G.canvas), w = v.find((G) => G.id === a), _ = w?.data?.isStraight === !0, I = () => _N({
168930
+ const v = tc(), b = Za(), { deleteElements: S } = eo(), x = Lr(), { viewOnly: C } = Jt((G) => G.canvas), w = v.find((G) => G.id === a), _ = w?.data?.isStraight === !0, I = () => _N({
168774
168931
  sourceX: l,
168775
168932
  sourceY: c,
168776
168933
  sourcePosition: p,
@@ -168892,7 +169049,7 @@ const US = (e) => {
168892
169049
  target: p,
168893
169050
  sourceHandle: h,
168894
169051
  targetHandle: A
168895
- } = e, { deleteElements: g } = Ji(), m = Lr(), { ENTITY_ID: E, allowedAccount: O } = eo(), y = jO(E, O), v = Za(), b = tc(), { viewOnly: S, canvasWorkflow: x, activitiesPopover: C } = Jt((z) => z.canvas), w = x?.meta?.isHorizontal ?? !0, _ = C?.edgeId === r && C?.active;
169052
+ } = e, { deleteElements: g } = eo(), m = Lr(), { ENTITY_ID: E, allowedAccount: O } = Wi(), y = jO(E, O), v = Za(), b = tc(), { viewOnly: S, canvasWorkflow: x, activitiesPopover: C } = Jt((z) => z.canvas), w = x?.meta?.isHorizontal ?? !0, _ = C?.edgeId === r && C?.active;
168896
169053
  if ([n, i, o, s].some((z) => typeof z != "number" || Number.isNaN(z)) || !a || !l)
168897
169054
  return null;
168898
169055
  const [I, N, D] = _N({
@@ -169104,7 +169261,7 @@ const Xlt = Fc(
169104
169261
  );
169105
169262
  };
169106
169263
  function Zlt(e = !1) {
169107
- const t = Lr(), { getNodes: r, getEdges: n } = Ji(), i = r(), o = n(), s = Pt({ x: 0, y: 0 }), { activity_names: a } = Jt((m) => m.activities), { setNodes: l, screenToFlowPosition: c } = Ji(), [u, d] = ve([]), p = ut(
169264
+ const t = Lr(), { getNodes: r, getEdges: n } = eo(), i = r(), o = n(), s = Pt({ x: 0, y: 0 }), { activity_names: a } = Jt((m) => m.activities), { setNodes: l, screenToFlowPosition: c } = eo(), [u, d] = ve([]), p = ut(
169108
169265
  (m = c({ x: s.current.x, y: s.current.y })) => {
169109
169266
  const E = i.filter((v) => v.id === m);
169110
169267
  let O = [...i];
@@ -169245,7 +169402,7 @@ const HO = ({
169245
169402
  p: 0.5,
169246
169403
  width: 28,
169247
169404
  height: 28,
169248
- ...Ki(a)
169405
+ ...Zi(a)
169249
169406
  },
169250
169407
  "data-testid": "node-action-switch-trigger",
169251
169408
  children: /* @__PURE__ */ f.jsx(
@@ -169342,7 +169499,7 @@ const HO = ({
169342
169499
  p: 0.5,
169343
169500
  width: 28,
169344
169501
  height: 28,
169345
- ...Ki(a),
169502
+ ...Zi(a),
169346
169503
  ...F
169347
169504
  },
169348
169505
  "data-testid": "node-action-duplicate",
@@ -169409,7 +169566,7 @@ const HO = ({
169409
169566
  u(), l(!0);
169410
169567
  };
169411
169568
  ke(() => () => u(), []);
169412
- const { setNodes: h } = Ji(), { nodesToFocus: A } = Jt((x) => x.canvas), g = Lr(), m = A.nodes.includes(t), [E, O] = ve(r?.activity_comment?.body || ""), y = A.type;
169569
+ const { setNodes: h } = eo(), { nodesToFocus: A } = Jt((x) => x.canvas), g = Lr(), m = A.nodes.includes(t), [E, O] = ve(r?.activity_comment?.body || ""), y = A.type;
169413
169570
  ke(() => {
169414
169571
  O(r?.activity_comment?.body || "");
169415
169572
  }, [r?.activity_comment?.body]);
@@ -169681,7 +169838,7 @@ const HO = ({
169681
169838
  proIntegration: a = !1,
169682
169839
  pro: l = !1
169683
169840
  }) => {
169684
- const c = Lr(), u = It(), { setNodes: d, getNodes: p } = Ji(), { activitiesPopover: h } = Jt((m) => m.canvas), A = Kt(
169841
+ const c = Lr(), u = It(), { setNodes: d, getNodes: p } = eo(), { activitiesPopover: h } = Jt((m) => m.canvas), A = Kt(
169685
169842
  () => r ? M0(r, "t.resize(h:24,w:24)") : "",
169686
169843
  [r]
169687
169844
  ), g = (m) => {
@@ -169820,7 +169977,7 @@ const HO = ({
169820
169977
  },
169821
169978
  sx: {
169822
169979
  p: 0,
169823
- ...Ki(u)
169980
+ ...Zi(u)
169824
169981
  },
169825
169982
  children: /* @__PURE__ */ f.jsx(Qe, { src: "ic_comment", width: 16, height: 16 })
169826
169983
  }
@@ -169853,7 +170010,7 @@ const HO = ({
169853
170010
  }, ict = re.memo((e) => {
169854
170011
  const t = Za(), r = tc(), n = It(), { canvasWorkflow: i, activityExecutionData: o, viewOnly: s, selectedActivityId: a } = Jt(
169855
170012
  (W) => W.canvas
169856
- ), l = i?.meta?.isHorizontal ?? !0, c = gh(), { setNodes: u } = Ji(), { id: d, data: p, onHandleClick: h, handleDeleteNode: A, selected: g, pro_integration: m, onRunWithPrevious: E } = e, O = t.find((W) => W.id === a), { activities: y, triggers: v } = Jt(UO), b = Array.isArray(y) ? y : [], S = Array.isArray(v) ? v : [], x = _i(b, S, p, "pro"), C = !!x && x !== "", w = C && m === !1, _ = o?.[p.name]?.loading ?? !1;
170013
+ ), l = i?.meta?.isHorizontal ?? !0, c = gh(), { setNodes: u } = eo(), { id: d, data: p, onHandleClick: h, handleDeleteNode: A, selected: g, pro_integration: m, onRunWithPrevious: E } = e, O = t.find((W) => W.id === a), { activities: y, triggers: v } = Jt(UO), b = Array.isArray(y) ? y : [], S = Array.isArray(v) ? v : [], x = _i(b, S, p, "pro"), C = !!x && x !== "", w = C && m === !1, _ = o?.[p.name]?.loading ?? !1;
169857
170014
  let I = Array.isArray(p.properties?.branches) ? p.properties.branches : [];
169858
170015
  (p.type === rt.API || p.type === rt.GRAPHQL) && p.properties?.continue_on_failure === !1 && (I = I.filter((W) => W.ref === "success")), ke(() => {
169859
170016
  c(d);
@@ -170424,7 +170581,7 @@ const HO = ({
170424
170581
  }
170425
170582
  ) });
170426
170583
  }, cct = ({ id: e, data: t, onHandleClick: r }) => {
170427
- const { isTriggerPlaceholder: n } = t, i = It(), o = Za(), s = tc(), { ENTITY_ID: a, allowedAccount: l } = eo(), c = Lr(), { activitiesPopover: u, viewOnly: d, canvasWorkflow: p, selectedActivityId: h } = Jt(
170584
+ const { isTriggerPlaceholder: n } = t, i = It(), o = Za(), s = tc(), { ENTITY_ID: a, allowedAccount: l } = Wi(), c = Lr(), { activitiesPopover: u, viewOnly: d, canvasWorkflow: p, selectedActivityId: h } = Jt(
170428
170585
  (E) => E.canvas
170429
170586
  ), A = jO(a, l), g = p?.meta?.isHorizontal ?? !0, m = (E) => {
170430
170587
  if (d)
@@ -170716,7 +170873,7 @@ const HO = ({
170716
170873
  handleDeleteNode: a,
170717
170874
  currentSubscription: l,
170718
170875
  pro_integration: c
170719
- } = e, u = jn(Wr.VERSION), d = rs(), p = jn(d), h = Lr(), A = It(), { analytics: g } = eo(), m = Za(), E = tc(), { workflow: O } = Jt((B) => B.workflows), { canvasWorkflow: y, activityExecutionData: v, viewOnly: b, showDebugLogs: S, selectedActivityId: x } = Jt(
170876
+ } = e, u = jn(Wr.VERSION), d = rs(), p = jn(d), h = Lr(), A = It(), { analytics: g } = Wi(), m = Za(), E = tc(), { workflow: O } = Jt((B) => B.workflows), { canvasWorkflow: y, activityExecutionData: v, viewOnly: b, showDebugLogs: S, selectedActivityId: x } = Jt(
170720
170877
  (B) => B.canvas
170721
170878
  ), C = m.find((B) => B.id === x), w = y?.meta?.isHorizontal ?? !0, _ = m?.find((B) => B?.type === wt.TRIGGER), { activities: I, triggers: N } = Jt(UO), D = Array.isArray(I) ? I : [], P = Array.isArray(N) ? N : [], L = _i(D, P, r, "pro"), F = !!L && L !== "", W = F && c === !1, [U, X] = ve(!1), M = v?.[r.name]?.loading ?? !1, H = _?.data?.type, R = (Array.isArray(r?.properties?.branches) ? r.properties.branches : []).length + 1, k = Math.max(R * 16, 84);
170722
170879
  return /* @__PURE__ */ f.jsxs(
@@ -170888,7 +171045,7 @@ const HO = ({
170888
171045
  }
170889
171046
  );
170890
171047
  }), fct = (e, t, r, n, i) => {
170891
- const o = It(), s = Za(), a = tc(), l = Lr(), c = jn(), { analytics: u, ENTITY_ID: d, WORKFLOW_URLS: p } = eo(), { activity_names: h } = Jt((_) => _.activities), { selectedPlaceholderId: A } = Jt((_) => _.canvas), g = (_, I) => [..._, I], { captureEvent: m, WORKFLOW_EVENTS: E } = u || {}, O = ut(
171048
+ const o = It(), s = Za(), a = tc(), l = Lr(), c = jn(), { analytics: u, ENTITY_ID: d, WORKFLOW_URLS: p } = Wi(), { activity_names: h } = Jt((_) => _.activities), { selectedPlaceholderId: A } = Jt((_) => _.canvas), g = (_, I) => [..._, I], { captureEvent: m, WORKFLOW_EVENTS: E } = u || {}, O = ut(
170892
171049
  (_) => {
170893
171050
  _.preventDefault(), A && l({
170894
171051
  type: n0,
@@ -171265,7 +171422,7 @@ const HO = ({
171265
171422
  maxHistorySize: e = uI.maxHistorySize,
171266
171423
  enableShortcuts: t = uI.enableShortcuts
171267
171424
  } = uI) => {
171268
- const { getNodes: r, getEdges: n, setNodes: i, setEdges: o } = Ji(), { selectedActivityId: s } = Jt((O) => O.canvas), a = r(), l = n(), [c, u] = ve([]), [d, p] = ve([]), h = ut(() => {
171425
+ const { getNodes: r, getEdges: n, setNodes: i, setEdges: o } = eo(), { selectedActivityId: s } = Jt((O) => O.canvas), a = r(), l = n(), [c, u] = ve([]), [d, p] = ve([]), h = ut(() => {
171269
171426
  u((O) => {
171270
171427
  const y = O[O.length - 1];
171271
171428
  return y && y.nodes === a && y.edges === l ? O : [...O.slice(-e + 1), { nodes: a, edges: l }];
@@ -171969,7 +172126,7 @@ const Zie = (e) => {
171969
172126
  showCanvasOverlay: O,
171970
172127
  setShowCanvasOverlay: y,
171971
172128
  pro_integration: v
171972
- } = e, b = Pt(null), S = Pt(!1), x = Lr(), C = Pt(0), { fitView: w, deleteElements: _, getNodes: I, getEdges: N, getNode: D, screenToFlowPosition: P } = Ji(), L = It(), { analytics: F, openAddonModal: W, allowedAccount: U } = eo(), X = Kt(() => jO(i, U), [i, U]), M = gy("Delete"), H = gy("Backspace"), V = gy(["Meta+a", "Ctrl+a"], { actInsideInputWithModifier: !1 }), { VORTEX_MAIN_URL: R, VORTEX_SYNC_DOMAIN: k, BOLTICAI_MAIN_URL: B } = t, z = L.drawer.rightMenu, {
172129
+ } = e, b = Pt(null), S = Pt(!1), x = Lr(), C = Pt(0), { fitView: w, deleteElements: _, getNodes: I, getEdges: N, getNode: D, screenToFlowPosition: P } = eo(), L = It(), { analytics: F, openAddonModal: W, allowedAccount: U } = Wi(), X = Kt(() => jO(i, U), [i, U]), M = gy("Delete"), H = gy("Backspace"), V = gy(["Meta+a", "Ctrl+a"], { actInsideInputWithModifier: !1 }), { VORTEX_MAIN_URL: R, VORTEX_SYNC_DOMAIN: k, BOLTICAI_MAIN_URL: B } = t, z = L.drawer.rightMenu, {
171973
172130
  canvasWorkflow: G,
171974
172131
  activityExecutionData: $,
171975
172132
  viewOnly: j,
@@ -172068,8 +172225,8 @@ const Zie = (e) => {
172068
172225
  Gt = le;
172069
172226
  const En = String(le.id), hn = d.find((so) => so?.id === En) || null;
172070
172227
  Et = hn?.position ?? { x: 0, y: 0 }, er = d.filter((so) => so?.id !== En), Zt = p.filter((so) => so?.data?.isTempAiEdge !== !0).filter((so) => so?.source !== En && so?.target !== En);
172071
- const Gi = le.originalEdge;
172072
- Gi?.id && !Zt.some((so) => so?.id === Gi.id) && (Zt = [...Zt, Gi]);
172228
+ const Qi = le.originalEdge;
172229
+ Qi?.id && !Zt.some((so) => so?.id === Qi.id) && (Zt = [...Zt, Qi]);
172073
172230
  const ss = er.find((so) => so.id === le.sourceNodeId), Vs = er.find((so) => so.id === le.targetNodeId);
172074
172231
  ss && Vs && !hn?.position && (Et = {
172075
172232
  x: (ss.position.x + Vs.position.x) / 2,
@@ -172394,7 +172551,7 @@ const Zie = (e) => {
172394
172551
  payload: !!Q?.nodeId
172395
172552
  });
172396
172553
  }, [Q?.nodeId]);
172397
- const [In, gr] = ve(!1), [jr, Un] = ve(!1), [Vt, ar] = ve(!1), [Kr, kr] = ve(null), [Dr, zr] = ve(!1), { selectedActivityId: Zr, openDrawer: Yr } = Jt((he) => he.canvas), [Bn, Ln] = ve(null), Qn = Ji(), { undo: Pi, redo: uo, canUndo: mn, canRedo: Lo, takeSnapshot: ie } = pct(), Ze = (() => {
172554
+ const [In, gr] = ve(!1), [jr, Un] = ve(!1), [Vt, ar] = ve(!1), [Kr, kr] = ve(null), [Dr, zr] = ve(!1), { selectedActivityId: Zr, openDrawer: Yr } = Jt((he) => he.canvas), [Bn, Ln] = ve(null), Qn = eo(), { undo: Pi, redo: uo, canUndo: mn, canRedo: Lo, takeSnapshot: ie } = pct(), Ze = (() => {
172398
172555
  const he = localStorage.getItem(`viewport-${ge}`);
172399
172556
  if (he)
172400
172557
  return JSON.parse(he);
@@ -172783,8 +172940,8 @@ const Zie = (e) => {
172783
172940
  return !1;
172784
172941
  } else if (hn.ref && hn.ref !== he)
172785
172942
  return !1;
172786
- const Gi = tt.find((Vs) => Vs.id === hn.id);
172787
- return Gi ? !(Gi.type === wt.PLACEHOLDER && Gi.data?.isActivityPlaceholder) : !1;
172943
+ const Qi = tt.find((Vs) => Vs.id === hn.id);
172944
+ return Qi ? !(Qi.type === wt.PLACEHOLDER && Qi.data?.isActivityPlaceholder) : !1;
172788
172945
  }), Ct = Et.some((hn) => {
172789
172946
  if (hn.source !== Fe || (hn.sourceHandle || "outHandle") !== (he || "outHandle") || hn.type === rn.PLACEHOLDER || hn.target?.startsWith("placeholder_") || tt.some(
172790
172947
  (Xd) => Xd.id === hn.target && Xd.type === wt.PLACEHOLDER && Xd.data?.isActivityPlaceholder
@@ -173067,7 +173224,7 @@ const Zie = (e) => {
173067
173224
  );
173068
173225
  }, Dn = () => {
173069
173226
  zr(!0), gn(q?.data?.data?.[0]?.id, q?.data?.data?.[0]?.status);
173070
- }, Wi = cpe(L), zn = 55, io = 95, Oo = te ?? 340, fi = `-${zn}px`, oo = `calc(100% + ${io}px)`, fo = fi, oa = se ? `calc(${oo} - ${Oo}px)` : oo;
173227
+ }, Gi = cpe(L), zn = 55, io = 95, Oo = te ?? 340, fi = `-${zn}px`, oo = `calc(100% + ${io}px)`, fo = fi, oa = se ? `calc(${oo} - ${Oo}px)` : oo;
173071
173228
  return ke(() => {
173072
173229
  if ((oe || ye) && !q?.data?.data?.length) {
173073
173230
  const he = [Wr.PUBLISHED, Wr.SCHEDULED].includes(xe) && oe?.id || oe?.parent_id;
@@ -173360,7 +173517,7 @@ const Zie = (e) => {
173360
173517
  right: 68,
173361
173518
  bottom: se ? Oe + 16 : 56,
173362
173519
  backgroundColor: L.palette.common.white,
173363
- boxShadow: Wi.primary.outlined,
173520
+ boxShadow: Gi.primary.outlined,
173364
173521
  "&:hover": {
173365
173522
  backgroundColor: L.palette.common.white
173366
173523
  }
@@ -176717,7 +176874,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
176717
176874
  VORTEX_MAIN_URL: s,
176718
176875
  ENTITY_ID: a,
176719
176876
  navigate: l
176720
- } = e, c = Lr(), u = It(), { analytics: d } = eo(), [p, h] = ve({
176877
+ } = e, c = Lr(), u = It(), { analytics: d } = Wi(), [p, h] = ve({
176721
176878
  per_page: 10,
176722
176879
  type: "all"
176723
176880
  }), { executions: A, executionLogs: g, workflow: m } = Jt((Z) => Z.workflows), { activities: E, triggers: O } = Jt((Z) => Z.activities), { testExecutionId: y, showDebugLogs: v, runWithPreviousExecutionId: b, runLogsPanelHeight: S } = Jt((Z) => Z.canvas), [x, C] = ve("Logs"), [w] = ve(!0), [_, I] = ve(0), [N, D] = ve(""), [P, L] = ve("all"), [F, W] = ve(y), [U, X] = ve({
@@ -177046,7 +177203,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177046
177203
  p: 0.5,
177047
177204
  border: `1px solid ${u.palette.neutral.outlined.border || u.palette.grey[300]}`,
177048
177205
  borderRadius: 1.5,
177049
- ...Ki(u)
177206
+ ...Zi(u)
177050
177207
  },
177051
177208
  onClick: Xe,
177052
177209
  disabled: A.loading,
@@ -177076,7 +177233,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177076
177233
  p: 0.5,
177077
177234
  border: `1px solid ${u.palette.neutral.outlined.border || u.palette.grey[300]}`,
177078
177235
  borderRadius: 1.5,
177079
- ...Ki(u)
177236
+ ...Zi(u)
177080
177237
  },
177081
177238
  children: /* @__PURE__ */ f.jsx(
177082
177239
  Qe,
@@ -177097,7 +177254,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177097
177254
  tr,
177098
177255
  {
177099
177256
  onClick: o,
177100
- sx: { p: 0, ...Ki(u) },
177257
+ sx: { p: 0, ...Zi(u) },
177101
177258
  size: "small",
177102
177259
  children: /* @__PURE__ */ f.jsx(
177103
177260
  Qe,
@@ -177288,7 +177445,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177288
177445
  p: 0.5,
177289
177446
  border: `1px solid ${u.palette.neutral.outlined.border || u.palette.grey[300]}`,
177290
177447
  borderRadius: 1.5,
177291
- ...Ki(u)
177448
+ ...Zi(u)
177292
177449
  },
177293
177450
  onClick: Ie,
177294
177451
  disabled: A.loading,
@@ -177536,7 +177693,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177536
177693
  p: 0.5,
177537
177694
  border: `1px solid ${u.palette.neutral.outlined.border || u.palette.grey[300]}`,
177538
177695
  borderRadius: 1.5,
177539
- ...Ki(u)
177696
+ ...Zi(u)
177540
177697
  },
177541
177698
  onClick: Ie,
177542
177699
  disabled: A.loading,
@@ -177899,7 +178056,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
177899
178056
  disabled: n = !1,
177900
178057
  ...i
177901
178058
  }) => /* @__PURE__ */ f.jsx(bN, { renderInput: e, options: t, disabled: n || r, ...i }), Wut = jd(Vut), Gut = ({ onClose: e, open: t }) => {
177902
- const { WORKFLOW_URLS: r, ENTITY_ID: n } = eo(), { VORTEX_MAIN_URL: i } = r, o = Lr(), { canvasWorkflow: s, viewOnly: a } = Jt((b) => b.canvas), { workflow: l } = Jt((b) => b.workflows), c = s?.meta?.fallback_workflow_id || "", [u, d] = ve(c), [p, h] = ve([]), [A, g] = ve(!1), E = rs() === Jn.DRAFT ? l?.id : l?.meta?.draft_id, O = Kt(() => Hut(p, u), [p, u]), y = ut(
178059
+ const { WORKFLOW_URLS: r, ENTITY_ID: n } = Wi(), { VORTEX_MAIN_URL: i } = r, o = Lr(), { canvasWorkflow: s, viewOnly: a } = Jt((b) => b.canvas), { workflow: l } = Jt((b) => b.workflows), c = s?.meta?.fallback_workflow_id || "", [u, d] = ve(c), [p, h] = ve([]), [A, g] = ve(!1), E = rs() === Jn.DRAFT ? l?.id : l?.meta?.draft_id, O = Kt(() => Hut(p, u), [p, u]), y = ut(
177903
178060
  async (b) => {
177904
178061
  g(!0);
177905
178062
  try {
@@ -178070,7 +178227,7 @@ const FW = ({ data: e, maxHeight: t = 400 }) => {
178070
178227
  }
178071
178228
  );
178072
178229
  }, Qut = ({ setActiveMenu: e, open: t, onClose: r }) => {
178073
- const n = It(), i = Lr(), [o, s] = ve(""), [a, l] = ve(!1), [c, u] = ve(!1), [d, p] = ve(null), [h, A] = ve(!0), { canvasWorkflow: g } = Jt((U) => U.canvas), { WORKFLOW_URLS: m, ENTITY_ID: E } = eo(), { setNodes: O, setEdges: y, getNodes: v } = Ji(), b = rs(), S = jn(b), x = async (U) => {
178230
+ const n = It(), i = Lr(), [o, s] = ve(""), [a, l] = ve(!1), [c, u] = ve(!1), [d, p] = ve(null), [h, A] = ve(!0), { canvasWorkflow: g } = Jt((U) => U.canvas), { WORKFLOW_URLS: m, ENTITY_ID: E } = Wi(), { setNodes: O, setEdges: y, getNodes: v } = eo(), b = rs(), S = jn(b), x = async (U) => {
178074
178231
  if (!U) return;
178075
178232
  u(!0), i({
178076
178233
  type: kI,
@@ -178838,7 +178995,7 @@ async function jdt(e, t = {}) {
178838
178995
  return (await Bdt(e, t)).toDataURL();
178839
178996
  }
178840
178997
  const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose: n }) => {
178841
- const i = Lr(), o = It(), { ENTITY_ID: s, WORKFLOW_URLS: a, analytics: l } = eo(), { captureEvent: c, WORKFLOW_EVENTS: u } = l || {}, { VORTEX_MAIN_URL: d } = a, { canvasWorkflow: p } = Jt((C) => C.canvas), { share: h } = Jt((C) => C.workflows), A = Pt(), g = Kt(() => {
178998
+ const i = Lr(), o = It(), { ENTITY_ID: s, WORKFLOW_URLS: a, analytics: l } = Wi(), { captureEvent: c, WORKFLOW_EVENTS: u } = l || {}, { VORTEX_MAIN_URL: d } = a, { canvasWorkflow: p } = Jt((C) => C.canvas), { share: h } = Jt((C) => C.workflows), A = Pt(), g = Kt(() => {
178842
178999
  const C = hc("nodes_update", e) || [], w = hc("edges_update", null, t) || [];
178843
179000
  return { ...p, nodes: C, edges: w };
178844
179001
  }, [p, e, t]), m = ut(() => {
@@ -179494,7 +179651,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179494
179651
  left: 16
179495
179652
  },
179496
179653
  menuItemStyles: {
179497
- ...Ki(o)
179654
+ ...Zi(o)
179498
179655
  },
179499
179656
  menuItems: p
179500
179657
  }
@@ -179511,23 +179668,45 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179511
179668
  isActiveWorkflow: l,
179512
179669
  currentSubscription: c
179513
179670
  }) => {
179514
- const u = Lr(), d = It(), { canvasWorkflow: p, selectedActivityId: h, publishLock: A } = Jt((P) => P.canvas), g = Array.isArray(c) ? c[0] : c, m = g?.metricData?.creation?.remaining, E = g?.metricData?.execution?.remaining, O = g?.status === "EXPIRED", y = g?.status === "CANCELLED", v = m == null || m <= 0, b = E == null || E <= 0, S = O || y || v || b, x = Kt(() => s?.find((P) => P.type === wt.TRIGGER), [s]), C = Kt(() => x ? Xg(x, s) : !1, [x, s]), w = ut(() => {
179515
- const P = hT(v6(i)), L = hT(
179671
+ const u = Lr(), d = It(), { openAddonModal: p, openUpgradeModal: h } = Wi(), { canvasWorkflow: A, selectedActivityId: g, publishLock: m } = Jt((F) => F.canvas), E = Array.isArray(c) ? c[0] : c, O = E?.metricData?.creation?.remaining, y = E?.metricData?.execution?.remaining, v = E?.status === "EXPIRED", b = E?.status === "CANCELLED", S = O == null || O <= 0, x = y == null || y <= 0, C = v || b || S || x, w = Kt(() => s?.find((F) => F.type === wt.TRIGGER), [s]), _ = Kt(() => w ? Xg(w, s) : !1, [w, s]), I = ut(() => {
179672
+ const F = hT(v6(i)), W = hT(
179516
179673
  v6({
179517
- ...p,
179674
+ ...A,
179518
179675
  nodes: hc("nodes_update", s),
179519
179676
  edges: hc("edges_update", null, a)
179520
179677
  })
179521
179678
  );
179522
- return P === L;
179523
- }, [i, p, s, a]), _ = ut(() => {
179524
- setTimeout(() => {
179525
- const L = ['[data-testid="plans-add-on-button"]', '[data-test-id="plan-upgrade-button"]'].map((F) => document.querySelector(F)).find((F) => F);
179526
- L && L.click();
179527
- }, 100);
179528
- }, []), I = ut(() => {
179529
- if (v || O || y) {
179530
- _();
179679
+ return F === W;
179680
+ }, [i, A, s, a]), N = ut(
179681
+ ({ preferAddon: F = !1 } = {}) => {
179682
+ if (F && typeof p == "function") {
179683
+ p();
179684
+ return;
179685
+ }
179686
+ if (!F && typeof h == "function") {
179687
+ h();
179688
+ return;
179689
+ }
179690
+ setTimeout(() => {
179691
+ const U = (F ? ['[data-testid="plans-add-on-button"]', '[data-test-id="plan-upgrade-button"]'] : ['[data-test-id="plan-upgrade-button"]', '[data-testid="plans-add-on-button"]']).map((X) => document.querySelector(X)).find((X) => X);
179692
+ if (U) {
179693
+ U.click();
179694
+ return;
179695
+ }
179696
+ u({
179697
+ type: an,
179698
+ payload: {
179699
+ open: !0,
179700
+ title: F ? "You have reached your workflow usage limit. Please add usage to continue." : "Your subscription is not active. Please update your plan to continue.",
179701
+ type: "error"
179702
+ }
179703
+ });
179704
+ }, 100);
179705
+ },
179706
+ [u, p, h]
179707
+ ), D = ut(() => {
179708
+ if (S || v || b) {
179709
+ N();
179531
179710
  return;
179532
179711
  }
179533
179712
  if (!l && e !== Jn.DRAFT) {
@@ -179541,7 +179720,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179541
179720
  });
179542
179721
  return;
179543
179722
  }
179544
- if (!x) {
179723
+ if (!w) {
179545
179724
  u({
179546
179725
  type: an,
179547
179726
  payload: {
@@ -179552,7 +179731,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179552
179731
  });
179553
179732
  return;
179554
179733
  }
179555
- if (!C) {
179734
+ if (!_) {
179556
179735
  u({
179557
179736
  type: an,
179558
179737
  payload: {
@@ -179565,19 +179744,20 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179565
179744
  }
179566
179745
  r(!t);
179567
179746
  }, [
179747
+ S,
179748
+ x,
179568
179749
  v,
179569
- O,
179570
- y,
179750
+ b,
179571
179751
  l,
179572
179752
  e,
179573
- x,
179574
- C,
179753
+ w,
179754
+ _,
179575
179755
  t,
179576
179756
  r,
179577
179757
  u,
179578
- _
179579
- ]), N = o || A || w() || h || !x || !C, D = !C && !(S || v) ? "Workflow not completed" : "";
179580
- return /* @__PURE__ */ f.jsx(ce, { direction: "row", gap: 1, children: St(n) && e === Jn.DRAFT && /* @__PURE__ */ f.jsx(mr, { disableHoverListener: C, arrow: !0, title: D, children: /* @__PURE__ */ f.jsx("span", { children: /* @__PURE__ */ f.jsx(
179758
+ N
179759
+ ]), P = o || m || I() || g || !w || !_, L = !_ && !(C || S) ? "Workflow not completed" : "";
179760
+ return /* @__PURE__ */ f.jsx(ce, { direction: "row", gap: 1, children: St(n) && e === Jn.DRAFT && /* @__PURE__ */ f.jsx(mr, { disableHoverListener: _, arrow: !0, title: L, children: /* @__PURE__ */ f.jsx("span", { children: /* @__PURE__ */ f.jsx(
179581
179761
  fr,
179582
179762
  {
179583
179763
  sx: {
@@ -179596,8 +179776,8 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179596
179776
  }
179597
179777
  },
179598
179778
  variant: "contained",
179599
- onClick: I,
179600
- disabled: N,
179779
+ onClick: D,
179780
+ disabled: P,
179601
179781
  size: "medium",
179602
179782
  children: /* @__PURE__ */ f.jsx(Ve, { variant: "smSemiBold", children: "Publish" })
179603
179783
  }
@@ -179794,7 +179974,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179794
179974
  };
179795
179975
  return /* @__PURE__ */ f.jsx(fr, { sx: { height: 32, ml: 1 }, variant: "contained", color: "primary", onClick: n, children: /* @__PURE__ */ f.jsx(Ve, { variant: "smSemiBold", children: "Edit Workflow" }) });
179796
179976
  }, qdt = ({ open: e, onClose: t, navigate: r }) => {
179797
- const n = It(), i = Lr(), { workflow: o } = Jt((O) => O.workflows), [s, a] = ve(!1), { ENTITY_ID: l, WORKFLOW_URLS: c, analytics: u } = eo(), { VORTEX_MAIN_URL: d } = c, { captureEvent: p, WORKFLOW_EVENTS: h } = u || {}, A = () => {
179977
+ const n = It(), i = Lr(), { workflow: o } = Jt((O) => O.workflows), [s, a] = ve(!1), { ENTITY_ID: l, WORKFLOW_URLS: c, analytics: u } = Wi(), { VORTEX_MAIN_URL: d } = c, { captureEvent: p, WORKFLOW_EVENTS: h } = u || {}, A = () => {
179798
179978
  const O = o?.meta?.draft_id;
179799
179979
  if (!O) return;
179800
179980
  i({ type: pT });
@@ -179892,7 +180072,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
179892
180072
  edges: c,
179893
180073
  currentSubscription: u
179894
180074
  }) => {
179895
- const { VORTEX_MAIN_URL: d, GYRATE_MAIN_URL: p } = n, h = Lr(), A = It(), { analytics: g } = eo(), [m, E] = ve(!1), [O, y] = ve(!1), [v, b] = ve(!1), [S, x] = ve(!1), [C, w] = ve(""), [_, I] = ve(!1), [N, D] = ve(null), [P, L] = ve(!1), [F, W] = ve(!1), [U, X] = ve(!1), [M, H] = ve({
180075
+ const { VORTEX_MAIN_URL: d, GYRATE_MAIN_URL: p } = n, h = Lr(), A = It(), { analytics: g } = Wi(), [m, E] = ve(!1), [O, y] = ve(!1), [v, b] = ve(!1), [S, x] = ve(!1), [C, w] = ve(""), [_, I] = ve(!1), [N, D] = ve(null), [P, L] = ve(!1), [F, W] = ve(!1), [U, X] = ve(!1), [M, H] = ve({
179896
180076
  title: "",
179897
180077
  content: "",
179898
180078
  status: ""
@@ -180118,7 +180298,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
180118
180298
  p: 0,
180119
180299
  opacity: V ? 0.6 : 1
180120
180300
  },
180121
- ...Ki(A)
180301
+ ...Zi(A)
180122
180302
  },
180123
180303
  onClick: fe,
180124
180304
  disabled: V,
@@ -180449,7 +180629,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
180449
180629
  },
180450
180630
  arrow: !0,
180451
180631
  title: "A global variable is a key-value pair that can be accessed and used throughout an entire workflow, ensuring consistency and reusability of data across different activities",
180452
- children: /* @__PURE__ */ f.jsx(Be, { component: "span", children: /* @__PURE__ */ f.jsx(Qe, { src: "ic_info", sx: { ...Ki(i) } }) })
180632
+ children: /* @__PURE__ */ f.jsx(Be, { component: "span", children: /* @__PURE__ */ f.jsx(Qe, { src: "ic_info", sx: { ...Zi(i) } }) })
180453
180633
  }
180454
180634
  )
180455
180635
  ]
@@ -180461,7 +180641,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
180461
180641
  src: "ic_close",
180462
180642
  sx: {
180463
180643
  cursor: "pointer",
180464
- ...Ki(i)
180644
+ ...Zi(i)
180465
180645
  },
180466
180646
  onClick: () => {
180467
180647
  r("");
@@ -180594,7 +180774,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
180594
180774
  src: "ic_close",
180595
180775
  sx: {
180596
180776
  cursor: "pointer",
180597
- ...Ki(i)
180777
+ ...Zi(i)
180598
180778
  },
180599
180779
  onClick: () => {
180600
180780
  n("");
@@ -180917,7 +181097,7 @@ const WW = 1024 * 2, GW = 768 * 2, $dt = ({ nodes: e, edges: t, open: r, onClose
180917
181097
  src: "ic_close",
180918
181098
  sx: {
180919
181099
  cursor: "pointer",
180920
- ...Ki(E)
181100
+ ...Zi(E)
180921
181101
  },
180922
181102
  onClick: () => {
180923
181103
  i("");
@@ -181412,13 +181592,13 @@ const nft = ({ onUpgradeToPro: e }) => {
181412
181592
  setSelectedMenu: u,
181413
181593
  pro_integration: d,
181414
181594
  openUpgradeModal: p
181415
- } = e, h = It(), A = Lr(), g = Ji(), [m, E] = ve({}), { setNodes: O } = Ji(), [y, v] = ve(""), [b, S] = ve(!0), x = jn() || "", C = [
181595
+ } = e, h = It(), A = Lr(), g = eo(), [m, E] = ve({}), { setNodes: O } = eo(), [y, v] = ve(""), [b, S] = ve(!0), x = jn() || "", C = [
181416
181596
  { icon: "ic_all", label: "All" },
181417
181597
  { icon: "ic_apps", label: "Integrations" },
181418
181598
  { icon: "ic_tools", label: "Built in tools" }
181419
181599
  ], [w, _] = ve(0), I = (q) => {
181420
181600
  _(q);
181421
- }, N = Pt(), D = Pt(null), { analytics: P, ENTITY_ID: L = "", WORKFLOW_URLS: F = {} } = eo(), { captureEvent: W, WORKFLOW_EVENTS: U } = P || {}, { getNodes: X, getEdges: M } = Ji(), H = gh(), V = X(), R = M(), { activities: k, triggers: B, activity_names: z } = Jt((q) => q.activities), { selectedPlaceholderId: G, canvasWorkflow: $ } = Jt((q) => q.canvas), [j, Q] = ve([]), K = (q) => {
181601
+ }, N = Pt(), D = Pt(null), { analytics: P, ENTITY_ID: L = "", WORKFLOW_URLS: F = {} } = Wi(), { captureEvent: W, WORKFLOW_EVENTS: U } = P || {}, { getNodes: X, getEdges: M } = eo(), H = gh(), V = X(), R = M(), { activities: k, triggers: B, activity_names: z } = Jt((q) => q.activities), { selectedPlaceholderId: G, canvasWorkflow: $ } = Jt((q) => q.canvas), [j, Q] = ve([]), K = (q) => {
181422
181602
  const Y = q.filter((ae) => ae.active ? w === 0 ? !0 : w === 1 ? _f.includes(ae.type) : !_f.includes(ae.type) : !1);
181423
181603
  if (n === "triggers") {
181424
181604
  const ae = { Triggers: { activities: Y } };
@@ -181785,7 +181965,7 @@ const nft = ({ onUpgradeToPro: e }) => {
181785
181965
  pro_integration: i,
181786
181966
  openUpgradeModal: o
181787
181967
  }) => {
181788
- const s = It(), a = Lr(), { getNodes: l, getEdges: c, setNodes: u, setEdges: d } = Ji(), p = c(), h = l(), [A, g] = re.useState(""), { canvasWorkflow: m, showSideBar: E, selectedPlaceholderId: O } = Jt((X) => X.canvas), { retry_config: y } = m, { VORTEX_MAIN_URL: v, VORTEX_SYNC_DOMAIN: b } = r, S = rs(), x = jn(S), C = jn(Wr.VERSION), { activitiesPopover: w } = Jt((X) => X.canvas), I = new URLSearchParams(window.location.search).get("source")?.toLowerCase(), N = () => St(m) ? !1 : S !== Wr.DRAFT, D = Kt(
181968
+ const s = It(), a = Lr(), { getNodes: l, getEdges: c, setNodes: u, setEdges: d } = eo(), p = c(), h = l(), [A, g] = re.useState(""), { canvasWorkflow: m, showSideBar: E, selectedPlaceholderId: O } = Jt((X) => X.canvas), { retry_config: y } = m, { VORTEX_MAIN_URL: v, VORTEX_SYNC_DOMAIN: b } = r, S = rs(), x = jn(S), C = jn(Wr.VERSION), { activitiesPopover: w } = Jt((X) => X.canvas), I = new URLSearchParams(window.location.search).get("source")?.toLowerCase(), N = () => St(m) ? !1 : S !== Wr.DRAFT, D = Kt(
181789
181969
  () => [
181790
181970
  {
181791
181971
  label: "Add activity",
@@ -182484,6 +182664,7 @@ const nft = ({ onUpgradeToPro: e }) => {
182484
182664
  ENTITY_ID: r,
182485
182665
  analytics: a,
182486
182666
  userData: l,
182667
+ openUpgradeModal: h,
182487
182668
  openAddonModal: A,
182488
182669
  currentSubscription: u,
182489
182670
  allowedAccount: p,
@@ -186919,7 +187100,7 @@ const OG = () => {
186919
187100
  JETBRIDGE_DASHBOARD_ACCOUNT_ID: t.JETBRIDGE_DASHBOARD_ACCOUNT_ID ?? "",
186920
187101
  JETBRIDGE_DASHBOARD_USER_ID: t.JETBRIDGE_DASHBOARD_USER_ID ?? ""
186921
187102
  }), wht = ({ dashboardId: e, workflowId: t, startDate: r, endDate: n }) => {
186922
- const i = It(), { ENTITY_ID: o, userData: s, WORKFLOW_URLS: a } = eo(), { FYND_CLOUD_DOMAIN: l } = a, c = G5(), u = t ?? c ?? "", [d, p] = ve(!1), h = Kt(() => {
187103
+ const i = It(), { ENTITY_ID: o, userData: s, WORKFLOW_URLS: a } = Wi(), { FYND_CLOUD_DOMAIN: l } = a, c = G5(), u = t ?? c ?? "", [d, p] = ve(!1), h = Kt(() => {
186923
187104
  const g = l || "", m = {
186924
187105
  ANALYTICS_AUTH_TOKEN: a?.ANALYTICS_AUTH_TOKEN,
186925
187106
  JETBRIDGE_DASHBOARD_ACCOUNT_ID: a?.JETBRIDGE_DASHBOARD_ACCOUNT_ID,
@@ -187326,7 +187507,7 @@ const OG = () => {
187326
187507
  e.cooldownIds
187327
187508
  ]
187328
187509
  ), yG = (e) => {
187329
- const t = Lr(), { WORKFLOW_URLS: r, ENTITY_ID: n, analytics: i } = eo(), { height: o, workflowId: s, state: a, fetchCounts: l, loadingStats: c } = e, { VORTEX_MAIN_URL: u } = r, d = () => {
187510
+ const t = Lr(), { WORKFLOW_URLS: r, ENTITY_ID: n, analytics: i } = Wi(), { height: o, workflowId: s, state: a, fetchCounts: l, loadingStats: c } = e, { VORTEX_MAIN_URL: u } = r, d = () => {
187330
187511
  e.onRefresh ? e.onRefresh() : (t(
187331
187512
  L0(
187332
187513
  s,
@@ -188847,7 +189028,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
188847
189028
  parentExecutionStatus: n,
188848
189029
  currentStatus: i
188849
189030
  }) => {
188850
- const o = It(), { WORKFLOW_URLS: s, ENTITY_ID: a } = eo(), { VORTEX_MAIN_URL: l } = s, [c, u] = ve(null), d = !!c, [p, h] = ve(!1), [A, g] = ve([]), [m, E] = ve(null), O = async () => {
189031
+ const o = It(), { WORKFLOW_URLS: s, ENTITY_ID: a } = Wi(), { VORTEX_MAIN_URL: l } = s, [c, u] = ve(null), d = !!c, [p, h] = ve(!1), [A, g] = ve([]), [m, E] = ve(null), O = async () => {
188851
189032
  if (E(null), !!r) {
188852
189033
  h(!0);
188853
189034
  try {
@@ -189017,7 +189198,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
189017
189198
  )
189018
189199
  ] }) });
189019
189200
  }, Kht = (e) => {
189020
- const t = It(), r = Lr(), { WORKFLOW_URLS: n, ENTITY_ID: i, analytics: o } = eo(), { VORTEX_MAIN_URL: s } = n, { executionId: a, parentExecutionId: l, parentExecutionStatus: c } = e, u = G5(), { executionLogs: d } = Jt((ee) => ee.workflows), { activities: p, triggers: h } = Jt((ee) => ee.activities), [A, g] = ve("Data in"), [m, E] = ve("GUI"), [O, y] = ve(null), [v, b] = ve(""), [S, x] = ve([]), [C, w] = ve(!1), [_, I] = ve(!1), [N, D] = ve(!1), [P, L] = ve(!1), { retryExecutions: F } = cae({
189201
+ const t = It(), r = Lr(), { WORKFLOW_URLS: n, ENTITY_ID: i, analytics: o } = Wi(), { VORTEX_MAIN_URL: s } = n, { executionId: a, parentExecutionId: l, parentExecutionStatus: c } = e, u = G5(), { executionLogs: d } = Jt((ee) => ee.workflows), { activities: p, triggers: h } = Jt((ee) => ee.activities), [A, g] = ve("Data in"), [m, E] = ve("GUI"), [O, y] = ve(null), [v, b] = ve(""), [S, x] = ve([]), [C, w] = ve(!1), [_, I] = ve(!1), [N, D] = ve(!1), [P, L] = ve(!1), { retryExecutions: F } = cae({
189021
189202
  workflowId: u ?? void 0,
189022
189203
  VORTEX_MAIN_URL: s,
189023
189204
  ENTITY_ID: i
@@ -189395,7 +189576,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
189395
189576
  border: `1px solid ${t.palette.grey[300]}`,
189396
189577
  p: 0.5,
189397
189578
  ":hover": { backgroundColor: "transparent" },
189398
- ...Ki(t)
189579
+ ...Zi(t)
189399
189580
  },
189400
189581
  children: /* @__PURE__ */ f.jsx(Qe, { src: "ic_refresh", width: 16, height: 16 })
189401
189582
  }
@@ -189415,7 +189596,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
189415
189596
  p: 0.5,
189416
189597
  opacity: M && !U ? 1 : 0.4,
189417
189598
  ":hover": { backgroundColor: "transparent" },
189418
- ...Ki(t)
189599
+ ...Zi(t)
189419
189600
  },
189420
189601
  children: /* @__PURE__ */ f.jsx(
189421
189602
  Qe,
@@ -189442,7 +189623,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
189442
189623
  p: 0.5,
189443
189624
  opacity: H && !U ? 1 : 0.4,
189444
189625
  ":hover": { backgroundColor: "transparent" },
189445
- ...Ki(t)
189626
+ ...Zi(t)
189446
189627
  },
189447
189628
  children: /* @__PURE__ */ f.jsx(
189448
189629
  Qe,
@@ -189594,7 +189775,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
189594
189775
  tr,
189595
189776
  {
189596
189777
  onClick: t,
189597
- sx: { cursor: "pointer", p: 0, width: 24, height: 24, ...Ki(n) },
189778
+ sx: { cursor: "pointer", p: 0, width: 24, height: 24, ...Zi(n) },
189598
189779
  "data-testid": "executions-back-button",
189599
189780
  children: /* @__PURE__ */ f.jsx(Qe, { src: "ic_back", width: 24, height: 24, fill: n.palette.neutral.solid.bg })
189600
189781
  }
@@ -190505,7 +190686,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
190505
190686
  sx: {
190506
190687
  border: "1px solid",
190507
190688
  borderColor: t.palette.neutral.outlined.border,
190508
- ...Ki(t)
190689
+ ...Zi(t)
190509
190690
  },
190510
190691
  onClick: w,
190511
190692
  "data-testid": "refresh-button",
@@ -191888,7 +192069,7 @@ const TG = /* @__PURE__ */ ai(Pht), Nht = (e) => {
191888
192069
  }
191889
192070
  }, []);
191890
192071
  }, RAt = (e) => {
191891
- const t = It(), r = Lr(), { WORKFLOW_URLS: n, ENTITY_ID: i, analytics: o } = eo(), { VORTEX_MAIN_URL: s } = n, {
192072
+ const t = It(), r = Lr(), { WORKFLOW_URLS: n, ENTITY_ID: i, analytics: o } = Wi(), { VORTEX_MAIN_URL: s } = n, {
191892
192073
  executionId: a = "",
191893
192074
  token: l,
191894
192075
  api: c,