@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.
- package/dist/cjs/_virtual/index10.js +2 -2
- package/dist/cjs/_virtual/index9.js +2 -2
- 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/components/NamingModal.js +82 -0
- package/dist/cjs/commons/components/NamingModal.js.map +1 -0
- 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 +7 -1
- 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 +225 -179
- package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
- package/dist/cjs/integration-template/index.js +33 -14
- 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 +29 -21
- 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 +453 -24
- package/dist/cjs/mapping/index.js.map +1 -1
- package/dist/cjs/mapping/services/index.js.map +1 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/utils.js +2 -1
- package/dist/cjs/node_modules/@internationalized/date/dist/utils.js.map +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/cjs/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/cjs/single-mapping/components/mapping.js +28 -14
- package/dist/cjs/single-mapping/components/mapping.js.map +1 -1
- package/dist/cjs/single-mapping/index.js +25 -28
- 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/_virtual/index10.js +2 -2
- package/dist/es/_virtual/index9.js +2 -2
- 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/components/NamingModal.js +78 -0
- package/dist/es/commons/components/NamingModal.js.map +1 -0
- 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 +5 -2
- 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 +225 -179
- package/dist/es/integration-template/components/dashboard.js.map +1 -1
- package/dist/es/integration-template/index.js +33 -14
- 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 +30 -22
- 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 +453 -24
- package/dist/es/mapping/index.js.map +1 -1
- package/dist/es/mapping/services/index.js.map +1 -1
- package/dist/es/node_modules/@internationalized/date/dist/utils.js +2 -1
- package/dist/es/node_modules/@internationalized/date/dist/utils.js.map +1 -1
- package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +1 -1
- package/dist/es/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/domutils/lib/index.js +1 -1
- package/dist/es/node_modules/html-dom-parser/node_modules/htmlparser2/lib/index.js +1 -1
- package/dist/es/single-mapping/components/mapping.js +28 -14
- package/dist/es/single-mapping/components/mapping.js.map +1 -1
- package/dist/es/single-mapping/index.js +25 -28
- 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 +269 -90
- 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(
|
|
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: (
|
|
211
|
+
heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
|
|
202
212
|
id: field.id,
|
|
203
|
-
description: `Trigger survey when an ${(
|
|
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(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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 ${(
|
|
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(
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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"} ${(
|
|
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,
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
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
|
|
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: ((
|
|
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" }, ((
|
|
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: (
|
|
726
|
+
description: (_m = (_l = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _l.shareType) == null ? void 0 : _m.label
|
|
672
727
|
}
|
|
673
|
-
) : null, ((
|
|
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: (
|
|
733
|
+
description: (_q = (_p = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _p.shareRecipient) == null ? void 0 : _q.label
|
|
679
734
|
}
|
|
680
|
-
) : null, ((
|
|
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: (
|
|
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(
|
|
798
|
-
|
|
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
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
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(
|
|
816
|
-
|
|
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: (
|
|
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
|
-
!!((
|
|
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: "
|
|
916
|
-
fields: (
|
|
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
|
-
!!((
|
|
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: (
|
|
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
|
-
!!((
|
|
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: (
|
|
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
|
-
!!((
|
|
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: (
|
|
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
|
-
!!((
|
|
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: (
|
|
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 =
|
|
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
|
-
"& > * ": {
|
|
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
|
}
|