@sparrowengg/integrations-templates-frontend 1.9.62 → 1.9.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  var _commonjsHelpers = require('../../../_virtual/_commonjsHelpers.js');
4
4
  require('../../style-to-object/cjs/index.js');
5
5
  require('./utilities.js');
6
- var index = require('../../../_virtual/index9.js');
6
+ var index = require('../../../_virtual/index10.js');
7
7
  var utilities = require('../../../_virtual/utilities3.js');
8
8
 
9
9
  var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__importDefault) || function (mod) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('../../../_virtual/_commonjsHelpers.js');
4
- var index$1 = require('../../../_virtual/index9.js');
4
+ var index$1 = require('../../../_virtual/index10.js');
5
5
  var index = require('../../inline-style-parser/index.js');
6
6
 
7
7
  var __importDefault = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__importDefault) || function (mod) {
@@ -1,4 +1,4 @@
1
- var lib = {};
1
+ var cjs = {};
2
2
 
3
- export { lib as __exports };
3
+ export { cjs as __exports };
4
4
  //# sourceMappingURL=index10.js.map
@@ -1,4 +1,4 @@
1
- var cjs = {};
1
+ var lib = {};
2
2
 
3
- export { cjs as __exports };
3
+ export { lib as __exports };
4
4
  //# sourceMappingURL=index9.js.map
@@ -734,7 +734,7 @@ const SingleMappingDashboardItem = ({
734
734
  onClick: () => setIsMappingDisplayed(!isMappingDisplayed)
735
735
  },
736
736
  isMappingDisplayed ? /* @__PURE__ */ React__default.createElement(ChevronDownIcon, { size: 40, color: "#848484" }) : /* @__PURE__ */ React__default.createElement(ChevronRightIcon, { size: 40, color: "#848484" }),
737
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, icon, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (_d = (_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) != null ? _d : "Mapping"), ((_e = field == null ? void 0 : field.configurationFields) == null ? void 0 : _e.sheetURL) ? /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2", alignItems: "center" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, `Sync `), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, (field == null ? void 0 : field.importMethod) === "SEND_ALL_DATA" ? "All" : "Specific"), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, "Survey responses to"), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, typeof ((_f = field == null ? void 0 : field.configurationFields) == null ? void 0 : _f.spreadsheet) === "object" ? (_i = (_h = (_g = field == null ? void 0 : field.configurationFields) == null ? void 0 : _g.spreadsheet) == null ? void 0 : _h.value) == null ? void 0 : _i.label : (_k = (_j = field == null ? void 0 : field.configurationFields) == null ? void 0 : _j.spreadsheet) == null ? void 0 : _k.value), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600", textDecoration } }, "Sheet")) : null))
737
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, icon, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (_d = (_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) != null ? _d : "Mapping"), ((_e = field == null ? void 0 : field.configurationFields) == null ? void 0 : _e.sheetURL) ? /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2", alignItems: "center" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, `Sync `), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, (field == null ? void 0 : field.importMethod) === "SEND_ALL_DATA" ? "All" : "Specific"), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, "Survey responses to"), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { color: "$neutral600" } }, typeof ((_f = field == null ? void 0 : field.configurationFields) == null ? void 0 : _f.spreadsheet) === "object" ? (_i = (_h = (_g = field == null ? void 0 : field.configurationFields) == null ? void 0 : _g.spreadsheet) == null ? void 0 : _h.value) == null ? void 0 : _i.label : (_k = (_j = field == null ? void 0 : field.configurationFields) == null ? void 0 : _j.spreadsheet) == null ? void 0 : _k.value)) : null))
738
738
  ),
