@sparrowengg/integrations-templates-frontend 1.9.84-beta.1 → 1.9.84-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/cjs/_virtual/index10.js +2 -2
  2. package/dist/cjs/_virtual/index9.js +2 -2
  3. package/dist/cjs/authentication/constants/index.js +115 -1
  4. package/dist/cjs/authentication/constants/index.js.map +1 -1
  5. package/dist/cjs/authentication/index.js +36 -32
  6. package/dist/cjs/authentication/index.js.map +1 -1
  7. package/dist/cjs/commons/components/NamingModal.js +82 -0
  8. package/dist/cjs/commons/components/NamingModal.js.map +1 -0
  9. package/dist/cjs/commons/constants/enhanced.js +12 -0
  10. package/dist/cjs/commons/constants/enhanced.js.map +1 -0
  11. package/dist/cjs/commons/constants/index.js +7 -1
  12. package/dist/cjs/commons/constants/index.js.map +1 -1
  13. package/dist/cjs/contact-import/components/contact-import-configure.js.map +1 -1
  14. package/dist/cjs/contact-import/components/contact-import-mapping.js +10 -7
  15. package/dist/cjs/contact-import/components/contact-import-mapping.js.map +1 -1
  16. package/dist/cjs/contact-import/index.js +6 -9
  17. package/dist/cjs/contact-import/index.js.map +1 -1
  18. package/dist/cjs/integration-template/components/dashboard.js +225 -179
  19. package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
  20. package/dist/cjs/integration-template/index.js +33 -14
  21. package/dist/cjs/integration-template/index.js.map +1 -1
  22. package/dist/cjs/mapping/components/custom-date-menu.js +3 -2
  23. package/dist/cjs/mapping/components/custom-date-menu.js.map +1 -1
  24. package/dist/cjs/mapping/components/custom-menu.js.map +1 -1
  25. package/dist/cjs/mapping/components/field.js +14 -6
  26. package/dist/cjs/mapping/components/field.js.map +1 -1
  27. package/dist/cjs/mapping/components/mapping.js +29 -21
  28. package/dist/cjs/mapping/components/mapping.js.map +1 -1
  29. package/dist/cjs/mapping/constants/index.js +32 -0
  30. package/dist/cjs/mapping/constants/index.js.map +1 -0
  31. package/dist/cjs/mapping/index.js +453 -24
  32. package/dist/cjs/mapping/index.js.map +1 -1
  33. package/dist/cjs/mapping/services/index.js.map +1 -1
  34. package/dist/cjs/node_modules/@internationalized/date/dist/utils.js +2 -1
  35. package/dist/cjs/node_modules/@internationalized/date/dist/utils.js.map +1 -1
  36. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  37. package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
  38. package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
  39. package/dist/cjs/single-mapping/components/mapping.js +28 -14
  40. package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
  41. package/dist/cjs/single-mapping/index.js +25 -28
  42. package/dist/cjs/single-mapping/index.js.map +1 -1
  43. package/dist/cjs/triggers/components/trigger.js +14 -18
  44. package/dist/cjs/triggers/components/trigger.js.map +1 -1
  45. package/dist/cjs/triggers/constants/index.js +5 -11
  46. package/dist/cjs/triggers/constants/index.js.map +1 -1
  47. package/dist/cjs/triggers/index.js +16 -21
  48. package/dist/cjs/triggers/index.js.map +1 -1
  49. package/dist/es/_virtual/index10.js +2 -2
  50. package/dist/es/_virtual/index9.js +2 -2
  51. package/dist/es/authentication/constants/index.js +114 -2
  52. package/dist/es/authentication/constants/index.js.map +1 -1
  53. package/dist/es/authentication/index.js +35 -31
  54. package/dist/es/authentication/index.js.map +1 -1
  55. package/dist/es/commons/components/NamingModal.js +78 -0
  56. package/dist/es/commons/components/NamingModal.js.map +1 -0
  57. package/dist/es/commons/constants/enhanced.js +10 -0
  58. package/dist/es/commons/constants/enhanced.js.map +1 -0
  59. package/dist/es/commons/constants/index.js +5 -2
  60. package/dist/es/commons/constants/index.js.map +1 -1
  61. package/dist/es/contact-import/components/contact-import-configure.js.map +1 -1
  62. package/dist/es/contact-import/components/contact-import-mapping.js +10 -7
  63. package/dist/es/contact-import/components/contact-import-mapping.js.map +1 -1
  64. package/dist/es/contact-import/index.js +4 -7
  65. package/dist/es/contact-import/index.js.map +1 -1
  66. package/dist/es/integration-template/components/dashboard.js +225 -179
  67. package/dist/es/integration-template/components/dashboard.js.map +1 -1
  68. package/dist/es/integration-template/index.js +33 -14
  69. package/dist/es/integration-template/index.js.map +1 -1
  70. package/dist/es/mapping/components/custom-date-menu.js +3 -2
  71. package/dist/es/mapping/components/custom-date-menu.js.map +1 -1
  72. package/dist/es/mapping/components/custom-menu.js.map +1 -1
  73. package/dist/es/mapping/components/field.js +14 -6
  74. package/dist/es/mapping/components/field.js.map +1 -1
  75. package/dist/es/mapping/components/mapping.js +30 -22
  76. package/dist/es/mapping/components/mapping.js.map +1 -1
  77. package/dist/es/mapping/constants/index.js +28 -0
  78. package/dist/es/mapping/constants/index.js.map +1 -0
  79. package/dist/es/mapping/index.js +453 -24
  80. package/dist/es/mapping/index.js.map +1 -1
  81. package/dist/es/mapping/services/index.js.map +1 -1
  82. package/dist/es/node_modules/@internationalized/date/dist/utils.js +2 -1
  83. package/dist/es/node_modules/@internationalized/date/dist/utils.js.map +1 -1
  84. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +1 -1
  85. package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  86. package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
  87. package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
  88. package/dist/es/single-mapping/components/mapping.js +28 -14
  89. package/dist/es/single-mapping/components/mapping.js.map +1 -1
  90. package/dist/es/single-mapping/index.js +25 -28
  91. package/dist/es/single-mapping/index.js.map +1 -1
  92. package/dist/es/triggers/components/trigger.js +14 -18
  93. package/dist/es/triggers/components/trigger.js.map +1 -1
  94. package/dist/es/triggers/constants/index.js +5 -11
  95. package/dist/es/triggers/constants/index.js.map +1 -1
  96. package/dist/es/triggers/index.js +16 -21
  97. package/dist/es/triggers/index.js.map +1 -1
  98. package/dist/index.d.ts +269 -90
  99. package/package.json +2 -1
