@sparrowengg/integrations-templates-frontend 1.9.84-beta.4 → 1.9.84-beta.6
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/cjs/authentication/constants/index.js +115 -1
- package/dist/cjs/authentication/constants/index.js.map +1 -1
- package/dist/cjs/authentication/index.js +36 -32
- package/dist/cjs/authentication/index.js.map +1 -1
- package/dist/cjs/commons/constants/enhanced.js +12 -0
- package/dist/cjs/commons/constants/enhanced.js.map +1 -0
- package/dist/cjs/commons/constants/index.js +6 -0
- package/dist/cjs/commons/constants/index.js.map +1 -1
- package/dist/cjs/contact-import/components/contact-import-configure.js.map +1 -1
- package/dist/cjs/contact-import/components/contact-import-mapping.js +10 -7
- package/dist/cjs/contact-import/components/contact-import-mapping.js.map +1 -1
- package/dist/cjs/contact-import/index.js +6 -9
- package/dist/cjs/contact-import/index.js.map +1 -1
- package/dist/cjs/integration-template/components/dashboard.js +65 -52
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/integration-template/index.js +4 -2
- package/dist/cjs/integration-template/index.js.map +1 -1
- package/dist/cjs/mapping/components/custom-date-menu.js +3 -2
- package/dist/cjs/mapping/components/custom-date-menu.js.map +1 -1
- package/dist/cjs/mapping/components/custom-menu.js.map +1 -1
- package/dist/cjs/mapping/components/field.js +14 -6
- package/dist/cjs/mapping/components/field.js.map +1 -1
- package/dist/cjs/mapping/components/mapping.js +26 -17
- package/dist/cjs/mapping/components/mapping.js.map +1 -1
- package/dist/cjs/mapping/constants/index.js +32 -0
- package/dist/cjs/mapping/constants/index.js.map +1 -0
- package/dist/cjs/mapping/index.js +8 -4
- package/dist/cjs/mapping/index.js.map +1 -1
- package/dist/cjs/mapping/services/index.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +23 -20
- package/dist/cjs/single-mapping/index.js.map +1 -1
- package/dist/cjs/triggers/components/trigger.js +14 -18
- package/dist/cjs/triggers/components/trigger.js.map +1 -1
- package/dist/cjs/triggers/constants/index.js +5 -11
- package/dist/cjs/triggers/constants/index.js.map +1 -1
- package/dist/cjs/triggers/index.js +16 -21
- package/dist/cjs/triggers/index.js.map +1 -1
- package/dist/es/authentication/constants/index.js +114 -2
- package/dist/es/authentication/constants/index.js.map +1 -1
- package/dist/es/authentication/index.js +35 -31
- package/dist/es/authentication/index.js.map +1 -1
- package/dist/es/commons/constants/enhanced.js +10 -0
- package/dist/es/commons/constants/enhanced.js.map +1 -0
- package/dist/es/commons/constants/index.js +4 -1
- package/dist/es/commons/constants/index.js.map +1 -1
- package/dist/es/contact-import/components/contact-import-configure.js.map +1 -1
- package/dist/es/contact-import/components/contact-import-mapping.js +10 -7
- package/dist/es/contact-import/components/contact-import-mapping.js.map +1 -1
- package/dist/es/contact-import/index.js +4 -7
- package/dist/es/contact-import/index.js.map +1 -1
- package/dist/es/integration-template/components/dashboard.js +65 -52
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/index.js +4 -2
- package/dist/es/integration-template/index.js.map +1 -1
- package/dist/es/mapping/components/custom-date-menu.js +3 -2
- package/dist/es/mapping/components/custom-date-menu.js.map +1 -1
- package/dist/es/mapping/components/custom-menu.js.map +1 -1
- package/dist/es/mapping/components/field.js +14 -6
- package/dist/es/mapping/components/field.js.map +1 -1
- package/dist/es/mapping/components/mapping.js +27 -18
- package/dist/es/mapping/components/mapping.js.map +1 -1
- package/dist/es/mapping/constants/index.js +28 -0
- package/dist/es/mapping/constants/index.js.map +1 -0
- package/dist/es/mapping/index.js +8 -4
- package/dist/es/mapping/index.js.map +1 -1
- package/dist/es/mapping/services/index.js.map +1 -1
- package/dist/es/single-mapping/index.js +23 -20
- package/dist/es/single-mapping/index.js.map +1 -1
- package/dist/es/triggers/components/trigger.js +14 -18
- package/dist/es/triggers/components/trigger.js.map +1 -1
- package/dist/es/triggers/constants/index.js +5 -11
- package/dist/es/triggers/constants/index.js.map +1 -1
- package/dist/es/triggers/index.js +16 -21
- package/dist/es/triggers/index.js.map +1 -1
- package/dist/index.d.ts +247 -83
- package/package.json +2 -1
|
@@ -186,17 +186,17 @@ const MultiAccountDashboard = ({
|
|
|
186
186
|
css: { paddingBlock: "$12", paddingInline: 0 }
|
|
187
187
|
},
|
|
188
188
|
/* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$8" }, !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, triggerFields == null ? void 0 : triggerFields.map((field) => {
|
|
189
|
-
var _a2, _b2, _c2;
|
|
189
|
+
var _a2, _b2, _c2, _d2, _e;
|
|
190
190
|
return /* @__PURE__ */ React__default.createElement(
|
|
191
191
|
DashboardItem,
|
|
192
192
|
{
|
|
193
193
|
key: field.id,
|
|
194
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
194
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
195
195
|
onMappingEditHandler,
|
|
196
196
|
icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
|
|
197
|
-
heading: (
|
|
197
|
+
heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
|
|
198
198
|
id: field.id,
|
|
199
|
-
description: `Trigger survey when an ${(
|
|
199
|
+
description: `Trigger survey when an ${(_d2 = field == null ? void 0 : field.object) == null ? void 0 : _d2.toLowerCase()} is ${(_e = field == null ? void 0 : field.action) == null ? void 0 : _e.toLowerCase()} in ${integrationName}`,
|
|
200
200
|
fields: field.fields,
|
|
201
201
|
isEnabled: field.isEnabled,
|
|
202
202
|
integrationName,
|
|
@@ -208,17 +208,17 @@ const MultiAccountDashboard = ({
|
|
|
208
208
|
}
|
|
209
209
|
);
|
|
210
210
|
})) : null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map((field) => {
|
|
211
|
-
var _a2, _b2, _c2, _d2, _e, _f, _g;
|
|
211
|
+
var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i;
|
|
212
212
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, mappingFields.type === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(
|
|
213
213
|
DashboardItem,
|
|
214
214
|
{
|
|
215
215
|
key: field.id,
|
|
216
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
216
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
217
217
|
onMappingEditHandler,
|
|
218
218
|
icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
|
|
219
|
-
heading: (
|
|
219
|
+
heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
|
|
220
220
|
id: field.id,
|
|
221
|
-
description: `Sync survey responses to ${integrationName} when ${(
|
|
221
|
+
description: `Sync survey responses to ${integrationName} when ${(_f = (_e = (_d2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _d2.events) == null ? void 0 : _e.label) == null ? void 0 : _f.toLowerCase()} is ${trasformToPastTense(`${(_i = (_h = (_g = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _g.action) == null ? void 0 : _h.label) == null ? void 0 : _i.toLowerCase()}`)}`,
|
|
222
222
|
fields: field.fields,
|
|
223
223
|
isEnabled: field.isEnabled,
|
|
224
224
|
integrationName,
|
|
@@ -251,17 +251,17 @@ const MultiAccountDashboard = ({
|
|
|
251
251
|
css: { paddingBlock: "$12", paddingInline: 0 }
|
|
252
252
|
},
|
|
253
253
|
!!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$8" }, triggerFields == null ? void 0 : triggerFields.map((field) => {
|
|
254
|
-
var _a2, _b2;
|
|
254
|
+
var _a2, _b2, _c2;
|
|
255
255
|
return /* @__PURE__ */ React__default.createElement(
|
|
256
256
|
DashboardItem,
|
|
257
257
|
{
|
|
258
258
|
key: field.id,
|
|
259
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
259
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
260
260
|
onMappingEditHandler,
|
|
261
261
|
icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
|
|
262
262
|
heading: "Trigger",
|
|
263
263
|
id: field.id,
|
|
264
|
-
description: `Trigger survey when an ${(
|
|
264
|
+
description: `Trigger survey when an ${(_b2 = field == null ? void 0 : field.object) == null ? void 0 : _b2.toLowerCase()} is ${(_c2 = field == null ? void 0 : field.action) == null ? void 0 : _c2.toLowerCase()} in ${integrationName}`,
|
|
265
265
|
fields: field.fields,
|
|
266
266
|
isEnabled: field.isEnabled,
|
|
267
267
|
integrationName,
|
|
@@ -286,17 +286,17 @@ const MultiAccountDashboard = ({
|
|
|
286
286
|
css: { paddingBlock: "$12", paddingInline: 0 }
|
|
287
287
|
},
|
|
288
288
|
!!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$8" }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map((field) => {
|
|
289
|
-
var _a2, _b2, _c2, _d2, _e, _f;
|
|
289
|
+
var _a2, _b2, _c2, _d2, _e, _f, _g;
|
|
290
290
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, mappingFields.type === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(
|
|
291
291
|
DashboardItem,
|
|
292
292
|
{
|
|
293
293
|
key: field.id,
|
|
294
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
294
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
295
295
|
onMappingEditHandler,
|
|
296
296
|
icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
|
|
297
297
|
heading: "Mapping",
|
|
298
298
|
id: field.id,
|
|
299
|
-
description: `Sync survey responses to ${integrationName} when ${(
|
|
299
|
+
description: `Sync survey responses to ${integrationName} when ${(_d2 = (_c2 = (_b2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _b2.events) == null ? void 0 : _c2.label) == null ? void 0 : _d2.toLowerCase()} is ${trasformToPastTense(`${(_g = (_f = (_e = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e.action) == null ? void 0 : _f.label) == null ? void 0 : _g.toLowerCase()}`)}`,
|
|
300
300
|
fields: field.fields,
|
|
301
301
|
isEnabled: field.isEnabled,
|
|
302
302
|
integrationName,
|
|
@@ -384,14 +384,14 @@ const SingleAccountDashboard = ({
|
|
|
384
384
|
}) => {
|
|
385
385
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
386
386
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React__default.createElement(Box, { css: { marginTop: "$20" } }, triggerFields == null ? void 0 : triggerFields.map((field) => {
|
|
387
|
-
var _a2, _b2;
|
|
387
|
+
var _a2, _b2, _c2, _d2;
|
|
388
388
|
return /* @__PURE__ */ React__default.createElement(
|
|
389
389
|
TriggerDasboardItem,
|
|
390
390
|
{
|
|
391
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
391
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
392
392
|
fieldOptions,
|
|
393
393
|
field,
|
|
394
|
-
description: `Trigger survey when ${/^[aeiouAEIOU]$/.test(field == null ? void 0 : field.object[0]) ? "an" : "a"} ${(
|
|
394
|
+
description: `Trigger survey when ${/^[aeiouAEIOU]$/.test(((_b2 = field == null ? void 0 : field.object) == null ? void 0 : _b2[0]) || "") ? "an" : "a"} ${(_c2 = field == null ? void 0 : field.object) == null ? void 0 : _c2.toLowerCase()} is ${(_d2 = field == null ? void 0 : field.action) == null ? void 0 : _d2.toLowerCase()} in ${integrationName}`,
|
|
395
395
|
key: field.id,
|
|
396
396
|
integrationName,
|
|
397
397
|
icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
|
|
@@ -402,16 +402,16 @@ const SingleAccountDashboard = ({
|
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
404
|
})) : null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) && (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map((field) => {
|
|
405
|
-
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
405
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
406
406
|
return /* @__PURE__ */ React__default.createElement(
|
|
407
407
|
DashboardItem,
|
|
408
408
|
{
|
|
409
|
-
isDraft: field == null ? void 0 : field.isDraft,
|
|
409
|
+
isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
|
|
410
410
|
onMappingEditHandler,
|
|
411
411
|
icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
|
|
412
412
|
heading: "Mapping",
|
|
413
413
|
id: field.id,
|
|
414
|
-
description: `Sync survey responses to ${integrationName} when ${(
|
|
414
|
+
description: `Sync survey responses to ${integrationName} when ${(_d2 = (_c2 = (_b2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _b2.events) == null ? void 0 : _c2.label) == null ? void 0 : _d2.toLowerCase()} is ${trasformToPastTense(`${(_g2 = (_f2 = (_e2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e2.action) == null ? void 0 : _f2.label) == null ? void 0 : _g2.toLowerCase()}`)}`,
|
|
415
415
|
fields: field.fields,
|
|
416
416
|
isEnabled: field.isEnabled,
|
|
417
417
|
integrationName,
|
|
@@ -454,7 +454,7 @@ const TriggerDasboardItem = ({
|
|
|
454
454
|
toggleDashboardField,
|
|
455
455
|
deleteFieldHandler
|
|
456
456
|
}) => {
|
|
457
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
457
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
458
458
|
const [isMappingDisplayed, setIsMappingDisplayed] = useState(false);
|
|
459
459
|
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
|
|
460
460
|
const transformDataToString = (data) => {
|
|
@@ -615,7 +615,7 @@ const TriggerDasboardItem = ({
|
|
|
615
615
|
}
|
|
616
616
|
},
|
|
617
617
|
/* @__PURE__ */ React__default.createElement(SingleMappingEventWrapper, { isTrigger: true, field }),
|
|
618
|
-
((_c = (_b = field
|
|
618
|
+
((_c = (_b = field.fields) == null ? void 0 : _b.filters) == null ? void 0 : _c.length) ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
619
619
|
Flex,
|
|
620
620
|
{
|
|
621
621
|
flexDirection: "column",
|
|
@@ -642,12 +642,13 @@ const TriggerDasboardItem = ({
|
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
)) : null,
|
|
645
|
-
((_e = (_d = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _d.variables) == null ? void 0 : _e.filter(
|
|
645
|
+
((_g = (_f = (_e = (_d = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _d.variables) == null ? void 0 : _e.filter) == null ? void 0 : _f.call(
|
|
646
|
+
_e,
|
|
646
647
|
(variable) => variable.isEnabled
|
|
647
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
648
|
+
)) == null ? void 0 : _g.length) ? /* @__PURE__ */ React__default.createElement(
|
|
648
649
|
SingleMappingChipWrapper,
|
|
649
650
|
{
|
|
650
|
-
heading: ((
|
|
651
|
+
heading: ((_i = (_h = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _h.variables) == null ? void 0 : _i.length) > 1 ? "PASSING VARIABLES TO SURVEY" : "PASSING VARIABLE TO SURVEY",
|
|
651
652
|
fields: field.triggerDetails.variables,
|
|
652
653
|
backgroundColor: "$positive100"
|
|
653
654
|
}
|
|
@@ -660,25 +661,25 @@ const TriggerDasboardItem = ({
|
|
|
660
661
|
css: { paddingBlock: "$8" }
|
|
661
662
|
},
|
|
662
663
|
/* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold" }, "SEND SURVEY"),
|
|
663
|
-
/* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, ((
|
|
664
|
+
/* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, ((_k = (_j = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _j.shareType) == null ? void 0 : _k.value) ? /* @__PURE__ */ React__default.createElement(
|
|
664
665
|
EventComponent,
|
|
665
666
|
{
|
|
666
667
|
heading: "Share Type:",
|
|
667
|
-
description: (
|
|
668
|
+
description: (_m = (_l = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _l.shareType) == null ? void 0 : _m.label
|
|
668
669
|
}
|
|
669
|
-
) : null, ((
|
|
670
|
+
) : null, ((_o = (_n = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _n.shareRecipient) == null ? void 0 : _o.value) ? /* @__PURE__ */ React__default.createElement(
|
|
670
671
|
EventComponent,
|
|
671
672
|
{
|
|
672
673
|
heading: "Recipient:",
|
|
673
674
|
hasBorder: true,
|
|
674
|
-
description: (
|
|
675
|
+
description: (_q = (_p = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _p.shareRecipient) == null ? void 0 : _q.label
|
|
675
676
|
}
|
|
676
|
-
) : null, ((
|
|
677
|
+
) : null, ((_s = (_r = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _r.shareChannel) == null ? void 0 : _s.value) ? /* @__PURE__ */ React__default.createElement(
|
|
677
678
|
EventComponent,
|
|
678
679
|
{
|
|
679
680
|
hasBorder: true,
|
|
680
681
|
heading: "Share Channel:",
|
|
681
|
-
description: (
|
|
682
|
+
description: (_u = (_t = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _t.shareChannel) == null ? void 0 : _u.label
|
|
682
683
|
}
|
|
683
684
|
) : null)
|
|
684
685
|
))
|
|
@@ -735,7 +736,7 @@ const SingleMappingDashboardItem = ({
|
|
|
735
736
|
integrationName,
|
|
736
737
|
onMappingEditHandler
|
|
737
738
|
}) => {
|
|
738
|
-
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, _F, _G, _H, _I;
|
|
739
|
+
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, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __;
|
|
739
740
|
const [isMappingDisplayed, setIsMappingDisplayed] = useState(false);
|
|
740
741
|
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
|
|
741
742
|
const [isSyncing, setIsSyncing] = useState(null);
|
|
@@ -891,74 +892,86 @@ const SingleMappingDashboardItem = ({
|
|
|
891
892
|
}
|
|
892
893
|
},
|
|
893
894
|
/* @__PURE__ */ React__default.createElement(SingleMappingEventWrapper, { field }),
|
|
894
|
-
!!((_m = (_l = field == null ? void 0 : field.mappedFields) == null ? void 0 : _l.questions) == null ? void 0 : _m.filter(
|
|
895
|
+
!!((_o = (_n = (_m = (_l = field == null ? void 0 : field.mappedFields) == null ? void 0 : _l.questions) == null ? void 0 : _m.filter) == null ? void 0 : _n.call(
|
|
896
|
+
_m,
|
|
895
897
|
(question) => question.isEnabled
|
|
896
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
898
|
+
)) == null ? void 0 : _o.length) ? /* @__PURE__ */ React__default.createElement(
|
|
897
899
|
SingleMappingChipWrapper,
|
|
898
900
|
{
|
|
899
901
|
heading: "Questions",
|
|
900
|
-
fields: (
|
|
902
|
+
fields: (_r = (_q = (_p = field == null ? void 0 : field.mappedFields) == null ? void 0 : _p.questions) == null ? void 0 : _q.filter) == null ? void 0 : _r.call(
|
|
903
|
+
_q,
|
|
901
904
|
(question) => question.isEnabled
|
|
902
905
|
),
|
|
903
906
|
backgroundColor: "#E5F2FF"
|
|
904
907
|
}
|
|
905
908
|
) : null,
|
|
906
|
-
!!((
|
|
909
|
+
!!((_v = (_u = (_t = (_s = field == null ? void 0 : field.mappedFields) == null ? void 0 : _s.derivedQuestions) == null ? void 0 : _t.filter) == null ? void 0 : _u.call(
|
|
910
|
+
_t,
|
|
907
911
|
(derivedQuestion) => derivedQuestion.isEnabled
|
|
908
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
912
|
+
)) == null ? void 0 : _v.length) ? /* @__PURE__ */ React__default.createElement(
|
|
909
913
|
SingleMappingChipWrapper,
|
|
910
914
|
{
|
|
911
915
|
heading: "Enriched Columns",
|
|
912
|
-
fields: (
|
|
916
|
+
fields: (_y = (_x = (_w = field == null ? void 0 : field.mappedFields) == null ? void 0 : _w.derivedQuestions) == null ? void 0 : _x.filter) == null ? void 0 : _y.call(
|
|
917
|
+
_x,
|
|
913
918
|
(derivedQuestion) => derivedQuestion.isEnabled
|
|
914
919
|
),
|
|
915
920
|
backgroundColor: "#E5F2FF"
|
|
916
921
|
}
|
|
917
922
|
) : null,
|
|
918
|
-
!!((
|
|
923
|
+
!!((_C = (_B = (_A = (_z = field == null ? void 0 : field.mappedFields) == null ? void 0 : _z.variables) == null ? void 0 : _A.filter) == null ? void 0 : _B.call(
|
|
924
|
+
_A,
|
|
919
925
|
(variable) => variable.isEnabled
|
|
920
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
926
|
+
)) == null ? void 0 : _C.length) ? /* @__PURE__ */ React__default.createElement(
|
|
921
927
|
SingleMappingChipWrapper,
|
|
922
928
|
{
|
|
923
929
|
heading: "Variables",
|
|
924
|
-
fields: (
|
|
930
|
+
fields: (_F = (_E = (_D = field == null ? void 0 : field.mappedFields) == null ? void 0 : _D.variables) == null ? void 0 : _E.filter) == null ? void 0 : _F.call(
|
|
931
|
+
_E,
|
|
925
932
|
(variable) => variable.isEnabled
|
|
926
933
|
),
|
|
927
934
|
backgroundColor: "$positive100"
|
|
928
935
|
}
|
|
929
936
|
) : null,
|
|
930
|
-
!!((
|
|
937
|
+
!!((_J = (_I = (_H = (_G = field == null ? void 0 : field.mappedFields) == null ? void 0 : _G.contactProperties) == null ? void 0 : _H.filter) == null ? void 0 : _I.call(
|
|
938
|
+
_H,
|
|
931
939
|
(property) => property.isEnabled
|
|
932
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
940
|
+
)) == null ? void 0 : _J.length) ? /* @__PURE__ */ React__default.createElement(
|
|
933
941
|
SingleMappingChipWrapper,
|
|
934
942
|
{
|
|
935
943
|
heading: "Contacts",
|
|
936
|
-
fields: (
|
|
944
|
+
fields: (_M = (_L = (_K = field == null ? void 0 : field.mappedFields) == null ? void 0 : _K.contactProperties) == null ? void 0 : _L.filter) == null ? void 0 : _M.call(
|
|
945
|
+
_L,
|
|
937
946
|
(property) => property.isEnabled
|
|
938
947
|
),
|
|
939
948
|
backgroundColor: "$negative100"
|
|
940
949
|
}
|
|
941
950
|
) : null,
|
|
942
|
-
!!((
|
|
951
|
+
!!((_Q = (_P = (_O = (_N = field == null ? void 0 : field.mappedFields) == null ? void 0 : _N.expressions) == null ? void 0 : _O.filter) == null ? void 0 : _P.call(
|
|
952
|
+
_O,
|
|
943
953
|
(expression) => expression.isEnabled
|
|
944
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
954
|
+
)) == null ? void 0 : _Q.length) ? /* @__PURE__ */ React__default.createElement(
|
|
945
955
|
SingleMappingChipWrapper,
|
|
946
956
|
{
|
|
947
957
|
heading: "Expression",
|
|
948
958
|
backgroundColor: "$neutral100",
|
|
949
|
-
fields: (
|
|
959
|
+
fields: (_T = (_S = (_R = field == null ? void 0 : field.mappedFields) == null ? void 0 : _R.expressions) == null ? void 0 : _S.filter) == null ? void 0 : _T.call(
|
|
960
|
+
_S,
|
|
950
961
|
(expression) => expression.isEnabled
|
|
951
962
|
)
|
|
952
963
|
}
|
|
953
964
|
) : null,
|
|
954
|
-
!!((
|
|
965
|
+
!!((_X = (_W = (_V = (_U = field == null ? void 0 : field.mappedFields) == null ? void 0 : _U.property) == null ? void 0 : _V.filter) == null ? void 0 : _W.call(
|
|
966
|
+
_V,
|
|
955
967
|
(property) => property.isEnabled
|
|
956
|
-
).length) ? /* @__PURE__ */ React__default.createElement(
|
|
968
|
+
)) == null ? void 0 : _X.length) ? /* @__PURE__ */ React__default.createElement(
|
|
957
969
|
SingleMappingChipWrapper,
|
|
958
970
|
{
|
|
959
971
|
heading: "Property",
|
|
960
972
|
hideBorder: true,
|
|
961
|
-
fields: (
|
|
973
|
+
fields: (__ = (_Z = (_Y = field == null ? void 0 : field.mappedFields) == null ? void 0 : _Y.property) == null ? void 0 : _Z.filter) == null ? void 0 : __.call(
|
|
974
|
+
_Z,
|
|
962
975
|
(property) => property.isEnabled
|
|
963
976
|
),
|
|
964
977
|
backgroundColor: "rgba(74, 156, 166, 0.15)"
|
|
@@ -1093,7 +1106,7 @@ const SingleMappingChipWrapper = ({
|
|
|
1093
1106
|
placeholder,
|
|
1094
1107
|
backgroundColor
|
|
1095
1108
|
}) => {
|
|
1096
|
-
const modifiedFields =
|
|
1109
|
+
const modifiedFields = fields.filter(
|
|
1097
1110
|
(field) => field.id !== "ALL"
|
|
1098
1111
|
);
|
|
1099
1112
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$6", css: { paddingBlock: "$8" } }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { textTransform: "uppercase" } }, heading), /* @__PURE__ */ React__default.createElement(
|
|
@@ -1183,7 +1196,7 @@ const DashboardItem = ({
|
|
|
1183
1196
|
break;
|
|
1184
1197
|
}
|
|
1185
1198
|
default: {
|
|
1186
|
-
field = (_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label;
|
|
1199
|
+
field = ((_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label) || "--";
|
|
1187
1200
|
break;
|
|
1188
1201
|
}
|
|
1189
1202
|
}
|