@sparrowengg/integrations-templates-frontend 2.1.0-beta.1 → 2.1.0-beta.2

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 (212) hide show
  1. package/dist/cjs/cascader-dropdown/cascader-dropdown-content.js +1 -1
  2. package/dist/cjs/cascader-dropdown/cascader-dropdown-content.js.map +1 -1
  3. package/dist/cjs/commons/components/NamingModal.js +34 -62
  4. package/dist/cjs/commons/components/NamingModal.js.map +1 -1
  5. package/dist/cjs/commons/components/confirmation-modal.js +12 -24
  6. package/dist/cjs/commons/components/confirmation-modal.js.map +1 -1
  7. package/dist/cjs/commons/components/custom-pill.js +12 -30
  8. package/dist/cjs/commons/components/custom-pill.js.map +1 -1
  9. package/dist/cjs/commons/components/draftModal.js +31 -45
  10. package/dist/cjs/commons/components/draftModal.js.map +1 -1
  11. package/dist/cjs/commons/components/edit-confirmation.js +17 -34
  12. package/dist/cjs/commons/components/edit-confirmation.js.map +1 -1
  13. package/dist/cjs/commons/components/import-modal.js +18 -49
  14. package/dist/cjs/commons/components/import-modal.js.map +1 -1
  15. package/dist/cjs/commons/components/spinner.js +2 -16
  16. package/dist/cjs/commons/components/spinner.js.map +1 -1
  17. package/dist/cjs/commons/components/theme-wrapper.js +12 -9
  18. package/dist/cjs/commons/components/theme-wrapper.js.map +1 -1
  19. package/dist/cjs/commons/constants/enhanced.js.map +1 -1
  20. package/dist/cjs/commons/helpers/index.js +52 -93
  21. package/dist/cjs/commons/helpers/index.js.map +1 -1
  22. package/dist/cjs/commons/icons/arrow.js +3 -38
  23. package/dist/cjs/commons/icons/arrow.js.map +1 -1
  24. package/dist/cjs/commons/icons/cursor.js +8 -21
  25. package/dist/cjs/commons/icons/cursor.js.map +1 -1
  26. package/dist/cjs/commons/icons/email-letter.js +12 -30
  27. package/dist/cjs/commons/icons/email-letter.js.map +1 -1
  28. package/dist/cjs/commons/icons/mapping.js +10 -23
  29. package/dist/cjs/commons/icons/mapping.js.map +1 -1
  30. package/dist/cjs/commons/icons/nested-add.js +14 -32
  31. package/dist/cjs/commons/icons/nested-add.js.map +1 -1
  32. package/dist/cjs/commons/icons/sms.js +18 -36
  33. package/dist/cjs/commons/icons/sms.js.map +1 -1
  34. package/dist/cjs/commons/icons/sync.js +3 -110
  35. package/dist/cjs/commons/icons/sync.js.map +1 -1
  36. package/dist/cjs/commons/icons/trash.js +15 -33
  37. package/dist/cjs/commons/icons/trash.js.map +1 -1
  38. package/dist/cjs/commons/icons/whatsapp.js +31 -49
  39. package/dist/cjs/commons/icons/whatsapp.js.map +1 -1
  40. package/dist/cjs/contact-import/components/ManageImport/Completed.js +41 -27
  41. package/dist/cjs/contact-import/components/ManageImport/Completed.js.map +1 -1
  42. package/dist/cjs/contact-import/components/ManageImport/Dashboard.js +43 -23
  43. package/dist/cjs/contact-import/components/ManageImport/Dashboard.js.map +1 -1
  44. package/dist/cjs/contact-import/components/ManageImport/NoDataState.js +6 -7
  45. package/dist/cjs/contact-import/components/ManageImport/NoDataState.js.map +1 -1
  46. package/dist/cjs/contact-import/components/ManageImport/Scheduled.js +46 -30
  47. package/dist/cjs/contact-import/components/ManageImport/Scheduled.js.map +1 -1
  48. package/dist/cjs/contact-import/components/ManageImport/icon.js +85 -0
  49. package/dist/cjs/contact-import/components/ManageImport/icon.js.map +1 -0
  50. package/dist/cjs/contact-import/components/Scheduling.js +27 -39
  51. package/dist/cjs/contact-import/components/Scheduling.js.map +1 -1
  52. package/dist/cjs/contact-import/components/TimePicker.js +102 -129
  53. package/dist/cjs/contact-import/components/TimePicker.js.map +1 -1
  54. package/dist/cjs/contact-import/components/conact-import-schedule.js +64 -0
  55. package/dist/cjs/contact-import/components/conact-import-schedule.js.map +1 -0
  56. package/dist/cjs/contact-import/components/contact-import-configure.js +75 -0
  57. package/dist/cjs/contact-import/components/contact-import-configure.js.map +1 -0
  58. package/dist/cjs/contact-import/components/contact-import-mapping.js +224 -0
  59. package/dist/cjs/contact-import/components/contact-import-mapping.js.map +1 -0
  60. package/dist/cjs/contact-import/constants.js +21 -0
  61. package/dist/cjs/contact-import/constants.js.map +1 -0
  62. package/dist/cjs/contact-import/index.js +242 -32
  63. package/dist/cjs/contact-import/index.js.map +1 -1
  64. package/dist/cjs/dynamic-mapping/components/Mapping.js +321 -203
  65. package/dist/cjs/dynamic-mapping/components/Mapping.js.map +1 -1
  66. package/dist/cjs/dynamic-mapping/index.js +972 -34
  67. package/dist/cjs/dynamic-mapping/index.js.map +1 -1
  68. package/dist/cjs/filter/filter-pill-value-selector.js +1 -1
  69. package/dist/cjs/filter/filter-pill-value-selector.js.map +1 -1
  70. package/dist/cjs/index.js +12 -159
  71. package/dist/cjs/index.js.map +1 -1
  72. package/dist/cjs/integration-template/components/dashboard.js +137 -130
  73. package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
  74. package/dist/cjs/integration-template/index.js +343 -0
  75. package/dist/cjs/integration-template/index.js.map +1 -0
  76. package/dist/cjs/mapping/components/custom-menu.js +3 -4
  77. package/dist/cjs/mapping/components/custom-menu.js.map +1 -1
  78. package/dist/cjs/mapping/components/field.js +103 -121
  79. package/dist/cjs/mapping/components/field.js.map +1 -1
  80. package/dist/cjs/mapping/components/mapping.js +195 -106
  81. package/dist/cjs/mapping/components/mapping.js.map +1 -1
  82. package/dist/cjs/mapping/constants/index.js +2 -259
  83. package/dist/cjs/mapping/constants/index.js.map +1 -1
  84. package/dist/cjs/mapping/index.js +618 -38
  85. package/dist/cjs/mapping/index.js.map +1 -1
  86. package/dist/cjs/mapping/services/index.js +58 -96
  87. package/dist/cjs/mapping/services/index.js.map +1 -1
  88. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-menu/dist/index.js +7 -7
  89. package/dist/cjs/single-mapping/components/mapping.js +490 -0
  90. package/dist/cjs/single-mapping/components/mapping.js.map +1 -0
  91. package/dist/cjs/single-mapping/index.js +987 -59
  92. package/dist/cjs/single-mapping/index.js.map +1 -1
  93. package/dist/cjs/triggers/components/subcomponents.js +1140 -0
  94. package/dist/cjs/triggers/components/subcomponents.js.map +1 -0
  95. package/dist/cjs/triggers/components/trigger.js +491 -0
  96. package/dist/cjs/triggers/components/trigger.js.map +1 -0
  97. package/dist/cjs/triggers/constants/index.js +0 -253
  98. package/dist/cjs/triggers/constants/index.js.map +1 -1
  99. package/dist/cjs/triggers/index.js +333 -0
  100. package/dist/cjs/triggers/index.js.map +1 -0
  101. package/dist/cjs/triggers/services/index.js +30 -0
  102. package/dist/cjs/triggers/services/index.js.map +1 -0
  103. package/dist/es/cascader-dropdown/cascader-dropdown-content.js +1 -1
  104. package/dist/es/cascader-dropdown/cascader-dropdown-content.js.map +1 -1
  105. package/dist/es/commons/components/NamingModal.js +35 -63
  106. package/dist/es/commons/components/NamingModal.js.map +1 -1
  107. package/dist/es/commons/components/confirmation-modal.js +13 -25
  108. package/dist/es/commons/components/confirmation-modal.js.map +1 -1
  109. package/dist/es/commons/components/custom-pill.js +13 -31
  110. package/dist/es/commons/components/custom-pill.js.map +1 -1
  111. package/dist/es/commons/components/draftModal.js +32 -46
  112. package/dist/es/commons/components/draftModal.js.map +1 -1
  113. package/dist/es/commons/components/edit-confirmation.js +18 -35
  114. package/dist/es/commons/components/edit-confirmation.js.map +1 -1
  115. package/dist/es/commons/components/import-modal.js +19 -50
  116. package/dist/es/commons/components/import-modal.js.map +1 -1
  117. package/dist/es/commons/components/spinner.js +2 -16
  118. package/dist/es/commons/components/spinner.js.map +1 -1
  119. package/dist/es/commons/components/theme-wrapper.js +12 -9
  120. package/dist/es/commons/components/theme-wrapper.js.map +1 -1
  121. package/dist/es/commons/constants/enhanced.js.map +1 -1
  122. package/dist/es/commons/helpers/index.js +52 -93
  123. package/dist/es/commons/helpers/index.js.map +1 -1
  124. package/dist/es/commons/icons/arrow.js +3 -38
  125. package/dist/es/commons/icons/arrow.js.map +1 -1
  126. package/dist/es/commons/icons/cursor.js +8 -21
  127. package/dist/es/commons/icons/cursor.js.map +1 -1
  128. package/dist/es/commons/icons/email-letter.js +12 -30
  129. package/dist/es/commons/icons/email-letter.js.map +1 -1
  130. package/dist/es/commons/icons/mapping.js +10 -23
  131. package/dist/es/commons/icons/mapping.js.map +1 -1
  132. package/dist/es/commons/icons/nested-add.js +14 -32
  133. package/dist/es/commons/icons/nested-add.js.map +1 -1
  134. package/dist/es/commons/icons/sms.js +18 -36
  135. package/dist/es/commons/icons/sms.js.map +1 -1
  136. package/dist/es/commons/icons/sync.js +3 -110
  137. package/dist/es/commons/icons/sync.js.map +1 -1
  138. package/dist/es/commons/icons/trash.js +15 -33
  139. package/dist/es/commons/icons/trash.js.map +1 -1
  140. package/dist/es/commons/icons/whatsapp.js +31 -49
  141. package/dist/es/commons/icons/whatsapp.js.map +1 -1
  142. package/dist/es/contact-import/components/ManageImport/Completed.js +41 -27
  143. package/dist/es/contact-import/components/ManageImport/Completed.js.map +1 -1
  144. package/dist/es/contact-import/components/ManageImport/Dashboard.js +45 -25
  145. package/dist/es/contact-import/components/ManageImport/Dashboard.js.map +1 -1
  146. package/dist/es/contact-import/components/ManageImport/NoDataState.js +4 -5
  147. package/dist/es/contact-import/components/ManageImport/NoDataState.js.map +1 -1
  148. package/dist/es/contact-import/components/ManageImport/Scheduled.js +46 -30
  149. package/dist/es/contact-import/components/ManageImport/Scheduled.js.map +1 -1
  150. package/dist/es/contact-import/components/ManageImport/icon.js +82 -0
  151. package/dist/es/contact-import/components/ManageImport/icon.js.map +1 -0
  152. package/dist/es/contact-import/components/Scheduling.js +27 -39
  153. package/dist/es/contact-import/components/Scheduling.js.map +1 -1
  154. package/dist/es/contact-import/components/TimePicker.js +103 -130
  155. package/dist/es/contact-import/components/TimePicker.js.map +1 -1
  156. package/dist/es/contact-import/components/conact-import-schedule.js +60 -0
  157. package/dist/es/contact-import/components/conact-import-schedule.js.map +1 -0
  158. package/dist/es/contact-import/components/contact-import-configure.js +71 -0
  159. package/dist/es/contact-import/components/contact-import-configure.js.map +1 -0
  160. package/dist/es/contact-import/components/contact-import-mapping.js +220 -0
  161. package/dist/es/contact-import/components/contact-import-mapping.js.map +1 -0
  162. package/dist/es/contact-import/constants.js +18 -0
  163. package/dist/es/contact-import/constants.js.map +1 -0
  164. package/dist/es/contact-import/index.js +240 -27
  165. package/dist/es/contact-import/index.js.map +1 -1
  166. package/dist/es/dynamic-mapping/components/Mapping.js +321 -203
  167. package/dist/es/dynamic-mapping/components/Mapping.js.map +1 -1
  168. package/dist/es/dynamic-mapping/index.js +972 -34
  169. package/dist/es/dynamic-mapping/index.js.map +1 -1
  170. package/dist/es/filter/filter-pill-value-selector.js +1 -1
  171. package/dist/es/filter/filter-pill-value-selector.js.map +1 -1
  172. package/dist/es/index.js +2 -23
  173. package/dist/es/index.js.map +1 -1
  174. package/dist/es/integration-template/components/dashboard.js +139 -132
  175. package/dist/es/integration-template/components/dashboard.js.map +1 -1
  176. package/dist/es/integration-template/index.js +341 -0
  177. package/dist/es/integration-template/index.js.map +1 -0
  178. package/dist/es/mapping/components/custom-menu.js +3 -4
  179. package/dist/es/mapping/components/custom-menu.js.map +1 -1
  180. package/dist/es/mapping/components/field.js +100 -118
  181. package/dist/es/mapping/components/field.js.map +1 -1
  182. package/dist/es/mapping/components/mapping.js +194 -105
  183. package/dist/es/mapping/components/mapping.js.map +1 -1
  184. package/dist/es/mapping/constants/index.js +3 -239
  185. package/dist/es/mapping/constants/index.js.map +1 -1
  186. package/dist/es/mapping/index.js +617 -12
  187. package/dist/es/mapping/index.js.map +1 -1
  188. package/dist/es/mapping/services/index.js +59 -96
  189. package/dist/es/mapping/services/index.js.map +1 -1
  190. package/dist/es/node_modules/@internationalized/date/dist/CalendarDate.js +3 -3
  191. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +1 -1
  192. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dropdown/dropdown.js +2 -2
  193. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +1 -1
  194. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/calendar/dist/import.js +2 -2
  195. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-aria/utils/dist/import.js +1 -1
  196. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@react-stately/calendar/dist/import.js +1 -1
  197. package/dist/es/single-mapping/components/mapping.js +486 -0
  198. package/dist/es/single-mapping/components/mapping.js.map +1 -0
  199. package/dist/es/single-mapping/index.js +988 -60
  200. package/dist/es/single-mapping/index.js.map +1 -1
  201. package/dist/es/triggers/components/subcomponents.js +1134 -0
  202. package/dist/es/triggers/components/subcomponents.js.map +1 -0
  203. package/dist/es/triggers/components/trigger.js +487 -0
  204. package/dist/es/triggers/components/trigger.js.map +1 -0
  205. package/dist/es/triggers/constants/index.js +1 -228
  206. package/dist/es/triggers/constants/index.js.map +1 -1
  207. package/dist/es/triggers/index.js +331 -0
  208. package/dist/es/triggers/index.js.map +1 -0
  209. package/dist/es/triggers/services/index.js +28 -0
  210. package/dist/es/triggers/services/index.js.map +1 -0
  211. package/dist/index.d.ts +448 -2161
  212. package/package.json +1 -1