@@ -63,7 +63,17 @@ const Dashboard = ({
63
63
  alignItems: "center"
64
64
  },
65
65
  /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$2" }, /* @__PURE__ */ React.createElement(heading.Heading, { size: "h5" }, integrationName), /* @__PURE__ */ React.createElement(text.Text, { size: "sm", css: { color: "$neutral700" } }, dashboardDescription)),
66
- /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$4" }, hasMultiAccounts && /* @__PURE__ */ React.createElement(button.Button, { size: "lg", color: "default", leftIcon: /* @__PURE__ */ React.createElement(plus.PlusIcon, null) }, "Add Account"), hasDropdownComponents.mapping && !hasDropdownComponents.trigger ? /* @__PURE__ */ React.createElement(button.Button, { size: "lg", color: "primary", disabled: !mappingEnabled, leftIcon: /* @__PURE__ */ React.createElement(plus.PlusIcon, null), onClick: () => handleConfigurationType("MAPPING") }, "New Mapping") : null, hasDropdownComponents.trigger && hasDropdownComponents.mapping ? /* @__PURE__ */ React.createElement(dropdown.DropdownMenu, null, /* @__PURE__ */ React.createElement(
66
+ /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$4" }, hasMultiAccounts && /* @__PURE__ */ React.createElement(button.Button, { size: "lg", color: "default", leftIcon: /* @__PURE__ */ React.createElement(plus.PlusIcon, null) }, "Add Account"), hasDropdownComponents.mapping && !hasDropdownComponents.trigger ? /* @__PURE__ */ React.createElement(
67
+ button.Button,
68
+ {
69
+ size: "lg",
70
+ color: "primary",
71
+ disabled: !mappingEnabled,
72
+ leftIcon: /* @__PURE__ */ React.createElement(plus.PlusIcon, null),
73
+ onClick: () => handleConfigurationType("MAPPING")
74
+ },
75
+ "New Mapping"
76
+ ) : null, hasDropdownComponents.trigger && hasDropdownComponents.mapping ? /* @__PURE__ */ React.createElement(dropdown.DropdownMenu, null, /* @__PURE__ */ React.createElement(
67
77
  tooltip.Tooltip,
68
78
  {
69
79
  content: !triggerEnabled && !mappingEnabled ? "You have reached the maximum limit for creating triggers/mappings" : ""
@@ -190,17 +200,17 @@ const MultiAccountDashboard = ({
190
200
  css: { paddingBlock: "$12", paddingInline: 0 }
191
201
  },
192
202
  /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$8" }, !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, triggerFields == null ? void 0 : triggerFields.map((field) => {
193
- var _a2, _b2, _c2;
203
+ var _a2, _b2, _c2, _d2, _e;
194
204
  return /* @__PURE__ */ React.createElement(
195
205
  DashboardItem,
196
206
  {
197
207
  key: field.id,
198
- isDraft: field == null ? void 0 : field.isDraft,
208
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
199
209
  onMappingEditHandler,
200
210
  icon: /* @__PURE__ */ React.createElement(cursor.default, { size: 32, color: "#56B0BB" }),
201
- heading: (_a2 = field.domain) != null ? _a2 : field.email,
211
+ heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
202
212
  id: field.id,
203
- 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}`,
213
+ 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}`,
204
214
  fields: field.fields,
205
215
  isEnabled: field.isEnabled,
206
216
  integrationName,
@@ -211,43 +221,45 @@ const MultiAccountDashboard = ({
211
221
  deleteFieldHandler
212
222
  }
213
223
  );
214
- })) : null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map((field) => {
215
- var _a2, _b2, _c2, _d2, _e, _f, _g;
216
- return /* @__PURE__ */ React.createElement(React.Fragment, null, mappingFields.type === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(
217
- DashboardItem,
218
- {
219
- key: field.id,
220
- isDraft: field == null ? void 0 : field.isDraft,
221
- onMappingEditHandler,
222
- icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
223
- heading: (_a2 = field.domain) != null ? _a2 : field.email,
224
- id: field.id,
225
- 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()}`)}`,
226
- fields: field.fields,
227
- isEnabled: field.isEnabled,
228
- integrationName,
229
- handleDashboardPage,
230
- handleEditField,
231
- type: "MAPPING",
232
- toggleDashboardField,
233
- deleteFieldHandler
234
- }
235
- ) : /* @__PURE__ */ React.createElement(
236
- SingleMappingDashboardItem,
237
- {
238
- key: field.id,
239
- field,
240
- integrationName,
241
- syncMapping,
242
- icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
243
- handleEditField,
244
- handleDashboardPage,
245
- toggleDashboardField,
246
- deleteFieldHandler,
247
- onMappingEditHandler
248
- }
249
- ));
250
- })) : null)
224
+ })) : null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map(
225
+ (field) => {
226
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i;
227
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(
228
+ DashboardItem,
229
+ {
230
+ key: field.id,
231
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
232
+ onMappingEditHandler,
233
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
234
+ heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
235
+ id: field.id,
236
+ description: (field == null ? void 0 : field.mappingDescription) || `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()}`)}`,
237
+ fields: field.fields,
238
+ isEnabled: field.isEnabled,
239
+ integrationName,
240
+ handleDashboardPage,
241
+ handleEditField,
242
+ type: "MAPPING",
243
+ toggleDashboardField,
244
+ deleteFieldHandler
245
+ }
246
+ ) : /* @__PURE__ */ React.createElement(
247
+ SingleMappingDashboardItem,
248
+ {
249
+ key: field.id,
250
+ field,
251
+ integrationName,
252
+ syncMapping,
253
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
254
+ handleEditField,
255
+ handleDashboardPage,
256
+ toggleDashboardField,
257
+ deleteFieldHandler,
258
+ onMappingEditHandler
259
+ }
260
+ ));
261
+ }
262
+ )) : null)
251
263
  ), /* @__PURE__ */ React.createElement(
252
264
  tabs.TabsContent,
253
265
  {
@@ -255,17 +267,17 @@ const MultiAccountDashboard = ({
255
267
  css: { paddingBlock: "$12", paddingInline: 0 }
256
268
  },
257
269
  !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$8" }, triggerFields == null ? void 0 : triggerFields.map((field) => {
258
- var _a2, _b2;
270
+ var _a2, _b2, _c2;
259
271
  return /* @__PURE__ */ React.createElement(
260
272
  DashboardItem,
261
273
  {
262
274
  key: field.id,
263
- isDraft: field == null ? void 0 : field.isDraft,
275
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
264
276
  onMappingEditHandler,
265
277
  icon: /* @__PURE__ */ React.createElement(cursor.default, { size: 32, color: "#56B0BB" }),
266
278
  heading: "Trigger",
267
279
  id: field.id,
268
- description: `Trigger survey when an ${(_a2 = field == null ? void 0 : field.object) == null ? void 0 : _a2.toLowerCase()} is ${(_b2 = field == null ? void 0 : field.action) == null ? void 0 : _b2.toLowerCase()} in ${integrationName}`,
280
+ 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}`,
269
281
  fields: field.fields,
270
282
  isEnabled: field.isEnabled,
271
283
  integrationName,
@@ -289,43 +301,45 @@ const MultiAccountDashboard = ({
289
301
  value: "MAPPING",
290
302
  css: { paddingBlock: "$12", paddingInline: 0 }
291
303
  },
292
- !!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$8" }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map((field) => {
293
- var _a2, _b2, _c2, _d2, _e, _f;
294
- return /* @__PURE__ */ React.createElement(React.Fragment, null, mappingFields.type === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(
295
- DashboardItem,
296
- {
297
- key: field.id,
298
- isDraft: field == null ? void 0 : field.isDraft,
299
- onMappingEditHandler,
300
- icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
301
- heading: "Mapping",
302
- id: field.id,
303
- description: `Sync survey responses to ${integrationName} when ${(_c2 = (_b2 = (_a2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _a2.events) == null ? void 0 : _b2.label) == null ? void 0 : _c2.toLowerCase()} is ${trasformToPastTense(`${(_f = (_e = (_d2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _d2.action) == null ? void 0 : _e.label) == null ? void 0 : _f.toLowerCase()}`)}`,
304
- fields: field.fields,
305
- isEnabled: field.isEnabled,
306
- integrationName,
307
- handleDashboardPage,
308
- handleEditField,
309
- type: "MAPPING",
310
- toggleDashboardField,
311
- deleteFieldHandler
312
- }
313
- ) : /* @__PURE__ */ React.createElement(
314
- SingleMappingDashboardItem,
315
- {
316
- key: field.id,
317
- field,
318
- integrationName,
319
- syncMapping,
320
- icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
321
- handleEditField,
322
- handleDashboardPage,
323
- toggleDashboardField,
324
- deleteFieldHandler,
325
- onMappingEditHandler
326
- }
327
- ));
328
- }))) : /* @__PURE__ */ React.createElement(
304
+ !!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$8" }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map(
305
+ (field) => {
306
+ var _a2, _b2, _c2, _d2, _e, _f, _g;
307
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(
308
+ DashboardItem,
309
+ {
310
+ key: field.id,
311
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
312
+ onMappingEditHandler,
313
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
314
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
315
+ id: field.id,
316
+ description: (field == null ? void 0 : field.mappingDescription) || `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()}`)}`,
317
+ fields: field.fields,
318
+ isEnabled: field.isEnabled,
319
+ integrationName,
320
+ handleDashboardPage,
321
+ handleEditField,
322
+ type: "MAPPING",
323
+ toggleDashboardField,
324
+ deleteFieldHandler
325
+ }
326
+ ) : /* @__PURE__ */ React.createElement(
327
+ SingleMappingDashboardItem,
328
+ {
329
+ key: field.id,
330
+ field,
331
+ integrationName,
332
+ syncMapping,
333
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
334
+ handleEditField,
335
+ handleDashboardPage,
336
+ toggleDashboardField,
337
+ deleteFieldHandler,
338
+ onMappingEditHandler
339
+ }
340
+ ));
341
+ }
342
+ ))) : /* @__PURE__ */ React.createElement(
329
343
  MultiAccountFallback,
330
344
  {
331
345
  title: "Mapping",
@@ -386,16 +400,16 @@ const SingleAccountDashboard = ({
386
400
  toggleDashboardField,
387
401
  deleteFieldHandler
388
402
  }) => {
389
- var _a, _b, _c, _d, _e, _f, _g;
403
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
390
404
  return /* @__PURE__ */ React.createElement(React.Fragment, null, !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: "$20" } }, triggerFields == null ? void 0 : triggerFields.map((field) => {
391
- var _a2, _b2;
405
+ var _a2, _b2, _c2, _d2;
392
406
  return /* @__PURE__ */ React.createElement(
393
407
  TriggerDasboardItem,
394
408
  {
395
- isDraft: field == null ? void 0 : field.isDraft,
409
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
396
410
  fieldOptions,
397
411
  field,
398
- description: `Trigger survey when ${/^[aeiouAEIOU]$/.test(field == null ? void 0 : field.object[0]) ? "an" : "a"} ${(_a2 = field == null ? void 0 : field.object) == null ? void 0 : _a2.toLowerCase()} is ${(_b2 = field == null ? void 0 : field.action) == null ? void 0 : _b2.toLowerCase()} in ${integrationName}`,
412
+ 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}`,
399
413
  key: field.id,
400
414
  integrationName,
401
415
  icon: /* @__PURE__ */ React.createElement(cursor.default, { size: 32, color: "#56B0BB" }),
@@ -405,28 +419,71 @@ const SingleAccountDashboard = ({
405
419
  deleteFieldHandler
406
420
  }
407
421
  );
408
- })) : null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) && (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map((field) => {
409
- var _a2, _b2, _c2, _d2, _e2, _f2;
410
- return /* @__PURE__ */ React.createElement(
411
- DashboardItem,
412
- {
413
- isDraft: field == null ? void 0 : field.isDraft,
414
- onMappingEditHandler,
415
- icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
416
- heading: "Mapping",
417
- id: field.id,
418
- description: `Sync survey responses to ${integrationName} when ${(_c2 = (_b2 = (_a2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _a2.events) == null ? void 0 : _b2.label) == null ? void 0 : _c2.toLowerCase()} is ${trasformToPastTense(`${(_f2 = (_e2 = (_d2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _d2.action) == null ? void 0 : _e2.label) == null ? void 0 : _f2.toLowerCase()}`)}`,
419
- fields: field.fields,
420
- isEnabled: field.isEnabled,
421
- integrationName,
422
- handleDashboardPage,
423
- handleEditField,
424
- type: "MAPPING",
425
- toggleDashboardField,
426
- deleteFieldHandler
422
+ })) : null, (mappingFields == null ? void 0 : mappingFields.type) === "DYNAMIC_MAPPING" ? /* @__PURE__ */ React.createElement(React.Fragment, null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_b = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _b.map(
423
+ (field) => {
424
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
425
+ if ((field == null ? void 0 : field.type) === "MULTI_MAPPING") {
426
+ return /* @__PURE__ */ React.createElement(
427
+ DashboardItem,
428
+ {
429
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
430
+ onMappingEditHandler,
431
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
432
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
433
+ id: field.id,
434
+ description: (field == null ? void 0 : field.mappingDescription) || `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()}`)}`,
435
+ fields: field.fields,
436
+ isEnabled: field.isEnabled,
437
+ integrationName,
438
+ handleDashboardPage,
439
+ handleEditField,
440
+ type: "MAPPING",
441
+ toggleDashboardField,
442
+ deleteFieldHandler
443
+ }
444
+ );
445
+ } else {
446
+ return /* @__PURE__ */ React.createElement(
447
+ SingleMappingDashboardItem,
448
+ {
449
+ onMappingEditHandler,
450
+ syncMapping,
451
+ field,
452
+ key: field == null ? void 0 : field.id,
453
+ integrationName,
454
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
455
+ handleEditField,
456
+ handleDashboardPage,
457
+ toggleDashboardField,
458
+ deleteFieldHandler
459
+ }
460
+ );
427
461
  }
428
- );
429
- })) : null, ((_c = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _c.type) === "SINGLE_MAPPING" && !!((_e = (_d = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _d.fields) == null ? void 0 : _e.length) ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_g = (_f = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _f.fields) == null ? void 0 : _g.map(
462
+ }
463
+ )) : null) : /* @__PURE__ */ React.createElement(React.Fragment, null, !!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) && (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map(
464
+ (field) => {
465
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
466
+ return /* @__PURE__ */ React.createElement(
467
+ DashboardItem,
468
+ {
469
+ isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
470
+ onMappingEditHandler,
471
+ icon: /* @__PURE__ */ React.createElement(mapping.default, { size: 32, color: "#56B0BB" }),
472
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
473
+ id: field.id,
474
+ description: (field == null ? void 0 : field.mappingDescription) || `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()}`)}`,
475
+ fields: field.fields,
476
+ isEnabled: field.isEnabled,
477
+ integrationName,
478
+ handleDashboardPage,
479
+ handleEditField,
480
+ type: "MAPPING",
481
+ toggleDashboardField,
482
+ deleteFieldHandler
483
+ }
484
+ );
485
+ }
486
+ )) : null, console.log(mappingFields, "mappingFields"), ((_e = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _e.type) === "SINGLE_MAPPING" && !!((_g = (_f = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _f.fields) == null ? void 0 : _g.length) ? /* @__PURE__ */ React.createElement(box.Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_i = (_h = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _h.fields) == null ? void 0 : _i.map(
430
487
  (field, index) => {
431
488
  return /* @__PURE__ */ React.createElement(
432
489
  SingleMappingDashboardItem,
@@ -444,7 +501,7 @@ const SingleAccountDashboard = ({
444
501
  }
445
502
  );
446
503
  }
447
- )) : null);
504
+ )) : null));
448
505
  };
