@useinsider/guido 3.6.0-beta.596b70e → 3.6.0-beta.5cbaa8f

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 (36) hide show
  1. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +12 -10
  2. package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +32 -24
  3. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +40 -34
  4. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +338 -310
  5. package/dist/extensions/Blocks/Recommendation/extension.js +5 -6
  6. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +2 -3
  7. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +146 -117
  8. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +30 -49
  9. package/dist/extensions/Blocks/Recommendation/templates/index.js +8 -9
  10. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +83 -110
  11. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +21 -31
  12. package/dist/extensions/Blocks/Recommendation/templates/utils.js +54 -90
  13. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +19 -24
  14. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +16 -20
  15. package/dist/extensions/Blocks/Unsubscribe/block.js +122 -72
  16. package/dist/extensions/Blocks/controlFactories.js +133 -159
  17. package/dist/src/extensions/Blocks/Items/controls/index.d.ts +1 -1
  18. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +1 -1
  19. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +47 -20
  20. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +4 -4
  21. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +1 -1
  22. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +2 -3
  23. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +11 -127
  24. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +0 -15
  25. package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +113 -0
  26. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +9 -20
  27. package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +9 -0
  28. package/dist/src/extensions/Blocks/controlFactories.d.ts +1 -11
  29. package/package.json +1 -1
  30. package/dist/extensions/Blocks/Recommendation/utils/captureStyleTemplates.js +0 -139
  31. package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.test.d.ts +0 -1
  32. package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.test.d.ts +0 -1
  33. package/dist/src/extensions/Blocks/Recommendation/templates/utils.test.d.ts +0 -1
  34. package/dist/src/extensions/Blocks/Recommendation/utils/captureStyleTemplates.d.ts +0 -44
  35. package/dist/src/extensions/Blocks/Recommendation/utils/captureStyleTemplates.test.d.ts +0 -1
  36. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.test.d.ts +0 -1