@@ -4,9 +4,7 @@ import MappingIcon from '../../commons/icons/mapping.js';
4
4
  import parse from '../../node_modules/html-react-parser/esm/index.js';
5
5
  import { operatorOptions } from '../../commons/constants/index.js';
6
6
  import ConfirmationModal from '../../commons/components/confirmation-modal.js';
7
- import SyncIcon from '../../commons/icons/sync.js';
8
- import { BUTTON_LABELS, DASHBOARD_TYPES, TOOLTIP_MESSAGES, CSS_CLASSES, MAX_DIMENSIONS, TAB_LABELS, DESCRIPTION_TEMPLATES, DEFAULT_VALUES, SECTION_HEADINGS, CHIP_COLORS, FIELD_LABELS, MODAL_TITLES, MODAL_MESSAGES, ANIMATION_DURATIONS, ID_CONSTANTS, CHIP_PREFIX, STATUS_LABELS, TABLE_HEADERS, CONDITION_TEXT } from '../constants/dashboard.constants.js';
9
- import { transformToPastTense } from '../utils/dashboard.utils.js';
7
+ import Sync from '../../commons/icons/sync.js';
10
8
  import { Flex } from '../../node_modules/@sparrowengg/twigs-react/dist/es/flex/flex.js';
11
9
  import { Box } from '../../node_modules/@sparrowengg/twigs-react/dist/es/box/box.js';
12
10
  import { Heading } from '../../node_modules/@sparrowengg/twigs-react/dist/es/heading/heading.js';
@@ -26,6 +24,15 @@ import { PencilIcon } from '../../node_modules/@sparrowengg/twigs-react-icons/di
26
24
  import { DeleteIcon } from '../../node_modules/@sparrowengg/twigs-react-icons/dist/es/icons/delete.js';
27
25
  import { Table, Thead, Th, Tbody, Tr, Td } from '../../node_modules/@sparrowengg/twigs-react/dist/es/table/table.js';
28
26
 
27
+ const trasformToPastTense = (value) => {
28
+ if (value.endsWith("e")) {
29
+ return value + "d";
30
+ } else if (value.endsWith("y")) {
31
+ return value.slice(0, -1) + "ied";
32
+ } else {
33
+ return value + "ed";
34
+ }
35
+ };
29
36
  const Dashboard = ({
30
37
  onMappingEditHandler,
31
38
  fieldOptions,
@@ -52,20 +59,20 @@ const Dashboard = ({
52
59
  alignItems: "center"
53
60
  },
54
61
  /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$2" }, /* @__PURE__ */ React__default.createElement(Heading, { size: "h5" }, integrationName), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral700" } }, dashboardDescription)),
