@useinsider/guido 3.2.0-beta.64b2dc3 → 3.2.0-beta.6f6a5ed

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 (35) hide show
  1. package/dist/composables/useRecommendation.js +2 -2
  2. package/dist/composables/useStripo.js +5 -5
  3. package/dist/config/compiler/utils/recommendationCompilerUtils.js +33 -30
  4. package/dist/config/migrator/recommendationMigrator.js +1 -1
  5. package/dist/enums/displayConditions.js +78 -82
  6. package/dist/enums/extensions/recommendationBlock.js +41 -95
  7. package/dist/enums/unsubscribe.js +16 -17
  8. package/dist/extensions/Blocks/Checkbox/control.js +23 -23
  9. package/dist/extensions/Blocks/RadioButton/control.js +15 -15
  10. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  11. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +21 -18
  12. package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
  13. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +6 -6
  14. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +3 -1
  15. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
  16. package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
  17. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +18 -17
  18. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +31 -27
  19. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
  20. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +17 -14
  21. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +393 -264
  22. package/dist/package.json.js +1 -1
  23. package/dist/src/enums/displayConditions.d.ts +1 -5
  24. package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -5
  25. package/dist/src/enums/unsubscribe.d.ts +3 -8
  26. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
  27. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
  28. package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
  29. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
  30. package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
  31. package/dist/static/styles/components/button.css.js +16 -9
  32. package/dist/static/styles/components/loader.css.js +4 -0
  33. package/dist/static/styles/components/narrow-panel.css.js +52 -0
  34. package/dist/static/templates/empty/style.css.js +0 -1
  35. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { getRecommendationFeedSourceMaps as g, URLS as p } from "../enums/extensions/recommendationBlock.js";
1
+ import { RecommendationFeedSourceMaps as g, URLS as p } from "../enums/extensions/recommendationBlock.js";
2
2
  import { MinDeviceViewport as R, DefaultPadding as b } from "../enums/recommendation.js";
3
3
  import { useRecommendationExtensionStore as u } from "../extensions/Blocks/Recommendation/store/recommendation.js";
4
4
  import { generateCompleteFilterQuery as x } from "../extensions/Blocks/Recommendation/utils/filterUtil.js";