@@ -1,29 +1,26 @@
1
- function n(t) {
1
+ function a(t) {
2
2
  return typeof t == "object" && t !== null && "tagName" in t && typeof t.tagName == "string";
3
3
  }
4
- function r(t) {
4
+ function n(t) {
5
5
  return typeof t == "object" && t !== null && "getTagName" in t && typeof t.getTagName == "function";
6
6
  }
7
- function u(t) {
7
+ function r(t) {
8
8
  return typeof t == "object" && t !== null && "getStyle" in t && typeof t.getStyle == "function";
9
9
  }
10
- function p(t) {
11
- return typeof t == "object" && t !== null && "getComputedStyle" in t && typeof t.getComputedStyle == "function";
10
+ function u(t) {
11
+ return typeof t == "object" && t !== null && "parent" in t && typeof t.parent == "function";
12
12
  }
13
13
  function g(t) {
14
- return typeof t == "object" && t !== null && "getAttribute" in t && typeof t.getAttribute == "function";
15
- }
16
- function a(t) {
17
- return typeof t == "object" && t !== null && "parent" in t && typeof t.parent == "function";
14
+ return typeof t == "object" && t !== null && "tagName" in t && t.tagName === "TD";
18
15
  }
19
- function y(t, e) {
20
- return !t || !u(t) ? null : t.getStyle(e);
16
+ function p(t, e) {
17
+ return !t || !r(t) ? null : t.getStyle(e);
21
18
  }
22
- function o(t) {
23
- return !t || !a(t) ? null : t.parent() ?? null;
19
+ function N(t) {
20
+ return !t || !u(t) ? null : t.parent() ?? null;
24
21
  }
25
22
  function l(t, e = "UNKNOWN") {
26
- return t ? n(t) ? t.tagName.toUpperCase() : r(t) ? t.getTagName().toUpperCase() : e : e;
23
+ return t ? a(t) ? t.tagName.toUpperCase() : n(t) ? t.getTagName().toUpperCase() : e : e;
27
24
  }
28
25
  const f = /* @__PURE__ */ new Set(["TD", "BLOCK_IMAGE", "BLOCK_BUTTON"]);
29
26
  function i(t) {
@@ -39,12 +36,11 @@ function s(t) {
39
36
  export {
40
37
  s as getTableDisplayValue,
41
38
  l as getTagName,
42
- g as hasGetAttribute,
43
- p as hasGetComputedStyle,
44
- u as hasGetStyle,
45
- a as hasParent,
39
+ r as hasGetStyle,
40
+ u as hasParent,
46
41
  c as isTableCellNode,
47
42
  i as isTableCellTag,
48
- o as safeGetParent,
49
- y as safeGetStyle
43
+ g as isTdNode,
44
+ N as safeGetParent,
45
+ p as safeGetStyle
50
46
  };
@@ -1,39 +1,41 @@
1
- var g = Object.defineProperty;
2
- var k = (c, n, e) => n in c ? g(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e;
3
- var l = (c, n, e) => k(c, typeof n != "symbol" ? n + "" : n, e);
4
- import { useToaster as B } from "../../../composables/useToaster.js";
5
- import { ToasterTypeOptions as S } from "../../../enums/toaster.js";
6
- import { PAGE_TYPES as E } from "../../../enums/unsubscribe.js";
7
- import { useUnsubscribeStore as a } from "../../../stores/unsubscribe.js";
8
- import { Block as L, BlockCompositionType as f, ContextActionType as h, ModificationDescription as b, BlockType as v } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
9
- import { getDefaultTemplate as A } from "./template.js";
10
- import { DATA_ATTRIBUTES as i, UNSUBSCRIBE_EVENTS as d } from "./utils/constants.js";
11
- import { parsePageList as p } from "./utils/utils.js";
12
- const y = "unsubscribe-block", m = 'a[data-unsubscribe-link="true"]', _ = ".unsubscribe-block-v2", I = "{{ins-unsubscribe-link}}", T = "https://academy.insiderone.com/docs/adding-unsubscribe-pages-into-emails", C = "Removing the unsubscribe text leaves an empty block, but an active unsubscribe link is required. Undo your last action to restore the text, or delete the unsubscribe block entirely.", N = {
13
- [E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
14
- [E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
15
- };
16
- class F extends L {
1
+ var S = Object.defineProperty;
2
+ var L = (c, o, e) => o in c ? S(c, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[o] = e;
3
+ var a = (c, o, e) => L(c, typeof o != "symbol" ? o + "" : o, e);
4
+ import { useToaster as f } from "../../../composables/useToaster.js";
5
+ import { ToasterTypeOptions as A } from "../../../enums/toaster.js";
6
+ import { PAGE_TYPES as h } from "../../../enums/unsubscribe.js";
7
+ import { useUnsubscribeStore as u } from "../../../stores/unsubscribe.js";
8
+ import { Block as y, BlockCompositionType as T, ContextActionType as k, ModificationDescription as d, BlockType as I } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
9
+ import { getDefaultTemplate as v } from "./template.js";
10
+ import { DATA_ATTRIBUTES as n, UNSUBSCRIBE_EVENTS as p } from "./utils/constants.js";
11
+ import { parsePageList as B } from "./utils/utils.js";
12
+ const C = "unsubscribe-block", m = 'a[data-unsubscribe-link="true"]', E = ".unsubscribe-block-v2", N = "{{ins-unsubscribe-link}}", U = "https://academy.insiderone.com/docs/adding-unsubscribe-pages-into-emails", R = "Removing the unsubscribe text leaves an empty block, but an active unsubscribe link is required. Undo your last action to restore the text, or delete the unsubscribe block entirely.", D = {
13
+ [h.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
14
+ [h.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
15
+ }, w = 3;
16
+ class H extends y {
17
17
  constructor() {
18
18
  super();
19
- l(this, "selectEventListener", null);
20
- l(this, "cancelEventListener", null);
21
- l(this, "currentNode");
19
+ a(this, "selectEventListener", null);
20
+ a(this, "cancelEventListener", null);
21
+ a(this, "currentNode");
22
22
  // Per-block "did this instance have a link last time we saw it?" tracking.
23
23
  // Keyed by the stable `data-unsubscribe-block-id` we assign, because
24
24
  // ImmutableHtmlNode instances are recreated on every document mutation and
25
25
  // can't be used as Map keys directly. A singleton boolean here would be
26
26
  // polluted across blocks since Stripo fires onDocumentChanged per-instance.
27
- l(this, "linkStateByBlockId", /* @__PURE__ */ new Map());
27
+ a(this, "linkStateByBlockId", /* @__PURE__ */ new Map());
28
+ // Per-block prepend retry counter for the leading text guard (SD-143097).
29
+ a(this, "guardAttemptsByBlockId", /* @__PURE__ */ new Map());
28
30
  }
29
31
  getId() {
30
- return y;
32
+ return C;
31
33
  }
32
34
  getIcon() {
33
35
  return "unsubscribe-icon";
34
36
  }
35
37
  getBlockCompositionType() {
36
- return f.BLOCK;
38
+ return T.BLOCK;
37
39
  }
38
40
  getName() {
39
41
  return this.api.translate("Unsubscribe Block");
@@ -42,36 +44,84 @@ class F extends L {
42
44
  return this.api.translate("Unsubscribe Block Description");
43
45
  }
44
46
  getTemplate() {
45
- return A();
47
+ return v();
46
48
  }
47
49
  getContextActionsIds() {
48
- return [h.MOVE, h.REMOVE];
50
+ return [k.MOVE, k.REMOVE];
49
51
  }
50
52
  onSelect(e) {
51
53
  this.currentNode = e;
52
54
  const t = this._getOrAssignBlockId(e);
53
55
  t && this.linkStateByBlockId.set(t, this._hasUnsubscribeLink(e)), !("getAttribute" in e && e.getAttribute("data-migration")) && (this._resetStoreState(), this._loadBlockState(e), this._setupSelectEventListener(), this._setupCancelEventListener(), this._checkExistingBlocks(), this._openDrawer());
54
56
  }
57
+ onCreated(e) {
58
+ this._ensureLeadingTextGuard(e);
59
+ }
60
+ onDocumentInit() {
61
+ try {
62
+ const e = this.api.getDocumentRoot();
63
+ e && "querySelectorAll" in e && e.querySelectorAll(E).forEach((t) => {
64
+ this._ensureLeadingTextGuard(t);
65
+ });
66
+ } catch {
67
+ }
68
+ }
55
69
  onDocumentChanged(e) {
70
+ this._ensureLeadingTextGuard(e);
56
71
  const t = this._getOrAssignBlockId(e);
57
72
  if (!t)
58
73
  return;
59
- const r = this._hasUnsubscribeLink(e);
60
- this.linkStateByBlockId.get(t) === !0 && !r && this._warnLinkRemoved(), this.linkStateByBlockId.set(t, r);
74
+ const s = this._hasUnsubscribeLink(e);
75
+ this.linkStateByBlockId.get(t) === !0 && !s && this._warnLinkRemoved(), this.linkStateByBlockId.set(t, s);
61
76
  }
62
77
  onDelete(e) {
63
78
  this._removeEventListeners(), this._removeBlockTemplatesFromStore(e), this._resetStoreState();
64
79
  const t = this._readBlockId(e);
65
- t && this.linkStateByBlockId.delete(t);
80
+ t && (this.linkStateByBlockId.delete(t), this.guardAttemptsByBlockId.delete(t));
66
81
  }
67
82
  onDestroy() {
68
- this._removeEventListeners(), this.currentNode = void 0, this.linkStateByBlockId.clear();
83
+ this._removeEventListeners(), this.currentNode = void 0, this.linkStateByBlockId.clear(), this.guardAttemptsByBlockId.clear();
84
+ }
85
+ /**
86
+ * Guarantees a plain-text node before the link's wrapper inside the <p>.
87
+ * Without it the only caret position left of the link is inside the anchor,
88
+ * so anything typed there becomes part of the link (SD-143097).
89
+ */
90
+ _ensureLeadingTextGuard(e) {
91
+ if (!("querySelector" in e))
92
+ return;
93
+ const t = e.querySelector(m);
94
+ if (!t)
95
+ return;
96
+ let s = t, r = s.parent();
97
+ for (; r && "getTagName" in r && r.getTagName().toLowerCase() !== "p"; )
98
+ s = r, r = r.parent();
99
+ if (!r || !("getTagName" in r) || r.getTagName().toLowerCase() !== "p")
100
+ return;
101
+ const i = s.previousSibling();
102
+ if (!!(i && i.getType() === "text" && i.getTextContent())) {
103
+ const b = this._readBlockId(e);
104
+ b && this.guardAttemptsByBlockId.delete(b);
105
+ return;
106
+ }
107
+ const g = this._getOrAssignBlockId(e);
108
+ if (!g)
109
+ return;
110
+ const _ = this.guardAttemptsByBlockId.get(g) ?? 0;
111
+ if (!(_ >= w)) {
112
+ this.guardAttemptsByBlockId.set(g, _ + 1);
113
+ try {
114
+ this.api.getDocumentModifier().modifyHtml(r).prepend("&nbsp;").apply(new d("Ensure unsubscribe link text guard"));
115
+ } catch (b) {
116
+ console.warn("[UnsubscribeBlock] Failed to ensure link text guard:", b);
117
+ }
118
+ }
69
119
  }
70
120
  _hasUnsubscribeLink(e) {
71
121
  return "querySelector" in e ? !!e.querySelector(m) : !1;
72
122
  }
73
123
  _readBlockId(e) {
74
- return "getAttribute" in e ? e.getAttribute(i.BLOCK_ID) : null;
124
+ return "getAttribute" in e ? e.getAttribute(n.BLOCK_ID) : null;
75
125
  }
76
126
  /**
77
127
  * Returns the block's stable id, assigning one via the document modifier if
@@ -85,13 +135,13 @@ class F extends L {
85
135
  return t;
86
136
  if (!("getAttribute" in e))
87
137
  return null;
88
- const r = this._generateNextBlockId();
138
+ const s = this._generateNextBlockId();
89
139
  try {
90
- this.api.getDocumentModifier().modifyHtml(e).setAttribute(i.BLOCK_ID, r).apply(new b(`Assign unsubscribe block id ${r}`));
91
- } catch (s) {
92
- return console.warn("[UnsubscribeBlock] Failed to assign block id:", s), null;
140
+ this.api.getDocumentModifier().modifyHtml(e).setAttribute(n.BLOCK_ID, s).apply(new d(`Assign unsubscribe block id ${s}`));
141
+ } catch (r) {
142
+ return console.warn("[UnsubscribeBlock] Failed to assign block id:", r), null;
93
143
  }
94
- return r;
144
+ return s;
95
145
  }
96
146
  /**
97
147
  * Generates a unique id by scanning the document for the highest existing
@@ -102,10 +152,10 @@ class F extends L {
102
152
  let e = 0;
103
153
  try {
104
154
  const t = this.api.getDocumentRoot();
105
- t && "querySelectorAll" in t && t.querySelectorAll(_).forEach((s) => {
106
- if ("getAttribute" in s) {
107
- const o = s.getAttribute(i.BLOCK_ID), u = o ? parseInt(o) : 0;
108
- u > e && (e = u);
155
+ t && "querySelectorAll" in t && t.querySelectorAll(E).forEach((r) => {
156
+ if ("getAttribute" in r) {
157
+ const i = r.getAttribute(n.BLOCK_ID), l = i ? parseInt(i) : 0;
158
+ l > e && (e = l);
109
159
  }
110
160
  });
111
161
  } catch {
@@ -114,14 +164,14 @@ class F extends L {
114
164
  }
115
165
  _warnLinkRemoved() {
116
166
  try {
117
- const { showToaster: e } = B();
167
+ const { showToaster: e } = f();
118
168
  e({
119
- type: S.Warning,
120
- message: this.api.translate(C),
169
+ type: A.Warning,
170
+ message: this.api.translate(R),
121
171
  actionButton: {
122
172
  text: this.api.translate("Visit Academy"),
123
173
  onClick: () => {
124
- window.open(T, "_blank", "noopener,noreferrer");
174
+ window.open(U, "_blank", "noopener,noreferrer");
125
175
  }
126
176
  }
127
177
  });
@@ -131,26 +181,26 @@ class F extends L {
131
181
  }
132
182
  _setupSelectEventListener() {
133
183
  this._removeSelectEventListener(), this.selectEventListener = (e) => {
134
- const t = e, { collectionType: r, selectedPages: s } = t.detail;
135
- this._updateBlock(r, s.join(","));
136
- }, document.addEventListener(d.SELECT, this.selectEventListener);
184
+ const t = e, { collectionType: s, selectedPages: r } = t.detail;
185
+ this._updateBlock(s, r.join(","));
186
+ }, document.addEventListener(p.SELECT, this.selectEventListener);
137
187
  }
138
188
  _removeSelectEventListener() {
139
- this.selectEventListener && (document.removeEventListener(d.SELECT, this.selectEventListener), this.selectEventListener = null);
189
+ this.selectEventListener && (document.removeEventListener(p.SELECT, this.selectEventListener), this.selectEventListener = null);
140
190
  }
141
191
  _setupCancelEventListener() {
142
192
  this._removeCancelEventListener(), this.cancelEventListener = () => {
143
193
  this._handleCancel();
144
- }, document.addEventListener(d.CANCEL, this.cancelEventListener);
194
+ }, document.addEventListener(p.CANCEL, this.cancelEventListener);
145
195
  }
146
196
  _removeCancelEventListener() {
147
- this.cancelEventListener && (document.removeEventListener(d.CANCEL, this.cancelEventListener), this.cancelEventListener = null);
197
+ this.cancelEventListener && (document.removeEventListener(p.CANCEL, this.cancelEventListener), this.cancelEventListener = null);
148
198
  }
149
199
  _handleCancel() {
150
200
  try {
151
201
  if (!this.currentNode)
152
202
  return;
153
- this.api.getDocumentModifier().modifyHtml(this.currentNode).replaceWith(`<${v.EMPTY_CONTAINER}/>`).apply(new b("Removed unsubscribe block due to cancel"));
203
+ this.api.getDocumentModifier().modifyHtml(this.currentNode).replaceWith(`<${I.EMPTY_CONTAINER}/>`).apply(new d("Removed unsubscribe block due to cancel"));
154
204
  } catch (e) {
155
205
  console.warn("[UnsubscribeBlock] Failed to remove unsubscribe block:", e);
156
206
  }
@@ -161,32 +211,32 @@ class F extends L {
161
211
  _updateBlock(e, t) {
162
212
  if (!this.currentNode || !("querySelector" in this.currentNode))
163
213
  return;
164
- const r = this.currentNode.querySelector(m);
165
- if (!r)
214
+ const s = this.currentNode.querySelector(m);
215
+ if (!s)
166
216
  return;
167
- const s = this._getMergeTag(e);
168
- this.api.getDocumentModifier().modifyHtml(r).setAttribute("href", s).apply(new b(`Updated unsubscribe link to ${s}`)), this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute(i.PAGE_TYPE, e.toString()).setAttribute(i.PAGE_LIST, t).apply(new b("Updated unsubscribe block metadata"));
217
+ const r = this._getMergeTag(e);
218
+ this.api.getDocumentModifier().modifyHtml(s).setAttribute("href", r).apply(new d(`Updated unsubscribe link to ${r}`)), this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute(n.PAGE_TYPE, e.toString()).setAttribute(n.PAGE_LIST, t).apply(new d("Updated unsubscribe block metadata"));
169
219
  }
170
220
  _getMergeTag(e) {
171
- return N[e] ?? I;
221
+ return D[e] ?? N;
172
222
  }
173
223
  _openDrawer() {
174
224
  if (!(this.currentNode && this.currentNode.getAttribute("data-unsubscribe-page-type")))
175
225
  try {
176
- const e = a();
226
+ const e = u();
177
227
  e.typeSelectionDrawerStatus = !0;
178
228
  } catch (e) {
179
229
  console.error("[UnsubscribeBlock] Failed to open drawer:", e);
180
230
  }
181
231
  }
182
232
  _checkExistingBlocks() {
183
- const e = a();
184
- e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(_).forEach((r) => {
185
- if ("getAttribute" in r) {
186
- const s = r.getAttribute(i.PAGE_TYPE);
187
- if (s) {
188
- const o = Number(s);
189
- o === E.GLOBAL_UNSUBSCRIBE ? e.isGlobalUnsubscribeDisabled = !0 : o === E.SUBSCRIPTION_PREFERENCE_CENTER && (e.isSubscriptionPreferencesCenterDisabled = !0);
233
+ const e = u();
234
+ e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(E).forEach((s) => {
235
+ if ("getAttribute" in s) {
236
+ const r = s.getAttribute(n.PAGE_TYPE);
237
+ if (r) {
238
+ const i = Number(r);
239
+ i === h.GLOBAL_UNSUBSCRIBE ? e.isGlobalUnsubscribeDisabled = !0 : i === h.SUBSCRIPTION_PREFERENCE_CENTER && (e.isSubscriptionPreferencesCenterDisabled = !0);
190
240
  }
191
241
  }
192
242
  });
@@ -194,26 +244,26 @@ class F extends L {
194
244
  async _loadBlockState(e) {
195
245
  if (!("getAttribute" in e))
196
246
  return;
197
- const t = e.getAttribute(i.PAGE_TYPE), r = e.getAttribute(i.PAGE_LIST);
198
- if (!t || !r)
247
+ const t = e.getAttribute(n.PAGE_TYPE), s = e.getAttribute(n.PAGE_LIST);
248
+ if (!t || !s)
199
249
  return;
200
- const s = a(), o = Number(t), u = p(r);
201
- await s.fetchTemplates(), s.setCollectionWithoutAutoSelection(o), s.loadSelectedTemplates(u);
250
+ const r = u(), i = Number(t), l = B(s);
251
+ await r.fetchTemplates(), r.setCollectionWithoutAutoSelection(i), r.loadSelectedTemplates(l);
202
252
  }
203
253
  _resetStoreState() {
204
- a().$reset();
254
+ u().$reset();
205
255
  }
206
256
  _removeBlockTemplatesFromStore(e) {
207
257
  if (!("getAttribute" in e))
208
258
  return;
209
- const t = e.getAttribute(i.PAGE_LIST);
259
+ const t = e.getAttribute(n.PAGE_LIST);
210
260
  if (!t)
211
261
  return;
212
- const r = a(), s = p(t);
213
- r.removeUnsubscribePages(s);
262
+ const s = u(), r = B(t);
263
+ s.removeUnsubscribePages(r);
214
264
  }
215
265
  }
216
266
  export {
217
- y as UNSUBSCRIBE_BLOCK_ID,
218
- F as UnsubscribeBlock
267
+ C as UNSUBSCRIBE_BLOCK_ID,
268
+ H as UnsubscribeBlock
219
269
  };