55
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, hasMultiAccounts && /* @__PURE__ */ React__default.createElement(Button, { size: "lg", color: "default", leftIcon: /* @__PURE__ */ React__default.createElement(PlusIcon, null) }, BUTTON_LABELS.ADD_ACCOUNT), hasDropdownComponents.mapping && !hasDropdownComponents.trigger ? /* @__PURE__ */ React__default.createElement(
62
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, hasMultiAccounts && /* @__PURE__ */ React__default.createElement(Button, { size: "lg", color: "default", leftIcon: /* @__PURE__ */ React__default.createElement(PlusIcon, null) }, "Add Account"), hasDropdownComponents.mapping && !hasDropdownComponents.trigger ? /* @__PURE__ */ React__default.createElement(
56
63
  Button,
57
64
  {
58
65
  size: "lg",
59
66
  color: "primary",
60
67
  disabled: !mappingEnabled,
61
68
  leftIcon: /* @__PURE__ */ React__default.createElement(PlusIcon, null),
62
- onClick: () => handleConfigurationType(DASHBOARD_TYPES.MAPPING)
69
+ onClick: () => handleConfigurationType("MAPPING")
63
70
  },
64
- BUTTON_LABELS.NEW_MAPPING
71
+ "New Mapping"
65
72
  ) : null, hasDropdownComponents.trigger && hasDropdownComponents.mapping ? /* @__PURE__ */ React__default.createElement(DropdownMenu, null, /* @__PURE__ */ React__default.createElement(
66
73
  Tooltip,
67
74
  {
68
- content: !triggerEnabled && !mappingEnabled ? TOOLTIP_MESSAGES.MAX_LIMIT_TRIGGERS_MAPPINGS : ""
75
+ content: !triggerEnabled && !mappingEnabled ? "You have reached the maximum limit for creating triggers/mappings" : ""
69
76
  },
70
77
  /* @__PURE__ */ React__default.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement(
71
78
  Button,
@@ -74,16 +81,16 @@ const Dashboard = ({
74
81
  disabled: !triggerEnabled && !mappingEnabled,
75
82
  rightIcon: /* @__PURE__ */ React__default.createElement(ChevronDownIcon, null)
76
83
  },
77
- BUTTON_LABELS.ADD_NEW
84
+ "Add New"
78
85
  ))
79
86
  ), /* @__PURE__ */ React__default.createElement(
80
87
  DropdownMenuContent,
81
88
  {
82
- className: CSS_CLASSES.DM_SANS,
89
+ className: "dm-sans",
83
90
  sideOffset: 4,
84
91
  align: "start",
85
92
  css: {
86
- maxWidth: MAX_DIMENSIONS.SELECT_MENU_WIDTH,
93
+ maxWidth: 240,
87
94
  zIndex: 10,
88
95
  "& p": {
89
96
  margin: "0 !important",
@@ -94,23 +101,23 @@ const Dashboard = ({
94
101
  hasDropdownComponents.trigger ? /* @__PURE__ */ React__default.createElement(
95
102
  DropdownItem,
96
103
  {
97
- toolTipContent: TOOLTIP_MESSAGES.MAX_LIMIT_TRIGGERS,
104
+ toolTipContent: "You have reached the maximum limit for creating triggers",
98
105
  isDisabled: !triggerEnabled,
99
106
  icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 24, color: "#6A6A6A" }),
100
- heading: TAB_LABELS.TRIGGER,
101
- description: DESCRIPTION_TEMPLATES.TRIGGER_SURVEY,
102
- onClickHandler: () => handleConfigurationType(DASHBOARD_TYPES.TRIGGER)
107
+ heading: "Trigger",
108
+ description: "Trigger the Survey when a record is created/updated",
109
+ onClickHandler: () => handleConfigurationType("TRIGGER")
103
110
  }
104
111
  ) : null,
105
112
  hasDropdownComponents.mapping ? /* @__PURE__ */ React__default.createElement(
106
113
  DropdownItem,
107
114
  {
108
115
  isDisabled: !mappingEnabled,
109
- toolTipContent: TOOLTIP_MESSAGES.MAX_LIMIT_MAPPINGS,
116
+ toolTipContent: "You have reached the maximum limit for creating mappings",
110
117
  icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 24, color: "#6A6A6A" }),
111
- heading: TAB_LABELS.MAPPING,
112
- description: DESCRIPTION_TEMPLATES.CREATE_UPDATE_RECORD.replace("{integration}", integrationName),
113
- onClickHandler: () => handleConfigurationType(DASHBOARD_TYPES.MAPPING)
118
+ heading: "Mapping",
119
+ description: `Create/Update record in ${integrationName} from survey responses`,
120
+ onClickHandler: () => handleConfigurationType("MAPPING")
114
121
  }
115
122
  ) : null
116
123
  )) : null)
@@ -179,9 +186,9 @@ const MultiAccountDashboard = ({
179
186
  "& button": { color: "$neutral900" }
180
187
  }
181
188
  },
182
- /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "ALL" }, TAB_LABELS.ALL),
183
- /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "TRIGGER" }, TAB_LABELS.TRIGGER),
184
- /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "MAPPING" }, TAB_LABELS.MAPPING)
189
+ /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "ALL" }, "All"),
190
+ /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "TRIGGER" }, "Trigger"),
191
+ /* @__PURE__ */ React__default.createElement(TabsTrigger, { value: "MAPPING" }, "Mapping")
185
192
  ), /* @__PURE__ */ React__default.createElement(
186
193
  TabsContent,
187
194
  {
@@ -189,7 +196,7 @@ const MultiAccountDashboard = ({
189
196
  css: { paddingBlock: "$12", paddingInline: 0 }
190
197
  },
191
198
  /* @__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) => {
192
- var _a2, _b2, _c2, _d2, _e, _f;
199
+ var _a2, _b2, _c2, _d2, _e;
193
200
  return /* @__PURE__ */ React__default.createElement(
194
201
  DashboardItem,
195
202
  {
@@ -197,15 +204,15 @@ const MultiAccountDashboard = ({
197
204
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
198
205
  onMappingEditHandler,
199
206
  icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
200
- heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : DEFAULT_VALUES.FIELD,
207
+ heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
201
208
  id: field.id,
202
- description: DESCRIPTION_TEMPLATES.TRIGGER_SURVEY_WHEN.replace("{article}", /^[aeiouAEIOU]$/.test(((_d2 = field == null ? void 0 : field.object) == null ? void 0 : _d2[0]) || "") ? "an" : "a").replace("{object}", ((_e = field == null ? void 0 : field.object) == null ? void 0 : _e.toLowerCase()) || "").replace("{action}", ((_f = field == null ? void 0 : field.action) == null ? void 0 : _f.toLowerCase()) || "").replace("{integration}", integrationName),
209
+ 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}`,
203
210
  fields: field.fields,
204
211
  isEnabled: field.isEnabled,
205
212
  integrationName,
206
213
  handleDashboardPage,
207
214
  handleEditField,
208
- type: DASHBOARD_TYPES.TRIGGER,
215
+ type: "TRIGGER",
209
216
  toggleDashboardField,
210
217
  deleteFieldHandler
211
218
  }
@@ -213,22 +220,22 @@ const MultiAccountDashboard = ({
213
220
  })) : 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(
214
221
  (field) => {
215
222
  var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i;
216
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === DASHBOARD_TYPES.MULTI_MAPPING ? /* @__PURE__ */ React__default.createElement(
223
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(
217
224
  DashboardItem,
218
225
  {
219
226
  key: field.id,
220
227
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
221
228
  onMappingEditHandler,
222
229
  icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
223
- heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : DEFAULT_VALUES.FIELD,
230
+ heading: (_c2 = (_b2 = field.domain) != null ? _b2 : field.email) != null ? _c2 : "Field",
224
231
  id: field.id,
225
- description: (field == null ? void 0 : field.mappingDescription) || DESCRIPTION_TEMPLATES.SYNC_RESPONSES_WHEN.replace("{integration}", integrationName).replace("{event}", ((_f = (_e = (_d2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _d2.events) == null ? void 0 : _e.label) == null ? void 0 : _f.toLowerCase()) || "").replace("{action}", transformToPastTense(((_i = (_h = (_g = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _g.action) == null ? void 0 : _h.label) == null ? void 0 : _i.toLowerCase()) || "")),
232
+ 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()}`)}`,
226
233
  fields: field.fields,
227
234
  isEnabled: field.isEnabled,
228
235
  integrationName,
229
236
  handleDashboardPage,
230
237
  handleEditField,
231
- type: DASHBOARD_TYPES.MAPPING,
238
+ type: "MAPPING",
232
239
  toggleDashboardField,
233
240
  deleteFieldHandler
234
241
  }
@@ -256,7 +263,7 @@ const MultiAccountDashboard = ({
256
263
  css: { paddingBlock: "$12", paddingInline: 0 }
257
264
  },
258
265
  !!(triggerFields == null ? void 0 : triggerFields.length) ? /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$8" }, triggerFields == null ? void 0 : triggerFields.map((field) => {
259
- var _a2, _b2, _c2, _d2;
266
+ var _a2, _b2, _c2;
260
267
  return /* @__PURE__ */ React__default.createElement(
261
268
  DashboardItem,
262
269
  {
@@ -264,15 +271,15 @@ const MultiAccountDashboard = ({
264
271
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
265
272
  onMappingEditHandler,
266
273
  icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
267
- heading: DEFAULT_VALUES.TRIGGER,
274
+ heading: "Trigger",
268
275
  id: field.id,
269
- description: DESCRIPTION_TEMPLATES.TRIGGER_SURVEY_WHEN.replace("{article}", /^[aeiouAEIOU]$/.test(((_b2 = field == null ? void 0 : field.object) == null ? void 0 : _b2[0]) || "") ? "an" : "a").replace("{object}", ((_c2 = field == null ? void 0 : field.object) == null ? void 0 : _c2.toLowerCase()) || "").replace("{action}", ((_d2 = field == null ? void 0 : field.action) == null ? void 0 : _d2.toLowerCase()) || "").replace("{integration}", integrationName),
276
+ 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}`,
270
277
  fields: field.fields,
271
278
  isEnabled: field.isEnabled,
272
279
  integrationName,
273
280
  handleDashboardPage,
274
281
  handleEditField,
275
- type: DASHBOARD_TYPES.TRIGGER,
282
+ type: "TRIGGER",
276
283
  toggleDashboardField,
277
284
  deleteFieldHandler
278
285
  }
@@ -280,8 +287,8 @@ const MultiAccountDashboard = ({
280
287
  })) : /* @__PURE__ */ React__default.createElement(
281
288
  MultiAccountFallback,
282
289
  {
283
- title: TAB_LABELS.TRIGGER,
284
- onClickHandler: () => handleConfigurationType(DASHBOARD_TYPES.TRIGGER)
290
+ title: "Trigger",
291
+ onClickHandler: () => handleConfigurationType("TRIGGER")
285
292
  }
286
293
  )
287
294
  ), /* @__PURE__ */ React__default.createElement(
@@ -293,22 +300,22 @@ const MultiAccountDashboard = ({
293
300
  !!((_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(
294
301
  (field) => {
295
302
  var _a2, _b2, _c2, _d2, _e, _f, _g;
296
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === DASHBOARD_TYPES.MULTI_MAPPING ? /* @__PURE__ */ React__default.createElement(
303
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(
297
304
  DashboardItem,
298
305
  {
299
306
  key: field.id,
300
307
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
301
308
  onMappingEditHandler,
302
309
  icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
303
- heading: (field == null ? void 0 : field.mappingName) || DEFAULT_VALUES.MAPPING,
310
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
304
311
  id: field.id,
305
- description: (field == null ? void 0 : field.mappingDescription) || DESCRIPTION_TEMPLATES.SYNC_RESPONSES_WHEN.replace("{integration}", integrationName).replace("{event}", ((_d2 = (_c2 = (_b2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _b2.events) == null ? void 0 : _c2.label) == null ? void 0 : _d2.toLowerCase()) || "").replace("{action}", transformToPastTense(((_g = (_f = (_e = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e.action) == null ? void 0 : _f.label) == null ? void 0 : _g.toLowerCase()) || "")),
312
+ 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()}`)}`,
306
313
  fields: field.fields,
307
314
  isEnabled: field.isEnabled,
308
315
  integrationName,
309
316
  handleDashboardPage,
310
317
  handleEditField,
311
- type: DASHBOARD_TYPES.MAPPING,
318
+ type: "MAPPING",
312
319
  toggleDashboardField,
313
320
  deleteFieldHandler
314
321
  }
@@ -331,8 +338,8 @@ const MultiAccountDashboard = ({
331
338
  ))) : /* @__PURE__ */ React__default.createElement(
332
339
  MultiAccountFallback,
333
340
  {
334
- title: TAB_LABELS.MAPPING,
335
- onClickHandler: () => handleConfigurationType(DASHBOARD_TYPES.MAPPING)
341
+ title: "Mapping",
342
+ onClickHandler: () => handleConfigurationType("MAPPING")
336
343
  }
337
344
  )
338
345
  )));
@@ -349,7 +356,7 @@ const MultiAccountFallback = ({
349
356
  alignItems: "center",
350
357
  css: { paddingTop: 182 }
351
358
  },
352
- /* @__PURE__ */ React__default.createElement(Heading, { size: "h5" }, `${title} Entries`),
359
+ /* @__PURE__ */ React__default.createElement(Heading, { size: "h5" }, `Zero ${title} Entries`),
353
360
  /* @__PURE__ */ React__default.createElement(
354
361
  Text,
355
362
  {
@@ -371,7 +378,7 @@ const MultiAccountFallback = ({
371
378
  variant: "outline",
372
379
  onClick: onClickHandler
373
380
  },
374
- `${BUTTON_LABELS.NEW_PREFIX} ${title}`
381
+ `New ${title}`
375
382
  )
376
383
  );
377
384
  };
@@ -398,7 +405,7 @@ const SingleAccountDashboard = ({
398
405
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
399
406
  fieldOptions,
400
407
  field,
401
- description: DESCRIPTION_TEMPLATES.TRIGGER_SURVEY_WHEN.replace("{article}", /^[aeiouAEIOU]$/.test(((_b2 = field == null ? void 0 : field.object) == null ? void 0 : _b2[0]) || "") ? "an" : "a").replace("{object}", ((_c2 = field == null ? void 0 : field.object) == null ? void 0 : _c2.toLowerCase()) || "").replace("{action}", ((_d2 = field == null ? void 0 : field.action) == null ? void 0 : _d2.toLowerCase()) || "").replace("{integration}", integrationName),
408
+ 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}`,
402
409
  key: field.id,
403
410
  integrationName,
404
411
  icon: /* @__PURE__ */ React__default.createElement(CursorIcon, { size: 32, color: "#56B0BB" }),
@@ -411,22 +418,22 @@ const SingleAccountDashboard = ({
411
418
  })) : null, (mappingFields == null ? void 0 : mappingFields.type) === "DYNAMIC_MAPPING" ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!((_a = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _a.length) ? /* @__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(
412
419
  (field) => {
413
420
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
414
- if ((field == null ? void 0 : field.type) === DASHBOARD_TYPES.MULTI_MAPPING) {
421
+ if ((field == null ? void 0 : field.type) === "MULTI_MAPPING") {
415
422
  return /* @__PURE__ */ React__default.createElement(
416
423
  DashboardItem,
417
424
  {
418
425
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
419
426
  onMappingEditHandler,
420
427
  icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
421
- heading: (field == null ? void 0 : field.mappingName) || DEFAULT_VALUES.MAPPING,
428
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
422
429
  id: field.id,
423
- description: (field == null ? void 0 : field.mappingDescription) || DESCRIPTION_TEMPLATES.SYNC_RESPONSES_WHEN.replace("{integration}", integrationName).replace("{event}", ((_d2 = (_c2 = (_b2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _b2.events) == null ? void 0 : _c2.label) == null ? void 0 : _d2.toLowerCase()) || "").replace("{action}", transformToPastTense(((_g2 = (_f2 = (_e2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e2.action) == null ? void 0 : _f2.label) == null ? void 0 : _g2.toLowerCase()) || "")),
430
+ 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()}`)}`,
424
431
  fields: field.fields,
425
432
  isEnabled: field.isEnabled,
426
433
  integrationName,
427
434
  handleDashboardPage,
428
435
  handleEditField,
429
- type: DASHBOARD_TYPES.MAPPING,
436
+ type: "MAPPING",
430
437
  toggleDashboardField,
431
438
  deleteFieldHandler
432
439
  }
@@ -449,7 +456,7 @@ const SingleAccountDashboard = ({
449
456
  );
450
457
  }
451
458
  }
452
- )) : null) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) && (mappingFields == null ? void 0 : mappingFields.type) === DASHBOARD_TYPES.MULTI_MAPPING ? /* @__PURE__ */ React__default.createElement(Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map(
459
+ )) : null) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, !!((_c = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _c.length) && (mappingFields == null ? void 0 : mappingFields.type) === "MULTI_MAPPING" ? /* @__PURE__ */ React__default.createElement(Box, { css: { marginTop: !(triggerFields == null ? void 0 : triggerFields.length) ? "$20" : "$8" } }, (_d = mappingFields == null ? void 0 : mappingFields.fields) == null ? void 0 : _d.map(
453
460
  (field) => {
454
461
  var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
455
462
  return /* @__PURE__ */ React__default.createElement(
@@ -458,21 +465,21 @@ const SingleAccountDashboard = ({
458
465
  isDraft: (_a2 = field == null ? void 0 : field.isDraft) != null ? _a2 : false,
459
466
  onMappingEditHandler,
460
467
  icon: /* @__PURE__ */ React__default.createElement(MappingIcon, { size: 32, color: "#56B0BB" }),
461
- heading: (field == null ? void 0 : field.mappingName) || DEFAULT_VALUES.MAPPING,
468
+ heading: (field == null ? void 0 : field.mappingName) || "Mapping",
462
469
  id: field.id,
463
- description: (field == null ? void 0 : field.mappingDescription) || DESCRIPTION_TEMPLATES.SYNC_RESPONSES_WHEN.replace("{integration}", integrationName).replace("{event}", ((_d2 = (_c2 = (_b2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _b2.events) == null ? void 0 : _c2.label) == null ? void 0 : _d2.toLowerCase()) || "").replace("{action}", transformToPastTense(((_g2 = (_f2 = (_e2 = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e2.action) == null ? void 0 : _f2.label) == null ? void 0 : _g2.toLowerCase()) || "")),
470
+ 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()}`)}`,
464
471
  fields: field.fields,
465
472
  isEnabled: field.isEnabled,
466
473
  integrationName,
467
474
  handleDashboardPage,
468
475
  handleEditField,
469
- type: DASHBOARD_TYPES.MAPPING,
476
+ type: "MAPPING",
470
477
  toggleDashboardField,
471
478
  deleteFieldHandler
472
479
  }
473
480
  );
474
481
  }
475
- )) : null, ((_e = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _e.type) === DASHBOARD_TYPES.SINGLE_MAPPING && !!((_g = (_f = mappingFields == null ? void 0 : mappingFields.mappedFields) == null ? void 0 : _f.fields) == null ? void 0 : _g.length) ? /* @__PURE__ */ React__default.createElement(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(
482
+ )) : null, ((_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__default.createElement(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(
476
483
  (field, index) => {
477
484
  return /* @__PURE__ */ React__default.createElement(
478
485
  SingleMappingDashboardItem,
@@ -519,14 +526,14 @@ const TriggerDasboardItem = ({
519
526
  const fieldLabel = (_b2 = fieldOptions.find(
520
527
  (options) => options.value === field2
521
528
  )) == null ? void 0 : _b2.label;
522
- return `${fieldLabel} ${formattedComparator === CONDITION_TEXT.NO_PREFERENCE ? CONDITION_TEXT.HAS_NO_PREFERENCE : formattedComparator} ${value}`;
529
+ return `${fieldLabel} ${formattedComparator === "NO_PREFERENCE" ? "has no preference" : formattedComparator} ${value}`;
523
530
  })) == null ? void 0 : _a2.join(
524
531
  ` <span style="color: #6A6A6A;font-weight: 600;">${filterGroup.condition.toLowerCase()}</span> `
525
532
  );
526
533
  }).join(
527
- `<br /> <span style="color: #6A6A6A;font-weight: 600;">${data.condition.toLowerCase() === "or" ? CONDITION_TEXT.OR_WHEN : CONDITION_TEXT.AND_WHEN}</span> `
534
+ `<br /> <span style="color: #6A6A6A;font-weight: 600;">${data.condition.toLowerCase() === "or" ? "Or" : "And"} When,</span> `
528
535
  );
529
- return `<p style="font-family: 'DM Sans'; font-size: 13.33px; font-weight: 400;line-height: 30px; color: #848484;"><span style="color: #6A6A6A;font-weight: 600;">${CONDITION_TEXT.WHEN}</span> ${filterConditions}</p>`;
536
+ return `<p style="font-family: 'DM Sans'; font-size: 13.33px; font-weight: 400;line-height: 30px; color: #848484;"><span style="color: #6A6A6A;font-weight: 600;">When</span> ${filterConditions}</p>`;
530
537
  };
531
538
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
532
539
  Flex,
@@ -561,7 +568,7 @@ const TriggerDasboardItem = ({
561
568
  onClick: () => setIsMappingDisplayed(!isMappingDisplayed)
562
569
  },
563
570
  isMappingDisplayed ? /* @__PURE__ */ React__default.createElement(ChevronDownIcon, { size: 40, color: "#848484" }) : /* @__PURE__ */ React__default.createElement(ChevronRightIcon, { size: 40, color: "#848484" }),
564
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, icon, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (_a = field == null ? void 0 : field.email) != null ? _a : DEFAULT_VALUES.TRIGGER), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, description != null ? description : DESCRIPTION_TEMPLATES.TRIGGER_SURVEY_GENERIC.replace("{integration}", integrationName))))
571
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, icon, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (_a = field == null ? void 0 : field.email) != null ? _a : "Trigger"), /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { color: "$neutral600" } }, description != null ? description : `Trigger survey when an event happens in ${integrationName}`)))
565
572
  ),
566
573
  /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$12" }, isDraft && /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$12" }, /* @__PURE__ */ React__default.createElement(Chip, { rounded: "full", size: "sm" }, /* @__PURE__ */ React__default.createElement(
567
574
  Box,
@@ -611,7 +618,7 @@ const TriggerDasboardItem = ({
611
618
  )), /* @__PURE__ */ React__default.createElement(
612
619
  DropdownMenuContent,
613
620
  {
614
- className: CSS_CLASSES.DM_SANS,
621
+ className: "dm-sans",
615
622
  css: {
616
623
  minWidth: 180,
617
624
  zIndex: 10,
@@ -631,14 +638,14 @@ const TriggerDasboardItem = ({
631
638
  },
632
639
  onClick: () => {
633
640
  handleEditField({
634
- type: DASHBOARD_TYPES.TRIGGER,
641
+ type: "TRIGGER",
635
642
  values: field,
636
643
  id: field.id
637
644
  });
638
- handleDashboardPage(false, DASHBOARD_TYPES.TRIGGER);
645
+ handleDashboardPage(false, "TRIGGER");
639
646
  }
640
647
  },
641
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.EDIT))
648
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Edit"))
642
649
  ),
643
650
  /* @__PURE__ */ React__default.createElement(
644
651
  DropdownMenuItem,
@@ -648,7 +655,7 @@ const TriggerDasboardItem = ({
648
655
  cursor: "pointer"
649
656
  }
650
657
  },
651
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.DELETE))
658
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Delete"))
652
659
  )
653
660
  )))
654
661
  ),
@@ -679,7 +686,7 @@ const TriggerDasboardItem = ({
679
686
  weight: "bold",
680
687
  css: { textTransform: "uppercase" }
681
688
  },
682
- SECTION_HEADINGS.CONDITION
689
+ "CONDITION"
683
690
  ),
684
691
  parse(transformDataToString(field.fields))
685
692
  ), /* @__PURE__ */ React__default.createElement(
@@ -695,9 +702,9 @@ const TriggerDasboardItem = ({
695
702
  ((_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__default.createElement(
696
703
  SingleMappingChipWrapper,
697
704
  {
698
- heading: ((_i = (_h = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _h.variables) == null ? void 0 : _i.length) > 1 ? SECTION_HEADINGS.PASSING_VARIABLES_MULTIPLE : SECTION_HEADINGS.PASSING_VARIABLES_SINGLE,
705
+ 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",
699
706
  fields: field.triggerDetails.variables,
700
- backgroundColor: CHIP_COLORS.VARIABLES
707
+ backgroundColor: "$positive100"
701
708
  }
702
709
  ) : null,
703
710
  /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
@@ -707,17 +714,17 @@ const TriggerDasboardItem = ({
707
714
  gap: "$6",
708
715
  css: { paddingBlock: "$8" }
709
716
  },
710
- /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold" }, SECTION_HEADINGS.SEND_SURVEY),
717
+ /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold" }, "SEND SURVEY"),
711
718
  /* @__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(
712
719
  EventComponent,
713
720
  {
714
- heading: FIELD_LABELS.SHARE_TYPE,
721
+ heading: "Share Type:",
715
722
  description: (_m = (_l = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _l.shareType) == null ? void 0 : _m.label
716
723
  }
717
724
  ) : null, ((_o = (_n = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _n.shareRecipient) == null ? void 0 : _o.value) ? /* @__PURE__ */ React__default.createElement(
718
725
  EventComponent,
719
726
  {
720
- heading: FIELD_LABELS.RECIPIENT,
727
+ heading: "Recipient:",
721
728
  hasBorder: true,
722
729
  description: (_q = (_p = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _p.shareRecipient) == null ? void 0 : _q.label
723
730
  }
@@ -725,7 +732,7 @@ const TriggerDasboardItem = ({
725
732
  EventComponent,
726
733
  {
727
734
  hasBorder: true,
728
- heading: FIELD_LABELS.SHARE_CHANNEL,
735
+ heading: "Share Channel:",
729
736
  description: (_u = (_t = field == null ? void 0 : field.triggerDetails) == null ? void 0 : _t.shareChannel) == null ? void 0 : _u.label
730
737
  }
731
738
  ) : null)
@@ -751,21 +758,21 @@ const TriggerDasboardItem = ({
751
758
  variant: "ghost",
752
759
  onClick: () => {
753
760
  handleEditField({
754
- type: DASHBOARD_TYPES.TRIGGER,
761
+ type: "TRIGGER",
755
762
  values: field,
756
763
  id: field.id
757
764
  });
758
- handleDashboardPage(false, DASHBOARD_TYPES.TRIGGER);
765
+ handleDashboardPage(false, "TRIGGER");
759
766
  }
760
767
  },
761
- BUTTON_LABELS.EDIT_TRIGGER
768
+ "Edit Trigger"
762
769
  )
763
770
  )
764
771
  ), isDeleteModalOpen && /* @__PURE__ */ React__default.createElement(
765
772
  ConfirmationModal,
766
773
  {
767
- title: MODAL_TITLES.DELETE_TRIGGER,
768
- description: MODAL_MESSAGES.DELETE_TRIGGER_CONFIRMATION,
774
+ name: "Delete Trigger?",
775
+ description: `Are you sure you want to delete the trigger? This action cannot be undone.`,
769
776
  onConfirm: () => deleteFieldHandler == null ? void 0 : deleteFieldHandler(field.id),
770
777
  onCancel: () => setIsDeleteModalOpen(false)
771
778
  }
@@ -820,11 +827,11 @@ const SingleMappingDashboardItem = ({
820
827
  onClick: () => setIsMappingDisplayed(!isMappingDisplayed)
821
828
  },
822
829
  isMappingDisplayed ? /* @__PURE__ */ React__default.createElement(ChevronDownIcon, { size: 40, color: "#848484" }) : /* @__PURE__ */ React__default.createElement(ChevronRightIcon, { size: 40, color: "#848484" }),
823
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? icon : null, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (field == null ? void 0 : field.mappingName) ? field == null ? void 0 : field.mappingName : (_d = (_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) != null ? _d : DEFAULT_VALUES.MAPPING), (field == null ? void 0 : field.mappingDescription) && /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { "& span": {
830
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$4" }, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0)() ? icon : null, /* @__PURE__ */ React__default.createElement(Flex, { gap: "$1", flexDirection: "column" }, /* @__PURE__ */ React__default.createElement(Text, { size: "md", weight: "bold" }, (field == null ? void 0 : field.mappingName) ? field == null ? void 0 : field.mappingName : (_d = (_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) != null ? _d : "Mapping"), (field == null ? void 0 : field.mappingDescription) && /* @__PURE__ */ React__default.createElement(Text, { size: "sm", css: { "& span": {
824
831
  fontFamily: "'DM Sans', sans-serif !important"
825
- }, color: "$neutral600", "& b": { fontWeight: "$6 !important", fontFamily: "'DM Sans', sans-serif !important" } }, dangerouslySetInnerHTML: { __html: (field == null ? void 0 : field.mappingDescription) ? field == null ? void 0 : field.mappingDescription : DESCRIPTION_TEMPLATES.SYNC_RESPONSES_WHEN.replace("{integration}", integrationName).replace("{event}", ((_g = (_f = (_e = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e.events) == null ? void 0 : _f.label) == null ? void 0 : _g.toLowerCase()) || "").replace("{action}", transformToPastTense(((_j = (_i = (_h = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _h.action) == null ? void 0 : _i.label) == null ? void 0 : _j.toLowerCase()) || "")) } })))
832
+ }, color: "$neutral600", "& b": { fontWeight: "$6 !important", fontFamily: "'DM Sans', sans-serif !important" } }, dangerouslySetInnerHTML: { __html: (field == null ? void 0 : field.mappingDescription) ? field == null ? void 0 : field.mappingDescription : `Sync survey responses to ${integrationName} when ${(_g = (_f = (_e = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _e.events) == null ? void 0 : _f.label) == null ? void 0 : _g.toLowerCase()} is ${trasformToPastTense(`${(_j = (_i = (_h = field == null ? void 0 : field.mappingConfiguration) == null ? void 0 : _h.action) == null ? void 0 : _i.label) == null ? void 0 : _j.toLowerCase()}`)}` } })))
826
833
  ),
827
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$12" }, syncMapping ? /* @__PURE__ */ React__default.createElement(Tooltip, { content: BUTTON_LABELS.SYNC, className: CSS_CLASSES.DM_SANS }, /* @__PURE__ */ React__default.createElement(
834
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$12" }, syncMapping ? /* @__PURE__ */ React__default.createElement(Tooltip, { content: "Sync", className: "dm-sans" }, /* @__PURE__ */ React__default.createElement(
828
835
  Button,
829
836
  {
830
837
  variant: "ghost",
@@ -839,7 +846,7 @@ const SingleMappingDashboardItem = ({
839
846
  /* @__PURE__ */ React__default.createElement(
840
847
  Flex,
841
848
  {
842
- className: `${CSS_CLASSES.ROTATING_DIV} ${isSyncing === field.id ? CSS_CLASSES.ROTATE : ""}`,
849
+ className: `rotating-div ${isSyncing === field.id ? "rotate" : ""}`,
843
850
  justifyContent: "center",
844
851
  alignItems: "center",
845
852
  onClick: async () => {
@@ -847,10 +854,10 @@ const SingleMappingDashboardItem = ({
847
854
  setTimeout(async () => {
848
855
  await (syncMapping == null ? void 0 : syncMapping(field.id));
849
856
  setIsSyncing(null);
850
- }, ANIMATION_DURATIONS.SYNC);
857
+ }, 2e3);
851
858
  }
852
859
  },
853
- /* @__PURE__ */ React__default.createElement(SyncIcon, null)
860
+ /* @__PURE__ */ React__default.createElement(Sync, null)
854
861
  )
855
862
  )) : null, (() => (field == null ? void 0 : field.isEnabled) !== null && (field == null ? void 0 : field.isEnabled) !== void 0 && syncMapping)() ? /* @__PURE__ */ React__default.createElement(
856
863
  Box,
@@ -868,7 +875,7 @@ const SingleMappingDashboardItem = ({
868
875
  checked: field.isEnabled,
869
876
  onChange: (value) => toggleDashboardField == null ? void 0 : toggleDashboardField(field.id, value)
870
877
  }
871
- ) : null, /* @__PURE__ */ React__default.createElement(DropdownMenu, null, /* @__PURE__ */ React__default.createElement(Tooltip, { content: BUTTON_LABELS.MORE, className: CSS_CLASSES.DM_SANS }, /* @__PURE__ */ React__default.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement(
878
+ ) : null, /* @__PURE__ */ React__default.createElement(DropdownMenu, null, /* @__PURE__ */ React__default.createElement(Tooltip, { content: "More", className: "dm-sans" }, /* @__PURE__ */ React__default.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React__default.createElement(
872
879
  IconButton,
873
880
  {
874
881
  variant: "ghost",
@@ -879,7 +886,7 @@ const SingleMappingDashboardItem = ({
879
886
  ))), /* @__PURE__ */ React__default.createElement(
880
887
  DropdownMenuContent,
881
888
  {
882
- className: CSS_CLASSES.DM_SANS,
889
+ className: "dm-sans",
883
890
  css: {
884
891
  minWidth: 180,
885
892
  zIndex: 10,
@@ -900,14 +907,14 @@ const SingleMappingDashboardItem = ({
900
907
  onClick: () => {
901
908
  onMappingEditHandler(field.id);
902
909
  handleEditField({
903
- type: DASHBOARD_TYPES.MAPPING,
910
+ type: "MAPPING",
904
911
  values: field,
905
912
  id: field.id
906
913
  });
907
- handleDashboardPage(false, DASHBOARD_TYPES.MAPPING);
914
+ handleDashboardPage(false, "MAPPING");
908
915
  }
909
916
  },
910
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.EDIT))
917
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Edit"))
911
918
  ),
912
919
  /* @__PURE__ */ React__default.createElement(
913
920
  DropdownMenuItem,
@@ -917,7 +924,7 @@ const SingleMappingDashboardItem = ({
917
924
  cursor: "pointer"
918
925
  }
919
926
  },
920
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.DELETE))
927
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Delete"))
921
928
  )
922
929
  )))
923
930
  ),
@@ -937,9 +944,9 @@ const SingleMappingDashboardItem = ({
937
944
  !!((_n = (_m = (_l = (_k = field == null ? void 0 : field.mappedFields) == null ? void 0 : _k.questions) == null ? void 0 : _l.filter) == null ? void 0 : _m.call(_l, (question) => question.isEnabled)) == null ? void 0 : _n.length) ? /* @__PURE__ */ React__default.createElement(
938
945
  SingleMappingChipWrapper,
939
946
  {
940
- heading: SECTION_HEADINGS.QUESTIONS,
947
+ heading: "Questions",
941
948
  fields: (_q = (_p = (_o = field == null ? void 0 : field.mappedFields) == null ? void 0 : _o.questions) == null ? void 0 : _p.filter) == null ? void 0 : _q.call(_p, (question) => question.isEnabled),
942
- backgroundColor: CHIP_COLORS.QUESTIONS
949
+ backgroundColor: "#E5F2FF"
943
950
  }
944
951
  ) : null,
945
952
  !!((_u = (_t = (_s = (_r = field == null ? void 0 : field.mappedFields) == null ? void 0 : _r.derivedQuestions) == null ? void 0 : _s.filter) == null ? void 0 : _t.call(
@@ -948,45 +955,45 @@ const SingleMappingDashboardItem = ({
948
955
  )) == null ? void 0 : _u.length) ? /* @__PURE__ */ React__default.createElement(
949
956
  SingleMappingChipWrapper,
950
957
  {
951
- heading: SECTION_HEADINGS.ENRICH,
958
+ heading: "Enrich",
952
959
  fields: (_x = (_w = (_v = field == null ? void 0 : field.mappedFields) == null ? void 0 : _v.derivedQuestions) == null ? void 0 : _w.filter) == null ? void 0 : _x.call(
953
960
  _w,
954
961
  (derivedQuestion) => derivedQuestion.isEnabled
955
962
  ),
956
- backgroundColor: CHIP_COLORS.QUESTIONS
963
+ backgroundColor: "#E5F2FF"
957
964
  }
958
965
  ) : null,
959
966
  !!((_B = (_A = (_z = (_y = field == null ? void 0 : field.mappedFields) == null ? void 0 : _y.variables) == null ? void 0 : _z.filter) == null ? void 0 : _A.call(_z, (variable) => variable.isEnabled)) == null ? void 0 : _B.length) ? /* @__PURE__ */ React__default.createElement(
960
967
  SingleMappingChipWrapper,
961
968
  {
962
- heading: SECTION_HEADINGS.VARIABLES,
969
+ heading: "Variables",
963
970
  fields: (_E = (_D = (_C = field == null ? void 0 : field.mappedFields) == null ? void 0 : _C.variables) == null ? void 0 : _D.filter) == null ? void 0 : _E.call(_D, (variable) => variable.isEnabled),
964
- backgroundColor: CHIP_COLORS.VARIABLES
971
+ backgroundColor: "$positive100"
965
972
  }
966
973
  ) : null,
967
974
  !!((_I = (_H = (_G = (_F = field == null ? void 0 : field.mappedFields) == null ? void 0 : _F.contactProperties) == null ? void 0 : _G.filter) == null ? void 0 : _H.call(_G, (property) => property.isEnabled)) == null ? void 0 : _I.length) ? /* @__PURE__ */ React__default.createElement(
968
975
  SingleMappingChipWrapper,
969
976
  {
970
- heading: SECTION_HEADINGS.CONTACTS,
977
+ heading: "Contacts",
971
978
  fields: (_L = (_K = (_J = field == null ? void 0 : field.mappedFields) == null ? void 0 : _J.contactProperties) == null ? void 0 : _K.filter) == null ? void 0 : _L.call(_K, (property) => property.isEnabled),
972
- backgroundColor: CHIP_COLORS.CONTACTS
979
+ backgroundColor: "$negative100"
973
980
  }
974
981
  ) : null,
975
982
  !!((_P = (_O = (_N = (_M = field == null ? void 0 : field.mappedFields) == null ? void 0 : _M.expressions) == null ? void 0 : _N.filter) == null ? void 0 : _O.call(_N, (expression) => expression.isEnabled)) == null ? void 0 : _P.length) ? /* @__PURE__ */ React__default.createElement(
976
983
  SingleMappingChipWrapper,
977
984
  {
978
- heading: SECTION_HEADINGS.EXPRESSION,
979
- backgroundColor: CHIP_COLORS.EXPRESSIONS,
985
+ heading: "Expression",
986
+ backgroundColor: "$neutral100",
980
987
  fields: (_S = (_R = (_Q = field == null ? void 0 : field.mappedFields) == null ? void 0 : _Q.expressions) == null ? void 0 : _R.filter) == null ? void 0 : _S.call(_R, (expression) => expression.isEnabled)
981
988
  }
982
989
  ) : null,
983
990
  !!((_W = (_V = (_U = (_T = field == null ? void 0 : field.mappedFields) == null ? void 0 : _T.property) == null ? void 0 : _U.filter) == null ? void 0 : _V.call(_U, (property) => property.isEnabled)) == null ? void 0 : _W.length) ? /* @__PURE__ */ React__default.createElement(
984
991
  SingleMappingChipWrapper,
985
992
  {
986
- heading: SECTION_HEADINGS.PROPERTY,
993
+ heading: "Property",
987
994
  hideBorder: true,
988
995
  fields: (_Z = (_Y = (_X = field == null ? void 0 : field.mappedFields) == null ? void 0 : _X.property) == null ? void 0 : _Y.filter) == null ? void 0 : _Z.call(_Y, (property) => property.isEnabled),
989
- backgroundColor: CHIP_COLORS.PROPERTY
996
+ backgroundColor: "rgba(74, 156, 166, 0.15)"
990
997
  }
991
998
  ) : null
992
999
  ), isMappingDisplayed && /* @__PURE__ */ React__default.createElement(
@@ -1010,21 +1017,21 @@ const SingleMappingDashboardItem = ({
1010
1017
  onClick: () => {
1011
1018
  onMappingEditHandler(field.id);
1012
1019
  handleEditField({
1013
- type: DASHBOARD_TYPES.SINGLE_MAPPING,
1020
+ type: "SINGLE_MAPPING",
1014
1021
  values: field,
1015
1022
  id: field.id
1016
1023
  });
1017
- handleDashboardPage(false, DASHBOARD_TYPES.MAPPING);
1024
+ handleDashboardPage(false, "MAPPING");
1018
1025
  }
1019
1026
  },
1020
- BUTTON_LABELS.EDIT_MAPPING
1027
+ "Edit Mapping"
1021
1028
  )
1022
1029
  )) : null
1023
1030
  ), isDeleteModalOpen && /* @__PURE__ */ React__default.createElement(
1024
1031
  ConfirmationModal,
1025
1032
  {
1026
- title: MODAL_TITLES.DELETE_MAPPING,
1027
- description: MODAL_MESSAGES.DELETE_MAPPING_CONFIRMATION,
1033
+ name: "Delete Mapping?",
1034
+ description: `Are you sure you want to delete the mapping? This action cannot be undone.`,
1028
1035
  onConfirm: () => deleteFieldHandler == null ? void 0 : deleteFieldHandler(field.id),
1029
1036
  onCancel: () => setIsDeleteModalOpen(false)
1030
1037
  }
@@ -1070,23 +1077,23 @@ const SingleMappingEventWrapper = ({
1070
1077
  }) => {
1071
1078
  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;
1072
1079
  const hasEventSection = !!((_c = (_b = (_a = field == null ? void 0 : field.configurationFields) == null ? void 0 : _a.account) == null ? void 0 : _b.value) == null ? void 0 : _c.label) || !!field.action || !!field.exisitingSheet || !!(field == null ? void 0 : field.configurationFields) || !!field.object && isTrigger;
1073
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, hasEventSection ? /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$6" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { textTransform: "uppercase" } }, SECTION_HEADINGS.EVENT_UPPERCASE), /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, !!((_f = (_e = (_d = field == null ? void 0 : field.configurationFields) == null ? void 0 : _d.account) == null ? void 0 : _e.value) == null ? void 0 : _f.label) ? /* @__PURE__ */ React__default.createElement(
1080
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, hasEventSection ? /* @__PURE__ */ React__default.createElement(Flex, { flexDirection: "column", gap: "$6" }, /* @__PURE__ */ React__default.createElement(Text, { size: "sm", weight: "bold", css: { textTransform: "uppercase" } }, "Event"), /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center" }, !!((_f = (_e = (_d = field == null ? void 0 : field.configurationFields) == null ? void 0 : _d.account) == null ? void 0 : _e.value) == null ? void 0 : _f.label) ? /* @__PURE__ */ React__default.createElement(
1074
1081
  EventComponent,
1075
1082
  {
1076
- heading: FIELD_LABELS.ACCOUNT,
1083
+ heading: "Account:",
1077
1084
  description: (_i = (_h = (_g = field == null ? void 0 : field.configurationFields) == null ? void 0 : _g.account) == null ? void 0 : _h.value) == null ? void 0 : _i.label
1078
1085
  }
1079
1086
  ) : null, !!((_l = (_k = (_j = field == null ? void 0 : field.configurationFields) == null ? void 0 : _j.object) == null ? void 0 : _k.value) == null ? void 0 : _l.label) ? /* @__PURE__ */ React__default.createElement(
1080
1087
  EventComponent,
1081
1088
  {
1082
- heading: FIELD_LABELS.OBJECT,
1089
+ heading: "Object:",
1083
1090
  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())
1084
1091
  }
1085
1092
  ) : null, !!((_r = (_q = field == null ? void 0 : field.configurationFields) == null ? void 0 : _q.action) == null ? void 0 : _r.hasAction) ? /* @__PURE__ */ React__default.createElement(
1086
1093
  EventComponent,
1087
1094
  {
1088
1095
  hasBorder: true,
1089
- heading: FIELD_LABELS.ACTION,
1096
+ heading: "Action:",
1090
1097
  description: (_u = (_t = (_s = field == null ? void 0 : field.configurationFields) == null ? void 0 : _s.action) == null ? void 0 : _t.value) == null ? void 0 : _u.label
1091
1098
  }
1092
1099
  ) : null, !!((_w = (_v = field == null ? void 0 : field.configurationFields) == null ? void 0 : _v.spreadsheet) == null ? void 0 : _w.value) ? /* @__PURE__ */ React__default.createElement(
@@ -1094,7 +1101,7 @@ const SingleMappingEventWrapper = ({
1094
1101
  {
1095
1102
  hasLink: (_x = field == null ? void 0 : field.configurationFields) == null ? void 0 : _x.sheetURL,
1096
1103
  hasBorder: true,
1097
- heading: FIELD_LABELS.SHEET,
1104
+ heading: "Sheet:",
1098
1105
  description: typeof ((_y = field == null ? void 0 : field.configurationFields) == null ? void 0 : _y.spreadsheet) === "object" ? (_B = (_A = (_z = field == null ? void 0 : field.configurationFields) == null ? void 0 : _z.spreadsheet) == null ? void 0 : _A.value) == null ? void 0 : _B.label : (_D = (_C = field == null ? void 0 : field.configurationFields) == null ? void 0 : _C.spreadsheet) == null ? void 0 : _D.value
1099
1106
  }
1100
1107
  ) : null, !!((_E = field == null ? void 0 : field.configurationFields) == null ? void 0 : _E.reference) ? /* @__PURE__ */ React__default.createElement(
@@ -1124,7 +1131,7 @@ const SingleMappingChipWrapper = ({
1124
1131
  backgroundColor
1125
1132
  }) => {
1126
1133
  const modifiedFields = fields.filter(
1127
- (field) => field.id !== ID_CONSTANTS.ALL
1134
+ (field) => field.id !== "ALL"
1128
1135
  );
1129
1136
  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(
1130
1137
  Flex,
@@ -1148,10 +1155,10 @@ const SingleMappingChipWrapper = ({
1148
1155
  Tooltip,
1149
1156
  {
1150
1157
  delayDuration: 300,
1151
- content: (name == null ? void 0 : name.length) > MAX_DIMENSIONS.CHIP_TEXT_LENGTH ? name : "",
1158
+ content: (name == null ? void 0 : name.length) > 52 ? name : "",
1152
1159
  size: "md",
1153
1160
  sideOffset: 4,
1154
- className: CSS_CLASSES.DM_SANS
1161
+ className: "dm-sans"
1155
1162
  },
1156
1163
  /* @__PURE__ */ React__default.createElement(
1157
1164
  Chip,
@@ -1165,7 +1172,7 @@ const SingleMappingChipWrapper = ({
1165
1172
  textAlign: "center !important",
1166
1173
  alignContent: "center !important",
1167
1174
  display: "block",
1168
- maxWidth: `${MAX_DIMENSIONS.CHIP_TEXT_WIDTH}px`,
1175
+ maxWidth: "230px",
1169
1176
  overflow: "hidden",
1170
1177
  fontFamily: "'Roboto Mono', monospace !important",
1171
1178
  fontWeight: "$4 !important",
@@ -1174,7 +1181,7 @@ const SingleMappingChipWrapper = ({
1174
1181
  }
1175
1182
  }
1176
1183
  },
1177
- CHIP_PREFIX + name
1184
+ "$" + name
1178
1185
  )
1179
1186
  );
1180
1187
  })
@@ -1205,7 +1212,7 @@ const DashboardItem = ({
1205
1212
  const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
1206
1213
  const getDefaultFieldValue = (defaultValue) => {
1207
1214
  var _a;
1208
- let field = DEFAULT_VALUES.EMPTY;
1215
+ let field = "--";
1209
1216
  switch (defaultValue == null ? void 0 : defaultValue.type) {
1210
1217
  case "DATE_TIME": {
1211
1218
  field = defaultValue == null ? void 0 : defaultValue.value;
@@ -1216,7 +1223,7 @@ const DashboardItem = ({
1216
1223
  break;
1217
1224
  }
1218
1225
  default: {
1219
- field = ((_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label) || DEFAULT_VALUES.EMPTY;
1226
+ field = ((_a = defaultValue == null ? void 0 : defaultValue.value) == null ? void 0 : _a.label) || "--";
1220
1227
  break;
1221
1228
  }
1222
1229
  }
@@ -1276,7 +1283,7 @@ const DashboardItem = ({
1276
1283
  color: "$neutral800"
1277
1284
  }
1278
1285
  },
1279
- STATUS_LABELS.DRAFT
1286
+ "DRAFT"
1280
1287
  )), /* @__PURE__ */ React__default.createElement(
1281
1288
  Box,
1282
1289
  {
@@ -1304,7 +1311,7 @@ const DashboardItem = ({
1304
1311
  )), /* @__PURE__ */ React__default.createElement(
1305
1312
  DropdownMenuContent,
1306
1313
  {
1307
- className: CSS_CLASSES.DM_SANS,
1314
+ className: "dm-sans",
1308
1315
  css: {
1309
1316
  minWidth: 180,
1310
1317
  zIndex: 10,
@@ -1332,7 +1339,7 @@ const DashboardItem = ({
1332
1339
  handleDashboardPage(false, type);
1333
1340
  }
1334
1341
  },
1335
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.EDIT))
1342
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(PencilIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Edit"))
1336
1343
  ),
1337
1344
  /* @__PURE__ */ React__default.createElement(
1338
1345
  DropdownMenuItem,
@@ -1342,7 +1349,7 @@ const DashboardItem = ({
1342
1349
  cursor: "pointer"
1343
1350
  }
1344
1351
  },
1345
- /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, BUTTON_LABELS.DELETE))
1352
+ /* @__PURE__ */ React__default.createElement(Flex, { alignItems: "center", gap: "$2" }, /* @__PURE__ */ React__default.createElement(DeleteIcon, { color: "#6A6A6A", size: 20 }), /* @__PURE__ */ React__default.createElement(Text, { size: "sm" }, "Delete"))
1346
1353
  )
1347
1354
  )))
1348
1355
  ),
@@ -1358,7 +1365,7 @@ const DashboardItem = ({
1358
1365
  {
1359
1366
  css: {
1360
1367
  borderInline: "$borderWidths$xs solid $black400",
1361
- maxHeight: MAX_DIMENSIONS.TABLE_HEIGHT,
1368
+ maxHeight: 432,
1362
1369
  height: "100%",
1363
1370
  position: "relative",
1364
1371
  overflow: "auto"
@@ -1382,10 +1389,10 @@ const DashboardItem = ({
1382
1389
  zIndex: 10
1383
1390
  }
1384
1391
  },
1385
- /* @__PURE__ */ React__default.createElement(Th, { css: { paddingLeft: "$38 !important" } }, TABLE_HEADERS.TYPE),
1386
- /* @__PURE__ */ React__default.createElement(Th, null, TABLE_HEADERS.SURVEYSPARROW_FIELD),
1387
- /* @__PURE__ */ React__default.createElement(Th, null, TABLE_HEADERS.INTEGRATION_FIELD_TEMPLATE.replace("{integration}", integrationName)),
1388
- /* @__PURE__ */ React__default.createElement(Th, { css: { paddingRight: "$20 !important" } }, TABLE_HEADERS.DEFAULT_VALUE)
1392
+ /* @__PURE__ */ React__default.createElement(Th, { css: { paddingLeft: "$38 !important" } }, "Type"),
1393
+ /* @__PURE__ */ React__default.createElement(Th, null, "SurveySparrow Field"),
1394
+ /* @__PURE__ */ React__default.createElement(Th, null, `${integrationName} Field`),
1395
+ /* @__PURE__ */ React__default.createElement(Th, { css: { paddingRight: "$20 !important" } }, "Default Value")
1389
1396
  ), /* @__PURE__ */ React__default.createElement(
1390
1397
  Tbody,
1391
1398
  {
@@ -1422,10 +1429,10 @@ const DashboardItem = ({
1422
1429
  }
1423
1430
  }
1424
1431
  },
1425
- /* @__PURE__ */ React__default.createElement(Td, null, (_b = (_a = field.mappedType) == null ? void 0 : _a.label) != null ? _b : DEFAULT_VALUES.EMPTY),
1426
- /* @__PURE__ */ React__default.createElement(Td, null, (_d = (_c = field.surveySparrowField) == null ? void 0 : _c.label) != null ? _d : DEFAULT_VALUES.EMPTY),
1427
- /* @__PURE__ */ React__default.createElement(Td, null, (_f = (_e = field.integrationField) == null ? void 0 : _e.label) != null ? _f : DEFAULT_VALUES.EMPTY),
1428
- /* @__PURE__ */ React__default.createElement(Td, null, (_g = getDefaultFieldValue(field.defaultValue)) != null ? _g : DEFAULT_VALUES.EMPTY)
1432
+ /* @__PURE__ */ React__default.createElement(Td, null, (_b = (_a = field.mappedType) == null ? void 0 : _a.label) != null ? _b : "--"),
1433
+ /* @__PURE__ */ React__default.createElement(Td, null, (_d = (_c = field.surveySparrowField) == null ? void 0 : _c.label) != null ? _d : "--"),
1434
+ /* @__PURE__ */ React__default.createElement(Td, null, (_f = (_e = field.integrationField) == null ? void 0 : _e.label) != null ? _f : "--"),
1435
+ /* @__PURE__ */ React__default.createElement(Td, null, (_g = getDefaultFieldValue(field.defaultValue)) != null ? _g : "--")
1429
1436
  );
1430
1437
  })
1431
1438
  )) : null
@@ -1457,15 +1464,15 @@ const DashboardItem = ({
1457
1464
  color: "primary",
1458
1465
  variant: "ghost"
1459
1466
  },
1460
- `${BUTTON_LABELS.EDIT} ${heading}`
1467
+ `Edit ${heading}`
1461
1468
  )
1462
1469
  )
1463
1470
  )
1464
1471
  ), isDeleteModalOpen && /* @__PURE__ */ React__default.createElement(
1465
1472
  ConfirmationModal,
1466
1473
  {
1467
- title: MODAL_TITLES.DELETE_MAPPING,
1468
- description: MODAL_MESSAGES.DELETE_MAPPING_CONFIRMATION,
1474
+ name: "Delete Mapping?",
1475
+ description: `Are you sure you want to delete the mapping? This action cannot be undone.`,
1469
1476
  onConfirm: () => {
1470
1477
  deleteFieldHandler(id);
1471
1478
  setIsDeleteModalOpen(false);
@@ -1490,7 +1497,7 @@ const DropdownItem = ({
1490
1497
  content: isDisabled ? toolTipContent : "",
1491
1498
  css: {
1492
1499
  zIndex: "99999999",
1493
- minWidth: `${MAX_DIMENSIONS.TOOLTIP_TEXT_WIDTH}px`,
1500
+ minWidth: "280px",
1494
1501
  textAlign: "center"
1495
1502
  }
1496
1503
  },