@useinsider/guido 3.12.0-beta.d2745e7 → 3.12.0-beta.d77b0d2
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.
- package/dist/@types/config/schemas.js +9 -4
- package/dist/components/Guido.vue.js +6 -6
- package/dist/components/Guido.vue2.js +50 -49
- package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue.js +38 -0
- package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue2.js +271 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue.js +18 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue2.js +42 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue2.js +18 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue2.js +60 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue.js +19 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue2.js +19 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue.js +22 -0
- package/dist/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue2.js +29 -0
- package/dist/composables/useHtmlValidator.js +68 -60
- package/dist/composables/useHttp.js +61 -52
- package/dist/composables/useRecommendation.js +56 -40
- package/dist/composables/useSave.js +22 -22
- package/dist/composables/useStrategyFilters.js +16 -0
- package/dist/config/migrator/recommendationMigrator.js +7 -4
- package/dist/enums/date.js +4 -3
- package/dist/enums/extensions/filteringV2.js +1024 -0
- package/dist/enums/extensions/recommendationBlock.js +45 -24
- package/dist/enums/extensions/strategyDetail.js +149 -0
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +12 -11
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +141 -123
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +297 -0
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +16 -2
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +137 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +549 -165
- package/dist/extensions/Blocks/Recommendation/utils/strategyHumanizer.js +97 -0
- package/dist/extensions/Blocks/Recommendation/utils/strategyNavigation.js +8 -0
- package/dist/extensions/Blocks/Recommendation/utils/strategySummary.js +95 -0
- package/dist/extensions/Blocks/Recommendation/utils/strategyUrl.js +43 -0
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +24 -10
- package/dist/extensions/Blocks/common-control.js +37 -35
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +127 -33
- package/dist/services/stripoApi.js +18 -18
- package/dist/src/@types/config/schemas.d.ts +10 -0
- package/dist/src/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/strategy-detail/CampaignTable.vue.d.ts +43 -0
- package/dist/src/components/organisms/extensions/recommendation/strategy-detail/FilterHumanizer.vue.d.ts +29 -0
- package/dist/src/components/organisms/extensions/recommendation/strategy-detail/HumanizerCondition.vue.d.ts +40 -0
- package/dist/src/components/organisms/extensions/recommendation/strategy-detail/HumanizerGroup.vue.d.ts +38 -0
- package/dist/src/components/organisms/extensions/recommendation/strategy-detail/InfoDisplayValue.vue.d.ts +51 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useHtmlValidator.d.ts +2 -0
- package/dist/src/composables/useRecommendation.d.ts +2 -0
- package/dist/src/composables/useStrategyFilters.d.ts +24 -0
- package/dist/src/enums/extensions/filteringV2.d.ts +72 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +33 -0
- package/dist/src/enums/extensions/strategyDetail.d.ts +90 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +10 -4
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +118 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +958 -1
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyHumanizer.d.ts +50 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyNavigation.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategySummary.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyUrl.d.ts +51 -0
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +8 -1
- package/dist/src/extensions/Blocks/common-control.d.ts +5 -2
- package/dist/src/mock/api/recommendation-strategies.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +9 -1
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/utils/genericUtil.d.ts +9 -0
- package/dist/static/styles/components/base-input.css.js +6 -7
- package/dist/utils/dateUtil.js +23 -10
- package/dist/utils/genericUtil.js +10 -1
- package/dist/utils/templatePreparation.js +70 -57
- package/package.json +1 -1
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
import { useTranslations as r } from "../../composables/useTranslations.js";
|
|
2
|
-
const
|
|
2
|
+
const c = {
|
|
3
3
|
RECOMMENDATION_API_URL: "https://recommendationv2.api.useinsider.com",
|
|
4
4
|
// Relative path → same-origin as the embedding inone dashboard.
|
|
5
|
-
PRODUCT_ATTRIBUTES_PATH: "/product-attributes/get-attributes"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
PRODUCT_ATTRIBUTES_PATH: "/product-attributes/get-attributes",
|
|
6
|
+
// Reusable Recommendation Strategies (RRS), also same-origin on inone.
|
|
7
|
+
RECOMMENDATION_STRATEGIES_PATH: "/api/recommendation-strategies",
|
|
8
|
+
// POST. Builds a strategy's product-feed URL. Takes the WHOLE strategy record,
|
|
9
|
+
// not an id: the strategy's algorithm decides the feed's path segment
|
|
10
|
+
// (`/v2/top-sellers` vs `/v2/user-based` …) and which params it needs, so there
|
|
11
|
+
// is no fixed URL an id could be substituted into.
|
|
12
|
+
STRATEGY_ENDPOINT_GENERATE_PATH: "/api/recommendation-strategies/endpoint-generate",
|
|
13
|
+
// POST, no body. Answers `{ status, message, strategyId }` — the new id only,
|
|
14
|
+
// never the copy's name, so the listing has to be fetched again to display it.
|
|
15
|
+
STRATEGY_DUPLICATE_PATH: "/api/recommendation-strategies/{{id}}/duplicate"
|
|
16
|
+
}, l = {
|
|
17
|
+
LISTING: "/discovery/recommendation-strategies",
|
|
18
|
+
CREATE: "/discovery/recommendation-strategies/create",
|
|
19
|
+
EDIT: "/discovery/recommendation-strategies/{{id}}/edit"
|
|
20
|
+
}, d = {
|
|
21
|
+
CLIENT_ID: "clientId",
|
|
22
|
+
FILTERS: "filters",
|
|
23
|
+
PAGE: "page",
|
|
24
|
+
PER_PAGE: "per_page"
|
|
25
|
+
}, m = 100, p = 50, v = "[sr_strategies.status][=][active]*[sr_strategies.suitable_channels][~][EMAIL]", E = () => {
|
|
9
26
|
const e = r();
|
|
10
27
|
return [
|
|
11
28
|
{
|
|
@@ -69,14 +86,14 @@ const l = {
|
|
|
69
86
|
path: "top-sellers"
|
|
70
87
|
}
|
|
71
88
|
];
|
|
72
|
-
},
|
|
89
|
+
}, g = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], h = [
|
|
73
90
|
{ text: "before the amount", value: "0" },
|
|
74
91
|
{ text: "after the amount", value: "1" }
|
|
75
|
-
],
|
|
92
|
+
], T = [
|
|
76
93
|
{ text: "dot(.)", value: "." },
|
|
77
94
|
{ text: "comma(,)", value: "," },
|
|
78
95
|
{ text: "space( )", value: " " }
|
|
79
|
-
],
|
|
96
|
+
], _ = [
|
|
80
97
|
{ text: "0", value: "0" },
|
|
81
98
|
{ text: "1", value: "1" },
|
|
82
99
|
{ text: "2", value: "2" },
|
|
@@ -88,17 +105,17 @@ const l = {
|
|
|
88
105
|
{ text: "contains", value: "~" },
|
|
89
106
|
{ text: "does not contain", value: "!~" },
|
|
90
107
|
{ text: "any of", value: a }
|
|
91
|
-
],
|
|
108
|
+
], s = [
|
|
92
109
|
{ text: "is exactly", value: "=" },
|
|
93
110
|
{ text: "is not exactly", value: "!==" },
|
|
94
111
|
{ text: "contains", value: "~" },
|
|
95
112
|
{ text: "does not contain", value: "!~" },
|
|
96
113
|
{ text: "any of", value: a }
|
|
97
|
-
],
|
|
114
|
+
], n = [
|
|
98
115
|
{ text: "is equal to", value: "=" },
|
|
99
116
|
{ text: "is greater than", value: ">" },
|
|
100
117
|
{ text: "is less than", value: "<" }
|
|
101
|
-
],
|
|
118
|
+
], o = [
|
|
102
119
|
{ text: "is equal to", value: "=" },
|
|
103
120
|
{ text: "after", value: ">" },
|
|
104
121
|
{ text: "before", value: "<" }
|
|
@@ -112,30 +129,34 @@ const l = {
|
|
|
112
129
|
case "Boolean":
|
|
113
130
|
return i;
|
|
114
131
|
case "Date":
|
|
115
|
-
return s;
|
|
116
|
-
case "Number":
|
|
117
132
|
return o;
|
|
133
|
+
case "Number":
|
|
134
|
+
return n;
|
|
118
135
|
case "String":
|
|
119
136
|
return t;
|
|
120
137
|
case "Strings":
|
|
121
|
-
return
|
|
138
|
+
return s;
|
|
122
139
|
default:
|
|
123
140
|
return t;
|
|
124
141
|
}
|
|
125
142
|
};
|
|
126
143
|
export {
|
|
127
144
|
a as OP_ANY_OF,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
145
|
+
g as PriceAttributes,
|
|
146
|
+
d as QUERY_PARAMS,
|
|
147
|
+
v as RRS_EMAIL_ACTIVE_FILTER,
|
|
148
|
+
p as RRS_STRATEGIES_MAX_PAGES,
|
|
149
|
+
m as RRS_STRATEGIES_PER_PAGE,
|
|
150
|
+
l as STRATEGY_PAGES,
|
|
151
|
+
c as URLS,
|
|
152
|
+
_ as currencyDecimalCounts,
|
|
153
|
+
h as currencyLocationMaps,
|
|
154
|
+
T as currencyOperators,
|
|
134
155
|
x as getOperatorOptions,
|
|
135
|
-
|
|
136
|
-
|
|
156
|
+
E as getRecommendationFeedSourceMaps,
|
|
157
|
+
s as operatorOptionsForArrayOfStrings,
|
|
137
158
|
i as operatorOptionsForBooleans,
|
|
138
|
-
|
|
139
|
-
|
|
159
|
+
o as operatorOptionsForDates,
|
|
160
|
+
n as operatorOptionsForNumbers,
|
|
140
161
|
t as operatorOptionsForStrings
|
|
141
162
|
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
const a = "TIME", r = "COUNT", o = {
|
|
2
|
+
OPERATOR: {
|
|
3
|
+
IN_LAST: "in-last",
|
|
4
|
+
IN_BETWEEN: "is-between",
|
|
5
|
+
IN: "in",
|
|
6
|
+
NOT_IN: "not-in"
|
|
7
|
+
}
|
|
8
|
+
}, e = [
|
|
9
|
+
{ value: "is-exactly", text: "campaign-builder.exactly", operator: "=" },
|
|
10
|
+
{ value: "is-not-exactly", text: "action-builder.is-not-exactly", operator: "!=" },
|
|
11
|
+
{ value: "contains", text: "campaign-builder.contains", operator: "~" },
|
|
12
|
+
{ value: "does-not-contain", text: "campaign-builder.does-not-contain", operator: "!~" },
|
|
13
|
+
{ value: "in", text: "smart-recommender.in", operator: "=" },
|
|
14
|
+
{ value: "not-in", text: "campaign-builder.not-in", operator: "!=" },
|
|
15
|
+
{ value: "matches-with", text: "discovery-strategy-filtering.matches-with", operator: "=" },
|
|
16
|
+
{ value: "does-not-match-with", text: "discovery-strategy-filtering.does-not-match-with", operator: "!=" },
|
|
17
|
+
{ value: "contains-user-context", text: "campaign-builder.contains", operator: "~" },
|
|
18
|
+
{ value: "does-not-contain-user-context", text: "campaign-builder.does-not-contain", operator: "!~" }
|
|
19
|
+
], t = [
|
|
20
|
+
{ value: "is-equal-to", text: "campaign-builder.equal-to", operator: "=" },
|
|
21
|
+
{ value: "is-not-equal-to", text: "smart-recommender.is-not-equal-to", operator: "!=" },
|
|
22
|
+
{ value: "is-greater-than", text: "campaign-builder.greater-than", operator: ">" },
|
|
23
|
+
{ value: "is-less-than", text: "campaign-builder.less-than", operator: "<" },
|
|
24
|
+
{ value: "is-greater-than-or-equal", text: "campaign-builder.greater-than-or-equal-to", operator: ">=" },
|
|
25
|
+
{ value: "is-less-than-or-equal", text: "campaign-builder.less-than-or-equal-to", operator: "<=" },
|
|
26
|
+
{ value: "is-between", text: "smart-recommender.in-between", operator: "><" },
|
|
27
|
+
{ value: "in", text: "smart-recommender.in", operator: "=" },
|
|
28
|
+
{ value: "not-in", text: "campaign-builder.not-in", operator: "!=" },
|
|
29
|
+
{ value: "is-exactly", text: "campaign-builder.exactly", operator: "=" }
|
|
30
|
+
], i = {
|
|
31
|
+
Number: [
|
|
32
|
+
...t,
|
|
33
|
+
{ value: "matches-with", text: "discovery-strategy-filtering.matches-with", operator: "=" },
|
|
34
|
+
{ value: "does-not-match-with", text: "discovery-strategy-filtering.does-not-match-with", operator: "!=" },
|
|
35
|
+
{ value: "is-greater-than-user-context", text: "campaign-builder.greater-than", operator: ">" },
|
|
36
|
+
{ value: "is-less-than-user-context", text: "campaign-builder.less-than", operator: "<" },
|
|
37
|
+
{
|
|
38
|
+
value: "is-greater-than-or-equal-user-context",
|
|
39
|
+
text: "campaign-builder.greater-than-or-equal-to",
|
|
40
|
+
operator: ">="
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: "is-less-than-or-equal-user-context",
|
|
44
|
+
text: "campaign-builder.less-than-or-equal-to",
|
|
45
|
+
operator: "<="
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "is-more-than-currently-viewing-item-page-context",
|
|
49
|
+
text: "discovery-strategy-filtering.in-range-greater-than",
|
|
50
|
+
operator: "><"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "is-less-than-currently-viewing-item-page-context",
|
|
54
|
+
text: "discovery-strategy-filtering.in-range-less-than",
|
|
55
|
+
operator: "><"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: "is-more-or-less-than-currently-viewing-item-page-context",
|
|
59
|
+
text: "discovery-strategy-filtering.in-range-less-or-greater-than",
|
|
60
|
+
operator: "><"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
String: e,
|
|
64
|
+
"Array[String]": e,
|
|
65
|
+
Array: e,
|
|
66
|
+
Strings: e,
|
|
67
|
+
Numbers: e,
|
|
68
|
+
Booleans: e,
|
|
69
|
+
Dates: [
|
|
70
|
+
{ value: "is-exactly", text: "campaign-builder.exactly", operator: "=" },
|
|
71
|
+
{ value: "is-not-exactly", text: "action-builder.is-not-exactly", operator: "!=" },
|
|
72
|
+
{ value: "contains", text: "campaign-builder.contains", operator: "~" },
|
|
73
|
+
{ value: "does-not-contain", text: "campaign-builder.does-not-contain", operator: "!~" },
|
|
74
|
+
{ value: "in", text: "smart-recommender.in", operator: "=" },
|
|
75
|
+
{ value: "not-in", text: "campaign-builder.not-in", operator: "!=" }
|
|
76
|
+
],
|
|
77
|
+
Boolean: [
|
|
78
|
+
{ value: "true", text: "smart-recommender.is-true", operator: "=" },
|
|
79
|
+
{ value: "false", text: "smart-recommender.is-false", operator: "=" }
|
|
80
|
+
],
|
|
81
|
+
Image: [
|
|
82
|
+
{ value: "is-equal-to", text: "campaign-builder.exactly", operator: "=" },
|
|
83
|
+
{ value: "contains", text: "campaign-builder.contains", operator: "~" },
|
|
84
|
+
{ value: "does-not-contain", text: "campaign-builder.does-not-contain", operator: "!~" },
|
|
85
|
+
{ value: "is-empty", text: "condition.empty", operator: "?" },
|
|
86
|
+
{ value: "is-not-empty", text: "condition.not-empty", operator: "!?" }
|
|
87
|
+
],
|
|
88
|
+
Date: [
|
|
89
|
+
{ value: "after", text: "campaign-builder.after", operator: ">" },
|
|
90
|
+
{ value: "before", text: "campaign-builder.before", operator: "<" },
|
|
91
|
+
{ value: "is", text: "campaign-builder.is", operator: "=" },
|
|
92
|
+
{ value: "is-not", text: "campaign-builder.is-not", operator: "!=" },
|
|
93
|
+
{ value: "in-last", text: "purchase-history.in-last", operator: "<=" },
|
|
94
|
+
{ value: "matches-with", text: "discovery-strategy-filtering.matches-with", operator: "=" },
|
|
95
|
+
{ value: "does-not-match-with", text: "discovery-strategy-filtering.does-not-match-with", operator: "!=" },
|
|
96
|
+
{ value: "after-user-context", text: "campaign-builder.after", operator: ">" },
|
|
97
|
+
{ value: "before-user-context", text: "campaign-builder.before", operator: "<" }
|
|
98
|
+
],
|
|
99
|
+
Object: t
|
|
100
|
+
}, n = {
|
|
101
|
+
STRING: "String",
|
|
102
|
+
DATE: "Date"
|
|
103
|
+
}, s = ["Strings", "String", "Array"], l = {
|
|
104
|
+
IS_EXACTLY: "is-exactly",
|
|
105
|
+
IS_NOT_EXACTLY: "is-not-exactly",
|
|
106
|
+
CONTAINS: "contains",
|
|
107
|
+
NOT_CONTAINS: "does-not-contain"
|
|
108
|
+
}, c = {
|
|
109
|
+
DYNAMIC_FILTER: "dynamicFilter",
|
|
110
|
+
USER_CONTEXT_FILTER: "userContextFilter",
|
|
111
|
+
USER_ATTRIBUTE_FILTER: "userAttributeFilter",
|
|
112
|
+
USER_EVENT_FILTER: "userEventFilter",
|
|
113
|
+
EVENT_BASED_FILTER: "eventBasedFilter"
|
|
114
|
+
}, u = {
|
|
115
|
+
CURRENTLY_VIEWED_ITEM: "page",
|
|
116
|
+
LEGACY_CURRENTLY_VIEWED_ITEM: "currentlyViewedItem"
|
|
117
|
+
}, p = [
|
|
118
|
+
{ value: "lastViewed", text: "discovery-strategy-filtering.users-last-viewed" },
|
|
119
|
+
{ value: "lastPurchased", text: "discovery-strategy-filtering.users-last-purchased" },
|
|
120
|
+
{ value: "lastAddedToCart", text: "discovery-strategy-filtering.users-last-added-to-cart" },
|
|
121
|
+
{ value: "lastRemovedFromCart", text: "discovery-strategy-filtering.users-last-removed-from-cart" },
|
|
122
|
+
{ value: "lastAddedToWishlist", text: "discovery-strategy-filtering.users-last-added-to-wishlist" },
|
|
123
|
+
{ value: "lastRemovedFromWishlist", text: "discovery-strategy-filtering.users-last-removed-from-wishlist" },
|
|
124
|
+
{ value: "page", text: "discovery-strategy-filtering.currently-viewed-item-on-page" },
|
|
125
|
+
{ value: "currentlyViewedItem", text: "discovery-strategy-filtering.currently-viewed-item-on-page" }
|
|
126
|
+
], d = "email", g = {
|
|
127
|
+
CATEGORY: "products.category-pages",
|
|
128
|
+
PRODUCT: "products.product-article-pages",
|
|
129
|
+
CART: "products.cart-pages",
|
|
130
|
+
ALL_PAGES: "products.all-pages"
|
|
131
|
+
}, m = {
|
|
132
|
+
GENERAL: "general",
|
|
133
|
+
OTHER: "other"
|
|
134
|
+
};
|
|
135
|
+
export {
|
|
136
|
+
r as COUNT,
|
|
137
|
+
n as DataTypes,
|
|
138
|
+
m as DetailTabs,
|
|
139
|
+
d as EMAIL_CHANNEL,
|
|
140
|
+
c as FilterTypeNames,
|
|
141
|
+
s as MultiSelectDataTypes,
|
|
142
|
+
o as OperatorAbbreviations,
|
|
143
|
+
l as OperatorNames,
|
|
144
|
+
i as Operators,
|
|
145
|
+
g as PageTypeTranslationKeys,
|
|
146
|
+
a as TIME,
|
|
147
|
+
u as UserEventKeys,
|
|
148
|
+
p as UserEvents
|
|
149
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DEFAULT_COLUMN_SPACING as n, DEFAULT_ROW_SPACING as s, DEFAULT_MOBILE_ROW_SPACING as R, DEFAULT_MOBILE_COLUMN_SPACING as U, DEFAULT_MOBILE_CARDS_IN_ROW as e, DEFAULT_CARDS_IN_ROW as
|
|
1
|
+
import { DEFAULT_COLUMN_SPACING as n, DEFAULT_ROW_SPACING as s, DEFAULT_MOBILE_ROW_SPACING as R, DEFAULT_MOBILE_COLUMN_SPACING as U, DEFAULT_MOBILE_CARDS_IN_ROW as e, DEFAULT_CARDS_IN_ROW as a } from "./layout.js";
|
|
2
2
|
import { ATTR_PRODUCT_IMAGE as o, ATTR_PRODUCT_NAME as t, ATTR_PRODUCT_OLD_PRICE as _, ATTR_PRODUCT_PRICE as T, ATTR_PRODUCT_OMNIBUS_PRICE as r, ATTR_PRODUCT_OMNIBUS_DISCOUNT as i, ATTR_PRODUCT_BUTTON as I } from "./selectors.js";
|
|
3
|
-
const
|
|
3
|
+
const C = {
|
|
4
4
|
code: "USD",
|
|
5
5
|
symbol: "USD",
|
|
6
6
|
alignment: "after",
|
|
7
7
|
decimalCount: 2,
|
|
8
8
|
decimalSeparator: ".",
|
|
9
9
|
thousandSeparator: ","
|
|
10
|
-
},
|
|
10
|
+
}, D = {
|
|
11
11
|
textBefore: "",
|
|
12
12
|
textAfter: ""
|
|
13
|
-
},
|
|
13
|
+
}, O = {
|
|
14
14
|
textBefore: "",
|
|
15
15
|
textAfter: ""
|
|
16
16
|
}, A = [
|
|
@@ -32,15 +32,16 @@ const D = {
|
|
|
32
32
|
}, l = {
|
|
33
33
|
// Settings
|
|
34
34
|
strategy: "mostPopular",
|
|
35
|
+
strategyId: "",
|
|
35
36
|
productIds: [],
|
|
36
37
|
size: "6",
|
|
37
38
|
shuffleProducts: !1,
|
|
38
39
|
language: "en_US",
|
|
39
|
-
currency:
|
|
40
|
+
currency: C,
|
|
40
41
|
filters: [],
|
|
41
42
|
// Layout
|
|
42
43
|
layout: "grid",
|
|
43
|
-
cardsInRow:
|
|
44
|
+
cardsInRow: a,
|
|
44
45
|
mobileCardsInRow: e,
|
|
45
46
|
mobileLayoutEnabled: !1,
|
|
46
47
|
previousMobileCardsInRow: e,
|
|
@@ -52,8 +53,8 @@ const D = {
|
|
|
52
53
|
composition: A,
|
|
53
54
|
visibility: c,
|
|
54
55
|
// Element settings
|
|
55
|
-
omnibusPrice:
|
|
56
|
-
omnibusDiscount:
|
|
56
|
+
omnibusPrice: D,
|
|
57
|
+
omnibusDiscount: O,
|
|
57
58
|
textTrimming: !1,
|
|
58
59
|
// Price placement (block-level, affects all cards)
|
|
59
60
|
// Default ON = current stacked look, so existing templates are unaffected.
|
|
@@ -71,10 +72,10 @@ const D = {
|
|
|
71
72
|
export {
|
|
72
73
|
m as CURRENT_CONFIG_VERSION,
|
|
73
74
|
A as DEFAULT_COMPOSITION,
|
|
74
|
-
|
|
75
|
+
C as DEFAULT_CURRENCY,
|
|
75
76
|
l as DEFAULT_NODE_CONFIG,
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
O as DEFAULT_OMNIBUS_DISCOUNT,
|
|
78
|
+
D as DEFAULT_OMNIBUS_PRICE,
|
|
78
79
|
c as DEFAULT_VISIBILITY,
|
|
79
80
|
N as EXCLUDED_ALGORITHM_IDS
|
|
80
81
|
};
|