@useinsider/guido 3.2.0-beta.78d83bd → 3.2.0-beta.7e0c6bd

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 (265) hide show
  1. package/dist/@types/config/schemas.js +1 -1
  2. package/dist/@types/config/validator.js +27 -34
  3. package/dist/components/Guido.vue.js +1 -1
  4. package/dist/components/Guido.vue2.js +76 -81
  5. package/dist/components/organisms/base/Toaster.vue2.js +10 -11
  6. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +12 -12
  7. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +6 -6
  8. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +9 -15
  9. package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +31 -40
  10. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +19 -20
  11. package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +11 -14
  12. package/dist/components/organisms/header/EditorActions.vue.js +11 -12
  13. package/dist/components/organisms/header/EditorActions.vue2.js +18 -22
  14. package/dist/components/organisms/header/HeaderWrapper.vue2.js +12 -15
  15. package/dist/components/organisms/header/LeftSlot.vue2.js +16 -19
  16. package/dist/components/organisms/header/MiddleSlot.vue2.js +14 -11
  17. package/dist/components/organisms/header/RightSlot.vue2.js +14 -17
  18. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +11 -12
  19. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +49 -31
  20. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +12 -13
  21. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +36 -38
  22. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +12 -13
  23. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +47 -51
  24. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +18 -21
  25. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +27 -31
  26. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +12 -13
  27. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +33 -46
  28. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +11 -12
  29. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +20 -21
  30. package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +8 -9
  31. package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +9 -10
  32. package/dist/composables/useActionsApi.js +37 -38
  33. package/dist/composables/useBlocksConfig.js +26 -26
  34. package/dist/composables/useFullStoryBridge.js +8 -9
  35. package/dist/composables/useHtmlCompiler.js +34 -26
  36. package/dist/composables/useHtmlValidator.js +101 -109
  37. package/dist/composables/useHttp.js +30 -30
  38. package/dist/composables/usePartner.js +1 -1
  39. package/dist/composables/useRecommendation.js +14 -15
  40. package/dist/composables/useRibbonOffset.js +21 -0
  41. package/dist/composables/useSave.js +21 -22
  42. package/dist/composables/useStripo.js +53 -50
  43. package/dist/composables/useSyncModuleExtractor.js +31 -29
  44. package/dist/composables/useTimerClone.js +24 -25
  45. package/dist/composables/useTranslations.js +23 -16
  46. package/dist/composables/useValidation.js +7 -8
  47. package/dist/composables/validators/useLiquidValidator.js +13 -13
  48. package/dist/config/compiler/unsubscribeCompilerRules.js +17 -19
  49. package/dist/config/compiler/utils/recommendationCompilerUtils.js +10 -11
  50. package/dist/config/migrator/checkboxMigrator.js +20 -21
  51. package/dist/config/migrator/couponBlockMigrator.js +18 -19
  52. package/dist/config/migrator/itemsBlockMigrator.js +87 -89
  53. package/dist/config/migrator/radioButtonMigrator.js +12 -13
  54. package/dist/config/migrator/recommendationMigrator.js +106 -109
  55. package/dist/config/migrator/unsubscribeMigrator.js +10 -11
  56. package/dist/enums/onboarding.js +7 -2
  57. package/dist/enums/unsubscribe.js +18 -19
  58. package/dist/extensions/Blocks/Items/block.js +9 -9
  59. package/dist/extensions/Blocks/Items/controls/button/link.js +14 -14
  60. package/dist/extensions/Blocks/Items/controls/cardComposition.js +89 -97
  61. package/dist/extensions/Blocks/Items/controls/image/link.js +14 -14
  62. package/dist/extensions/Blocks/Items/controls/name/trimming.js +23 -24
  63. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +13 -14
  64. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +44 -47
  65. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +38 -38
  66. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +11 -11
  67. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +38 -40
  68. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +35 -35
  69. package/dist/extensions/Blocks/Items/controls/settingsControl.js +155 -162
  70. package/dist/extensions/Blocks/Items/enums/productEnums.js +9 -14
  71. package/dist/extensions/Blocks/Items/template.js +218 -216
  72. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +36 -36
  73. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +128 -133
  74. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +9 -9
  75. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +10 -10
  76. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +9 -9
  77. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +17 -18
  78. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +4 -6
  79. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +82 -90
  80. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +18 -18
  81. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +4 -4
  82. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +35 -36
  83. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +134 -135
  84. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +24 -24
  85. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +10 -10
  86. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +24 -24
  87. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +24 -24
  88. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +4 -4
  89. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +4 -4
  90. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +24 -24
  91. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +4 -4
  92. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +4 -4
  93. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +24 -24
  94. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +32 -32
  95. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +18 -20
  96. package/dist/extensions/Blocks/Recommendation/extension.js +31 -32
  97. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +8 -16
  98. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +55 -56
  99. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +22 -23
  100. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +10 -10
  101. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +10 -10
  102. package/dist/extensions/Blocks/Recommendation/templates/index.js +6 -6
  103. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +24 -25
  104. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +1 -1
  105. package/dist/extensions/Blocks/Recommendation/templates/utils.js +45 -47
  106. package/dist/extensions/Blocks/Recommendation/validation/filterSchema.js +13 -16
  107. package/dist/extensions/Blocks/Unsubscribe/control.js +11 -13
  108. package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +16 -18
  109. package/dist/extensions/Blocks/common-control.js +25 -26
  110. package/dist/extensions/DynamicContent/dynamic-content.js +53 -58
  111. package/dist/guido.css +1 -1
  112. package/dist/library.js +11 -12
  113. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +233 -210
  114. package/dist/node_modules/valibot/dist/index.js +122 -126
  115. package/dist/package.json.js +1 -1
  116. package/dist/services/recommendationApi.js +14 -17
  117. package/dist/services/templateLibraryApi.js +37 -38
  118. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  119. package/dist/src/composables/useHtmlCompiler.d.ts +1 -2
  120. package/dist/src/composables/useRibbonOffset.d.ts +4 -0
  121. package/dist/src/composables/useTranslations.d.ts +1 -1
  122. package/dist/src/enums/onboarding.d.ts +6 -0
  123. package/dist/src/stores/dynamic-content.d.ts +3 -3
  124. package/dist/src/stores/onboarding.d.ts +4 -0
  125. package/dist/stores/config.js +25 -81
  126. package/dist/stores/dynamic-content.js +6 -11
  127. package/dist/stores/onboarding.js +5 -1
  128. package/dist/stores/preview.js +6 -9
  129. package/dist/stores/unsubscribe.js +1 -4
  130. package/dist/utils/dateUtil.js +7 -10
  131. package/dist/utils/genericUtil.js +10 -13
  132. package/dist/utils/pairProductVariables.js +13 -14
  133. package/package.json +8 -5
  134. package/dist/node_modules/lodash-es/_DataView.js +0 -6
  135. package/dist/node_modules/lodash-es/_Hash.js +0 -20
  136. package/dist/node_modules/lodash-es/_ListCache.js +0 -20
  137. package/dist/node_modules/lodash-es/_Map.js +0 -6
  138. package/dist/node_modules/lodash-es/_MapCache.js +0 -20
  139. package/dist/node_modules/lodash-es/_Promise.js +0 -6
  140. package/dist/node_modules/lodash-es/_Set.js +0 -6
  141. package/dist/node_modules/lodash-es/_SetCache.js +0 -13
  142. package/dist/node_modules/lodash-es/_Stack.js +0 -18
  143. package/dist/node_modules/lodash-es/_Symbol.js +0 -5
  144. package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
  145. package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
  146. package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
  147. package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
  148. package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
  149. package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
  150. package/dist/node_modules/lodash-es/_arraySome.js +0 -9
  151. package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
  152. package/dist/node_modules/lodash-es/_baseEach.js +0 -6
  153. package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
  154. package/dist/node_modules/lodash-es/_baseFor.js +0 -5
  155. package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
  156. package/dist/node_modules/lodash-es/_baseGet.js +0 -11
  157. package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  158. package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
  159. package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
  160. package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
  161. package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
  162. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
  163. package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
  164. package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
  165. package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
  166. package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
  167. package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
  168. package/dist/node_modules/lodash-es/_baseMap.js +0 -11
  169. package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
  170. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
  171. package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
  172. package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
  173. package/dist/node_modules/lodash-es/_baseRange.js +0 -9
  174. package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
  175. package/dist/node_modules/lodash-es/_baseToString.js +0 -18
  176. package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
  177. package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
  178. package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
  179. package/dist/node_modules/lodash-es/_castPath.js +0 -10
  180. package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
  181. package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
  182. package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
  183. package/dist/node_modules/lodash-es/_createRange.js +0 -11
  184. package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
  185. package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
  186. package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
  187. package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
  188. package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
  189. package/dist/node_modules/lodash-es/_getMapData.js +0 -8
  190. package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
  191. package/dist/node_modules/lodash-es/_getNative.js +0 -9
  192. package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
  193. package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
  194. package/dist/node_modules/lodash-es/_getTag.js +0 -28
  195. package/dist/node_modules/lodash-es/_getValue.js +0 -6
  196. package/dist/node_modules/lodash-es/_hasPath.js +0 -19
  197. package/dist/node_modules/lodash-es/_hashClear.js +0 -7
  198. package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
  199. package/dist/node_modules/lodash-es/_hashGet.js +0 -13
  200. package/dist/node_modules/lodash-es/_hashHas.js +0 -9
  201. package/dist/node_modules/lodash-es/_hashSet.js +0 -9
  202. package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
  203. package/dist/node_modules/lodash-es/_isIndex.js +0 -8
  204. package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
  205. package/dist/node_modules/lodash-es/_isKey.js +0 -12
  206. package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
  207. package/dist/node_modules/lodash-es/_isMasked.js +0 -11
  208. package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
  209. package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
  210. package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
  211. package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
  212. package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
  213. package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
  214. package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
  215. package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
  216. package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  217. package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
  218. package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
  219. package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
  220. package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
  221. package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
  222. package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
  223. package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
  224. package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
  225. package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
  226. package/dist/node_modules/lodash-es/_objectToString.js +0 -7
  227. package/dist/node_modules/lodash-es/_overArg.js +0 -8
  228. package/dist/node_modules/lodash-es/_root.js +0 -5
  229. package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
  230. package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
  231. package/dist/node_modules/lodash-es/_setToArray.js +0 -9
  232. package/dist/node_modules/lodash-es/_stackClear.js +0 -7
  233. package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
  234. package/dist/node_modules/lodash-es/_stackGet.js +0 -6
  235. package/dist/node_modules/lodash-es/_stackHas.js +0 -6
  236. package/dist/node_modules/lodash-es/_stackSet.js +0 -17
  237. package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
  238. package/dist/node_modules/lodash-es/_toKey.js +0 -10
  239. package/dist/node_modules/lodash-es/_toSource.js +0 -17
  240. package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  241. package/dist/node_modules/lodash-es/eq.js +0 -6
  242. package/dist/node_modules/lodash-es/flatMap.js +0 -8
  243. package/dist/node_modules/lodash-es/get.js +0 -8
  244. package/dist/node_modules/lodash-es/hasIn.js +0 -8
  245. package/dist/node_modules/lodash-es/identity.js +0 -6
  246. package/dist/node_modules/lodash-es/isArguments.js +0 -10
  247. package/dist/node_modules/lodash-es/isArray.js +0 -4
  248. package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
  249. package/dist/node_modules/lodash-es/isBuffer.js +0 -6
  250. package/dist/node_modules/lodash-es/isFunction.js +0 -12
  251. package/dist/node_modules/lodash-es/isLength.js +0 -7
  252. package/dist/node_modules/lodash-es/isObject.js +0 -7
  253. package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
  254. package/dist/node_modules/lodash-es/isSymbol.js +0 -9
  255. package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
  256. package/dist/node_modules/lodash-es/keys.js +0 -9
  257. package/dist/node_modules/lodash-es/map.js +0 -11
  258. package/dist/node_modules/lodash-es/memoize.js +0 -18
  259. package/dist/node_modules/lodash-es/property.js +0 -10
  260. package/dist/node_modules/lodash-es/range.js +0 -5
  261. package/dist/node_modules/lodash-es/stubArray.js +0 -6
  262. package/dist/node_modules/lodash-es/stubFalse.js +0 -6
  263. package/dist/node_modules/lodash-es/toFinite.js +0 -14
  264. package/dist/node_modules/lodash-es/toNumber.js +0 -22
  265. package/dist/node_modules/lodash-es/toString.js +0 -7
