@useinsider/guido 1.0.3-beta.d6f4719 → 1.0.3-beta.d8a9e56

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 (236) hide show
  1. package/README.md +0 -126
  2. package/dist/{src/@types → @types}/generic.d.ts +0 -20
  3. package/dist/{src/components → components}/Guido.vue.d.ts +2 -2
  4. package/dist/components/Guido.vue.js +7 -7
  5. package/dist/components/Guido.vue2.js +68 -74
  6. package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
  7. package/dist/components/organisms/header/LeftSlot.vue2.js +15 -16
  8. package/dist/components/organisms/header/RightSlot.vue.js +5 -5
  9. package/dist/components/organisms/header/RightSlot.vue2.js +19 -20
  10. package/dist/{src/components → components}/wrappers/WpDrawer.vue.d.ts +4 -6
  11. package/dist/components/wrappers/WpDrawer.vue.js +4 -6
  12. package/dist/{src/composables → composables}/usePartner.d.ts +0 -1
  13. package/dist/composables/usePartner.js +5 -9
  14. package/dist/composables/useStripo.js +42 -40
  15. package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
  16. package/dist/config/migrator/index.d.ts +1 -0
  17. package/dist/config/migrator/index.js +6 -7
  18. package/dist/enums/defaults.js +7 -15
  19. package/dist/enums/unsubscribe.d.ts +15 -0
  20. package/dist/enums/unsubscribe.js +6 -43
  21. package/dist/extensions/Blocks/Checkbox/control.js +53 -55
  22. package/dist/extensions/Blocks/RadioButton/control.js +42 -44
  23. package/dist/extensions/Blocks/RadioButton/template.js +6 -6
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +71 -83
  26. package/dist/{src/stores → stores}/editor.d.ts +0 -21
  27. package/dist/stores/editor.js +1 -2
  28. package/dist/stores/unsubscribe.d.ts +8 -0
  29. package/dist/stores/unsubscribe.js +6 -126
  30. package/dist/{src/utils → utils}/genericUtil.d.ts +0 -1
  31. package/dist/utils/genericUtil.js +7 -8
  32. package/dist/utils/templatePreparation.js +16 -17
  33. package/package.json +2 -7
  34. package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
  35. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
  36. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
  37. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
  38. package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
  39. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
  40. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
  41. package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
  42. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
  43. package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
  44. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
  45. package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
  46. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
  47. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
  48. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
  49. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
  50. package/dist/composables/useBlocksConfig.js +0 -58
  51. package/dist/config/migrator/unsubscribeMigrator.js +0 -124
  52. package/dist/enums/extensions/recommendationBlock.js +0 -80
  53. package/dist/extensions/Blocks/Recommendation/block.js +0 -27
  54. package/dist/extensions/Blocks/Recommendation/control.js +0 -277
  55. package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
  56. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
  57. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
  58. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
  59. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
  60. package/dist/extensions/Blocks/Recommendation/template.js +0 -200
  61. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
  62. package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
  63. package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
  64. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
  65. package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
  66. package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
  67. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
  68. package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
  69. package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
  70. package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
  71. package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
  72. package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
  73. package/dist/extensions/Blocks/common-control.js +0 -102
  74. package/dist/package.json.js +0 -7
  75. package/dist/services/recommendationApi.js +0 -43
  76. package/dist/services/unsubscribeApi.js +0 -16
  77. package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
  78. package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
  79. package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
  80. package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
  81. package/dist/src/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
  82. package/dist/src/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
  83. package/dist/src/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
  84. package/dist/src/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
  85. package/dist/src/composables/useBlocksConfig.d.ts +0 -11
  86. package/dist/src/config/migrator/index.d.ts +0 -1
  87. package/dist/src/config/migrator/unsubscribeMigrator.d.ts +0 -1
  88. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
  89. package/dist/src/enums/unsubscribe.d.ts +0 -38
  90. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -10
  91. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -29
  92. package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
  93. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
  94. package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
  95. package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
  96. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
  97. package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
  98. package/dist/src/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
  99. package/dist/src/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
  100. package/dist/src/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
  101. package/dist/src/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
  102. package/dist/src/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
  103. package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
  104. package/dist/src/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
  105. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  106. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  107. package/dist/src/extensions/Blocks/common-control.d.ts +0 -66
  108. package/dist/src/extensions/DynamicContent/extension.d.ts +0 -2
  109. package/dist/src/mock/api/recommendation.d.ts +0 -2
  110. package/dist/src/services/recommendationApi.d.ts +0 -6
  111. package/dist/src/services/unsubscribeApi.d.ts +0 -4
  112. package/dist/src/stores/config.d.ts +0 -100
  113. package/dist/src/stores/unsubscribe.d.ts +0 -256
  114. package/dist/stores/config.js +0 -17
  115. package/dist/{src/@types → @types}/events.d.ts +0 -0
  116. package/dist/{src/@types → @types}/save-as-template.d.ts +0 -0
  117. package/dist/{src/App.vue.d.ts → App.vue.d.ts} +0 -0
  118. package/dist/{src/components → components}/organisms/LoadingWrapper.vue.d.ts +0 -0
  119. package/dist/{src/components → components}/organisms/base/Toaster.vue.d.ts +0 -0
  120. package/dist/{src/components → components}/organisms/email-preview/PreviewContainer.vue.d.ts +0 -0
  121. package/dist/{src/components → components}/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -0
  122. package/dist/{src/components → components}/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -0
  123. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -0
  124. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -0
  125. package/dist/{src/components → components}/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -0
  126. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -0
  127. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -0
  128. package/dist/{src/components → components}/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -0
  129. package/dist/{src/components → components}/organisms/header/HeaderWrapper.vue.d.ts +0 -0
  130. package/dist/{src/components → components}/organisms/header/LeftSlot.vue.d.ts +0 -0
  131. package/dist/{src/components → components}/organisms/header/MiddleSlot.vue.d.ts +0 -0
  132. package/dist/{src/components → components}/organisms/header/RightSlot.vue.d.ts +0 -0
  133. package/dist/{src/components → components}/organisms/header/ViewOptions.vue.d.ts +0 -0
  134. package/dist/{src/components → components}/organisms/header/version-history/RestoreButton.vue.d.ts +0 -0
  135. package/dist/{src/components → components}/organisms/header/version-history/VersionHistory.vue.d.ts +0 -0
  136. package/dist/{src/components → components}/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -0
  137. package/dist/{src/components → components}/organisms/header/version-history/ViewOptions.vue.d.ts +0 -0
  138. package/dist/{src/components → components}/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -0
  139. package/dist/{src/components → components}/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -0
  140. package/dist/{src/components → components}/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -0
  141. package/dist/{src/components → components}/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -0
  142. package/dist/{src/components → components}/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -0
  143. package/dist/{src/components → components}/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -0
  144. package/dist/{src/components → components}/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +0 -0
  145. package/dist/{src/components → components}/wrappers/WpModal.vue.d.ts +1 -1
  146. /package/dist/{src/composables → composables}/useActionsApi.d.ts +0 -0
  147. /package/dist/{src/composables → composables}/useApiExample.d.ts +0 -0
  148. /package/dist/{src/composables → composables}/useCodeEditorApi.d.ts +0 -0
  149. /package/dist/{src/composables → composables}/useConfig.d.ts +0 -0
  150. /package/dist/{src/composables → composables}/useCustomInterfaceAppearance.d.ts +0 -0
  151. /package/dist/{src/composables → composables}/useDebounce.d.ts +0 -0
  152. /package/dist/{src/composables → composables}/useExport.d.ts +0 -0
  153. /package/dist/{src/composables → composables}/useGuidoActions.d.ts +0 -0
  154. /package/dist/{src/composables → composables}/useHtmlCompiler.d.ts +0 -0
  155. /package/dist/{src/composables → composables}/useHtmlValidator.d.ts +0 -0
  156. /package/dist/{src/composables → composables}/useHttp.d.ts +0 -0
  157. /package/dist/{src/composables → composables}/usePreviewMode.d.ts +0 -0
  158. /package/dist/{src/composables → composables}/useProvideInject.d.ts +0 -0
  159. /package/dist/{src/composables → composables}/useRecommendation.d.ts +0 -0
  160. /package/dist/{src/composables → composables}/useResponsivePreview.d.ts +0 -0
  161. /package/dist/{src/composables → composables}/useSave.d.ts +0 -0
  162. /package/dist/{src/composables → composables}/useStripo.d.ts +0 -0
  163. /package/dist/{src/composables → composables}/useStripoEventHandler.d.ts +0 -0
  164. /package/dist/{src/composables → composables}/useToaster.d.ts +0 -0
  165. /package/dist/{src/composables → composables}/useTranslations.d.ts +0 -0
  166. /package/dist/{src/composables → composables}/useValidation.d.ts +0 -0
  167. /package/dist/{src/composables → composables}/useVersionHistoryApi.d.ts +0 -0
  168. /package/dist/{src/composables → composables}/validators/saveAsTemplate.d.ts +0 -0
  169. /package/dist/{src/config → config}/compiler/htmlCompilerRules.d.ts +0 -0
  170. /package/dist/{src/config → config}/compiler/outlookCompilerRules.d.ts +0 -0
  171. /package/dist/{src/config → config}/compiler/recommendationCompilerRules.d.ts +0 -0
  172. /package/dist/{src/config → config}/compiler/socialCompilerRules.d.ts +0 -0
  173. /package/dist/{src/config → config}/compiler/unsubscribeCompilerRules.d.ts +0 -0
  174. /package/dist/{src/config → config}/migrator/checkboxMigrator.d.ts +0 -0
  175. /package/dist/{src/config → config}/migrator/couponBlockMigrator.d.ts +0 -0
  176. /package/dist/{src/config → config}/migrator/radioButtonMigrator.d.ts +0 -0
  177. /package/dist/{src/enums → enums}/defaults.d.ts +0 -0
  178. /package/dist/{src/enums → enums}/displayConditions.d.ts +0 -0
  179. /package/dist/{src/enums → enums}/html-validator.d.ts +0 -0
  180. /package/dist/{src/enums → enums}/onboarding.d.ts +0 -0
  181. /package/dist/{src/enums → enums}/preview.d.ts +0 -0
  182. /package/dist/{src/enums → enums}/recommendation.d.ts +0 -0
  183. /package/dist/{src/enums → enums}/toaster.d.ts +0 -0
  184. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/block.d.ts +0 -0
  185. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/control.d.ts +0 -0
  186. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/extension.d.ts +0 -0
  187. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/iconsRegistry.d.ts +0 -0
  188. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/settingsPanel.d.ts +0 -0
  189. /package/dist/{src/extensions → extensions}/Blocks/Checkbox/template.d.ts +0 -0
  190. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/block.d.ts +0 -0
  191. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/extension.d.ts +0 -0
  192. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/iconsRegistry.d.ts +0 -0
  193. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/settingsPanel.d.ts +0 -0
  194. /package/dist/{src/extensions → extensions}/Blocks/CouponBlock/template.d.ts +0 -0
  195. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/block.d.ts +0 -0
  196. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/control.d.ts +0 -0
  197. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/extension.d.ts +0 -0
  198. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/iconsRegistry.d.ts +0 -0
  199. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/settingsPanel.d.ts +0 -0
  200. /package/dist/{src/extensions → extensions}/Blocks/RadioButton/template.d.ts +0 -0
  201. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/block.d.ts +0 -0
  202. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/control.d.ts +0 -0
  203. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/extension.d.ts +0 -0
  204. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/iconsRegistry.d.ts +0 -0
  205. /package/dist/{src/extensions/Blocks/Recommendation → extensions/Blocks/_Boilerplate}/settingsPanel.d.ts +0 -0
  206. /package/dist/{src/extensions → extensions}/Blocks/_Boilerplate/template.d.ts +0 -0
  207. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content-modal.d.ts +0 -0
  208. /package/dist/{src/extensions → extensions}/DynamicContent/dynamic-content.d.ts +0 -0
  209. /package/dist/{src/extensions/Blocks/Unsubscribe → extensions/DynamicContent}/extension.d.ts +0 -0
  210. /package/dist/{src/library.d.ts → library.d.ts} +0 -0
  211. /package/dist/{src/main.d.ts → main.d.ts} +0 -0
  212. /package/dist/{src/mock → mock}/api/auth.d.ts +0 -0
  213. /package/dist/{src/mock → mock}/api/custom-fonts.d.ts +0 -0
  214. /package/dist/{src/mock → mock}/api/default-template.d.ts +0 -0
  215. /package/dist/{src/mock → mock}/api/template-library.d.ts +0 -0
  216. /package/dist/{src/mock → mock}/api/unsubscribe.d.ts +0 -0
  217. /package/dist/{src/mock → mock}/api/user-modal-state.d.ts +0 -0
  218. /package/dist/{src/mock → mock}/api/validator.d.ts +0 -0
  219. /package/dist/{src/mock → mock}/browser.d.ts +0 -0
  220. /package/dist/{src/mock → mock}/handlers.d.ts +0 -0
  221. /package/dist/{src/services → services}/onboardingApi.d.ts +0 -0
  222. /package/dist/{src/services → services}/stripoApi.d.ts +0 -0
  223. /package/dist/{src/services → services}/templateLibraryApi.d.ts +0 -0
  224. /package/dist/{src/stores → stores}/dynamic-content.d.ts +0 -0
  225. /package/dist/{src/stores → stores}/onboarding.d.ts +0 -0
  226. /package/dist/{src/stores → stores}/preview.d.ts +0 -0
  227. /package/dist/{src/stores → stores}/recommendation.d.ts +0 -0
  228. /package/dist/{src/stores → stores}/save-as-template.d.ts +0 -0
  229. /package/dist/{src/stores → stores}/toaster.d.ts +0 -0
  230. /package/dist/{src/stores → stores}/version-history.d.ts +0 -0
  231. /package/dist/{src/utils → utils}/arrayUtil.d.ts +0 -0
  232. /package/dist/{src/utils → utils}/base64.d.ts +0 -0
  233. /package/dist/{src/utils → utils}/dateUtil.d.ts +0 -0
  234. /package/dist/{src/utils → utils}/htmlCompiler.d.ts +0 -0
  235. /package/dist/{src/utils → utils}/templatePreparation.d.ts +0 -0
  236. /package/dist/{src/utils → utils}/tooltipUtils.d.ts +0 -0