739
739
  /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React__default.createElement(Flex, { className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`, justifyContent: "center", alignItems: "center", css: {
740
740
  cursor: "pointer",
@@ -902,8 +902,9 @@ const EventComponent = ({
902
902
  heading,
903
903
  description,
904
904
  hasBorder,
905
- hasLink = false
905
+ hasLink = ""
906
906
  }) => {
907
+ console.log(hasLink, "hasLink");
907
908
  return /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, hasBorder && /* @__PURE__ */ React__default.createElement(Box, { css: { paddingInline: "$3" } }, /* @__PURE__ */ React__default.createElement(
908
909
  Box,
909
910
  {
@@ -914,13 +915,13 @@ const EventComponent = ({
914
915
  marginInline: "$4"
915
916
  }
916
917
  }
917
- )), /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral500" } }, heading), !!hasLink ? /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "medium", css: { color: "$neutral800", textDecoration: "underline", cursor: "pointer" }, onClick: () => window.open(hasLink, "_blank") }, description) : /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "medium", css: { color: "$neutral800" } }, description)));
918
+ )), /* @__PURE__ */ React__default.createElement(Flex, { gap: "$2" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral500" } }, heading), !!hasLink ? /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "medium", css: { color: "$neutral800", textDecoration: "underline", cursor: "pointer" }, onClick: () => window.open(`${hasLink}`, "_blank") }, description) : /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "medium", css: { color: "$neutral800" } }, description)));
918
919
  };
919
920
  const SingleMappingEventWrapper = ({
920
921
  field,
921
922
  isTrigger
922
923
  }) => {
923
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E;
924
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
924
925
  const hasEventSection = !!((_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) || !!field.action || !!field.exisitingSheet || !!field.object && isTrigger;
925
926
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, hasEventSection ? /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$6" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { textTransform: "uppercase" } }, "Event"), /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, !!((_f = (_e = (_d = field == null ? void 0 : field.configurationFields) == null ? void 0 : _d.account) == null ? void 0 : _e.value) == null ? void 0 : _f.label) ? /* @__PURE__ */ React__default.createElement(EventComponent, { heading: "Account:", description: (_i = (_h = (_g = field == null ? void 0 : field.configurationFields) == null ? void 0 : _g.account) == null ? void 0 : _h.value) == null ? void 0 : _i.label }) : null, !!((_l = (_k = (_j = field == null ? void 0 : field.configurationFields) == null ? void 0 : _j.object) == null ? void 0 : _k.value) == null ? void 0 : _l.label) ? /* @__PURE__ */ React__default.createElement(
926
927
  EventComponent,
@@ -931,20 +932,20 @@ const SingleMappingEventWrapper = ({
931
932
  (char) => char == null ? void 0 : char.toUpperCase()
932
933
  )
933
934
  }
934
- ) : null, !!((_s = (_r = (_q = field == null ? void 0 : field.configurationFields) == null ? void 0 : _q.action) == null ? void 0 : _r.value) == null ? void 0 : _s.label) ? /* @__PURE__ */ React__default.createElement(
935
+ ) : null, !!((_r = (_q = field == null ? void 0 : field.configurationFields) == null ? void 0 : _q.action) == null ? void 0 : _r.hasAction) ? /* @__PURE__ */ React__default.createElement(
935
936
  EventComponent,
936
937
  {
937
938
  hasBorder: true,
938
939
  heading: "Action:",
939
- description: (_v = (_u = (_t = field == null ? void 0 : field.configurationFields) == null ? void 0 : _t.action) == null ? void 0 : _u.value) == null ? void 0 : _v.label
940
+ description: (_u = (_t = (_s = field == null ? void 0 : field.configurationFields) == null ? void 0 : _s.action) == null ? void 0 : _t.value) == null ? void 0 : _u.label
940
941
  }
941
- ) : null, !!((_x = (_w = field == null ? void 0 : field.configurationFields) == null ? void 0 : _w.spreadsheet) == null ? void 0 : _x.value) ? /* @__PURE__ */ React__default.createElement(
942
+ ) : null, !!((_w = (_v = field == null ? void 0 : field.configurationFields) == null ? void 0 : _v.spreadsheet) == null ? void 0 : _w.value) ? /* @__PURE__ */ React__default.createElement(
942
943
  EventComponent,
943
944
  {
944
- hasLink: (_y = field == null ? void 0 : field.configurationFields) == null ? void 0 : _y.sheetURL,
945
+ hasLink: (_x = field == null ? void 0 : field.configurationFields) == null ? void 0 : _x.sheetURL,
945
946
  hasBorder: true,
946
947
  heading: "Sheet:",
947
- description: typeof ((_z = field == null ? void 0 : field.configurationFields) == null ? void 0 : _z.spreadsheet) === "object" ? (_C = (_B = (_A = field == null ? void 0 : field.configurationFields) == null ? void 0 : _A.spreadsheet) == null ? void 0 : _B.value) == null ? void 0 : _C.label : (_E = (_D = field == null ? void 0 : field.configurationFields) == null ? void 0 : _D.spreadsheet) == null ? void 0 : _E.value
948
+ description: typeof ((_y = field == null ? void 0 : field.configurationFields) == null ? void 0 : _y.spreadsheet) === "object" ? (_B = (_A = (_z = field == null ? void 0 : field.configurationFields) == null ? void 0 : _z.spreadsheet) == null ? void 0 : _A.value) == null ? void 0 : _B.label : (_D = (_C = field == null ? void 0 : field.configurationFields) == null ? void 0 : _C.spreadsheet) == null ? void 0 : _D.value
948
949
  }
949
950
  ) : null), /* @__PURE__ */ React__default.createElement(
950
951
  Box,