@@ -47,7 +47,7 @@ const N = () => ({
47
47
  const n = u(), o = I(), a = Number(i), r = n.blockStates[a];
48
48
  if (!r)
49
49
  return "";
50
- const { recommendationConfigs: e } = r, l = ((m = g().find((s) => s.key === e.strategy)) == null ? void 0 : m.path) || "", t = new URLSearchParams();
50
+ const { recommendationConfigs: e } = r, l = ((m = g.find((s) => s.key === e.strategy)) == null ? void 0 : m.path) || "", t = new URLSearchParams();
51
51
  t.set("locale", e.language), t.set("currency", e.currencySettings.value), t.set("partnerName", o.partnerName), t.set("size", e.size), t.set("details", "true"), t.set("campaignId", o.variationId), e.strategy === "manualMerchandising" ? t.set("productId", e.productIds.join(",")) : e.strategy === "similarViewed" && t.set("productId", "{itemId}"), e.strategy === "userBased" && t.set("userId", "{user_id}");
52
52
  const f = e.filters.filter((s) => s.isValid), c = x(f);
53
53
  c && t.set("filter", c), e.shuffleProducts && t.set("shuffle", "true");
@@ -1,4 +1,4 @@
1
- import { useActionsApi as A } from "./useActionsApi.js";
1
+ import { useActionsApi as D } from "./useActionsApi.js";
2
2
  import { useBlocksConfig as I } from "./useBlocksConfig.js";
3
3
  import { useConfig as P } from "./useConfig.js";
4
4
  import { useCustomInterfaceAppearance as U } from "./useCustomInterfaceAppearance.js";
@@ -6,7 +6,7 @@ import { useFullStoryBridge as R } from "./useFullStoryBridge.js";
6
6
  import { useStripoEventHandler as q } from "./useStripoEventHandler.js";
7
7
  import { useToaster as x } from "./useToaster.js";
8
8
  import { localePatch as H } from "../config/i18n/index.js";
9
- import { getDisplayConditions as O } from "../enums/displayConditions.js";
9
+ import { displayConditions as O } from "../enums/displayConditions.js";
10
10
  import { useStripoApi as j } from "../services/stripoApi.js";
11
11
  import L from "../static/styles/customEditorStyle.css.js";
12
12
  import { useEditorStore as C } from "../stores/editor.js";
@@ -35,7 +35,7 @@ const ae = (E, l) => {
35
35
  customViewStyles: L,
36
36
  conditionsEnabled: f,
37
37
  customConditionsEnabled: f,
38
- conditionCategories: O(),
38
+ conditionCategories: O,
39
39
  enableXSSSecurity: !0,
40
40
  modulesDisabled: F,
41
41
  syncModulesEnabled: s,
@@ -70,8 +70,8 @@ const ae = (E, l) => {
70
70
  },
71
71
  onTemplateLoaded() {
72
72
  try {
73
- const { importCss: t } = U(), { activateCustomViewStyles: n, updateTimerInClonedTemplate: D } = A(), { injectFullStory: M } = R();
74
- t(), n(), M(), D(), l.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
73
+ const { importCss: t } = U(), { activateCustomViewStyles: n, updateTimerInClonedTemplate: M } = D(), { injectFullStory: A } = R();
74
+ t(), n(), A(), M(), l.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
75
75
  e.hasChanges = !1;
76
76
  }, 1e3);
77
77
  } catch (t) {
@@ -1,10 +1,11 @@
1
1
  import { useConfig as S } from "../../../composables/useConfig.js";
2
2
  import { useRecommendation as _ } from "../../../composables/useRecommendation.js";
3
+ import { useRecommendationExtensionStore as d } from "../../../extensions/Blocks/Recommendation/store/recommendation.js";
3
4
  function y(e, u, r, o, s = "") {
4
5
  const n = `{{${s}${e}_${u}_${r}}}`, t = `{{${s}${e}_${u}_currency}}`;
5
6
  return o === "before" ? `${t} ${n}` : `${n} ${t}`;
6
7
  }
7
- function p(e, u, r, o, s, n) {
8
+ function m(e, u, r, o, s, n) {
8
9
  switch (u) {
9
10
  case "productImage": {
10
11
  const t = e.querySelector("img");
@@ -69,67 +70,69 @@ function p(e, u, r, o, s, n) {
69
70
  default: {
70
71
  const t = e.getAttribute("product-attr") ? e : e.querySelector("[product-attr]");
71
72
  if (t) {
72
- const c = t.getAttribute("product-attr"), i = t.querySelector("p");
73
- if (i) {
74
- const a = i.querySelector("strong") || i;
75
- a.textContent = `{{${n}${r}_${o}_${c}}}`;
73
+ const c = t.getAttribute("product-attr"), a = t.querySelector("p");
74
+ if (a) {
75
+ const i = a.querySelector("strong") || a;
76
+ i.textContent = `{{${n}${r}_${o}_${c}}}`;
76
77
  }
77
78
  }
78
79
  break;
79
80
  }
80
81
  }
81
82
  }
82
- function d(e, u, r, o) {
83
+ function q(e, u, r, o) {
83
84
  e.querySelectorAll(".recommendation-product-row").forEach((n, t) => {
84
- n.querySelectorAll("[data-attribute-type]").forEach((i) => {
85
- const a = i.getAttribute("data-attribute-type") || "", b = i.querySelectorAll(".attribute-cell");
86
- b.length > 0 ? b.forEach((l) => {
87
- p(l, a, u, t, r, o);
88
- }) : p(i, a, u, t, r, o);
85
+ n.querySelectorAll("[data-attribute-type]").forEach((a) => {
86
+ const i = a.getAttribute("data-attribute-type") || "", l = a.querySelectorAll(".attribute-cell");
87
+ l.length > 0 ? l.forEach((p) => {
88
+ m(p, i, u, t, r, o);
89
+ }) : m(a, i, u, t, r, o);
89
90
  });
90
91
  });
91
92
  }
92
- function q(e, u, r, o) {
93
+ function g(e, u, r, o) {
93
94
  const s = e.querySelectorAll(".recommendation-product-row");
94
95
  if (!s.length)
95
96
  return;
96
97
  const [n] = s, t = n.querySelector("[data-attribute-type]"), c = t ? t.querySelectorAll(".attribute-cell").length : 1;
97
- s.forEach((i, a) => {
98
- i.querySelectorAll("[data-attribute-type]").forEach((l) => {
99
- const m = l.getAttribute("data-attribute-type") || "";
100
- l.querySelectorAll(".attribute-cell").forEach(($, f) => {
101
- const A = a * c + f;
102
- p($, m, u, A, r, o);
98
+ s.forEach((a, i) => {
99
+ a.querySelectorAll("[data-attribute-type]").forEach((p) => {
100
+ const b = p.getAttribute("data-attribute-type") || "";
101
+ p.querySelectorAll(".attribute-cell").forEach((f, $) => {
102
+ const A = i * c + $;
103
+ m(f, b, u, A, r, o);
103
104
  });
104
105
  });
105
106
  });
106
107
  }
107
- function g(e, u, r, o) {
108
+ function h(e, u, r, o) {
108
109
  e.querySelectorAll(".ins-recommendation-product-container").forEach((n) => {
109
- q(n, u, r, o);
110
+ g(n, u, r, o);
110
111
  });
111
112
  }
112
- function h(e, u, r) {
113
+ function C(e, u, r) {
113
114
  const o = e.getAttribute("data-layout") || "grid", s = e.getAttribute("currency-alignment") || "after";
114
- o === "list" ? d(e, u, s, r) : g(e, u, s, r);
115
+ o === "list" ? q(e, u, s, r) : h(e, u, s, r);
115
116
  }
116
- function C(e, u) {
117
+ function E(e, u) {
117
118
  const r = e.match(/<!DOCTYPE[^>]*>/i);
118
119
  return (r ? `${r[0]}
119
120
  ` : "") + u.documentElement.outerHTML;
120
121
  }
121
- function P(e) {
122
+ function T(e) {
122
123
  const u = e.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), r = new DOMParser().parseFromString(u, "text/html"), o = r.querySelectorAll(".recommendation-block-v2");
123
124
  if (!o.length)
124
125
  return e;
125
- const { buildCampaignUrl: s } = _(), { isFeatureEnabled: n } = S(), t = n("liquidSyntax") ? "reco_" : "";
126
+ const { buildCampaignUrl: s } = _(), n = d();
127
+ n.recommendationCampaignUrls = {};
128
+ const { isFeatureEnabled: t } = S(), c = t("liquidSyntax") ? "reco_" : "";
126
129
  return o.forEach((i) => {
127
- var b, l;
128
- const a = i.getAttribute("recommendation-id");
129
- a && ((b = i.parentNode) == null || b.insertBefore(r.createComment("REC_START"), i), (l = i.parentNode) == null || l.insertBefore(r.createComment("REC_END"), i.nextSibling), s(a), h(i, a, t));
130
- }), C(u, r).replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("&lt;!--{%", "{%").replaceAll("%}--&gt;", "%}");
130
+ var p, b;
131
+ const l = i.getAttribute("recommendation-id");
132
+ l && ((p = i.parentNode) == null || p.insertBefore(r.createComment("REC_START"), i), (b = i.parentNode) == null || b.insertBefore(r.createComment("REC_END"), i.nextSibling), s(l), C(i, l, c));
133
+ }), E(u, r).replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("&lt;!--{%", "{%").replaceAll("%}--&gt;", "%}");
131
134
  }
132
135
  export {
133
136
  y as formatPriceVariable,
134
- P as prepareRecommendationBlocks
137
+ T as prepareRecommendationBlocks
135
138
  };
@@ -13,7 +13,7 @@ class B {
13
13
  migrate(e) {
14
14
  try {
15
15
  const t = this.parser.parseFromString(e, "text/html"), s = t.querySelectorAll(
16
- 'td.ins-recommendation-v3-block-1, td.product-block[esd-handler-name*="EmailRecommendationV3"]'
16
+ 'td.ins-recommendation-v3-block-1:not(.recommendation-block-v2), td.product-block[esd-handler-name*="EmailRecommendationV3"]:not(.recommendation-block-v2)'
17
17
  );
18
18
  return w().$patch((i) => {
19
19
  i.migrations = { ...i.migrations, [S]: s.length };
@@ -1,84 +1,80 @@
1
- import { useTranslations as i } from "../composables/useTranslations.js";
2
- const t = () => {
3
- const e = i();
4
- return [
5
- {
6
- category: e("journey-builder.demographics"),
7
- conditions: [
8
- {
9
- id: 1,
10
- name: e("condition.language"),
11
- description: e("journey-builder.display-condition-language-description"),
12
- beforeScript: '{% if language == "en_US" %}',
13
- afterScript: "{% endif %}"
14
- },
15
- {
16
- id: 2,
17
- name: e("condition.country"),
18
- description: e("journey-builder.display-condition-country-description"),
19
- beforeScript: '{% if country == "Australia" %}',
20
- afterScript: "{% endif %}"
21
- },
22
- {
23
- id: 3,
24
- name: e("stripo-editor.country-and-city"),
25
- description: e("journey-builder.display-condition-country-city-description"),
26
- beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
27
- afterScript: "{% endif %}"
28
- },
29
- {
30
- id: 4,
31
- name: e("stripo-editor.age-less-than-operator"),
32
- description: e("journey-builder.display-condition-age-less-than"),
33
- beforeScript: "{% if age < 18 %}",
34
- afterScript: "{% endif %}"
35
- },
36
- {
37
- id: 5,
38
- name: e("stripo-editor.age-equal-greater-operator"),
39
- description: e("journey-builder.display-condition-age-equal-greater"),
40
- beforeScript: "{% if age >= 25 %}",
41
- afterScript: "{% endif %}"
42
- },
43
- {
44
- id: 6,
45
- name: e("stripo-editor.age-greater-less-operators"),
46
- description: e("journey-builder.display-condition-age-between"),
47
- beforeScript: "{% if age > 18 and age < 25 %}",
48
- afterScript: "{% endif %}"
49
- },
50
- {
51
- id: 7,
52
- name: e("condition.gender"),
53
- description: e("journey-builder.display-condition-gender-female"),
54
- beforeScript: '{% if gender == "Female" %}',
55
- afterScript: "{% endif %}"
56
- },
57
- {
58
- id: 8,
59
- name: e("journey-builder.state"),
60
- description: e("stripo-editor.state-description"),
61
- beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
62
- afterScript: "{% endif %}"
63
- },
64
- {
65
- id: 9,
66
- name: e("journey-builder.vip-user"),
67
- description: e("stripo-editor.vip-user-description"),
68
- beforeScript: "{% if c_is_vip_user %}",
69
- afterScript: "{% endif %}"
70
- },
71
- {
72
- id: 10,
73
- name: e("journey-builder.membership-type"),
74
- description: e("stripo-editor.membership-type-description"),
75
- beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
76
- afterScript: "{% endif %}"
77
- }
78
- ]
79
- }
80
- ];
81
- };
1
+ const e = [
2
+ {
3
+ category: "Demographics",
4
+ conditions: [
5
+ {
6
+ id: 1,
7
+ name: "Language",
8
+ description: "Users who are in the English will see the banner",
9
+ beforeScript: '{% if language == "en_US" %}',
10
+ afterScript: "{% endif %}"
11
+ },
12
+ {
13
+ id: 2,
14
+ name: "Country",
15
+ description: "Only people who live in Australia will see the banner",
16
+ beforeScript: '{% if country == "Australia" %}',
17
+ afterScript: "{% endif %}"
18
+ },
19
+ {
20
+ id: 3,
21
+ name: "Country & City",
22
+ description: "Only people who are located in that country and city",
23
+ beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
24
+ afterScript: "{% endif %}"
25
+ },
26
+ {
27
+ id: 4,
28
+ name: "Age (Less than operator)",
29
+ description: "Users whose age is less than 18",
30
+ beforeScript: "{% if age < 18 %}",
31
+ afterScript: "{% endif %}"
32
+ },
33
+ {
34
+ id: 5,
35
+ name: "Age (Equal and greater than operator)",
36
+ description: "Users whose age is equal or greater than 25",
37
+ beforeScript: "{% if age >= 25 %}",
38
+ afterScript: "{% endif %}"
39
+ },
40
+ {
41
+ id: 6,
42
+ name: "Age (Greater than & less than operators)",
43
+ description: "Users whose age is between 18 and 25",
44
+ beforeScript: "{% if age > 18 and age < 25 %}",
45
+ afterScript: "{% endif %}"
46
+ },
47
+ {
48
+ id: 7,
49
+ name: "Gender",
50
+ description: "Users whose gender is Female",
51
+ beforeScript: '{% if gender == "Female" %}',
52
+ afterScript: "{% endif %}"
53
+ },
54
+ {
55
+ id: 8,
56
+ name: "State",
57
+ description: "Users whose state is one of the followings. c_state is a custom attribute. Use this condition if you have the attribute with the same naming. ",
58
+ beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
59
+ afterScript: "{% endif %}"
60
+ },
61
+ {
62
+ id: 9,
63
+ name: "VIP User",
64
+ description: "Users who are VIP users for that brand. c_is_vip_user = true. c_is_vip_user is a custom attribute. Use this condition if you have the attribute with the same naming.",
65
+ beforeScript: "{% if c_is_vip_user %}",
66
+ afterScript: "{% endif %}"
67
+ },
68
+ {
69
+ id: 10,
70
+ name: "Membership Type",
71
+ description: "Users who belong to gold or silver membership type. c_is_gold_member = true, c_is_silver_member = true. These are custom attributes. Use this condition if you have the attribute with the same naming.",
72
+ beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
73
+ afterScript: "{% endif %}"
74
+ }
75
+ ]
76
+ }
77
+ ];
82
78
  export {
83
- t as getDisplayConditions
79
+ e as displayConditions
84
80
  };
@@ -1,97 +1,43 @@
1
- import { useTranslations as a } from "../../composables/useTranslations.js";
2
- const u = {
1
+ const s = {
3
2
  RECOMMENDATION_API_URL: "https://recommendationv2.api.useinsider.com"
4
- }, l = {
3
+ }, i = {
5
4
  CLIENT_ID: "clientId"
6
- }, c = () => {
7
- const e = a();
8
- return [
9
- {
10
- id: 11,
11
- key: "similarViewed",
12
- name: e("action-builder.similar-viewed"),
13
- path: "viewed-together"
14
- },
15
- {
16
- id: 12,
17
- key: "similarBought",
18
- name: e("action-builder.similar-bought"),
19
- path: "purchased-together"
20
- },
21
- {
22
- id: 13,
23
- key: "userBased",
24
- name: e("action-builder.user-based"),
25
- path: "user-based"
26
- },
27
- {
28
- id: 36,
29
- key: "highestDiscounted",
30
- name: e("journey-builder.highest-discounted-items"),
31
- path: "highest-discounted"
32
- },
33
- {
34
- id: 38,
35
- key: "manualMerchandising",
36
- name: e("action-builder.manual-merchandising"),
37
- path: "manual-merchandising"
38
- },
39
- {
40
- id: 39,
41
- key: "newArrivals",
42
- name: e("action-builder.new-arrivals"),
43
- path: "new-arrivals"
44
- },
45
- {
46
- id: 40,
47
- key: "trendingProducts",
48
- name: e("journey-builder.trending-products"),
49
- path: "trending"
50
- },
51
- {
52
- id: 46,
53
- key: "mostValuableOfPartner",
54
- name: e("journey-builder.most-valuable-products"),
55
- path: "most-valuable"
56
- },
57
- {
58
- id: 61,
59
- key: "mostPopular",
60
- name: e("journey-builder.most-popular-items"),
61
- path: "most-popular"
62
- },
63
- {
64
- id: 62,
65
- key: "mostPurchased",
66
- name: e("action-builder.most-purchased"),
67
- path: "top-sellers"
68
- }
69
- ];
70
- }, d = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], m = [
5
+ }, u = [
6
+ { id: 11, key: "similarViewed", name: "Viewed Together", path: "viewed-together" },
7
+ { id: 12, key: "similarBought", name: "Purchased Together", path: "purchased-together" },
8
+ { id: 13, key: "userBased", name: "User Based", path: "user-based" },
9
+ { id: 36, key: "highestDiscounted", name: "Highest Discounted Items", path: "highest-discounted" },
10
+ { id: 38, key: "manualMerchandising", name: "Manual Merchandising", path: "manual-merchandising" },
11
+ { id: 39, key: "newArrivals", name: "New Arrivals", path: "new-arrivals" },
12
+ { id: 40, key: "trendingProducts", name: "Trending Products", path: "trending" },
13
+ { id: 46, key: "mostValuableOfPartner", name: "Most Valuable Products", path: "most-valuable" },
14
+ { id: 61, key: "mostPopular", name: "Most Popular Items", path: "most-popular" },
15
+ { id: 62, key: "mostPurchased", name: "Top Sellers", path: "top-sellers" }
16
+ ], l = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], c = [
71
17
  { text: "before the amount", value: "0" },
72
18
  { text: "after the amount", value: "1" }
73
- ], p = [
19
+ ], d = [
74
20
  { text: "dot(.)", value: "." },
75
21
  { text: "comma(,)", value: "," }
76
- ], v = [
22
+ ], p = [
77
23
  { text: "0", value: "0" },
78
24
  { text: "1", value: "1" },
79
25
  { text: "2", value: "2" },
80
26
  { text: "3", value: "3" },
81
27
  { text: "4", value: "4" },
82
28
  { text: "5", value: "5" }
83
- ], t = [
29
+ ], e = [
84
30
  { text: "is exactly", value: "=" },
85
31
  { text: "contains", value: "~" },
86
32
  { text: "does not contain", value: "!~" },
87
33
  { text: "any of", value: "||" }
88
- ], r = [
34
+ ], a = [
89
35
  { text: "is exactly", value: "=" },
90
36
  { text: "is not exactly", value: "!==" },
91
37
  { text: "contains", value: "~" },
92
38
  { text: "does not contain", value: "!~" },
93
39
  { text: "any of", value: "||" }
94
- ], n = [
40
+ ], r = [
95
41
  { text: "is equal to", value: "=" },
96
42
  { text: "is greater than", value: ">" },
97
43
  { text: "is less than", value: "<" }
@@ -99,39 +45,39 @@ const u = {
99
45
  { text: "is equal to", value: "=" },
100
46
  { text: "after", value: ">" },
101
47
  { text: "before", value: "<" }
102
- ], s = [
48
+ ], n = [
103
49
  { text: "true", value: "==" },
104
50
  { text: "false", value: "!=" }
105
- ], h = (e) => {
106
- if (!e)
107
- return t;
108
- switch (e) {
51
+ ], m = (t) => {
52
+ if (!t)
53
+ return e;
54
+ switch (t) {
109
55
  case "Boolean":
110
- return s;
56
+ return n;
111
57
  case "Date":
112
58
  return o;
113
59
  case "Number":
114
- return n;
60
+ return r;
115
61
  case "String":
116
- return t;
62
+ return e;
117
63
  case "Strings":
118
- return r;
64
+ return a;
119
65
  default:
120
- return t;
66
+ return e;
121
67
  }
122
68
  };
123
69
  export {
124
- d as PriceAttributes,
125
- l as QUERY_PARAMS,
126
- u as URLS,
127
- v as currencyDecimalCounts,
128
- m as currencyLocationMaps,
129
- p as currencyOperators,
130
- h as getOperatorOptions,
131
- c as getRecommendationFeedSourceMaps,
132
- r as operatorOptionsForArrayOfStrings,
133
- s as operatorOptionsForBooleans,
70
+ l as PriceAttributes,
71
+ i as QUERY_PARAMS,
72
+ u as RecommendationFeedSourceMaps,
73
+ s as URLS,
74
+ p as currencyDecimalCounts,
75
+ c as currencyLocationMaps,
76
+ d as currencyOperators,
77
+ m as getOperatorOptions,
78
+ a as operatorOptionsForArrayOfStrings,
79
+ n as operatorOptionsForBooleans,
134
80
  o as operatorOptionsForDates,
135
- n as operatorOptionsForNumbers,
136
- t as operatorOptionsForStrings
81
+ r as operatorOptionsForNumbers,
82
+ e as operatorOptionsForStrings
137
83
  };
@@ -8,22 +8,22 @@ const _ = {
8
8
  DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
9
9
  GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
10
10
  PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
11
- }, n = R(), t = {
11
+ }, n = R(), r = {
12
12
  UNSUBSCRIBE_URL: `https://mail.${n}.com/user/v1/unsub`,
13
13
  PREFERENCES_URL: `https://mail.${n}.com/user/v1/prefs`
14
- }, i = "iid", S = "G", B = () => ({
15
- name: e()("onboarding-center.email-subscribers-global-unsub-card-title"),
16
- sendGridId: S
17
- }), C = "/email/unsubscribe-pages", E = {
14
+ }, B = "iid", i = {
15
+ name: "Global Unsubscribe",
16
+ sendGridId: "G"
17
+ }, C = "/email/unsubscribe-pages", E = {
18
18
  GLOBAL_UNSUBSCRIBE: 1,
19
19
  GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE: 2,
20
20
  SUBSCRIPTION_PREFERENCE_CENTER: 3,
21
21
  SUBSCRIPTION_PREFERENCE_CONFIRMATION: 4,
22
22
  RESUBSCRIBE: 5
23
- }, c = {
23
+ }, U = {
24
24
  [E.GLOBAL_UNSUBSCRIBE]: "custom-unsubscribe",
25
25
  [E.SUBSCRIPTION_PREFERENCE_CENTER]: "custom-preferences"
26
- }, U = {
26
+ }, t = {
27
27
  [E.GLOBAL_UNSUBSCRIBE]: [
28
28
  E.GLOBAL_UNSUBSCRIBE,
29
29
  E.GLOBAL_UNSUBSCRIBE_CONFIRMATION_PAGE,
@@ -33,7 +33,7 @@ const _ = {
33
33
  E.SUBSCRIPTION_PREFERENCE_CENTER,
34
34
  E.SUBSCRIPTION_PREFERENCE_CONFIRMATION
35
35
  ]
36
- }, o = () => {
36
+ }, c = () => {
37
37
  const s = e();
38
38
  return {
39
39
  [E.GLOBAL_UNSUBSCRIBE]: s("unsubscription-preference.type-global-unsubscribe"),
@@ -42,22 +42,21 @@ const _ = {
42
42
  [E.SUBSCRIPTION_PREFERENCE_CENTER]: s("unsubscription-preference.type-subscription-preferences-center"),
43
43
  [E.SUBSCRIPTION_PREFERENCE_CONFIRMATION]: s("unsubscription-preference.type-subscription-preferences-confirmation")
44
44
  };
45
- }, u = {
45
+ }, o = {
46
46
  default: "{{ins-unsubscribe-link}}",
47
47
  [E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
48
48
  [E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
49
49
  };
50
50
  export {
51
- S as DEFAULT_UNSUBSCRIBE_GROUP_SEND_GRID_ID,
52
- i as INSIDER_ID,
51
+ i as DEFAULT_UNSUBSCRIBE_GROUP,
52
+ B as INSIDER_ID,
53
53
  I as LINK_REGEXES,
54
54
  _ as LINK_TYPES,
55
- u as MERGE_TAGS,
55
+ o as MERGE_TAGS,
56
56
  E as PAGE_TYPES,
57
- U as TYPE_COLLECTIONS,
57
+ t as TYPE_COLLECTIONS,
58
58
  C as UNSUBSCRIBE_PAGES_LINK,
59
- c as UNSUBSCRIBE_SYNC_MODULE_TYPES,
60
- t as URLS,
61
- B as getDefaultUnsubscribeGroup,
62
- o as getTypeTranslations
59
+ U as UNSUBSCRIBE_SYNC_MODULE_TYPES,
60
+ r as URLS,
61
+ c as getTypeTranslations
63
62
  };