@@ -2,5 +2,4 @@ export declare const usePartner: () => {
2
2
  getPartnerName: () => string;
3
3
  getProductType: () => number;
4
4
  isTestPartner: () => boolean;
5
- isUnsubscribePages: () => boolean;
6
5
  };
@@ -1,22 +1,18 @@
1
- import { ProductIds as n, TEST_PARTNER_LIST as o, DefaultProductType as s } from "../enums/defaults.js";
2
- const p = () => {
1
+ import { TEST_PARTNER_LIST as r, DefaultProductType as o, ProductIds as n } from "../enums/defaults.js";
2
+ const i = () => {
3
3
  const e = () => window.location.hostname.split(".")[0] || "";
4
4
  return {
5
5
  getPartnerName: e,
6
6
  getProductType: () => {
7
- const t = window.location.pathname.split("/").filter(Boolean)[0] || s;
7
+ const t = window.location.pathname.split("/").filter(Boolean)[0] || o;
8
8
  return n[t] || 0;
9
9
  },
10
10
  isTestPartner: () => {
11
11
  const t = e();
12
- return o.includes(t);
13
- },
14
- isUnsubscribePages: () => {
15
- var t, r;
16
- return ((r = (t = window.GuidoConfig) == null ? void 0 : t.partner) == null ? void 0 : r.productType) === n.unsubscribePages;
12
+ return r.includes(t);
17
13
  }
18
14
  };
19
15
  };
20
16
  export {
21
- p as usePartner
17
+ i as usePartner
22
18
  };
@@ -1,24 +1,26 @@
1
- import { useActionsApi as E } from "./useActionsApi.js";
2
- import { useBlocksConfig as y } from "./useBlocksConfig.js";
3
- import { useCustomInterfaceAppearance as h } from "./useCustomInterfaceAppearance.js";
4
- import { useStripoEventHandler as w } from "./useStripoEventHandler.js";
5
- import { useToaster as b } from "./useToaster.js";
6
- import { displayConditions as k } from "../enums/displayConditions.js";
1
+ import { useActionsApi as f } from "./useActionsApi.js";
2
+ import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
3
+ import { useStripoEventHandler as E } from "./useStripoEventHandler.js";
4
+ import { useToaster as C } from "./useToaster.js";
5
+ import { displayConditions as y } from "../enums/displayConditions.js";
6
+ import h from "../extensions/Blocks/Checkbox/extension.js";
7
+ import w from "../extensions/Blocks/CouponBlock/extension.js";
8
+ import b from "../extensions/Blocks/RadioButton/extension.js";
9
+ import k from "../extensions/DynamicContent/extension.js";
7
10
  import { useStripoApi as B } from "../services/stripoApi.js";
8
11
  import V from "../static/styles/customEditorStyle.css.js";
9
12
  import { useEditorStore as _ } from "../stores/editor.js";
10
13
  import { dynamicContentToMergeTags as F } from "../utils/genericUtil.js";
11
- import A from "../package.json.js";
12
- const L = (d) => {
13
- const { handleError: u } = b(), { getToken: p, getCustomFonts: m } = B(), { handleEvent: g } = w(), { getStripoBlocksConfig: f } = y(), S = (r, i = []) => {
14
- const t = _(), { html: n, css: l, forceRecreate: a } = r, { baseBlocks: e, extensions: c } = f();
14
+ const j = (s) => {
15
+ const { handleError: d } = C(), { getToken: c, getCustomFonts: u } = B(), { handleEvent: l } = E(), m = (r, i = []) => {
16
+ const t = _(), { html: e, css: a, forceRecreate: g } = r;
15
17
  window.UIEditor.initEditor(
16
18
  document.querySelector("#guido-editor"),
17
19
  {
18
- metadata: d,
19
- html: n,
20
- css: l,
21
- forceRecreate: a,
20
+ metadata: s,
21
+ html: e,
22
+ css: a,
23
+ forceRecreate: g,
22
24
  locale: "en",
23
25
  undoButtonSelector: "#guido__undo-button",
24
26
  redoButtonSelector: "#guido__redo-button",
@@ -31,11 +33,10 @@ const L = (d) => {
31
33
  customViewStyles: V,
32
34
  conditionsEnabled: !0,
33
35
  customConditionsEnabled: !0,
34
- conditionCategories: k,
36
+ conditionCategories: y,
35
37
  enableXSSSecurity: !0,
36
38
  messageSettingsEnabled: !1,
37
39
  selectBlockAfterDropFromSettingsPanel: !0,
38
- ...e ? { baseBlocks: e } : {},
39
40
  editorFonts: {
40
41
  showDefaultStandardFonts: !0,
41
42
  showDefaultNotStandardFonts: !0,
@@ -43,25 +44,25 @@ const L = (d) => {
43
44
  },
44
45
  mergeTags: [
45
46
  {
46
- entries: F(d.preselectedDynamicContentList)
47
+ entries: F(s.preselectedDynamicContentList)
47
48
  }
48
49
  ],
49
50
  async onTokenRefreshRequest(o) {
50
51
  try {
51
- const s = await p();
52
- o(s);
53
- } catch (s) {
54
- u(s, "Failed to refresh token");
52
+ const n = await c();
53
+ o(n);
54
+ } catch (n) {
55
+ d(n, "Failed to refresh token");
55
56
  }
56
57
  },
57
58
  onTemplateLoaded() {
58
59
  try {
59
- const { importCss: o } = h(), { activateCustomViewStyles: s } = E();
60
- o(), s(), d.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
60
+ const { importCss: o } = S(), { activateCustomViewStyles: n } = f();
61
+ o(), n(), s.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
61
62
  t.hasChanges = !1;
62
63
  }, 1e3);
63
64
  } catch (o) {
64
- u(o, "Failed to load custom interface appearance");
65
+ d(o, "Failed to load custom interface appearance");
65
66
  }
66
67
  },
67
68
  onCodeEditorVisibilityChanged(o) {
@@ -76,35 +77,36 @@ const L = (d) => {
76
77
  onDataChanged() {
77
78
  t.hasChanges = !0;
78
79
  },
79
- onEvent: g,
80
- ignoreClickOutsideSelectors: [
81
- "#guido-dynamic-content-modal",
82
- ".in-on-board-wrapper",
83
- ".in-drawer__container"
84
- ],
85
- extensions: c
80
+ onEvent: l,
81
+ ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal", ".in-on-board-wrapper"],
82
+ extensions: [
83
+ k,
84
+ h,
85
+ b,
86
+ w
87
+ ]
86
88
  }
87
89
  );
88
- }, C = (r) => new Promise((i, t) => {
89
- var c;
90
+ }, p = (r) => new Promise((i, t) => {
90
91
  if (document.getElementById("UiEditorScript")) {
91
92
  r(), i();
92
93
  return;
93
94
  }
94
- const n = A.guido, a = `https://email-static.useinsider.com/guido/${(c = n == null ? void 0 : n.stripo) == null ? void 0 : c.version}/UIEditor.js`, e = document.createElement("script");
95
- e.id = "UiEditorScript", e.type = "module", e.src = a, e.onload = () => {
95
+ const e = document.createElement("script");
96
+ e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
96
97
  r(), i();
97
98
  }, e.onerror = () => {
98
- t(new Error(`Failed to load Stripo UIEditor script from S3: ${a}`));
99
+ const a = new Error("Failed to load Stripo UIEditor script");
100
+ t(a);
99
101
  }, document.body.appendChild(e);
100
102
  });
101
103
  return { initPlugin: async (r) => {
102
- await C(async () => {
103
- const i = await m();
104
- S(r, i);
104
+ await p(async () => {
105
+ const i = await u();
106
+ m(r, i);
105
107
  });
106
108
  } };
107
109
  };
108
110
  export {
109
- L as useStripo
111
+ j as useStripo
110
112
  };
@@ -1,36 +1,23 @@
1
- import { usePartner as U } from "../../composables/usePartner.js";
2
- import { LINK_REGEXES as l, LINK_TYPES as b, URLS as f } from "../../enums/unsubscribe.js";
3
- import { parsePageList as B } from "../../extensions/Blocks/Unsubscribe/utils/utils.js";
4
- import { useConfigStore as N } from "../../stores/config.js";
5
- import { useUnsubscribeStore as I } from "../../stores/unsubscribe.js";
6
- const T = [
1
+ import { usePartner as m } from "../../composables/usePartner.js";
2
+ import { LINK_REGEXES as c, LINK_TYPES as p, URLS as E } from "../../enums/unsubscribe.js";
3
+ import { useUnsubscribeStore as b } from "../../stores/unsubscribe.js";
4
+ const S = [
7
5
  {
8
6
  id: "add-unsubscribe-link-values",
9
7
  description: "Adding unsubscribe link values",
10
8
  type: "custom",
11
- processor: (t) => {
12
- const { getPartnerName: i } = U(), a = N(), n = I(), u = a.getVariationId;
13
- if (!u)
14
- return t;
15
- let o = t;
16
- const e = `/${i()}/email/${u}?user={{iid}}`;
17
- return new DOMParser().parseFromString(o, "text/html").querySelectorAll(".unsubscribe-block-v2[data-unsubscribe-page-list]").forEach((p) => {
18
- var g;
19
- const d = p.getAttribute("data-unsubscribe-page-list");
20
- if (!d)
21
- return;
22
- const S = B(d), m = ((g = n.templates) == null ? void 0 : g.filter(
23
- (c) => S.includes(c.id)
24
- )) ?? [], R = m.some((c) => c.type === b.UNSUBSCRIBE_LINK_TYPE), _ = m.some((c) => c.type === b.PREFERENCES_LINK_TYPE), E = p.outerHTML;
25
- let s = E;
26
- R && (s = s.replace(
27
- l.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
28
- f.UNSUBSCRIBE_URL + e
29
- )), _ && (s = s.replace(
30
- l.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
31
- f.PREFERENCES_URL + e
32
- )), s = s.replace(l.UNSUBSCRIBE_LINK_REGEX, ""), o = o.replace(E, s);
33
- }), o;
9
+ processor: (n) => {
10
+ var a, u;
11
+ const { getPartnerName: i } = m(), t = b();
12
+ let e = n;
13
+ const o = `/${i()}/email/0?user={{iid}}`, r = (a = t.selectedUnsubscribePages) == null ? void 0 : a.find((l) => l.type === p.UNSUBSCRIBE_LINK_TYPE), s = (u = t.selectedUnsubscribePages) == null ? void 0 : u.find((l) => l.type === p.PREFERENCES_LINK_TYPE);
14
+ return r && (e = e.replace(
15
+ c.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
16
+ E.UNSUBSCRIBE_URL + o
17
+ )), s && (e = e.replace(
18
+ c.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
19
+ E.PREFERENCES_URL + o
20
+ )), e.replace(c.UNSUBSCRIBE_LINK_REGEX, "");
34
21
  },
35
22
  priority: 60
36
23
  },
@@ -38,7 +25,7 @@ const T = [
38
25
  id: "remove-data-ogsb-button-styles",
39
26
  description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
40
27
  type: "regex",
41
- pattern: l.DATA_OGSB_BUTTON_CSS_REGEX,
28
+ pattern: c.DATA_OGSB_BUTTON_CSS_REGEX,
42
29
  replacement: "",
43
30
  flags: "g",
44
31
  priority: 61
@@ -47,25 +34,25 @@ const T = [
47
34
  id: "format-comment-braces",
48
35
  description: "Adding spaces around comment braces for proper formatting",
49
36
  type: "custom",
50
- processor: (t) => t.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
37
+ processor: (n) => n.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
51
38
  priority: 62
52
39
  },
53
40
  {
54
41
  id: "add-universal-link-flags",
55
42
  description: "Adding universal link flags",
56
43
  type: "custom",
57
- processor: (t) => {
58
- let i = t;
59
- const a = i.match(/<a[^>]+>(.*?)<\/a>/gm);
60
- return a && a.forEach((n) => {
61
- if (n.includes("insEmail=1"))
44
+ processor: (n) => {
45
+ let i = n;
46
+ const t = i.match(/<a[^>]+>(.*?)<\/a>/gm);
47
+ return t && t.forEach((e) => {
48
+ if (e.includes("insEmail=1"))
62
49
  return;
63
- if (n.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
64
- const o = n.replace(/href=(["'`”])(.*?)\1/gm, (e) => {
65
- const r = e.slice(6, e.length - 1).trim();
66
- return e.includes("?") || e.includes("#") ? r.slice(-1) === "&" ? e.replace(r, `${r}insEmail=1`) : e.replace(r, `${r}&insEmail=1`) : e.replace(r, `${r}?insEmail=1`);
50
+ if (e.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
51
+ const o = e.replace(/href=(["'`”])(.*?)\1/gm, (r) => {
52
+ const s = r.slice(6, r.length - 1).trim();
53
+ return r.includes("?") || r.includes("#") ? s.slice(-1) === "&" ? r.replace(s, `${s}insEmail=1`) : r.replace(s, `${s}&insEmail=1`) : r.replace(s, `${s}?insEmail=1`);
67
54
  });
68
- i = i.replace(n, o);
55
+ i = i.replace(e, o);
69
56
  }
70
57
  }), i;
71
58
  },
@@ -73,5 +60,5 @@ const T = [
73
60
  }
74
61
  ];
75
62
  export {
76
- T as unsubscribeCompilerRules
63
+ S as unsubscribeCompilerRules
77
64
  };
@@ -0,0 +1 @@
1
+ export declare const migrate: (html: string) => string;
@@ -1,11 +1,10 @@
1
- import { migrateCheckbox as o } from "./checkboxMigrator.js";
1
+ import { migrateCheckbox as r } from "./checkboxMigrator.js";
2
2
  import { migrateCouponBlock as m } from "./couponBlockMigrator.js";
3
- import { migrateRadioButton as i } from "./radioButtonMigrator.js";
4
- import { migrateUnsubscribe as e } from "./unsubscribeMigrator.js";
5
- const c = async (t) => {
6
- let r = t;
7
- return r = o(r), r = i(r), r = await e(r), r = m(r), r;
3
+ import { migrateRadioButton as e } from "./radioButtonMigrator.js";
4
+ const p = (o) => {
5
+ let t = o;
6
+ return t = r(t), t = e(t), t = m(t), t;
8
7
  };
9
8
  export {
10
- c as migrate
9
+ p as migrate
11
10
  };
@@ -1,16 +1,9 @@
1
- const e = {
1
+ const a = {
2
2
  translationsPath: "window.trans.en",
3
3
  emailHeader: {
4
4
  senderName: "",
5
5
  subject: ""
6
6
  },
7
- extensions: {
8
- unsubscribe: !0
9
- },
10
- blocks: {
11
- excludeDefaults: [],
12
- includeCustoms: []
13
- },
14
7
  features: {
15
8
  dynamicContent: !0,
16
9
  saveAsTemplate: !0,
@@ -20,10 +13,9 @@ const e = {
20
13
  }, t = {
21
14
  promotional: 1,
22
15
  transactional: 2
23
- }, a = "email", o = "Guido User", n = t.promotional, s = 2, i = {
16
+ }, e = "email", o = "Guido User", n = t.promotional, i = 2, s = {
24
17
  email: 60,
25
- architect: 49,
26
- unsubscribePages: 97
18
+ architect: 49
27
19
  }, u = [
28
20
  "alfredtesting",
29
21
  "electio",
@@ -57,12 +49,12 @@ const e = {
57
49
  "stripoeditorlivetest"
58
50
  ];
59
51
  export {
60
- e as DefaultGuidoConfig,
52
+ a as DefaultGuidoConfig,
61
53
  n as DefaultMessageType,
62
- a as DefaultProductType,
54
+ e as DefaultProductType,
63
55
  o as DefaultUsername,
64
- s as EditorType,
65
- i as ProductIds,
56
+ i as EditorType,
57
+ s as ProductIds,
66
58
  u as TEST_PARTNER_LIST,
67
59
  t as TemplateTypes
68
60
  };
@@ -0,0 +1,15 @@
1
+ export declare const LINK_TYPES: {
2
+ UNSUBSCRIBE_LINK_TYPE: number;
3
+ PREFERENCES_LINK_TYPE: number;
4
+ };
5
+ export declare const LINK_REGEXES: {
6
+ UNSUBSCRIBE_LINK_REGEX: RegExp;
7
+ DATA_OGSB_BUTTON_CSS_REGEX: string;
8
+ GLOBAL_UNSUBSCRIBE_LINK_REGEX: RegExp;
9
+ PREFERENCES_UNSUBSCRIBE_LINK_REGEX: RegExp;
10
+ };
11
+ export declare const URLS: {
12
+ UNSUBSCRIBE_URL: string;
13
+ PREFERENCES_URL: string;
14
+ };
15
+ export declare const INSIDER_ID = "iid";
@@ -1,54 +1,17 @@
1
- import { useTranslations as e } from "../composables/useTranslations.js";
2
- const s = e(), R = {
1
+ const E = {
3
2
  UNSUBSCRIBE_LINK_TYPE: 1,
4
3
  PREFERENCES_LINK_TYPE: 3
5
- }, S = {
4
+ }, s = {
6
5
  UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
7
6
  DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
8
7
  GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
9
8
  PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
10
- }, N = {
9
+ }, _ = {
11
10
  UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
12
11
  PREFERENCES_URL: "https://mail.useinsider.com/user/v1/prefs"
13
- }, _ = {
14
- name: "Global Unsubscribe",
15
- sendGridId: "G"
16
- }, I = "https://academy.useinsider.com/docs/global-unsubscribe-preference-center", r = "/email/unsubscribe-pages", E = {
17
- GLOBAL_UNSUBSCRIBE: 1,
18
- GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: 2,
19
- SUBSCRIPTION_PREFERENCE_CENTER: 3,
20
- SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
21
- RESUBSCRIBE: 5
22
- }, i = {
23
- [E.GLOBAL_UNSUBSCRIBE]: [
24
- E.GLOBAL_UNSUBSCRIBE,
25
- E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE,
26
- E.RESUBSCRIBE
27
- ],
28
- [E.SUBSCRIPTION_PREFERENCE_CENTER]: [
29
- E.SUBSCRIPTION_PREFERENCE_CENTER,
30
- E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
31
- ]
32
- }, B = {
33
- [E.GLOBAL_UNSUBSCRIBE]: s("unsubscription-preference.type-global-unsubscribe"),
34
- [E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE]: s("unsubscription-preference.type-global-unsubscription-confirmation"),
35
- [E.RESUBSCRIBE]: s("unsubscription-preference.type-resubscribe"),
36
- [E.SUBSCRIPTION_PREFERENCE_CENTER]: s("unsubscription-preference.type-subscription-preferences-center"),
37
- [E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: s("unsubscription-preference.type-subscription-preferences-confirmation")
38
- }, C = {
39
- default: "{{ins-unsubscribe-link}}",
40
- [E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
41
- [E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
42
12
  };
43
13
  export {
44
- I as ACADEMY_LINK,
45
- _ as DEFAULT_UNSUBSCRIBE_GROUP,
46
- S as LINK_REGEXES,
47
- R as LINK_TYPES,
48
- C as MERGE_TAGS,
49
- E as PAGE_TYPES,
50
- i as TYPE_COLLECTIONS,
51
- B as TYPE_TRANSLATIONS,
52
- r as UNSUBSCRIBE_PAGES_LINK,
53
- N as URLS
14
+ s as LINK_REGEXES,
15
+ E as LINK_TYPES,
16
+ _ as URLS
54
17
  };
@@ -1,92 +1,90 @@
1
- var d = Object.defineProperty;
2
- var l = (r, n, e) => n in r ? d(r, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[n] = e;
3
- var o = (r, n, e) => l(r, typeof n != "symbol" ? n + "" : n, e);
4
- import { useHttp as L } from "../../../composables/useHttp.js";
5
- import { DEFAULT_UNSUBSCRIBE_GROUP as u } from "../../../enums/unsubscribe.js";
6
- import { Control as h, UIElementType as i, UEAttr as t, ModificationDescription as p } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
7
- const m = "ui-elements-checkbox", a = "select", { get: C } = L();
8
- class S extends h {
1
+ var E = Object.defineProperty;
2
+ var c = (r, s, t) => s in r ? E(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
3
+ var a = (r, s, t) => c(r, typeof s != "symbol" ? s + "" : s, t);
4
+ import { useHttp as l } from "../../../composables/useHttp.js";
5
+ import { Control as d, UIElementType as n, UEAttr as e, ModificationDescription as L } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
6
+ const p = "ui-elements-checkbox", o = "select", { get: h } = l();
7
+ class b extends d {
9
8
  constructor() {
10
9
  super(...arguments);
11
- o(this, "currentNode");
12
- o(this, "selectedUnsubGroup");
13
- o(this, "unsubList", []);
10
+ a(this, "currentNode");
11
+ a(this, "selectedUnsubGroup");
12
+ a(this, "unsubList", []);
14
13
  }
15
14
  getId() {
16
- return m;
15
+ return p;
17
16
  }
18
17
  _setFormValues() {
19
- if (this.currentNode && "getAttribute" in this.currentNode) {
20
- const e = this.currentNode.getAttribute("id");
21
- if (e) {
22
- const s = e === u.sendGridId ? e : Number(e);
23
- s && (this.selectedUnsubGroup = s, this.api.updateValues({
24
- [a]: this.selectedUnsubGroup
25
- }));
26
- }
27
- }
18
+ this.api.updateValues({
19
+ [o]: ""
20
+ });
28
21
  }
29
- _getLabel(e, s = `${Math.random()}`) {
22
+ _getLabel(t, i = `${Math.random()}`) {
30
23
  return `
31
- <${i.LABEL}
32
- ${t.LABEL.text}="${e}"
33
- ${t.LABEL.name}="${s}">
34
- </${i.LABEL}>
24
+ <${n.LABEL}
25
+ ${e.LABEL.text}="${t}"
26
+ ${e.LABEL.name}="${i}">
27
+ </${n.LABEL}>
35
28
  `;
36
29
  }
37
- _getSelectItem(e, s) {
30
+ _getSelectItem(t, i) {
38
31
  return `
39
- <${i.SELECT_ITEM}
40
- ${t.SELECT_ITEM.text}="${e}"
41
- ${t.SELECT_ITEM.value}="${s}">
42
- </${i.SELECT_ITEM}>`;
32
+ <${n.SELECT_ITEM}
33
+ ${e.SELECT_ITEM.text}="${t}"
34
+ ${e.SELECT_ITEM.value}="${i}">
35
+ </${n.SELECT_ITEM}>`;
43
36
  }
44
37
  _getSelect() {
45
- return this.unsubList.map((e) => this._getSelectItem(e.name, e.sendGridId)).join("");
38
+ return this.unsubList.map((t) => this._getSelectItem(t.name, t.sendGridId)).join("");
46
39
  }
47
40
  getTemplate() {
48
41
  return `
49
42
  <div class="checkbox-controls-container">
50
43
  <div class="checkbox-select-container container two-columns stretch">
51
- <${i.LABEL}
52
- ${t.LABEL.text}="${this.api.translate("Unsubscribe Group")}"
53
- ${t.LABEL.name}="${Math.random()}">
54
- </${i.LABEL}>
44
+ <${n.LABEL}
45
+ ${e.LABEL.text}="${this.api.translate("Unsubscribe Group")}"
46
+ ${e.LABEL.name}="${Math.random()}">
47
+ </${n.LABEL}>
55
48
 
56
- <${i.SELECTPICKER}
57
- ${t.SELECTPICKER.name}="${a}"
58
- ${t.SELECTPICKER.placeholder}="${this.api.translate("Select Unsubscribe Group")}">
49
+ <${n.SELECTPICKER}
50
+ ${e.SELECTPICKER.name}="${o}"
51
+ ${e.SELECTPICKER.placeholder}="${this.api.translate("Select Unsubscribe Group")}">
59
52
  ${this._getSelect()}
60
- </${i.SELECTPICKER}>
53
+ </${n.SELECTPICKER}>
61
54
  </div>
62
55
  </div>
63
56
  `;
64
57
  }
65
- _onSelectChange(e) {
66
- this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", e.toString()).apply(new p(`Updated text to ${e}`));
58
+ _onSelectChange(t) {
59
+ this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute("id", t.toString()).apply(new L(`Updated text to ${t}`));
67
60
  }
68
61
  _listenToFormUpdates() {
69
- this.api.onValueChanged(a, (e) => this._onSelectChange(e));
62
+ this.api.onValueChanged(o, (t) => this._onSelectChange(t));
70
63
  }
71
- onTemplateNodeUpdated(e) {
72
- this.currentNode = e;
64
+ onTemplateNodeUpdated(t) {
65
+ if (this.currentNode = t, "getAttribute" in t) {
66
+ const i = Number(t.getAttribute("id"));
67
+ i && (this.selectedUnsubGroup = i, this.api.updateValues({
68
+ [o]: this.selectedUnsubGroup
69
+ }));
70
+ }
73
71
  }
74
72
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
75
73
  async onRender() {
76
- const e = await C(
74
+ const t = await h(
77
75
  "/unsubscribe-groups/unsubscribe-list"
78
- ), s = [u, ...e.data], E = s.map((c) => ({
79
- [t.SELECT_ITEM.text]: c.name,
80
- [t.SELECT_ITEM.value]: c.sendGridId
76
+ ), i = t.data.map((u) => ({
77
+ [e.SELECT_ITEM.text]: u.name,
78
+ [e.SELECT_ITEM.value]: u.sendGridId
81
79
  }));
82
- this.unsubList = s, this.api.setUIEAttribute(
83
- a,
84
- t.SELECTPICKER.items,
85
- E
80
+ this.unsubList = t.data, this.api.setUIEAttribute(
81
+ o,
82
+ e.SELECTPICKER.items,
83
+ i
86
84
  ), this._setFormValues(), this._listenToFormUpdates();
87
85
  }
88
86
  }
89
87
  export {
90
- m as CHECKBOX_CONTROL_BLOCK_ID,
91
- S as CheckboxControl
88
+ p as CHECKBOX_CONTROL_BLOCK_ID,
89
+ b as CheckboxControl
92
90
  };