@@ -1,18 +1,17 @@
1
- import _ from "./UnsubscribeWrapper.vue2.js";
2
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var c = function() {
4
- var s, t;
1
+ import s from "./UnsubscribeWrapper.vue2.js";
2
+ import t from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var _ = function() {
5
4
  var e = this, r = e._self._c, n = e._self._setupProxy;
6
- return (t = (s = n.config) == null ? void 0 : s.features) != null && t.unsubscribe ? r("div", [r(n.UnsubscribeTypeSelection), r(n.UnsubscribePageSelection)], 1) : e._e();
7
- }, i = [], a = /* @__PURE__ */ o(
5
+ return n.config?.features?.unsubscribe ? r("div", [r(n.UnsubscribeTypeSelection), r(n.UnsubscribePageSelection)], 1) : e._e();
6
+ }, o = [], c = /* @__PURE__ */ t(
7
+ s,
8
8
  _,
9
- c,
10
- i,
9
+ o,
11
10
  !1,
12
11
  null,
13
12
  null
14
13
  );
15
- const p = a.exports;
14
+ const f = c.exports;
16
15
  export {
17
- p as default
16
+ f as default
18
17
  };
@@ -1,7 +1,7 @@
1
1
  import { useToaster as w } from "./useToaster.js";
2
2
  const v = () => {
3
- const { handleError: n } = w(), m = (t = {}) => new Promise((e, a) => {
4
- const o = { ...{
3
+ const { handleError: o } = w(), m = (e = {}) => new Promise((t, i) => {
4
+ const a = { ...{
5
5
  minimize: !0,
6
6
  utmEntity: {
7
7
  utmSource: "",
@@ -20,51 +20,51 @@ const v = () => {
20
20
  forceAmp: !1,
21
21
  resetDataSavedFlag: !1,
22
22
  disableLineHeightsReplace: !0
23
- }, ...t }, s = {
23
+ }, ...e }, s = {
24
24
  callback: (l, r, d, c, u) => {
25
- l ? a(l) : e({
25
+ l ? i(l) : t({
26
26
  html: r,
27
27
  ampHtml: d,
28
28
  ampErrors: c,
29
29
  displayConditions: u
30
30
  });
31
31
  },
32
- ...o
32
+ ...a
33
33
  };
34
34
  window.StripoEditorApi.actionsApi.compileEmail(s);
35
35
  });
36
36
  return {
37
37
  getCompiledEmail: m,
38
- getTemplateData: () => new Promise((t) => {
39
- const e = ({ html: a, css: i, width: o, height: p, utmParams: s, syncModulesIds: l }) => t({
40
- html: a,
41
- css: i,
42
- width: o,
38
+ getTemplateData: () => new Promise((e) => {
39
+ const t = ({ html: i, css: n, width: a, height: p, utmParams: s, syncModulesIds: l }) => e({
40
+ html: i,
41
+ css: n,
42
+ width: a,
43
43
  height: p,
44
44
  utmParams: s,
45
45
  syncModulesIds: l
46
46
  });
47
- window.StripoEditorApi.actionsApi.getTemplateData(e);
47
+ window.StripoEditorApi.actionsApi.getTemplateData(t);
48
48
  }),
49
- activateCustomViewStyles: (t = !0) => {
50
- window.StripoEditorApi.actionsApi.activateCustomViewStyles(t);
49
+ activateCustomViewStyles: (e = !0) => {
50
+ window.StripoEditorApi.actionsApi.activateCustomViewStyles(e);
51
51
  },
52
- getPreviewData: async (t) => {
52
+ getPreviewData: async (e) => {
53
53
  try {
54
54
  const {
55
- html: e,
56
- displayConditions: a,
57
- ampHtml: i = "",
58
- ampErrors: o = []
59
- } = await m({ minimize: !1, resetDataSavedFlag: !1, ...t });
55
+ html: t,
56
+ displayConditions: i,
57
+ ampHtml: n = "",
58
+ ampErrors: a = []
59
+ } = await m({ minimize: !1, resetDataSavedFlag: !1, ...e });
60
60
  return {
61
- html: e,
62
- ampHtml: i,
63
- ampErrors: o,
64
- displayConditions: a
61
+ html: t,
62
+ ampHtml: n,
63
+ ampErrors: a,
64
+ displayConditions: i
65
65
  };
66
- } catch (e) {
67
- return n(e, "Error loading preview"), {
66
+ } catch (t) {
67
+ return o(t, "Error loading preview"), {
68
68
  html: "",
69
69
  ampHtml: "",
70
70
  ampErrors: [],
@@ -72,26 +72,25 @@ const v = () => {
72
72
  };
73
73
  }
74
74
  },
75
- updateTimerInClonedTemplate: () => new Promise((t) => {
76
- var e, a;
77
- if (typeof ((a = (e = window.StripoEditorApi) == null ? void 0 : e.actionsApi) == null ? void 0 : a.updateTimerInClonedTemplate) != "function") {
78
- t(null);
75
+ updateTimerInClonedTemplate: () => new Promise((e) => {
76
+ if (typeof window.StripoEditorApi?.actionsApi?.updateTimerInClonedTemplate != "function") {
77
+ e(null);
79
78
  return;
80
79
  }
81
80
  try {
82
- window.StripoEditorApi.actionsApi.updateTimerInClonedTemplate((i, o) => {
83
- i ? (n(i, "Failed to update timer in cloned template"), t(null)) : t(o || null);
81
+ window.StripoEditorApi.actionsApi.updateTimerInClonedTemplate((t, i) => {
82
+ t ? (o(t, "Failed to update timer in cloned template"), e(null)) : e(i || null);
84
83
  });
85
- } catch (i) {
86
- n(i, "Failed to call updateTimerInClonedTemplate"), t(null);
84
+ } catch (t) {
85
+ o(t, "Failed to call updateTimerInClonedTemplate"), e(null);
87
86
  }
88
87
  }),
89
- updateHtmlAndCss: (t, e) => {
90
- window.StripoEditorApi.actionsApi.updateHtmlAndCss(t, e);
88
+ updateHtmlAndCss: (e, t) => {
89
+ window.StripoEditorApi.actionsApi.updateHtmlAndCss(e, t);
91
90
  },
92
- editorSave: () => new Promise((t) => {
93
- window.StripoEditorApi.actionsApi.save((e) => {
94
- e && n(e, "Failed to save template"), t();
91
+ editorSave: () => new Promise((e) => {
92
+ window.StripoEditorApi.actionsApi.save((t) => {
93
+ t && o(t, "Failed to save template"), e();
95
94
  });
96
95
  })
97
96
  };
@@ -1,6 +1,6 @@
1
- import r from "../extensions/ModulesTabIcons/extension.js";
2
- import { useConfigStore as l } from "../stores/config.js";
3
- const a = {
1
+ import l from "../extensions/ModulesTabIcons/extension.js";
2
+ import { useConfigStore as r } from "../stores/config.js";
3
+ const s = {
4
4
  "amp-accordion": "ampAccordionEnabled",
5
5
  "amp-carousel": "ampCarouselEnabled",
6
6
  "amp-form-controls": "ampFormControlsEnabled",
@@ -14,7 +14,7 @@ const a = {
14
14
  "text-block": "textEnabled",
15
15
  "timer-block": "timerEnabled",
16
16
  "video-block": "videoEnabled"
17
- }, s = {
17
+ }, a = {
18
18
  "dynamic-content": () => import("../extensions/DynamicContent/extension.js"),
19
19
  "checkbox-block": () => import("../extensions/Blocks/Checkbox/extension.js"),
20
20
  "radio-button-block": () => import("../extensions/Blocks/RadioButton/extension.js"),
@@ -22,40 +22,40 @@ const a = {
22
22
  "unsubscribe-block": () => import("../extensions/Blocks/Unsubscribe/extension.js"),
23
23
  "coupon-block": () => import("../extensions/Blocks/CouponBlock/extension.js"),
24
24
  "items-block": () => import("../extensions/Blocks/Items/extension.js")
25
- }, i = (n) => {
26
- if (!n || !n.length)
25
+ }, i = (o) => {
26
+ if (!o || !o.length)
27
27
  return {};
28
- const t = {};
29
- return n.forEach((o) => {
30
- const e = a[o];
31
- e && (t[e] = !1);
32
- }), t;
33
- }, b = () => [r], m = async (n) => {
34
- const t = b();
35
- if (!n || !n.length)
36
- return t;
37
- const o = await Promise.all(
38
- n.map(async (e) => {
39
- const c = s[e];
28
+ const n = {};
29
+ return o.forEach((t) => {
30
+ const e = s[t];
31
+ e && (n[e] = !1);
32
+ }), n;
33
+ }, b = () => [l], m = async (o) => {
34
+ const n = b();
35
+ if (!o || !o.length)
36
+ return n;
37
+ const t = await Promise.all(
38
+ o.map(async (e) => {
39
+ const c = a[e];
40
40
  return c ? (await c()).default : null;
41
41
  })
42
42
  );
43
43
  return [
44
- ...t,
45
- ...o.filter((e) => e !== null)
44
+ ...n,
45
+ ...t.filter((e) => e !== null)
46
46
  ];
47
- }, E = () => {
48
- const n = l();
47
+ }, p = () => {
48
+ const o = r();
49
49
  return {
50
50
  getStripoBlocksConfig: async () => {
51
- const o = n.blocks;
51
+ const t = o.blocks;
52
52
  return {
53
- baseBlocks: i(o == null ? void 0 : o.excludeDefaults),
54
- extensions: await m(o == null ? void 0 : o.includeCustoms)
53
+ baseBlocks: i(t?.excludeDefaults),
54
+ extensions: await m(t?.includeCustoms)
55
55
  };
56
56
  }
57
57
  };
58
58
  };
59
59
  export {
60
- E as useBlocksConfig
60
+ p as useBlocksConfig
61
61
  };
@@ -1,14 +1,13 @@
1
- const c = "https://email-static.useinsider.com/guido/guido-fs.js", u = () => ({ injectFullStory: () => {
2
- var n;
3
- const s = window;
4
- if (typeof s._fs_org != "string" || !s._fs_org)
1
+ const o = "https://email-static.useinsider.com/guido/guido-fs.js", c = () => ({ injectFullStory: () => {
2
+ const e = window;
3
+ if (typeof e._fs_org != "string" || !e._fs_org)
5
4
  return;
6
- const r = document.querySelector("ui-editor"), o = (n = r == null ? void 0 : r.shadowRoot) == null ? void 0 : n.querySelector("iframe"), e = o == null ? void 0 : o.contentDocument;
7
- if (!e || e.querySelector('script[data-fullstory-bridge="true"]'))
5
+ const r = document.querySelector("ui-editor")?.shadowRoot?.querySelector("iframe")?.contentDocument;
6
+ if (!r || r.querySelector('script[data-fullstory-bridge="true"]'))
8
7
  return;
9
- const t = e.createElement("script");
10
- t.src = c, t.async = !0, t.crossOrigin = "anonymous", t.dataset.fullstoryBridge = "true", e.head.appendChild(t);
8
+ const t = r.createElement("script");
9
+ t.src = o, t.async = !0, t.crossOrigin = "anonymous", t.dataset.fullstoryBridge = "true", r.head.appendChild(t);
11
10
  } });
12
11
  export {
13
- u as useFullStoryBridge
12
+ c as useFullStoryBridge
14
13
  };
@@ -1,30 +1,38 @@
1
- import { defaultHtmlCompilerRules as c } from "../config/compiler/htmlCompilerRules.js";
2
- import { itemsCompilerRules as f } from "../config/compiler/itemsCompilerRules.js";
3
- import { liquidCompilerRules as R } from "../config/compiler/liquidCompilerRules.js";
4
- import { outlookCompilerRules as C } from "../config/compiler/outlookCompilerRules.js";
1
+ import { defaultHtmlCompilerRules as n } from "../config/compiler/htmlCompilerRules.js";
2
+ import { itemsCompilerRules as c } from "../config/compiler/itemsCompilerRules.js";
3
+ import { liquidCompilerRules as p } from "../config/compiler/liquidCompilerRules.js";
4
+ import { outlookCompilerRules as f } from "../config/compiler/outlookCompilerRules.js";
5
5
  import { recommendationCompilerRules as d } from "../config/compiler/recommendationCompilerRules.js";
6
- import { socialCompilerRules as b } from "../config/compiler/socialCompilerRules.js";
7
- import { unsubscribeCompilerRules as g } from "../config/compiler/unsubscribeCompilerRules.js";
8
- import { createHtmlCompiler as H } from "../utils/htmlCompiler.js";
9
- import { useConfig as v } from "./useConfig.js";
10
- const w = () => {
11
- var l, m, r;
12
- const { compiler: e, isFeatureEnabled: t, partner: i } = v(), s = ((l = e.value) == null ? void 0 : l.customRules) || [], u = [
13
- ...!!((m = e.value) != null && m.ignoreDefaultRules) ? [] : c,
14
- ...d,
15
- ...g,
16
- ...f,
17
- ...C,
18
- ...b,
19
- ...t("liquidSyntax") ? R : [],
20
- ...s.map((o, a) => ({
21
- ...o,
22
- priority: o.priority + 1e3 + a
23
- // Ensure additional rules run after default rules
24
- }))
25
- ], p = H(u), n = (r = i.value) == null ? void 0 : r.fallbackFont;
26
- return { compileHtml: (o) => p.compile(o, void 0, n) };
6
+ import { socialCompilerRules as R } from "../config/compiler/socialCompilerRules.js";
7
+ import { unsubscribeCompilerRules as b } from "../config/compiler/unsubscribeCompilerRules.js";
8
+ import { createHtmlCompiler as C } from "../utils/htmlCompiler.js";
9
+ import { useConfig as F } from "./useConfig.js";
10
+ let i = null, u, o = null;
11
+ const g = (l) => !i || !o ? !0 : o.ignoreDefaultRules !== l.ignoreDefaultRules || o.liquidEnabled !== l.liquidEnabled || o.customRules !== l.customRules || o.fallbackFont !== l.fallbackFont, B = () => {
12
+ const { compiler: l, isFeatureEnabled: m, partner: a } = F(), e = {
13
+ ignoreDefaultRules: !!l.value?.ignoreDefaultRules,
14
+ liquidEnabled: m("liquidSyntax"),
15
+ customRules: l.value?.customRules,
16
+ fallbackFont: a.value?.fallbackFont
17
+ };
18
+ if (g(e)) {
19
+ const t = [
20
+ ...e.ignoreDefaultRules ? [] : n,
21
+ ...d,
22
+ ...b,
23
+ ...c,
24
+ ...f,
25
+ ...R,
26
+ ...e.liquidEnabled ? p : [],
27
+ ...(e.customRules ?? []).map((r, s) => ({
28
+ ...r,
29
+ priority: r.priority + 1e3 + s
30
+ }))
31
+ ];
32
+ i = C(t), u = e.fallbackFont, o = e;
33
+ }
34
+ return { compileHtml: (t) => i.compile(t, void 0, u) };
27
35
  };
28
36
  export {
29
- w as useHtmlCompiler
37
+ B as useHtmlCompiler
30
38
  };
@@ -1,161 +1,153 @@
1
- import { useConfig as L } from "./useConfig.js";
2
- import { TemplateTypes as V } from "../enums/defaults.js";
3
- import { DISPLAY_CONDITIONS_REGEX as _, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as H, CampaignCouldNotBeSavedKey as P, CanNotMakeAnyChangesForRunningKey as G } from "../enums/html-validator.js";
4
- import { ToasterTypeOptions as c } from "../enums/toaster.js";
5
- import { itemsBlockDynamicVariables as M } from "../extensions/Blocks/Items/enums/productEnums.js";
6
- import { useRecommendationStore as $ } from "../stores/recommendation.js";
7
- import { base64EncodeWithSpecialChars as X } from "../utils/base64.js";
8
- import { useHttp as j } from "./useHttp.js";
9
- import { useToaster as q } from "./useToaster.js";
10
- import { useTranslations as z } from "./useTranslations.js";
11
- const K = /recommendation-id="(\d+)"/g;
12
- function U(a) {
13
- return [...a.matchAll(K)].map((u) => u[1]);
1
+ import { useConfig as R } from "./useConfig.js";
2
+ import { TemplateTypes as D } from "../enums/defaults.js";
3
+ import { DISPLAY_CONDITIONS_REGEX as L, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as V, CampaignCouldNotBeSavedKey as _, CanNotMakeAnyChangesForRunningKey as H } from "../enums/html-validator.js";
4
+ import { ToasterTypeOptions as r } from "../enums/toaster.js";
5
+ import { itemsBlockDynamicVariables as P } from "../extensions/Blocks/Items/enums/productEnums.js";
6
+ import { useRecommendationStore as G } from "../stores/recommendation.js";
7
+ import { base64EncodeWithSpecialChars as M } from "../utils/base64.js";
8
+ import { useHttp as $ } from "./useHttp.js";
9
+ import { useToaster as X } from "./useToaster.js";
10
+ import { useTranslations as j } from "./useTranslations.js";
11
+ const q = /recommendation-id="(\d+)"/g;
12
+ function z(i) {
13
+ return [...i.matchAll(q)].map((u) => u[1]);
14
14
  }
15
- function Y(a, u) {
16
- return u.some((d) => a.startsWith(`${d}_`));
15
+ function K(i, u) {
16
+ return u.some((d) => i.startsWith(`${d}_`));
17
17
  }
18
- const ce = () => {
19
- var y, h;
20
- const { showToaster: a } = q(), { post: u } = j(), { config: d } = L(), r = z(), g = $(), p = ((h = (y = d.value) == null ? void 0 : y.partner) == null ? void 0 : h.messageType) === V.transactional, b = async (e) => {
18
+ const ae = () => {
19
+ const { showToaster: i } = X(), { post: u } = $(), { config: d } = R(), a = j(), g = G(), p = d.value?.partner?.messageType === D.transactional, v = async (e) => {
21
20
  const t = await u(
22
21
  "/newsletter/template-library/check-template-html-body",
23
- { html: X(e) }
24
- ), { status: n, message: l } = t.data;
25
- return n || a({
26
- type: c.Alert,
27
- message: n === void 0 ? l : r("newsletter.invalid-url-link-for-toaster")
28
- }), r(P), l === r(G) && a({
29
- type: c.Alert,
30
- message: r("newsletter.already-in-progress")
22
+ { html: M(e) }
23
+ ), { status: n, message: c } = t.data;
24
+ return n || i({
25
+ type: r.Alert,
26
+ message: n === void 0 ? c : a("newsletter.invalid-url-link-for-toaster")
27
+ }), a(_), c === a(H) && i({
28
+ type: r.Alert,
29
+ message: a("newsletter.already-in-progress")
31
30
  }), n;
32
- }, w = (e) => !["if", "endif", "else", "elif", "now"].includes(e.toLowerCase()), S = (e) => ["if", "endif"].includes(e.toLowerCase()), E = (e, s) => {
31
+ }, C = (e) => !["if", "endif", "else", "elif", "now"].includes(e.toLowerCase()), b = (e) => ["if", "endif"].includes(e.toLowerCase()), w = (e, s) => {
33
32
  const t = e.match(/({%(.*?)%})/g);
34
33
  let n = !0;
35
- return t !== null && !p && t.forEach((l) => {
36
- const o = l.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
34
+ return t !== null && !p && t.forEach((c) => {
35
+ const o = c.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
37
36
  if (o && o.length > 0) {
38
- const [i] = o;
39
- w(i) && !s.includes(i) && (a({
40
- type: c.Warning,
41
- message: r("custom-fields.invalid-custom-fields")
37
+ const [l] = o;
38
+ C(l) && !s.includes(l) && (i({
39
+ type: r.Warning,
40
+ message: a("custom-fields.invalid-custom-fields")
42
41
  }), n = !1);
43
42
  }
44
43
  }), n;
45
- }, A = async (e, s, t) => {
46
- const n = t ? await b(e) : !0;
47
- return E(e, s) && n;
48
- }, I = (e) => e.length > 0 ? !0 : (a({
49
- type: c.Warning,
50
- message: r("newsletter.html-content-is-empty")
51
- }), !1), k = (e) => {
44
+ }, S = async (e, s, t) => {
45
+ const n = t ? await v(e) : !0;
46
+ return w(e, s) && n;
47
+ }, E = (e) => e.length > 0 ? !0 : (i({
48
+ type: r.Warning,
49
+ message: a("newsletter.html-content-is-empty")
50
+ }), !1), A = (e) => {
52
51
  const s = (e.match(/{/gm) || []).length, t = (e.match(/}/gm) || []).length;
53
- return s > t && a({
54
- type: c.Warning,
55
- message: r("custom-fields.missing-closing-braces")
56
- }), s < t && a({
57
- type: c.Warning,
58
- message: r("custom-fields.missing-opening-braces")
52
+ return s > t && i({
53
+ type: r.Warning,
54
+ message: a("custom-fields.missing-closing-braces")
55
+ }), s < t && i({
56
+ type: r.Warning,
57
+ message: a("custom-fields.missing-opening-braces")
59
58
  }), s === t;
60
- }, x = (e) => {
59
+ }, I = (e) => {
61
60
  const s = e.match(/{{\s*(\w+\s+((\w+\|\w+)|(\w+)))\s*}}/gm) === null;
62
- return s || a({
63
- type: c.Warning,
64
- message: r("custom-fields.invalid-custom-fields")
61
+ return s || i({
62
+ type: r.Warning,
63
+ message: a("custom-fields.invalid-custom-fields")
65
64
  }), s;
66
- }, T = (e, s) => {
65
+ }, k = (e, s) => {
67
66
  const t = e.match(/{{([a-zA-Z0-9_\s]*)}}/gm);
68
67
  if (t && !p) {
69
- const n = new Set(s.map((i) => i.toLowerCase())), l = U(e), o = [];
70
- if (t.forEach((i) => {
71
- const m = i.slice(2, -2).trim().toLowerCase();
72
- (!n.has(m) || m === "") && !Y(m, l) && o.push(m);
68
+ const n = new Set(s.map((l) => l.toLowerCase())), c = z(e), o = [];
69
+ if (t.forEach((l) => {
70
+ const m = l.slice(2, -2).trim().toLowerCase();
71
+ (!n.has(m) || m === "") && !K(m, c) && o.push(m);
73
72
  }), o.length > 0) {
74
- const i = `
73
+ const l = `
75
74
  <ul>
76
75
  ${o.map((m) => `<li>${m}</li>`).join("")}
77
76
  </ul>
78
77
  `;
79
- return a({
80
- type: c.Alert,
81
- message: r("custom-fields.invalid-custom-fields") + i
78
+ return i({
79
+ type: r.Alert,
80
+ message: a("custom-fields.invalid-custom-fields") + l
82
81
  }), !1;
83
82
  }
84
83
  }
85
84
  return !0;
86
- }, F = (e) => {
85
+ }, x = (e) => {
87
86
  const s = e.match(/{%(.*?)%}/g), t = [];
88
87
  let n = !0;
89
- if (s && s.forEach((l) => {
90
- const o = l.match(_), i = l.match(H), m = (o == null ? void 0 : o.join("")) || "";
91
- (!o || l !== m) && !i && (a({
92
- type: c.Alert,
93
- message: r("newsletter.display-conditions-invalid-syntax")
88
+ if (s && s.forEach((c) => {
89
+ const o = c.match(L), l = c.match(V), m = o?.join("") || "";
90
+ (!o || c !== m) && !l && (i({
91
+ type: r.Alert,
92
+ message: a("newsletter.display-conditions-invalid-syntax")
94
93
  }), n = !1), o && o.forEach((f) => {
95
- f.trim() === "=" && (a({
96
- type: c.Alert,
97
- message: r("custom-conditions.wrong-equality-operators")
94
+ f.trim() === "=" && (i({
95
+ type: r.Alert,
96
+ message: a("custom-conditions.wrong-equality-operators")
98
97
  }), n = !1);
99
- const v = f.match(/^[a-zA-Z]*$/g);
100
- v && v.forEach((C) => {
101
- S(C) && t.push(C);
98
+ const y = f.match(/^[a-zA-Z]*$/g);
99
+ y && y.forEach((h) => {
100
+ b(h) && t.push(h);
102
101
  });
103
102
  });
104
103
  }), t.length) {
105
- const l = t.filter((i) => i === "if"), o = t.filter((i) => i === "endif");
106
- l.length !== o.length && (a({
107
- type: c.Alert,
108
- message: r("custom-conditions.missing-if-endif-tag")
104
+ const c = t.filter((l) => l === "if"), o = t.filter((l) => l === "endif");
105
+ c.length !== o.length && (i({
106
+ type: r.Alert,
107
+ message: a("custom-conditions.missing-if-endif-tag")
109
108
  }), n = !1);
110
109
  }
111
110
  return n;
112
- }, W = (e) => {
111
+ }, T = (e) => {
113
112
  const s = (e.match(/{% /gm) || []).length, t = (e.match(/ %}/gm) || []).length, n = s === t;
114
- return n || a({
115
- type: c.Warning,
116
- message: r("custom-conditions.no-space-after-braces")
113
+ return n || i({
114
+ type: r.Warning,
115
+ message: a("custom-conditions.no-space-after-braces")
117
116
  }), n;
118
- }, N = (e) => (e.match(/({%(.*?)%})/g) || []).filter((t) => t.includes("if")).map((t) => (t.match(/{{.*}}/gm) || []).length).reduce((t, n) => t + n, 0) > 0 ? (a({
119
- type: c.Warning,
120
- message: r("custom-conditions.no-braces-inside-if-tag")
121
- }), !1) : !0, O = () => g.recommendationConfigs && Object.values(g.recommendationConfigs).find((s) => s.filters.find((t) => t.value === "")) !== void 0 ? (a({
122
- type: c.Alert,
123
- message: r("newsletter.fill-all-necessary-fields")
124
- }), !1) : !0, B = (e) => {
117
+ }, F = (e) => (e.match(/({%(.*?)%})/g) || []).filter((t) => t.includes("if")).map((t) => (t.match(/{{.*}}/gm) || []).length).reduce((t, n) => t + n, 0) > 0 ? (i({
118
+ type: r.Warning,
119
+ message: a("custom-conditions.no-braces-inside-if-tag")
120
+ }), !1) : !0, W = () => g.recommendationConfigs && Object.values(g.recommendationConfigs).find((s) => s.filters.find((t) => t.value === "")) !== void 0 ? (i({
121
+ type: r.Alert,
122
+ message: a("newsletter.fill-all-necessary-fields")
123
+ }), !1) : !0, N = (e) => {
125
124
  const s = /src="[^"]*\.(svg|pst)"/gm;
126
- return e.match(s) === null ? !0 : (a({
127
- type: c.Alert,
128
- message: r("newsletter.invalid-image-type")
125
+ return e.match(s) === null ? !0 : (i({
126
+ type: r.Alert,
127
+ message: a("newsletter.invalid-image-type")
129
128
  }), !1);
130
- }, R = (e) => {
129
+ }, O = (e) => {
131
130
  const n = new DOMParser().parseFromString(e, "text/html").querySelectorAll(".checkbox-block-v2");
132
- return Array.from(n).find((o) => {
133
- var i;
134
- return !((i = o.id) != null && i.trim());
135
- }) ? (a({
136
- type: c.Alert,
137
- message: r("unsubscribe-templates.select-checkbox-groups")
131
+ return Array.from(n).find((o) => !o.id?.trim()) ? (i({
132
+ type: r.Alert,
133
+ message: a("unsubscribe-templates.select-checkbox-groups")
138
134
  }), !1) : !0;
139
- }, D = (e) => {
135
+ }, B = (e) => {
140
136
  const n = new DOMParser().parseFromString(e, "text/html").querySelectorAll(".radio-button-v2");
141
- return Array.from(n).find((o) => {
142
- var i;
143
- return !((i = o.id) != null && i.trim());
144
- }) ? (a({
145
- type: c.Alert,
146
- message: r("unsubscribe-templates.select-radio-button-groups")
137
+ return Array.from(n).find((o) => !o.id?.trim()) ? (i({
138
+ type: r.Alert,
139
+ message: a("unsubscribe-templates.select-radio-button-groups")
147
140
  }), !1) : !0;
148
141
  };
149
142
  return { validateHtml: async (e, s, t = !1) => {
150
- var o, i;
151
143
  const n = [
152
- ...s.map((m) => m.value),
153
- ...M,
154
- ...((i = (o = d.value) == null ? void 0 : o.template) == null ? void 0 : i.customFieldAttributes) ?? []
144
+ ...s.map((o) => o.value),
145
+ ...P,
146
+ ...d.value?.template?.customFieldAttributes ?? []
155
147
  ];
156
- return await A(e, n, t) && I(e) && k(e) && x(e) && T(e, n) && F(e) && W(e) && N(e) && O() && B(e) && R(e) && D(e);
148
+ return await S(e, n, t) && E(e) && A(e) && I(e) && k(e, n) && x(e) && T(e) && F(e) && W() && N(e) && O(e) && B(e);
157
149
  } };
158
150
  };
159
151
  export {
160
- ce as useHtmlValidator
152
+ ae as useHtmlValidator
161
153
  };