449
506
  const TriggerDasboardItem = ({
450
507
  isDraft,
@@ -458,7 +515,7 @@ const TriggerDasboardItem = ({
458
515
  toggleDashboardField,
459
516
  deleteFieldHandler
460
517
  }) => {
461
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
518
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
462
519
  const [isMappingDisplayed, setIsMappingDisplayed] = React.useState(false);
463
520
  const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false);
464
521
  const transformDataToString = (data) => {
@@ -619,7 +676,7 @@ const TriggerDasboardItem = ({
619
676
  }
620
677
  },
621
678
  /* @__PURE__ */ React.createElement(SingleMappingEventWrapper, { isTrigger: true, field }),
622
- ((_c = (_b = field == null ? void 0 : field.fields) == null ? void 0 : _b.filters) == null ? void 0 : _c.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
679
+ ((_c = (_b = field.fields) == null ? void 0 : _b.filters) == null ? void 0 : _c.length) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
623
680
  flex.Flex,
624
681
  {
625
682
  flexDirection: "column",
@@ -646,12 +703,10 @@ const TriggerDasboardItem = ({
646
703
  }
647
704
  }
648
705
  )) : null,
649
- ((_e = (_d = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _d.variables) == null ? void 0 : _e.filter(
650
- (variable) => variable.isEnabled
651
- ).length) ? /* @__PURE__ */ React.createElement(
706
+ ((_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(_e, (variable) => variable.isEnabled)) == null ? void 0 : _g.length) ? /* @__PURE__ */ React.createElement(
652
707
  SingleMappingChipWrapper,
653
708
  {
654
- heading: ((_g = (_f = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _f.variables) == null ? void 0 : _g.length) > 1 ? "PASSING VARIABLES TO SURVEY" : "PASSING VARIABLE TO SURVEY",
709
+ 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",
655
710
  fields: field.triggerDetails.variables,
656
711
  backgroundColor: "$positive100"
657
712
  }
@@ -664,25 +719,25 @@ const TriggerDasboardItem = ({
664
719
  css: { paddingBlock: "$8" }
665
720
  },
666
721
  /* @__PURE__ */ React.createElement(text.Text, { size: "sm", weight: "bold" }, "SEND SURVEY"),
667
- /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center" }, ((_i = (_h = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _h.shareType) == null ? void 0 : _i.value) ? /* @__PURE__ */ React.createElement(
722
+ /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center" }, ((_k = (_j = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _j.shareType) == null ? void 0 : _k.value) ? /* @__PURE__ */ React.createElement(
668
723
  EventComponent,
669
724
  {
670
725
  heading: "Share Type:",
671
- description: (_k = (_j = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _j.shareType) == null ? void 0 : _k.label
726
+ description: (_m = (_l = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _l.shareType) == null ? void 0 : _m.label
672
727
  }
673
- ) : null, ((_m = (_l = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _l.shareRecipient) == null ? void 0 : _m.value) ? /* @__PURE__ */ React.createElement(
728
+ ) : null, ((_o = (_n = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _n.shareRecipient) == null ? void 0 : _o.value) ? /* @__PURE__ */ React.createElement(
674
729
  EventComponent,
675
730
  {
676
731
  heading: "Recipient:",
677
732
  hasBorder: true,
678
- description: (_o = (_n = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _n.shareRecipient) == null ? void 0 : _o.label
733
+ description: (_q = (_p = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _p.shareRecipient) == null ? void 0 : _q.label
679
734
  }
680
- ) : null, ((_q = (_p = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _p.shareChannel) == null ? void 0 : _q.value) ? /* @__PURE__ */ React.createElement(
735
+ ) : null, ((_s = (_r = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _r.shareChannel) == null ? void 0 : _s.value) ? /* @__PURE__ */ React.createElement(
681
736
  EventComponent,
682
737
  {
683
738
  hasBorder: true,
684
739
  heading: "Share Channel:",
685
- description: (_s = (_r = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _r.shareChannel) == null ? void 0 : _s.label
740
+ description: (_u = (_t = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _t.shareChannel) == null ? void 0 : _u.label
686
741
  }
687
742
  ) : null)
688
743
  ))
@@ -739,7 +794,7 @@ const SingleMappingDashboardItem = ({
739
794
  integrationName,
740
795
  onMappingEditHandler
741
796
  }) => {
742
- 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;
797
+ 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, __;
743
798
  const [isMappingDisplayed, setIsMappingDisplayed] = React.useState(false);
744
799
  const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false);
745
800
  const [isSyncing, setIsSyncing] = React.useState(null);
@@ -794,26 +849,35 @@ const SingleMappingDashboardItem = ({
794
849
  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
795
850
  )) : null))
796
851
  ),
797
- /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React.createElement(tooltip.Tooltip, { content: "Sync", className: "dm-sans" }, /* @__PURE__ */ React.createElement(button.Button, { variant: "ghost", size: "lg", color: "default", css: {
798
- width: "40px !important",
799
- height: "40px !important",
800
- marginInlineEnd: "$3"
801
- } }, /* @__PURE__ */ React.createElement(
802
- flex.Flex,
852
+ /* @__PURE__ */ React.createElement(flex.Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React.createElement(tooltip.Tooltip, { content: "Sync", className: "dm-sans" }, /* @__PURE__ */ React.createElement(
853
+ button.Button,
803
854
  {
804
- className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`,
805
- justifyContent: "center",
806
- alignItems: "center",
807
- onClick: async () => {
808
- setIsSyncing(field.id);
809
- setTimeout(async () => {
810
- await (syncMapping == null ? void 0 : syncMapping(field.id));
811
- setIsSyncing(null);
812
- }, 2e3);
855
+ variant: "ghost",
856
+ size: "lg",
857
+ color: "default",
858
+ css: {
859
+ width: "40px !important",
860
+ height: "40px !important",
861
+ marginInlineEnd: "$3"
813
862
  }
814
863
  },
815
- /* @__PURE__ */ React.createElement(sync.default, null)
816
- ))), (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(
864
+ /* @__PURE__ */ React.createElement(
865
+ flex.Flex,
866
+ {
867
+ className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`,
868
+ justifyContent: "center",
869
+ alignItems: "center",
870
+ onClick: async () => {
871
+ setIsSyncing(field.id);
872
+ setTimeout(async () => {
873
+ await (syncMapping == null ? void 0 : syncMapping(field.id));
874
+ setIsSyncing(null);
875
+ }, 2e3);
876
+ }
877
+ },
878
+ /* @__PURE__ */ React.createElement(sync.default, null)
879
+ )
880
+ )), (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? /* @__PURE__ */ React.createElement(
817
881
  box.Box,
818
882
  {
819
883
  css: {
@@ -895,76 +959,58 @@ const SingleMappingDashboardItem = ({
895
959
  }
896
960
  },
897
961
  /* @__PURE__ */ React.createElement(SingleMappingEventWrapper, { field }),
898
- !!((_m = (_l = field == null ? void 0 : field.mappedFields) == null ? void 0 : _l.questions) == null ? void 0 : _m.filter(
899
- (question) => question.isEnabled
900
- ).length) ? /* @__PURE__ */ React.createElement(
962
+ !!((_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(_m, (question) => question.isEnabled)) == null ? void 0 : _o.length) ? /* @__PURE__ */ React.createElement(
901
963
  SingleMappingChipWrapper,
902
964
  {
903
965
  heading: "Questions",
904
- fields: (_o = (_n = field == null ? void 0 : field.mappedFields) == null ? void 0 : _n.questions) == null ? void 0 : _o.filter(
905
- (question) => question.isEnabled
906
- ),
966
+ 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(_q, (question) => question.isEnabled),
907
967
  backgroundColor: "#E5F2FF"
908
968
  }
909
969
  ) : null,
910
- !!((_q = (_p = field == null ? void 0 : field.mappedFields) == null ? void 0 : _p.derivedQuestions) == null ? void 0 : _q.filter(
970
+ !!((_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(
971
+ _t,
911
972
  (derivedQuestion) => derivedQuestion.isEnabled
912
- ).length) ? /* @__PURE__ */ React.createElement(
973
+ )) == null ? void 0 : _v.length) ? /* @__PURE__ */ React.createElement(
913
974
  SingleMappingChipWrapper,
914
975
  {
915
- heading: "Derived Questions",
916
- fields: (_s = (_r = field == null ? void 0 : field.mappedFields) == null ? void 0 : _r.derivedQuestions) == null ? void 0 : _s.filter(
976
+ heading: "Enriched Columns",
977
+ 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(
978
+ _x,
917
979
  (derivedQuestion) => derivedQuestion.isEnabled
918
980
  ),
919
981
  backgroundColor: "#E5F2FF"
920
982
  }
921
983
  ) : null,
922
- !!((_u = (_t = field == null ? void 0 : field.mappedFields) == null ? void 0 : _t.variables) == null ? void 0 : _u.filter(
923
- (variable) => variable.isEnabled
924
- ).length) ? /* @__PURE__ */ React.createElement(
984
+ !!((_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(_A, (variable) => variable.isEnabled)) == null ? void 0 : _C.length) ? /* @__PURE__ */ React.createElement(
925
985
  SingleMappingChipWrapper,
926
986
  {
927
987
  heading: "Variables",
928
- fields: (_w = (_v = field == null ? void 0 : field.mappedFields) == null ? void 0 : _v.variables) == null ? void 0 : _w.filter(
929
- (variable) => variable.isEnabled
930
- ),
988
+ 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(_E, (variable) => variable.isEnabled),
931
989
  backgroundColor: "$positive100"
932
990
  }
933
991
  ) : null,
934
- !!((_y = (_x = field == null ? void 0 : field.mappedFields) == null ? void 0 : _x.contactProperties) == null ? void 0 : _y.filter(
935
- (property) => property.isEnabled
936
- ).length) ? /* @__PURE__ */ React.createElement(
992
+ !!((_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(_H, (property) => property.isEnabled)) == null ? void 0 : _J.length) ? /* @__PURE__ */ React.createElement(
937
993
  SingleMappingChipWrapper,
938
994
  {
939
995
  heading: "Contacts",
940
- fields: (_A = (_z = field == null ? void 0 : field.mappedFields) == null ? void 0 : _z.contactProperties) == null ? void 0 : _A.filter(
941
- (property) => property.isEnabled
942
- ),
996
+ 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(_L, (property) => property.isEnabled),
943
997
  backgroundColor: "$negative100"
944
998
  }
945
999
  ) : null,
946
- !!((_C = (_B = field == null ? void 0 : field.mappedFields) == null ? void 0 : _B.expressions) == null ? void 0 : _C.filter(
947
- (expression) => expression.isEnabled
948
- ).length) ? /* @__PURE__ */ React.createElement(
1000
+ !!((_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(_O, (expression) => expression.isEnabled)) == null ? void 0 : _Q.length) ? /* @__PURE__ */ React.createElement(
949
1001
  SingleMappingChipWrapper,
950
1002
  {
951
1003
  heading: "Expression",
952
1004
  backgroundColor: "$neutral100",
953
- fields: (_E = (_D = field == null ? void 0 : field.mappedFields) == null ? void 0 : _D.expressions) == null ? void 0 : _E.filter(
954
- (expression) => expression.isEnabled
955
- )
1005
+ 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(_S, (expression) => expression.isEnabled)
956
1006
  }
957
1007
  ) : null,
958
- !!((_G = (_F = field == null ? void 0 : field.mappedFields) == null ? void 0 : _F.property) == null ? void 0 : _G.filter(
959
- (property) => property.isEnabled
960
- ).length) ? /* @__PURE__ */ React.createElement(
1008
+ !!((_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(_V, (property) => property.isEnabled)) == null ? void 0 : _X.length) ? /* @__PURE__ */ React.createElement(
961
1009
  SingleMappingChipWrapper,
962
1010
  {
963
1011
  heading: "Property",
964
1012
  hideBorder: true,
965
- fields: (_I = (_H = field == null ? void 0 : field.mappedFields) == null ? void 0 : _H.property) == null ? void 0 : _I.filter(
966
- (property) => property.isEnabled
967
- ),
1013
+ fields: (__ = (_Z = (_Y = field == null ? void 0 : field.mappedFields) == null ? void 0 : _Y.property) == null ? void 0 : _Z.filter) == null ? void 0 : __.call(_Z, (property) => property.isEnabled),
968
1014
  backgroundColor: "rgba(74, 156, 166, 0.15)"
969
1015
  }
970
1016
  ) : null
@@ -1059,10 +1105,7 @@ const SingleMappingEventWrapper = ({
1059
1105
  EventComponent,
1060
1106
  {
1061
1107
  heading: "Object:",
1062
- description: (_p = (_o = (_n = (_m = field == null ? void 0 : field.configurationFields) == null ? void 0 : _m.object) == null ? void 0 : _n.value) == null ? void 0 : _o.label) == null ? void 0 : _p.replace(
1063
- /^./,
1064
- (char) => char == null ? void 0 : char.toUpperCase()
1065
- )
1108
+ description: (_p = (_o = (_n = (_m = field == null ? void 0 : field.configurationFields) == null ? void 0 : _m.object) == null ? void 0 : _n.value) == null ? void 0 : _o.label) == null ? void 0 : _p.replace(/^./, (char) => char == null ? void 0 : char.toUpperCase())
1066
1109
  }
1067
1110
  ) : null, !!((_r = (_q = field == null ? void 0 : field.configurationFields) == null ? void 0 : _q.action) == null ? void 0 : _r.hasAction) ? /* @__PURE__ */ React.createElement(
1068
1111
  EventComponent,
@@ -1097,7 +1140,7 @@ const SingleMappingChipWrapper = ({
1097
1140
  placeholder,
1098
1141
  backgroundColor
1099
1142
  }) => {
1100
- const modifiedFields = Object.values(fields).filter(
1143
+ const modifiedFields = fields.filter(
1101
1144
  (field) => field.id !== "ALL"
1102
1145
  );
1103
1146
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(flex.Flex, { flexDirection: "column", gap: "$6", css: { paddingBlock: "$8" } }, /* @__PURE__ */ React.createElement(text.Text, { size: "sm", weight: "bold", css: { textTransform: "uppercase" } }, heading), /* @__PURE__ */ React.createElement(
@@ -1107,7 +1150,10 @@ const SingleMappingChipWrapper = ({
1107
1150
  css: {
1108
1151
  columnGap: "$2",
1109
1152
  rowGap: "$4",
1110
- "& > * ": { fontFamily: "'Roboto Mono', monospace !important", fontWeight: "$4 !important" }
1153
+ "& > * ": {
1154
+ fontFamily: "'Roboto Mono', monospace !important",
1155
+ fontWeight: "$4 !important"
1156
+ }
1111
1157
  }
1112
1158
  },
1113
1159
  modifiedFields.map((field) => {
@@ -1187,7 +1233,7 @@ const DashboardItem = ({
1187
1233
  break;
1188
1234
  }
1189
1235
  default: {
1190
- field = (_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label;
1236
+ field = ((_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label) || "--";
1191
1237
  break;
1192
1238
  }
1193
1239
  }