vviinn-widgets 2.2.1 → 2.3.1
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/cjs/{app-globals-d0251be8.js → app-globals-6b5da080.js} +1 -1
- package/dist/cjs/cropper-handler.cjs.entry.js +1 -1
- package/dist/cjs/{customized-slots-14b77e4a.js → customized-slots-8bc78ad4.js} +1 -1
- package/dist/cjs/highlight-box_22.cjs.entry.js +4 -4
- package/dist/cjs/{imageSearch.store-d9ed1a5b.js → imageSearch.store-042e9f45.js} +1 -1
- package/dist/cjs/{index-141137b2.js → index-553c2b4f.js} +1 -1
- package/dist/cjs/{index-a5e15a0c.js → index-5b9a60ac.js} +7 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{vviinn-carousel_5.cjs.entry.js → vviinn-carousel_3.cjs.entry.js} +6 -92
- package/dist/cjs/vviinn-error.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-preloader.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +63 -0
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +44 -0
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +4 -4
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +3 -3
- package/dist/cjs/vviinn-widgets.cjs.js +3 -3
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +4 -0
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +6 -3
- package/dist/collection/components/vviinn-icons/index.js +6 -8
- package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
- package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
- package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
- package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +11 -4
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
- package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +1 -0
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
- package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
- package/dist/esm/{app-globals-b6113170.js → app-globals-90d99f95.js} +1 -1
- package/dist/esm/cropper-handler.entry.js +1 -1
- package/dist/esm/{customized-slots-a952fb80.js → customized-slots-65b2467d.js} +1 -1
- package/dist/esm/highlight-box_22.entry.js +4 -4
- package/dist/esm/{imageSearch.store-4ca31230.js → imageSearch.store-f35e14f8.js} +1 -1
- package/dist/esm/{index-017f18de.js → index-ac2e3b9d.js} +8 -10
- package/dist/esm/{index-3e85e294.js → index-d7c7df1c.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{vviinn-carousel_5.entry.js → vviinn-carousel_3.entry.js} +7 -91
- package/dist/esm/vviinn-error.entry.js +1 -1
- package/dist/esm/vviinn-preloader.entry.js +2 -2
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +59 -0
- package/dist/esm/vviinn-vpr-button.entry.js +40 -0
- package/dist/esm/vviinn-vps-button.entry.js +4 -4
- package/dist/esm/vviinn-vps-widget.entry.js +3 -3
- package/dist/esm/vviinn-widgets.js +3 -3
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +3 -0
- package/dist/types/components/vviinn-product-card/stories/args.d.ts +73 -0
- package/dist/types/components/vviinn-product-card/stories/decorators.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +80 -0
- package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +207 -0
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +214 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +3 -0
- package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +198 -0
- package/dist/types/components/vviinn-vpr-widget/stories/decorators.d.ts +2 -0
- package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +141 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -0
- package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +12 -0
- package/dist/types/components/{vviinn-vpr-button/stories/kek.stories.d.ts → vviinn-vps-widget/stories/vviinn-vps-widget.stories.d.ts} +5 -2
- package/{www/build/p-68900093.entry.js → dist/vviinn-widgets/p-1c141479.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-62a1b042.entry.js → p-320844ea.entry.js} +1 -1
- package/dist/vviinn-widgets/p-4530ca32.entry.js +1 -0
- package/dist/vviinn-widgets/p-55491d9b.js +1 -0
- package/dist/vviinn-widgets/p-6239a782.entry.js +1 -0
- package/dist/vviinn-widgets/{p-d7894eaf.js → p-679ea2ce.js} +1 -1
- package/dist/vviinn-widgets/{p-95e53d99.entry.js → p-757849fd.entry.js} +1 -1
- package/{www/build/p-3da18d7f.js → dist/vviinn-widgets/p-80f0d4e0.js} +1 -1
- package/dist/vviinn-widgets/{p-6c4c240d.entry.js → p-935b4f49.entry.js} +1 -1
- package/dist/vviinn-widgets/p-a5b69a48.entry.js +1 -0
- package/dist/vviinn-widgets/{p-0ed1ef7e.entry.js → p-b0243e84.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-db0be4cd.js → p-b4b46a70.js} +1 -1
- package/dist/vviinn-widgets/{p-9fee20e7.entry.js → p-e362fa80.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-16e49514.js → p-e882fbeb.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/{dist/vviinn-widgets/p-68900093.entry.js → www/build/p-1c141479.entry.js} +1 -1
- package/www/build/{p-62a1b042.entry.js → p-320844ea.entry.js} +1 -1
- package/www/build/p-4379b1c2.js +1 -0
- package/www/build/p-4530ca32.entry.js +1 -0
- package/www/build/p-55491d9b.js +1 -0
- package/www/build/p-6239a782.entry.js +1 -0
- package/www/build/{p-d7894eaf.js → p-679ea2ce.js} +1 -1
- package/www/build/{p-95e53d99.entry.js → p-757849fd.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-3da18d7f.js → www/build/p-80f0d4e0.js} +1 -1
- package/www/build/{p-6c4c240d.entry.js → p-935b4f49.entry.js} +1 -1
- package/www/build/p-a5b69a48.entry.js +1 -0
- package/www/build/{p-0ed1ef7e.entry.js → p-b0243e84.entry.js} +1 -1
- package/www/build/{p-db0be4cd.js → p-b4b46a70.js} +1 -1
- package/www/build/{p-9fee20e7.entry.js → p-e362fa80.entry.js} +1 -1
- package/www/build/{p-16e49514.js → p-e882fbeb.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +4 -74
- package/dist/collection/components/vviinn-vpr-button/stories/kek.stories.js +0 -18
- package/dist/vviinn-widgets/p-eb15116d.entry.js +0 -1
- package/dist/vviinn-widgets/p-f00fddbb.js +0 -1
- package/www/build/p-1cc0cdfd.js +0 -1
- package/www/build/p-eb15116d.entry.js +0 -1
- package/www/build/p-f00fddbb.js +0 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export const apiPath = {
|
|
2
|
+
name: "Api Path",
|
|
3
|
+
control: {
|
|
4
|
+
type: "text",
|
|
5
|
+
},
|
|
6
|
+
table: {
|
|
7
|
+
defaultValue: { summary: "https://api.vviinn.com" },
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
const token = {
|
|
11
|
+
name: "Token",
|
|
12
|
+
control: {
|
|
13
|
+
type: "text",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const productId = {
|
|
17
|
+
name: "Product ID",
|
|
18
|
+
control: {
|
|
19
|
+
type: "text",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
const cssUrl = {
|
|
23
|
+
name: "CSS URL",
|
|
24
|
+
description: "Optional for custom CSS. It will overwrite all other settings.",
|
|
25
|
+
control: {
|
|
26
|
+
type: "text",
|
|
27
|
+
},
|
|
28
|
+
required: false,
|
|
29
|
+
};
|
|
30
|
+
const analyticsId = {
|
|
31
|
+
name: "Google tracking account ID",
|
|
32
|
+
description: "Optional. Goolge Analytics account id or tag manager id and click events will be send for analytics product lists",
|
|
33
|
+
control: {
|
|
34
|
+
type: "text",
|
|
35
|
+
},
|
|
36
|
+
required: false,
|
|
37
|
+
};
|
|
38
|
+
export const campaignType = {
|
|
39
|
+
name: "Campaign type",
|
|
40
|
+
control: {
|
|
41
|
+
type: "select",
|
|
42
|
+
labels: {
|
|
43
|
+
VPR: "Visually similar products (VPR)",
|
|
44
|
+
VCS: "Visually cross-selling (VCS)",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
required: false,
|
|
48
|
+
};
|
|
49
|
+
const showTitle = {
|
|
50
|
+
name: "Section title",
|
|
51
|
+
control: {
|
|
52
|
+
type: "boolean",
|
|
53
|
+
},
|
|
54
|
+
table: {
|
|
55
|
+
defaultValue: { summary: true },
|
|
56
|
+
},
|
|
57
|
+
required: false,
|
|
58
|
+
};
|
|
59
|
+
const titleName = {
|
|
60
|
+
name: "Section title name",
|
|
61
|
+
control: {
|
|
62
|
+
type: "text",
|
|
63
|
+
},
|
|
64
|
+
table: {
|
|
65
|
+
defaultValue: { summary: "Recommended products" },
|
|
66
|
+
},
|
|
67
|
+
required: false,
|
|
68
|
+
};
|
|
69
|
+
const titleFontSize = {
|
|
70
|
+
name: "Section title name font size (px)",
|
|
71
|
+
control: {
|
|
72
|
+
type: "number",
|
|
73
|
+
},
|
|
74
|
+
required: false,
|
|
75
|
+
};
|
|
76
|
+
const showScrollbars = {
|
|
77
|
+
name: "Use default scrollbar / pagination",
|
|
78
|
+
description: "Add browser default horizontal scroll bar (in continuity mode) or pagination bullets (in grid mode) to add extra cue for users ",
|
|
79
|
+
control: {
|
|
80
|
+
type: "boolean",
|
|
81
|
+
},
|
|
82
|
+
required: false,
|
|
83
|
+
};
|
|
84
|
+
const imageWidth = {
|
|
85
|
+
name: "Image Width (px)",
|
|
86
|
+
control: {
|
|
87
|
+
type: "number",
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
const contentAlignment = {
|
|
91
|
+
name: "Content alignment",
|
|
92
|
+
options: ["Left", "Centered", "Right"],
|
|
93
|
+
mapping: {
|
|
94
|
+
Left: 0,
|
|
95
|
+
Centered: 1,
|
|
96
|
+
Right: 2,
|
|
97
|
+
},
|
|
98
|
+
control: {
|
|
99
|
+
type: "select",
|
|
100
|
+
default: 0,
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
const primaryTextColor = {
|
|
104
|
+
name: "Primary text color",
|
|
105
|
+
control: {
|
|
106
|
+
type: "color",
|
|
107
|
+
},
|
|
108
|
+
description: "Used where the most user attention is needed: product brand, product title, and price.",
|
|
109
|
+
};
|
|
110
|
+
const secondaryTextColor = {
|
|
111
|
+
name: "Secondary text color",
|
|
112
|
+
description: "Used in Old Price",
|
|
113
|
+
control: {
|
|
114
|
+
type: "color",
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
export const argTypes = {
|
|
118
|
+
analyticsId,
|
|
119
|
+
apiPath,
|
|
120
|
+
campaignType,
|
|
121
|
+
contentAlignment,
|
|
122
|
+
cssUrl,
|
|
123
|
+
imageWidth,
|
|
124
|
+
primaryTextColor,
|
|
125
|
+
productId,
|
|
126
|
+
secondaryTextColor,
|
|
127
|
+
showScrollbars,
|
|
128
|
+
showTitle,
|
|
129
|
+
titleFontSize,
|
|
130
|
+
titleName,
|
|
131
|
+
token,
|
|
132
|
+
};
|
|
133
|
+
const recommendationsGridProductsDesktop = {
|
|
134
|
+
name: "Product cards shown on desktop",
|
|
135
|
+
description: "Desktop mode is bigger than 1024px. (Use arrow buttons to apply changes)",
|
|
136
|
+
control: {
|
|
137
|
+
type: "number",
|
|
138
|
+
},
|
|
139
|
+
required: false,
|
|
140
|
+
};
|
|
141
|
+
const recommendationsGridProductsTablet = {
|
|
142
|
+
name: "Product cards shown on tablet",
|
|
143
|
+
description: "How many product cards users will see inside one grid in a screen 768px-1024px. (Use arrow buttons to apply changes)",
|
|
144
|
+
control: {
|
|
145
|
+
type: "number",
|
|
146
|
+
},
|
|
147
|
+
required: false,
|
|
148
|
+
};
|
|
149
|
+
const recommendationsGridProductsMobile = {
|
|
150
|
+
name: "Product cards shown on mobile",
|
|
151
|
+
description: "How many product cards users will see inside one grid in a screen <768. (Use arrow buttons to apply changes)",
|
|
152
|
+
control: {
|
|
153
|
+
type: "number",
|
|
154
|
+
},
|
|
155
|
+
required: false,
|
|
156
|
+
};
|
|
157
|
+
export const gridLayoutArgs = {
|
|
158
|
+
recommendationsGridProductsDesktop,
|
|
159
|
+
recommendationsGridProductsTablet,
|
|
160
|
+
recommendationsGridProductsMobile,
|
|
161
|
+
};
|
|
162
|
+
const recommendationsContinuityProductsDesktop = {
|
|
163
|
+
name: "Product cards width in a L screen [px]",
|
|
164
|
+
description: "How wide product cards will be on a screen bigger than 1024px width",
|
|
165
|
+
control: {
|
|
166
|
+
type: "number",
|
|
167
|
+
},
|
|
168
|
+
required: false,
|
|
169
|
+
};
|
|
170
|
+
const recommendationsContinuityProductsTablet = {
|
|
171
|
+
name: "Product cards width in a M screen [px]",
|
|
172
|
+
description: "How wide product cards will be on a screen from 768px-1024px width",
|
|
173
|
+
control: {
|
|
174
|
+
type: "number",
|
|
175
|
+
},
|
|
176
|
+
required: false,
|
|
177
|
+
};
|
|
178
|
+
const recommendationsContinuityProductsMobile = {
|
|
179
|
+
name: "Product cards width in a S screen [px]",
|
|
180
|
+
description: "How wide product cards will be on a screen smaller than 768px width",
|
|
181
|
+
control: {
|
|
182
|
+
type: "number",
|
|
183
|
+
},
|
|
184
|
+
required: false,
|
|
185
|
+
};
|
|
186
|
+
export const continuityLayoutArgs = {
|
|
187
|
+
recommendationsContinuityProductsDesktop,
|
|
188
|
+
recommendationsContinuityProductsTablet,
|
|
189
|
+
recommendationsContinuityProductsMobile,
|
|
190
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const gridDecorator = (story) => `
|
|
2
|
+
<style>
|
|
3
|
+
@media (min-width: 836px) {
|
|
4
|
+
#root-inner {
|
|
5
|
+
padding: 0 10%;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@media (max-width: 860px) {
|
|
10
|
+
vviinn-product-card::part(title),
|
|
11
|
+
vviinn-product-card::part(brand),
|
|
12
|
+
vviinn-product-card::part(type),
|
|
13
|
+
vviinn-product-card::part(price-container) {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
${story()}
|
|
19
|
+
`;
|
|
20
|
+
export const continuityDecorator = (story) => `
|
|
21
|
+
<style>
|
|
22
|
+
@media (min-width: 836px) {
|
|
23
|
+
#root-inner {
|
|
24
|
+
padding-left: 10%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
${story()}
|
|
29
|
+
`;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { argTypes, continuityLayoutArgs, gridLayoutArgs } from "./args";
|
|
2
|
+
import { gridDecorator, continuityDecorator } from "./decorators";
|
|
3
|
+
const excludeControls = [
|
|
4
|
+
"blockTitle",
|
|
5
|
+
"currencySign",
|
|
6
|
+
"imageRatio",
|
|
7
|
+
"imageWidth",
|
|
8
|
+
"locale",
|
|
9
|
+
"pricePrefix",
|
|
10
|
+
"showScroll",
|
|
11
|
+
];
|
|
12
|
+
export default {
|
|
13
|
+
title: "Widgets/Visual Recommendations/Widget",
|
|
14
|
+
component: "vviinn-vpr-widget",
|
|
15
|
+
argTypes: Object.assign(Object.assign({}, argTypes), { mode: {
|
|
16
|
+
table: {
|
|
17
|
+
disable: true
|
|
18
|
+
}
|
|
19
|
+
} }),
|
|
20
|
+
parameters: {
|
|
21
|
+
controls: {
|
|
22
|
+
exclude: excludeControls
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const allignementLeft = `
|
|
27
|
+
vviinn-vpr-widget::part(title),
|
|
28
|
+
vviinn-vpr-widget::part(brand),
|
|
29
|
+
vviinn-vpr-widget::part(type),
|
|
30
|
+
vviinn-vpr-widget::part(deeplink),
|
|
31
|
+
vviinn-vpr-widget::part(price-container) {
|
|
32
|
+
align-self: start;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}`;
|
|
35
|
+
const allignementCenter = `
|
|
36
|
+
vviinn-vpr-widget::part(title),
|
|
37
|
+
vviinn-vpr-widget::part(brand),
|
|
38
|
+
vviinn-vpr-widget::part(type),
|
|
39
|
+
vviinn-vpr-widget::part(deeplink),
|
|
40
|
+
vviinn-vpr-widget::part(price-container) {
|
|
41
|
+
align-self: center;
|
|
42
|
+
text-align: center;
|
|
43
|
+
}`;
|
|
44
|
+
const allignementRight = `
|
|
45
|
+
vviinn-vpr-widget::part(title),
|
|
46
|
+
vviinn-vpr-widget::part(brand),
|
|
47
|
+
vviinn-vpr-widget::part(type),
|
|
48
|
+
vviinn-vpr-widget::part(deeplink),
|
|
49
|
+
vviinn-vpr-widget::part(price-container) {
|
|
50
|
+
align-self: end;
|
|
51
|
+
text-align: right;
|
|
52
|
+
}`;
|
|
53
|
+
const allignement = new Map([
|
|
54
|
+
[0, allignementLeft],
|
|
55
|
+
[1, allignementCenter],
|
|
56
|
+
[2, allignementRight],
|
|
57
|
+
]);
|
|
58
|
+
const Template = (args) => `
|
|
59
|
+
<script>
|
|
60
|
+
window.dataLayer = window.dataLayer || [];
|
|
61
|
+
function gtag() {
|
|
62
|
+
dataLayer.push(arguments);
|
|
63
|
+
}
|
|
64
|
+
gtag("js", new Date());
|
|
65
|
+
|
|
66
|
+
gtag("config", "${args.analyticsId}");
|
|
67
|
+
gtag("require", "ec");
|
|
68
|
+
</script>
|
|
69
|
+
<style>
|
|
70
|
+
${allignement.get(args.contentAlignment)}
|
|
71
|
+
vviinn-vpr-widget::part(title),
|
|
72
|
+
vviinn-vpr-widget::part(brand),
|
|
73
|
+
vviinn-vpr-widget::part(type),
|
|
74
|
+
vviinn-vpr-widget::part(price-sale),
|
|
75
|
+
vviinn-vpr-widget::part(price-regular) {
|
|
76
|
+
color: ${args.primaryTextColor};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
vviinn-vpr-widget::part(price-outdated) {
|
|
80
|
+
color: ${args.secondaryTextColor};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
vviinn-vpr-widget::part(recommendations-title) {
|
|
84
|
+
display: ${args.showTitle ? "flex" : "none"};
|
|
85
|
+
font-size: ${args.titleFontSize}px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media(min-width: 1024px) {
|
|
89
|
+
* {
|
|
90
|
+
--vviinn-carousel-columns: ${args.recommendationsGridProductsDesktop};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media(max-width: 1024px) and (min-width: 768px) {
|
|
95
|
+
* {
|
|
96
|
+
--vviinn-carousel-columns: ${args.recommendationsGridProductsTablet};
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media(max-width: 768px) and (min-width: 460px) {
|
|
101
|
+
* {
|
|
102
|
+
--vviinn-carousel-columns: ${args.recommendationsGridProductsMobile};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
vviinn-product-card::part(title) {
|
|
106
|
+
font-size: 14px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media(min-width: 1024px) {
|
|
111
|
+
vviinn-product-card,
|
|
112
|
+
vviinn-vpr-widget::part(image) {
|
|
113
|
+
width: ${args.recommendationsContinuityProductsDesktop}px;
|
|
114
|
+
max-width: ${args.recommendationsContinuityProductsDesktop}px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
vviinn-vpr-widget::part(image) {
|
|
118
|
+
height: 100%;
|
|
119
|
+
aspect-ratio: 1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media(max-width: 1024px) and (min-width: 768px) {
|
|
124
|
+
vviinn-product-card,
|
|
125
|
+
vviinn-vpr-widget::part(image) {
|
|
126
|
+
width: ${args.recommendationsContinuityProductsTablet}px;
|
|
127
|
+
max-width: ${args.recommendationsContinuityProductsTablet}px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
vviinn-vpr-widget::part(image) {
|
|
131
|
+
height: 100%;
|
|
132
|
+
aspect-ratio: 1;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media(max-width: 768px) and (min-width: 460px) {
|
|
137
|
+
vviinn-product-card,
|
|
138
|
+
vviinn-vpr-widget::part(image) {
|
|
139
|
+
width: ${args.recommendationsContinuityProductsMobile}px;
|
|
140
|
+
max-width: ${args.recommendationsContinuityProductsMobile}px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
vviinn-vpr-widget::part(image) {
|
|
144
|
+
height: 100%;
|
|
145
|
+
aspect-ratio: 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
vviinn-vpr-widget::part(title) {
|
|
149
|
+
font-size: 14px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
</style>
|
|
153
|
+
<vviinn-vpr-widget
|
|
154
|
+
block-title="${args.titleName}"
|
|
155
|
+
api-path="${args.apiPath}"
|
|
156
|
+
product-id="${args.productId}"
|
|
157
|
+
token="${args.token}"
|
|
158
|
+
mode="${args.mode}"
|
|
159
|
+
show-scroll="${args.showScrollbars}"
|
|
160
|
+
image-width="${args.imageWidth}"
|
|
161
|
+
campaign-type="${args.campaignType}"
|
|
162
|
+
>
|
|
163
|
+
</vviinn-vpr-widget>
|
|
164
|
+
`;
|
|
165
|
+
export const Grid = Template.bind({});
|
|
166
|
+
Grid.args = {
|
|
167
|
+
analyticsId: "UA-34442043-5",
|
|
168
|
+
apiPath: "https://api.vviinn.com",
|
|
169
|
+
campaignType: "VPR",
|
|
170
|
+
contentAlignment: "Centered",
|
|
171
|
+
imageWidth: 420,
|
|
172
|
+
mode: "grid",
|
|
173
|
+
primaryTextColor: "#161616",
|
|
174
|
+
productId: "4114460310",
|
|
175
|
+
recommendationsGridProductsDesktop: 4,
|
|
176
|
+
recommendationsGridProductsMobile: 4,
|
|
177
|
+
recommendationsGridProductsTablet: 4,
|
|
178
|
+
secondaryTextColor: "#757575",
|
|
179
|
+
showScrollbars: true,
|
|
180
|
+
showTitle: true,
|
|
181
|
+
titleFontSize: 28,
|
|
182
|
+
titleName: "Recommended products",
|
|
183
|
+
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4"
|
|
184
|
+
};
|
|
185
|
+
Grid.argTypes = Object.assign({}, gridLayoutArgs);
|
|
186
|
+
Grid.decorators = [
|
|
187
|
+
gridDecorator
|
|
188
|
+
];
|
|
189
|
+
export const Continuity = Template.bind({});
|
|
190
|
+
Continuity.args = {
|
|
191
|
+
analyticsId: "UA-34442043-5",
|
|
192
|
+
apiPath: "https://api.vviinn.com",
|
|
193
|
+
campaignType: "VPR",
|
|
194
|
+
contentAlignment: "Left",
|
|
195
|
+
imageWidth: 300,
|
|
196
|
+
mode: "continuity",
|
|
197
|
+
primaryTextColor: "#161616",
|
|
198
|
+
productId: "4114460310",
|
|
199
|
+
recommendationsContinuityProductsDesktop: 200,
|
|
200
|
+
recommendationsContinuityProductsMobile: 160,
|
|
201
|
+
recommendationsContinuityProductsTablet: 150,
|
|
202
|
+
secondaryTextColor: "#757575",
|
|
203
|
+
showScrollbars: false,
|
|
204
|
+
showTitle: true,
|
|
205
|
+
titleFontSize: 28,
|
|
206
|
+
titleName: "Recommended products",
|
|
207
|
+
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4"
|
|
208
|
+
};
|
|
209
|
+
Continuity.decorators = [
|
|
210
|
+
continuityDecorator
|
|
211
|
+
];
|
|
212
|
+
Continuity.argTypes = Object.assign({}, continuityLayoutArgs);
|
|
@@ -20,6 +20,7 @@ import { Subject } from "rxjs";
|
|
|
20
20
|
* @part price-prefix - block rendered before each price element (for ex. "from")
|
|
21
21
|
* @part price-regular - block for price if no sale price presented
|
|
22
22
|
* @part price-sale - block for sale price. rendered only if sale price presented
|
|
23
|
+
* @part carousel-button
|
|
23
24
|
*/
|
|
24
25
|
export class VviinnVprWidget {
|
|
25
26
|
constructor() {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: "Widgets/Visual Search/Button",
|
|
3
|
+
component: "vviinn-vps-button",
|
|
4
|
+
parameters: {
|
|
5
|
+
viewport: {
|
|
6
|
+
defaultViewport: "mobile2"
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
decorators: [(story) => `
|
|
10
|
+
<div style="display: grid;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-items: center;">
|
|
18
|
+
${story()}
|
|
19
|
+
</div>
|
|
20
|
+
`],
|
|
21
|
+
};
|
|
22
|
+
const Template = (args) => `
|
|
23
|
+
<vviinn-vps-button
|
|
24
|
+
api-path="${args.apiPath}"
|
|
25
|
+
token="${args.token}"
|
|
26
|
+
></vviinn-vps-button>`;
|
|
27
|
+
export const Default = Template.bind({});
|
|
28
|
+
Default.args = {
|
|
29
|
+
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4",
|
|
30
|
+
apiPath: "https://api.vviinn.com"
|
|
31
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: "Widgets/Visual Search/Widget",
|
|
3
|
+
parameters: {
|
|
4
|
+
viewport: {
|
|
5
|
+
defaultViewport: "mobile2"
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const Template = ({ token, apiPath }) => `
|
|
10
|
+
<vviinn-vps-widget token="${token}"
|
|
11
|
+
api-path="${apiPath}"
|
|
12
|
+
active="true">
|
|
13
|
+
</vviinn-vps-widget>`;
|
|
14
|
+
export const Default = Template.bind({});
|
|
15
|
+
Default.args = {
|
|
16
|
+
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4",
|
|
17
|
+
apiPath: "https://api.vviinn.com"
|
|
18
|
+
};
|
|
19
|
+
Default.storyName = "Modal Window";
|
|
20
|
+
Default.decorators = [(Story) => `
|
|
21
|
+
<style>
|
|
22
|
+
.sb-show-main.sb-main-padded {
|
|
23
|
+
padding: unset;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#root {
|
|
27
|
+
align-content: center;
|
|
28
|
+
display: grid;
|
|
29
|
+
height: 100vh;
|
|
30
|
+
justify-items: center;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
33
|
+
${Story()}`];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-d7c7df1c.js';
|
|
2
2
|
import { q as getCursorValue } from './Handler-639a4cb3.js';
|
|
3
3
|
|
|
4
4
|
const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
2
|
-
import { O as Option, h as sequenceToOption, i as imageSearchState, a as _function, t as transform, j as move, k as makeRectangularSearchRequest, l as fromAlt, n as foldValueObject, o as scaleWithSized, p as center, q as detectedObjectEq, r as toFile, u as processSelectedFile, E as Either, v as match, w as fromImage, x as dimensionsFromImage, y as scaleByLargestSide, N as NonEmptyArray } from './imageSearch.store-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-d7c7df1c.js';
|
|
2
|
+
import { O as Option, h as sequenceToOption, i as imageSearchState, a as _function, t as transform, j as move, k as makeRectangularSearchRequest, l as fromAlt, n as foldValueObject, o as scaleWithSized, p as center, q as detectedObjectEq, r as toFile, u as processSelectedFile, E as Either, v as match, w as fromImage, x as dimensionsFromImage, y as scaleByLargestSide, N as NonEmptyArray } from './imageSearch.store-f35e14f8.js';
|
|
3
3
|
import { p as pipe, m as pointDiffSemigroup, o as fromMouseEvent } from './Handler-639a4cb3.js';
|
|
4
|
-
import { c as CheckIcon, O as OnboardingCard1Icon, d as OnboardingCard2Icon, e as OnboardingCard3Icon, A as ArrowIcon } from './index-
|
|
5
|
-
import { s as slotChangeListener } from './customized-slots-
|
|
4
|
+
import { c as CheckIcon, O as OnboardingCard1Icon, d as OnboardingCard2Icon, e as OnboardingCard3Icon, A as ArrowIcon } from './index-ac2e3b9d.js';
|
|
5
|
+
import { s as slotChangeListener } from './customized-slots-65b2467d.js';
|
|
6
6
|
|
|
7
7
|
// -------------------------------------------------------------------------------------
|
|
8
8
|
// -------------------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getRenderingRef, f as forceUpdate } from './index-
|
|
1
|
+
import { a as getRenderingRef, f as forceUpdate } from './index-d7c7df1c.js';
|
|
2
2
|
import { t as tuple, i as isNone$1, l as left$1, r as right$1, a as isLeft$1, b as identity, p as pipe, n as none$1, s as some$1, f as first, c as flow, d as struct, e as last, g as pointSumSemigroup, H as HandlerDirection, h as fromRectangle, j as isSome, k as fromRectangle$1 } from './Handler-639a4cb3.js';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-d7c7df1c.js';
|
|
2
2
|
|
|
3
3
|
const ArrowIcon = () => (h("svg", { width: "12", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
4
4
|
h("path", { d: "M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z" })));
|
|
5
|
-
const CameraIcon = () => (h("svg", {
|
|
6
|
-
h("
|
|
7
|
-
h("path", { fill: "#525252", "fill-rule": "evenodd", d: "M9.771 3.89a.875.875 0 01.728-.39h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.25A2.625 2.625 0 012.625 21V8.75A2.625 2.625 0 015.25 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.25a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z", "clip-rule": "evenodd" }),
|
|
8
|
-
h("path", { fill: "#525252", "fill-rule": "evenodd", d: "M14 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z", "clip-rule": "evenodd" })));
|
|
5
|
+
const CameraIcon = () => (h("svg", { width: "22", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
6
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z", fill: "#161616" })));
|
|
9
7
|
const OnboardingCard1Icon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "120", height: "120", fill: "none" },
|
|
10
8
|
h("defs", null),
|
|
11
9
|
h("path", { fill: "#393939", d: "M74.55 20a5.06 5.06 0 014.14 2l4.72 9.32.1.18.11.17A5.07 5.07 0 0087.93 34h13.87c5.07 0 9.2 3.59 9.2 8v50c0 4.41-4.13 8-9.2 8H18.2c-5.07 0-9.2-3.59-9.2-8V42c0-4.41 4.13-8 9.2-8h13.87a5.072 5.072 0 004.31-2.34l.11-.17.1-.18L41.31 22a5.06 5.06 0 014.14-2h29.1zm0-4h-29.1a9 9 0 00-7.6 4L33 29.5a1.13 1.13 0 01-1 .5H18.2C10.91 30 5 35.37 5 42v50c0 6.63 5.91 12 13.2 12h83.6c7.29 0 13.2-5.37 13.2-12V42c0-6.63-5.91-12-13.2-12H87.93a1.13 1.13 0 01-1-.5L82.15 20a9 9 0 00-7.6-4z" }),
|
|
@@ -21,11 +19,11 @@ const OnboardingCard3Icon = () => (h("svg", { xmlns: "http://www.w3.org/2000/svg
|
|
|
21
19
|
h("path", { class: "colored", d: "M100 7.94H20a12 12 0 00-12 12v80a11.998 11.998 0 0012 12h80c3.183 0 6.235-1.264 8.485-3.515A11.996 11.996 0 00112 99.94v-80a11.998 11.998 0 00-12-12zm-8 69.24a1.69 1.69 0 01-.85 1.45l-30.31 17.1a1.77 1.77 0 01-1.67 0l-30.32-17.1a1.689 1.689 0 01-.85-1.45V42.82a1.66 1.66 0 01.85-1.45l30.32-17.21a1.71 1.71 0 011.67 0l30.31 17.21a1.67 1.67 0 01.85 1.45v34.36z" })));
|
|
22
20
|
const CheckIcon = () => (h("svg", { width: "14", height: "11", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
21
|
h("path", { d: "M5 10.414 0 5.413 1.413 4 5 7.586 12.585 0 14 1.415l-9 8.999Z", fill: "var(--color-primary, var(--color-primary-system))" })));
|
|
24
|
-
const ChevronIcon = () => (h("svg", { width: "9", height: "16",
|
|
25
|
-
h("path", { d: "m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z"
|
|
26
|
-
const VisualSearchIcon = () => (h("svg", { width: "
|
|
27
|
-
h("path", { d: "
|
|
22
|
+
const ChevronIcon = () => (h("svg", { width: "9", height: "16", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
h("path", { d: "m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z" })));
|
|
24
|
+
const VisualSearchIcon = () => (h("svg", { width: "20", height: "20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
25
|
+
h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z", fill: "#161616" })));
|
|
28
26
|
const CrossIcon = () => (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
29
27
|
h("path", { d: "M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z", fill: "#161616" })));
|
|
30
28
|
|
|
31
|
-
export { ArrowIcon as A, ChevronIcon as C, OnboardingCard1Icon as O, VisualSearchIcon as V,
|
|
29
|
+
export { ArrowIcon as A, ChevronIcon as C, OnboardingCard1Icon as O, VisualSearchIcon as V, CameraIcon as a, CrossIcon as b, CheckIcon as c, OnboardingCard2Icon as d, OnboardingCard3Icon as e };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'vviinn-widgets';
|
|
2
|
-
const Env = /* vviinn-widgets */ {"packageVersion":"2.
|
|
2
|
+
const Env = /* vviinn-widgets */ {"packageVersion":"2.3.0","packageName":"vviinn-widgets","environment":"local"};
|
|
3
3
|
|
|
4
4
|
let scopeId;
|
|
5
5
|
let hostTagName;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-d7c7df1c.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-90d99f95.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -12,7 +12,7 @@ const defineCustomElements = (win, options) => {
|
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
14
|
globalScripts();
|
|
15
|
-
return bootstrapLazy([["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-
|
|
15
|
+
return bootstrapLazy([["cropper-handler",[[1,"cropper-handler",{"handler":[16],"disabled":[4]}]]],["vviinn-error",[[1,"vviinn-error"]]],["vviinn-preloader",[[1,"vviinn-preloader"]]],["vviinn-carousel_3",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"recommendations":[32],"loaded":[32]},[[0,"productImageLoaded","lol"]]],[0,"vviinn-carousel",{"mode":[1],"imageWidth":[2,"image-width"],"showScroll":[4,"show-scroll"],"recommendations":[16],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32]}],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"dimmedBackground":[4,"dimmed-background"],"imageLoaded":[32]}]]],["highlight-box_22",[[1,"vviinn-image-view"],[1,"vviinn-onboarding"],[1,"vviinn-example-images",null,[[0,"exampleImageSelected","handleImageSelection"],[0,"exampleImageError","handleImageSelectionError"]]],[1,"vviinn-overlayed-modal",{"active":[4]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector"],[1,"vviinn-server-error"],[1,"vviinn-wrong-format"],[1,"search-filters",{"filter":[16],"selectedCategoryId":[32],"hideFilters":[32]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32]}]]],["vviinn-vps-widget",[[1,"vviinn-vps-widget",{"token":[1],"apiPath":[1,"api-path"],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"slidePosition":[32],"width":[32],"wrongImageFormat":[32]}]]],["vviinn-vps-button",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"apiPath":[1,"api-path"],"pressed":[32]},[[0,"modalClosed","handleModalClosed"]]]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"]}]]]], options);
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
|