vviinn-widgets 2.4.0 → 2.4.3
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-2bcc74df.js → app-globals-474864e0.js} +1 -1
- package/dist/cjs/cropper-handler.cjs.entry.js +1 -1
- package/dist/cjs/{customized-slots-4202eaf5.js → customized-slots-0aa6c3d6.js} +1 -1
- package/dist/cjs/highlight-box_22.cjs.entry.js +5 -5
- package/dist/cjs/{imageSearch.store-cb2b2cc8.js → imageSearch.store-076370bf.js} +1 -1
- package/dist/cjs/{index-e9439500.js → index-34d20028.js} +3 -724
- package/dist/cjs/{index-6771ae25.js → index-61403ab1.js} +1 -1
- package/dist/cjs/{index-44fc16ad.js → index-a87f1a44.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/vviinn-carousel_3.cjs.entry.js +9 -10
- 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 +2 -2
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +21 -20
- package/dist/cjs/vviinn-widgets.cjs.js +2 -2
- package/dist/collection/components/image-search/search-filters/search-filters.js +1 -1
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +3 -3
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +4 -4
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +2 -3
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +17 -16
- package/dist/collection/openApi/index.js +1 -1
- package/dist/esm/{app-globals-550daa9b.js → app-globals-3888cd41.js} +1 -1
- package/dist/esm/cropper-handler.entry.js +1 -1
- package/dist/esm/{customized-slots-80625933.js → customized-slots-863113e2.js} +1 -1
- package/dist/esm/highlight-box_22.entry.js +5 -5
- package/dist/esm/{imageSearch.store-1268786d.js → imageSearch.store-b516d12e.js} +1 -1
- package/dist/esm/{index-fa27f1df.js → index-2f8fb0fe.js} +3 -724
- package/dist/esm/{index-1cf740a8.js → index-36978848.js} +1 -1
- package/dist/esm/{index-c09e56b6.js → index-56c062df.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/vviinn-carousel_3.entry.js +9 -10
- 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 +2 -2
- package/dist/esm/vviinn-vpr-button.entry.js +2 -2
- package/dist/esm/vviinn-vps-button.entry.js +3 -3
- package/dist/esm/vviinn-vps-widget.entry.js +21 -20
- package/dist/esm/vviinn-widgets.js +2 -2
- package/dist/types/components/image-search/search-filters/search-filters.d.ts +1 -1
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +2 -2
- package/dist/types/components.d.ts +1 -1
- package/dist/types/openApi/index.d.ts +2 -2
- package/dist/types/tracking/event.d.ts +1 -1
- package/dist/types/tracking/index.d.ts +8 -8
- package/dist/types/tracking/models.d.ts +1 -1
- package/dist/vviinn-widgets/{p-c63fb46b.entry.js → p-0a9cee09.entry.js} +1 -1
- package/dist/vviinn-widgets/p-28678772.js +1 -0
- package/dist/vviinn-widgets/{p-86ae782f.entry.js → p-2e6ecda7.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-8e25b838.js → p-47183c9a.js} +1 -1
- package/dist/vviinn-widgets/{p-dd7cac6e.entry.js → p-535611cd.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-78b65f70.js → p-606ff863.js} +1 -1
- package/dist/vviinn-widgets/{p-4bdb3027.entry.js → p-9cc6f0dd.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-07125f64.js → p-ac0a2989.js} +1 -1
- package/dist/vviinn-widgets/p-ad29e9c5.entry.js +1 -0
- package/{www/build/p-c5e6ec4f.js → dist/vviinn-widgets/p-b4caf042.js} +1 -1
- package/dist/vviinn-widgets/{p-314e40b3.entry.js → p-b547a6d0.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-97af45f0.js → p-c853cba8.js} +1 -1
- package/dist/vviinn-widgets/p-d2097302.entry.js +1 -0
- package/dist/vviinn-widgets/{p-27ede517.entry.js → p-d8d49616.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-5535163a.entry.js → p-f9410382.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +3 -3
- package/www/build/{p-c63fb46b.entry.js → p-0a9cee09.entry.js} +1 -1
- package/www/build/p-28678772.js +1 -0
- package/www/build/{p-86ae782f.entry.js → p-2e6ecda7.entry.js} +1 -1
- package/www/build/{p-8e25b838.js → p-47183c9a.js} +1 -1
- package/www/build/{p-dd7cac6e.entry.js → p-535611cd.entry.js} +1 -1
- package/www/build/{p-78b65f70.js → p-606ff863.js} +1 -1
- package/www/build/{p-961822d3.js → p-7c313f33.js} +2 -2
- package/www/build/{p-4bdb3027.entry.js → p-9cc6f0dd.entry.js} +1 -1
- package/www/build/{p-07125f64.js → p-ac0a2989.js} +1 -1
- package/www/build/p-ad29e9c5.entry.js +1 -0
- package/{dist/vviinn-widgets/p-c5e6ec4f.js → www/build/p-b4caf042.js} +1 -1
- package/www/build/{p-314e40b3.entry.js → p-b547a6d0.entry.js} +1 -1
- package/www/build/{p-97af45f0.js → p-c853cba8.js} +1 -1
- package/www/build/p-d2097302.entry.js +1 -0
- package/www/build/{p-27ede517.entry.js → p-d8d49616.entry.js} +1 -1
- package/www/build/{p-5535163a.entry.js → p-f9410382.entry.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/vviinn-widgets/p-316abc01.js +0 -1
- package/dist/vviinn-widgets/p-89f2c19a.entry.js +0 -1
- package/dist/vviinn-widgets/p-94aa8705.entry.js +0 -1
- package/www/build/p-316abc01.js +0 -1
- package/www/build/p-89f2c19a.entry.js +0 -1
- package/www/build/p-94aa8705.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-56c062df.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" })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'vviinn-widgets';
|
|
2
|
-
const Env = /* vviinn-widgets */ {"packageVersion":"2.
|
|
2
|
+
const Env = /* vviinn-widgets */ {"packageVersion":"2.4.2","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-56c062df.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-3888cd41.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Esm v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-
|
|
2
|
-
import { _ as _Array, O as Option, S as Semigroup, a as _function, E as Either, i as imageSearchState, s as state, c as chainW, m as makeRequest, f as fromEither, g as getApiPath, b as createInitGetRequest, d as sequenceT, A as Apply, T as TaskEither } from './imageSearch.store-
|
|
3
|
-
import { C as ChevronIcon } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-56c062df.js';
|
|
2
|
+
import { _ as _Array, O as Option, S as Semigroup, a as _function, E as Either, i as imageSearchState, s as state, c as chainW, m as makeRequest, f as fromEither, g as getApiPath, b as createInitGetRequest, d as sequenceT, A as Apply, T as TaskEither } from './imageSearch.store-b516d12e.js';
|
|
3
|
+
import { C as ChevronIcon } from './index-36978848.js';
|
|
4
4
|
import { p as pipe } from './Handler-639a4cb3.js';
|
|
5
|
-
import { c as createProductViewVprEvent, v as v4, a as createTrackingApi, b as createWidgetVprEvent } from './index-
|
|
5
|
+
import { c as createProductViewVprEvent, v as v4, a as createTrackingApi, b as createWidgetVprEvent } from './index-2f8fb0fe.js';
|
|
6
6
|
|
|
7
7
|
const vviinnCarouselCss = ":host{--vviinn-progressbar-width:0;--vviinn-carousel-item-width:150px;--vviinn-carousel-columns-internal:var(--vviinn-carousel-columns, 4);--vviinn-carousel-image-width-system:140px}.body{display:flex;position:relative;width:var(--vviinn-carousel-content-width);flex-direction:column}.content-wrapper *{box-sizing:border-box}.content-wrapper{overflow-y:hidden;overflow-x:auto;flex-grow:1}.bullets{margin-top:16px;display:flex;flex-direction:row;grid-gap:24px;justify-content:center}.bullet{width:10px;height:10px;background:#E0E0E0;border-radius:50%;cursor:pointer}.bullet.active{background:#161616}.content:not(.show-scrollbar),.content.grid{scrollbar-color:#fff0 #fff0}.content:not(.show-scrollbar)::-webkit-scrollbar,.content.grid::-webkit-scrollbar{opacity:0}.content{display:flex;flex-direction:row;grid-gap:8px;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-y:hidden;overflow-x:auto;flex-grow:1;padding-bottom:16px}.content.left>*{scroll-snap-align:start}.content.right>*{scroll-snap-align:end}:host(.continuity) button{border-radius:2px}:host(.grid) button{border-radius:50%}button{align-items:center;background-color:white;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);cursor:pointer;display:grid;height:40px;justify-items:center;position:absolute;top:calc(50% - 20px);width:40px;z-index:1;padding:0;margin:0}button{fill:#525252}button.prev svg{transform:rotate(180deg);margin-left:-5px}.prev{left:0}.next{right:0}.items-group{display:grid;grid-gap:16px;grid-template-columns:repeat(var(--vviinn-carousel-columns-internal), 1fr);min-width:100%}vviinn-product-card::part(price-container){text-align:center}:host(.classic) vviinn-product-card::part(title),:host(.classic) vviinn-product-card::part(brand),:host(.classic) vviinn-product-card::part(type){text-align:center}@media (max-width: 480px){:host(.modern) button{display:none}.items-group{grid-template-columns:repeat(2, 1fr)}}";
|
|
8
8
|
|
|
@@ -171,8 +171,8 @@ let VviinnCarousel = class {
|
|
|
171
171
|
"show-scrollbar": this.showScrollbar(),
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
renderRecommendation(recommendation) {
|
|
175
|
-
return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, deeplink: recommendation.deeplink, image: recommendation.image.thumbnail, brand: recommendation.brand, imageWidth: this.imageWidth, imageRatio: 1, price: recommendation.price.actual, salePrice: recommendation.price.sale, responsive: this.mode === "grid", dimmedBackground: this.mode === "continuity" }));
|
|
174
|
+
renderRecommendation(recommendation, rank) {
|
|
175
|
+
return (h("vviinn-product-card", { part: "product-part", productId: recommendation.productId, productTitle: recommendation.title, deeplink: recommendation.deeplink, image: recommendation.image.thumbnail, brand: recommendation.brand, imageWidth: this.imageWidth, imageRatio: 1, price: recommendation.price.actual, salePrice: recommendation.price.sale, responsive: this.mode === "grid", dimmedBackground: this.mode === "continuity", index: rank }));
|
|
176
176
|
}
|
|
177
177
|
renderRecommendationGroup(elements) {
|
|
178
178
|
return h("div", { class: CONTENT_GROUP_CSS_CLASS }, elements);
|
|
@@ -186,7 +186,7 @@ let VviinnCarousel = class {
|
|
|
186
186
|
: this.renderRecommendationsElements();
|
|
187
187
|
}
|
|
188
188
|
renderRecommendationsElements() {
|
|
189
|
-
return this.recommendations.map((r) => this.renderRecommendation(r));
|
|
189
|
+
return this.recommendations.map((r, i) => this.renderRecommendation(r, i));
|
|
190
190
|
}
|
|
191
191
|
renderGrid() {
|
|
192
192
|
const recommendations = this.renderRecommendationsElements();
|
|
@@ -1093,14 +1093,14 @@ let VviinnVprWidget = class {
|
|
|
1093
1093
|
this.trackingApi = createTrackingApi(this.apiPath, this.token);
|
|
1094
1094
|
const widgetOpenEvent = createWidgetVprEvent({
|
|
1095
1095
|
action: "open",
|
|
1096
|
-
|
|
1096
|
+
session_id: this.uiSessionId,
|
|
1097
1097
|
});
|
|
1098
1098
|
this.trackingApi.trackEvent(widgetOpenEvent);
|
|
1099
1099
|
}
|
|
1100
1100
|
disconnectedCallback() {
|
|
1101
1101
|
const widgetCloseEvent = createWidgetVprEvent({
|
|
1102
1102
|
action: "close",
|
|
1103
|
-
|
|
1103
|
+
session_id: this.uiSessionId,
|
|
1104
1104
|
});
|
|
1105
1105
|
this.trackingApi.trackEvent(widgetCloseEvent);
|
|
1106
1106
|
}
|
|
@@ -1126,7 +1126,6 @@ let VviinnVprWidget = class {
|
|
|
1126
1126
|
this.recommendations = (_a = data === null || data === void 0 ? void 0 : data.extended) !== null && _a !== void 0 ? _a : data;
|
|
1127
1127
|
imageSearchState.results = this.recommendations;
|
|
1128
1128
|
this.loaded = true;
|
|
1129
|
-
//this.recommendationsLoaded.emit();
|
|
1130
1129
|
this.productIds = this.recommendations.map((r) => r.productId);
|
|
1131
1130
|
this.productImageLoadedSubject.subscribe((id) => {
|
|
1132
1131
|
this.productIds = this.productIds.filter((x) => x !== id);
|
|
@@ -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-56c062df.js';
|
|
2
2
|
|
|
3
3
|
const vviinnErrorCss = ":host{background:#F4F4F4;border-radius:8px;display:grid;grid-gap:20px;padding:24px;text-align:center}::slotted(svg){display:grid;align-self:center}::slotted(h4){margin:unset;font-weight:600;font-size:18px;line-height:24px}::slotted(span){font-size:14px;line-height:20px}::slotted(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;color:var(--color-primary, var(--color-primary-system));font-weight:600;font-size:16px;line-height:20px;cursor:pointer}";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { i as imageSearchState } from './imageSearch.store-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-56c062df.js';
|
|
2
|
+
import { i as imageSearchState } from './imageSearch.store-b516d12e.js';
|
|
3
3
|
import './Handler-639a4cb3.js';
|
|
4
4
|
|
|
5
5
|
const vviinnPreloaderCss = ":host{--preloader-size:24px;--preloader-width:calc(var(--preloader-size) / 6);transform-origin:center;-webkit-animation:rotate 3s linear infinite;animation:rotate 3s linear infinite;border:var(--preloader-width) solid white;border-radius:50%;border-top-color:transparent;display:none;outline:0;width:var(--preloader-size);height:var(--preloader-size);box-sizing:border-box}:host(.active){display:flex}@-webkit-keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}@keyframes rotate{from{transform:rotate(-360deg)}to{transform:rotate(360deg)}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { b as CrossIcon } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-56c062df.js';
|
|
2
|
+
import { b as CrossIcon } from './index-36978848.js';
|
|
3
3
|
|
|
4
4
|
const recommendationsSidebarCss = ":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { V as VisualSearchIcon } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-56c062df.js';
|
|
2
|
+
import { V as VisualSearchIcon } from './index-36978848.js';
|
|
3
3
|
|
|
4
4
|
const vviinnVprButtonCss = ":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#F4F4F4;outline:none}";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { a as CameraIcon } from './index-
|
|
3
|
-
import { S as SlotSkeleton } from './customized-slots-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-56c062df.js';
|
|
2
|
+
import { a as CameraIcon } from './index-36978848.js';
|
|
3
|
+
import { S as SlotSkeleton } from './customized-slots-863113e2.js';
|
|
4
4
|
|
|
5
5
|
const vviinnVpsButtonCss = ":host{cursor:pointer}";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { s as state, i as imageSearchState, O as Option } from './imageSearch.store-
|
|
3
|
-
import { s as slotChangeListener } from './customized-slots-
|
|
4
|
-
import { d as createProductViewVpsEvent, e as createSearchEvent, f as createFilterEvent, v as v4, a as createTrackingApi, g as createWidgetVpsEvent } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-56c062df.js';
|
|
2
|
+
import { s as state, i as imageSearchState, O as Option } from './imageSearch.store-b516d12e.js';
|
|
3
|
+
import { s as slotChangeListener } from './customized-slots-863113e2.js';
|
|
4
|
+
import { d as createProductViewVpsEvent, e as createSearchEvent, f as createFilterEvent, v as v4, a as createTrackingApi, g as createWidgetVpsEvent } from './index-2f8fb0fe.js';
|
|
5
5
|
import './Handler-639a4cb3.js';
|
|
6
6
|
|
|
7
7
|
const vviinnVpsWidgetCss = ":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #F4F4F4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{border-right:unset;box-sizing:border-box;grid-gap:24px;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));border-radius:2px;color:white;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background 0.1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:black}.upload-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:-webkit-max-content auto;grid-template-columns:max-content auto;grid-gap:16px}.results-page{display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.products{align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));justify-items:center;padding:24px;padding-right:0;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{border-right:1px solid #F4F4F4;display:grid;grid-template-rows:-webkit-min-content 170px;grid-template-rows:min-content 170px;grid-gap:24px;min-width:100%}.onboarding-wrapper{position:absolute;width:100%;padding:48px;box-sizing:border-box;display:grid;grid-gap:64px;padding-bottom:24px}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#F4F4F4;border-radius:4px;border:1px solid #F4F4F4;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px}search-filters::part(show-more-filters){border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px}search-filters::part(show-more-filters):hover{background:#EAEAEA}search-filters::part(filter):hover{background:#EAEAEA}search-filters::part(filter):focus{outline:none;border:1px solid var(--color-primary, var(--color-primary-system))}search-filters::part(filter active){background:rgba(15, 98, 254, 0.15);color:var(--color-primary, var(--color-primary-system))}.filters-wrapper{overflow:auto}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}@media (max-width: 768px){.start-page_block{padding:24px}.onboarding-wrapper{padding:24px}}@media (max-width: 640px){.start-page{grid-template-rows:-webkit-min-content;grid-template-rows:min-content;grid-template-columns:unset;grid-gap:48px;padding:24px 0 48px 0}}@media (max-width: 640px) and (min-width: 415px){.onboarding-wrapper{position:unset}#onboarding-block{overflow:unset}.start-page.active{height:1px;overflow:auto}}@media (max-width: 415px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;overflow-y:unset;position:static;box-sizing:border-box;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{position:static;width:unset;padding:unset;box-sizing:border-box}.results-page{grid-template-columns:unset;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 320px){.products{grid-template-columns:unset}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}";
|
|
@@ -26,13 +26,14 @@ let VviinnVpsWidget = class {
|
|
|
26
26
|
if (value) {
|
|
27
27
|
this.overflow = document.body.style.overflow;
|
|
28
28
|
document.body.style.overflow = "hidden";
|
|
29
|
+
this.trackOpenEvent();
|
|
29
30
|
}
|
|
30
31
|
else {
|
|
31
32
|
document.body.style.overflow = this.overflow;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
trackRecommendationView({ detail }) {
|
|
35
|
-
const recommendationViewEvent = createProductViewVpsEvent(Object.assign({
|
|
36
|
+
const recommendationViewEvent = createProductViewVpsEvent(Object.assign({ session_id: this.uiSessionId }, detail));
|
|
36
37
|
this.trackingApi.trackEvent(recommendationViewEvent);
|
|
37
38
|
}
|
|
38
39
|
trackRecommendationClick({ detail }) {
|
|
@@ -41,23 +42,23 @@ let VviinnVpsWidget = class {
|
|
|
41
42
|
}
|
|
42
43
|
trachSearchAreaChanges() {
|
|
43
44
|
const searchEvent = createSearchEvent({
|
|
44
|
-
|
|
45
|
+
session_id: this.uiSessionId,
|
|
45
46
|
source: this.imageSource,
|
|
46
|
-
|
|
47
|
+
search_area: "manual-selection",
|
|
47
48
|
});
|
|
48
49
|
this.trackingApi.trackEvent(searchEvent);
|
|
49
50
|
}
|
|
50
51
|
trackDetectedObject() {
|
|
51
52
|
const searchEvent = createSearchEvent({
|
|
52
|
-
|
|
53
|
+
session_id: this.uiSessionId,
|
|
53
54
|
source: this.imageSource,
|
|
54
|
-
|
|
55
|
+
search_area: "attention-point",
|
|
55
56
|
});
|
|
56
57
|
this.trackingApi.trackEvent(searchEvent);
|
|
57
58
|
}
|
|
58
59
|
trackFilter({ detail }) {
|
|
59
60
|
const searchEvent = createFilterEvent({
|
|
60
|
-
|
|
61
|
+
session_id: this.uiSessionId,
|
|
61
62
|
source: this.imageSource,
|
|
62
63
|
kind: "category",
|
|
63
64
|
action: detail,
|
|
@@ -73,17 +74,12 @@ let VviinnVpsWidget = class {
|
|
|
73
74
|
state.locale = this.locale;
|
|
74
75
|
imageSearchState.token = this.token;
|
|
75
76
|
this.uiSessionId = v4();
|
|
77
|
+
}
|
|
78
|
+
trackOpenEvent() {
|
|
76
79
|
this.trackingApi = createTrackingApi(this.apiPath, this.token);
|
|
77
80
|
const widgetOpenEvent = createWidgetVpsEvent({
|
|
78
81
|
action: "open",
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
this.trackingApi.trackEvent(widgetOpenEvent);
|
|
82
|
-
}
|
|
83
|
-
disconnectedCallback() {
|
|
84
|
-
const widgetOpenEvent = createWidgetVpsEvent({
|
|
85
|
-
action: "close",
|
|
86
|
-
sessionId: this.uiSessionId,
|
|
82
|
+
session_id: this.uiSessionId,
|
|
87
83
|
});
|
|
88
84
|
this.trackingApi.trackEvent(widgetOpenEvent);
|
|
89
85
|
}
|
|
@@ -99,9 +95,9 @@ let VviinnVpsWidget = class {
|
|
|
99
95
|
}
|
|
100
96
|
trackInitialSearch() {
|
|
101
97
|
const searchEvent = createSearchEvent({
|
|
102
|
-
|
|
98
|
+
session_id: this.uiSessionId,
|
|
103
99
|
source: this.imageSource,
|
|
104
|
-
|
|
100
|
+
search_area: "full",
|
|
105
101
|
});
|
|
106
102
|
this.trackingApi.trackEvent(searchEvent);
|
|
107
103
|
}
|
|
@@ -131,6 +127,11 @@ let VviinnVpsWidget = class {
|
|
|
131
127
|
this.resetState();
|
|
132
128
|
const elementsToReset = ["onboarding-block", "results-block"];
|
|
133
129
|
elementsToReset.forEach((name) => this.resetScroll(name));
|
|
130
|
+
const widgetOpenEvent = createWidgetVpsEvent({
|
|
131
|
+
action: "close",
|
|
132
|
+
session_id: this.uiSessionId,
|
|
133
|
+
});
|
|
134
|
+
this.trackingApi.trackEvent(widgetOpenEvent);
|
|
134
135
|
}
|
|
135
136
|
render() {
|
|
136
137
|
return (h(Host, null, h("vviinn-overlayed-modal", { class: { "first-screen": this.slidePosition === 0 }, active: this.active, onSecondaryActionClicked: () => this.resetState(), onModalClosed: () => this.handleModalClose(), exportparts: "secondary-action, title, close-button" }, h("vviinn-slider", { showBullets: false, position: this.slidePosition }, h("vviinn-slide", { class: { "start-page": true } }, h("div", { class: {
|
|
@@ -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-56c062df.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-3888cd41.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import { FilterAction } from "
|
|
2
|
+
import { FilterAction } from "vviinn-tracking-client-ts";
|
|
3
3
|
import { SearchSessionFilter } from "../../../searchSession/searchSession";
|
|
4
4
|
export declare class SearchFilters {
|
|
5
5
|
el: HTMLElement;
|
|
@@ -2,7 +2,7 @@ import { ComponentInterface, EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { CampaignName } from "../../campaign/Campaign";
|
|
3
3
|
import { CarouselMode } from "../vviinn-carousel/vviinn-carousel";
|
|
4
4
|
import { Recommendation } from "../../recommendation/recommendation";
|
|
5
|
-
import { DefaultApi } from "
|
|
5
|
+
import { DefaultApi } from "vviinn-tracking-client-ts";
|
|
6
6
|
import { ProductCardEvent } from "../../recommendation/events";
|
|
7
7
|
/**
|
|
8
8
|
* @part product-card - product card itself
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterAction } from "
|
|
1
|
+
import { FilterAction } from "vviinn-tracking-client-ts";
|
|
2
2
|
import { ProductCardEvent } from "../../recommendation/events";
|
|
3
3
|
/**
|
|
4
4
|
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
@@ -50,7 +50,7 @@ export declare class VviinnVpsWidget {
|
|
|
50
50
|
trackFilter({ detail }: CustomEvent<FilterAction>): void;
|
|
51
51
|
componentWillLoad(): void;
|
|
52
52
|
connectedCallback(): void;
|
|
53
|
-
|
|
53
|
+
private trackOpenEvent;
|
|
54
54
|
private handleImageSelection;
|
|
55
55
|
private trackInitialSearch;
|
|
56
56
|
private resetState;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Handler } from "./cropper/Handler";
|
|
9
9
|
import { DetectedObject, SearchSessionFilter } from "./searchSession/searchSession";
|
|
10
|
-
import { FilterAction } from "
|
|
10
|
+
import { FilterAction } from "vviinn-tracking-client-ts";
|
|
11
11
|
import { CarouselMode } from "./components/vviinn-carousel/vviinn-carousel";
|
|
12
12
|
import { Recommendation } from "./recommendation/recommendation";
|
|
13
13
|
import { ValueObject } from "./network/ion/ValueObject";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthMethodsConfiguration, DefaultApi } from "
|
|
2
|
-
export declare const getTrackingServerByApiPath: (apiPath: string) => import("
|
|
1
|
+
import { AuthMethodsConfiguration, DefaultApi } from "vviinn-tracking-client-ts";
|
|
2
|
+
export declare const getTrackingServerByApiPath: (apiPath: string) => import("vviinn-tracking-client-ts").ServerConfiguration<{}>;
|
|
3
3
|
export declare const isProductionPath: (apiPath: string) => boolean;
|
|
4
4
|
export declare const createBearerAuth: (token: string | PromiseLike<string>) => AuthMethodsConfiguration;
|
|
5
5
|
export declare const createTrackingApi: (apiPath: string, token: string | PromiseLike<string>) => DefaultApi;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Event } from "
|
|
1
|
+
import { Event } from "vviinn-tracking-client-ts";
|
|
2
2
|
import { WidgetEventType } from "./models";
|
|
3
3
|
export declare const createTrackingEvent: (widget: WidgetEventType) => <T extends Event>(eventData: any) => T;
|
|
4
4
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const createProductViewVprEvent: <T extends import("
|
|
2
|
-
export declare const createProductViewVpsEvent: <T extends import("
|
|
3
|
-
export declare const createProductClickVprEvent: <T extends import("
|
|
4
|
-
export declare const createProductClickVpsEvent: <T extends import("
|
|
5
|
-
export declare const createWidgetVprEvent: <T extends import("
|
|
6
|
-
export declare const createWidgetVpsEvent: <T extends import("
|
|
7
|
-
export declare const createSearchEvent: <T extends import("
|
|
8
|
-
export declare const createFilterEvent: <T extends import("
|
|
1
|
+
export declare const createProductViewVprEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
2
|
+
export declare const createProductViewVpsEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
3
|
+
export declare const createProductClickVprEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
4
|
+
export declare const createProductClickVpsEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
5
|
+
export declare const createWidgetVprEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
6
|
+
export declare const createWidgetVpsEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
7
|
+
export declare const createSearchEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
8
|
+
export declare const createFilterEvent: <T extends import("vviinn-tracking-client-ts").Event>(eventData: any) => T;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Widget } from "
|
|
1
|
+
import { Widget } from "vviinn-tracking-client-ts";
|
|
2
2
|
declare const PRODUCT_CLICK_EVENT_TYPE = "product_click_event";
|
|
3
3
|
declare const PRODUCT_VIEW_EVENT_TYPE = "product_view_event";
|
|
4
4
|
declare const FILTER_EVENT_EVENT_TYPE = "filter_event";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as s}from"./p-
|
|
1
|
+
import{r as t,h as o,H as s}from"./p-47183c9a.js";import{V as i}from"./p-b4caf042.js";let n=class{constructor(o){t(this,o),this.position="bottom",this.sourceImage=null,this.sidebarTitle="Visually similar products",this.modalScrollbar=!1,this.sidebar=null,this.sidebarCloseListener=()=>{document.body.removeChild(this.sidebar)}}render(){return o(s,null,o("button",{class:"open-button",part:"button",onClick:()=>this.handleClick()},o("slot",null,o(i,null))))}handleClick(){const t=document.createElement("vviinn-recommendations-sidebar");t.sidebarTitle=this.sidebarTitle,t.productId=this.productId,t.token=this.token,t.position=this.position,t.sourceImage=this.sourceImage,t.widgetScrollbar=this.modalScrollbar,this.sidebar=t,t.addEventListener("modalClosed",this.sidebarCloseListener),document.body.append(this.sidebar)}disconnectedCallback(){this.sidebar.removeEventListener("modalCLosed",this.sidebarCloseListener),document.body.removeChild(this.sidebar)}};n.style=":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#F4F4F4;outline:none}";export{n as vviinn_vpr_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t,h as n}from"./p-606ff863.js";var e,r=new Uint8Array(16);function i(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function u(t){return"string"==typeof t&&o.test(t)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));function f(t,n,e){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=r[o];return n}return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(a[t[n+0]]+a[t[n+1]]+a[t[n+2]]+a[t[n+3]]+"-"+a[t[n+4]]+a[t[n+5]]+"-"+a[t[n+6]]+a[t[n+7]]+"-"+a[t[n+8]]+a[t[n+9]]+"-"+a[t[n+10]]+a[t[n+11]]+a[t[n+12]]+a[t[n+13]]+a[t[n+14]]+a[t[n+15]]).toLowerCase();if(!u(e))throw TypeError("Stringified UUID is invalid");return e}(r)}var s=function(t,n){if(n=n.split(":")[0],!(t=+t))return!1;switch(n){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t},h=Object.prototype.hasOwnProperty;function l(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function v(t){try{return encodeURIComponent(t)}catch(t){return null}}var d={stringify:function(t,n){n=n||"";var e,r,i=[];for(r in"string"!=typeof n&&(n="?"),t)if(h.call(t,r)){if((e=t[r])||null!=e&&!isNaN(e)||(e=""),r=v(r),e=v(e),null===r||null===e)continue;i.push(r+"="+e)}return i.length?n+i.join("&"):""},parse:function(t){for(var n,e=/([^=?#&]+)=?([^&]*)/g,r={};n=e.exec(t);){var i=l(n[1]),o=l(n[2]);null===i||null===o||i in r||(r[i]=o)}return r}},p=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,m=/[\n\r\t]/g,b=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,w=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function _(t){return(t||"").toString().replace(p,"")}var j=[["#","hash"],["?","query"],function(t,n){return A(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],O={hash:1,query:1};function E(n){var e;e="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r,i={},o=typeof(n=n||e.location||{});if("blob:"===n.protocol)i=new T(unescape(n.pathname),{});else if("string"===o)for(r in i=new T(n,{}),O)delete i[r];else if("object"===o){for(r in n)r in O||(i[r]=n[r]);void 0===i.slashes&&(i.slashes=b.test(n.href))}return i}function A(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function S(t,n){t=(t=_(t)).replace(m,""),n=n||{};var e,r=w.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],u=!!r[3],a=0;return o?u?(e=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(e=r[2]+r[4],a=r[2].length):u?(e=r[3]+r[4],a=r[3].length):e=r[4],"file:"===i?a>=2&&(e=e.slice(2)):A(i)?e=r[4]:i?o&&(e=e.slice(2)):a>=2&&A(n.protocol)&&(e=r[4]),{protocol:i,slashes:o||A(i),slashesCount:a,rest:e}}function T(t,n,e){if(t=(t=_(t)).replace(m,""),!(this instanceof T))return new T(t,n,e);var r,i,o,u,a,c,f=j.slice(),h=typeof n,l=this,v=0;for("object"!==h&&"string"!==h&&(e=n,n=null),e&&"function"!=typeof e&&(e=d.parse),r=!(i=S(t||"",n=E(n))).protocol&&!i.slashes,l.slashes=i.slashes||r&&n.slashes,l.protocol=i.protocol||n.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||g.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!A(l.protocol)))&&(f[3]=[/(.*)/,"pathname"]);v<f.length;v++)"function"!=typeof(u=f[v])?(c=u[1],(o=u[0])!=o?l[c]=t:"string"==typeof o?~(a="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof u[2]?(l[c]=t.slice(0,a),t=t.slice(a+u[2])):(l[c]=t.slice(a),t=t.slice(0,a))):(a=o.exec(t))&&(l[c]=a[1],t=t.slice(0,a.index)),l[c]=l[c]||r&&u[3]&&n[c]||"",u[4]&&(l[c]=l[c].toLowerCase())):t=u(t,l);e&&(l.query=e(l.query)),r&&n.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==n.pathname)&&(l.pathname=function(t,n){if(""===t)return n;for(var e=(n||"/").split("/").slice(0,-1).concat(t.split("/")),r=e.length,i=e[r-1],o=!1,u=0;r--;)"."===e[r]?e.splice(r,1):".."===e[r]?(e.splice(r,1),u++):u&&(0===r&&(o=!0),e.splice(r,1),u--);return o&&e.unshift(""),"."!==i&&".."!==i||e.push(""),e.join("/")}(l.pathname,n.pathname)),"/"!==l.pathname.charAt(0)&&A(l.protocol)&&(l.pathname="/"+l.pathname),s(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(a=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,a),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(a+1),l.password=encodeURIComponent(decodeURIComponent(l.password))):l.username=encodeURIComponent(decodeURIComponent(l.auth)),l.auth=l.password?l.username+":"+l.password:l.username),l.origin="file:"!==l.protocol&&A(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}T.prototype={set:function(t,n,e){var r=this;switch(t){case"query":"string"==typeof n&&n.length&&(n=(e||d.parse)(n)),r[t]=n;break;case"port":r[t]=n,s(n,r.protocol)?n&&(r.host=r.hostname+":"+n):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=n,r.port&&(n+=":"+r.port),r.host=n;break;case"host":r[t]=n,y.test(n)?(n=n.split(":"),r.port=n.pop(),r.hostname=n.join(":")):(r.hostname=n,r.port="");break;case"protocol":r.protocol=n.toLowerCase(),r.slashes=!e;break;case"pathname":case"hash":if(n){var i="pathname"===t?"/":"#";r[t]=n.charAt(0)!==i?i+n:n}else r[t]=n;break;case"username":case"password":r[t]=encodeURIComponent(n);break;case"auth":var o=n.indexOf(":");~o?(r.username=n.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=n.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(n))}for(var u=0;u<j.length;u++){var a=j[u];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&A(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=d.stringify);var n,e=this,r=e.host,i=e.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(e.protocol&&e.slashes||A(e.protocol)?"//":"");return e.username?(o+=e.username,e.password&&(o+=":"+e.password),o+="@"):e.password?(o+=":"+e.password,o+="@"):"file:"!==e.protocol&&A(e.protocol)&&!r&&"/"!==e.pathname&&(o+="@"),(":"===r[r.length-1]||y.test(e.hostname)&&!e.port)&&(r+=":"),o+=r+e.pathname,(n="object"==typeof e.query?t(e.query):e.query)&&(o+="?"!==n.charAt(0)?"?"+n:n),e.hash&&(o+=e.hash),o}},T.extractProtocol=S,T.location=E,T.trimLeft=_,T.qs=d;var N=T,C=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.map=n.mergeMap=n.of=n.from=n.Observable=void 0;var e=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(n){return new t(this.promise.then(n))},t}();n.Observable=e,n.from=function(t){return new e(t)},n.of=function(t){return new e(Promise.resolve(t))},n.mergeMap=function(t){return function(n){return t(n).toPromise()}},n.map=function(t){return t}})),P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,M="URLSearchParams"in P,k="Symbol"in P&&"iterator"in Symbol,R="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(t){return!1}}(),U="FormData"in P,x="ArrayBuffer"in P;if(x)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(t){return t&&I.indexOf(Object.prototype.toString.call(t))>-1};function D(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function W(t){return"string"!=typeof t&&(t=String(t)),t}function B(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return k&&(n[Symbol.iterator]=function(){return n}),n}function q(t){this.map={},t instanceof q?t.forEach((function(t,n){this.append(n,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(n){this.append(n,t[n])}),this)}function V(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function z(t){return new Promise((function(n,e){t.onload=function(){n(t.result)},t.onerror=function(){e(t.error)}}))}function G(t){var n=new FileReader,e=z(n);return n.readAsArrayBuffer(t),e}function H(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:R&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:U&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:M&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():x&&R&&(n=t)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=H(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(t)||F(t))?this._bodyArrayBuffer=H(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):M&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},R&&(this.blob=function(){var t=V(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?V(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(G)}),this.text=function(){var t,n,e,r=V(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=z(n=new FileReader),n.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),e=new Array(n.length),r=0;r<n.length;r++)e[r]=String.fromCharCode(n[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},U&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}q.prototype.append=function(t,n){t=D(t),n=W(n);var e=this.map[t];this.map[t]=e?e+", "+n:n},q.prototype.delete=function(t){delete this.map[D(t)]},q.prototype.get=function(t){return t=D(t),this.has(t)?this.map[t]:null},q.prototype.has=function(t){return this.map.hasOwnProperty(D(t))},q.prototype.set=function(t,n){this.map[D(t)]=W(n)},q.prototype.forEach=function(t,n){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(n,this.map[e],e,this)},q.prototype.keys=function(){var t=[];return this.forEach((function(n,e){t.push(e)})),B(t)},q.prototype.values=function(){var t=[];return this.forEach((function(n){t.push(n)})),B(t)},q.prototype.entries=function(){var t=[];return this.forEach((function(n,e){t.push([e,n])})),B(t)},k&&(q.prototype[Symbol.iterator]=q.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(t,n){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var e,r,i=(n=n||{}).body;if(t instanceof $){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new q(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new q(n.headers)),this.method=(r=(e=n.method||this.method||"GET").toUpperCase(),J.indexOf(r)>-1?r:e),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function K(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function X(t,n){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new q(n.headers),this.url=n.url||"",this._initBody(t)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})},L.call($.prototype),L.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new q(this.headers),url:this.url})},X.error=function(){var t=new X(null,{status:0,statusText:""});return t.type="error",t};var Z=[301,302,303,307,308];X.redirect=function(t,n){if(-1===Z.indexOf(n))throw new RangeError("Invalid status code");return new X(null,{status:n,headers:{location:t}})};var Q=P.DOMException;try{new Q}catch(t){(Q=function(t,n){this.message=t,this.name=n;var e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Q.prototype.constructor=Q}function Y(t,n){return new Promise((function(e,r){var i=new $(t,n);if(i.signal&&i.signal.aborted)return r(new Q("Aborted","AbortError"));var o=new XMLHttpRequest;function u(){o.abort()}o.onload=function(){var t,n,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",n=new q,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();n.append(r,i)}})),n)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){e(new X(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Q("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(n){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(R?o.responseType="blob":x&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof q?i.headers.forEach((function(t,n){o.setRequestHeader(n,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){o.setRequestHeader(t,W(n.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",u),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",u)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Y.polyfill=!0,P.fetch||(P.fetch=Y,P.Headers=q,P.Request=$,P.Response=X);var tt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.IsomorphicFetchHttpLibrary=void 0;var e=function(){function t(){}return t.prototype.send=function(t){var n=t.getHttpMethod().toString(),e=t.getBody(),r=fetch(t.getUrl(),{method:n,body:e,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var n={};t.headers.forEach((function(t,e){n[e]=t}));var e={text:function(){return t.text()},binary:function(){return t.blob()}};return new nt.ResponseContext(t.status,n,e)}));return(0,C.from)(r)},t}();n.IsomorphicFetchHttpLibrary=e})),nt=n((function(n,e){var r,i,o=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),u=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),a=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||u(n,t,e)},c=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},f=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.wrapHttpLibrary=e.ResponseContext=e.SelfDecodingBody=e.RequestContext=e.HttpException=e.HttpMethod=void 0,a(tt,e),(i=e.HttpMethod||(e.HttpMethod={})).GET="GET",i.HEAD="HEAD",i.POST="POST",i.PUT="PUT",i.DELETE="DELETE",i.CONNECT="CONNECT",i.OPTIONS="OPTIONS",i.TRACE="TRACE",i.PATCH="PATCH";var s=function(t){function n(n){return t.call(this,n)||this}return o(n,t),n}(Error);e.HttpException=s;var h=function(){function t(t,n){this.httpMethod=n,this.headers={},this.body=void 0,this.url=new N(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new N(t,!0)},t.prototype.setBody=function(t){this.body=t},t.prototype.getHttpMethod=function(){return this.httpMethod},t.prototype.getHeaders=function(){return this.headers},t.prototype.getBody=function(){return this.body},t.prototype.setQueryParam=function(t,n){var e=this.url.query;e[t]=n,this.url.set("query",e)},t.prototype.addCookie=function(t,n){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+n+"; "},t.prototype.setHeaderParam=function(t,n){this.headers[t]=n},t}();e.RequestContext=h;var l=function(){function t(t){this.dataSource=t}return t.prototype.binary=function(){return this.dataSource},t.prototype.text=function(){return c(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return[4,this.dataSource];case 1:return(t=n.sent()).text?[2,t.text()]:[2,new Promise((function(n,e){var r=new FileReader;r.addEventListener("load",(function(){return n(r.result)})),r.addEventListener("error",(function(){return e(r.error)})),r.readAsText(t)}))]}}))}))},t}();e.SelfDecodingBody=l;var v=function(){function t(t,n,e){this.httpStatusCode=t,this.headers=n,this.body=e}return t.prototype.getParsedHeader=function(t){var n={};if(!this.headers[t])return n;for(var e=0,r=this.headers[t].split(";");e<r.length;e++){var i=r[e].split("=",2),o=i[0],u=i[1];o=o.toLowerCase().trim(),void 0===u?n[""]=o:((u=u.trim()).startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),n[o]=u)}return n},t.prototype.getBodyAsFile=function(){return c(this,void 0,void 0,(function(){var t,n,e;return f(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),n=this.getParsedHeader("content-disposition").filename||"",e=this.headers["content-type"]||"";try{return[2,new File([t],n,{type:e})]}catch(r){return[2,Object.assign(t,{name:n,type:e})]}return[2]}}))}))},t.prototype.getBodyAsAny=function(){try{return this.body.text()}catch(t){}try{return this.body.binary()}catch(t){}return Promise.resolve(void 0)},t}();e.ResponseContext=v,e.wrapHttpLibrary=function(t){return{send:function(n){return(0,C.from)(t.send(n))}}}})),et=n((function(n,e){var r=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},i=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.configureAuthMethods=e.BearerAuthAuthentication=void 0;var o=function(){function t(t){this.tokenProvider=t}return t.prototype.getName=function(){return"bearerAuth"},t.prototype.applySecurityAuthentication=function(t){return r(this,void 0,void 0,(function(){var n,e,r,o;return i(this,(function(i){switch(i.label){case 0:return e=(n=t).setHeaderParam,r=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return e.apply(n,r.concat([o+i.sent()])),[2]}}))}))},t}();e.BearerAuthAuthentication=o,e.configureAuthMethods=function(t){var n={};return t?(n.default=t.default,t.bearerAuth&&(n.bearerAuth=new o(t.bearerAuth.tokenProvider)),n):n}})),rt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorObject=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"domain",baseName:"domain",type:"string",format:""},{name:"reason",baseName:"reason",type:"string",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"location",baseName:"location",type:"string",format:""},{name:"location_type",baseName:"location_type",type:"string",format:""},{name:"extended_help",baseName:"extended_help",type:"string",format:""},{name:"send_report",baseName:"send_report",type:"string",format:""}],t}();n.ErrorObject=e})),it=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorResponse=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"code",baseName:"code",type:"number",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"errors",baseName:"errors",type:"Array<ErrorObject>",format:""}],t}();n.ErrorResponse=e})),ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=void 0;var e=function(){function t(){this.typ="Event"}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator="typ",t.attributeTypeMap=[{name:"session_id",baseName:"session_id",type:"string",format:""},{name:"typ",baseName:"typ",type:"string",format:""}],t}();n.Event=e})),ut=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.EventConfirmation=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();n.EventConfirmation=e})),at=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),ct=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.FilterEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="FilterEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],n}(ot.Event);e.FilterEvent=o})),ft=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],t}();n.FilterEventAllOf=e})),st=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),ht=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductClickEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductClickEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(ot.Event);e.ProductClickEvent=o})),lt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductViewEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductViewEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(ot.Event);e.ProductViewEvent=o})),vt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],t}();n.ProductViewEventAllOf=e})),dt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),pt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.SearchEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="SearchEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],n}(ot.Event);e.SearchEvent=o})),mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],t}();n.SearchEventAllOf=e})),bt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),yt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),wt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),gt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="WidgetEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],n}(ot.Event);e.WidgetEvent=o})),_t=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],t}();n.WidgetEventAllOf=e})),jt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(ft,e),i(st,e),i(ht,e),i(lt,e),i(vt,e),i(dt,e),i(pt,e),i(mt,e),i(bt,e),i(yt,e),i(wt,e),i(gt,e),i(_t,e)})),Ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseMiddlewareWrapper=void 0;var e=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,C.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,C.from)(this.middleware.post(t))},t}();n.PromiseMiddlewareWrapper=e})),Et=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.servers=n.server2=n.server1=n.ServerConfiguration=void 0;var e=function(){function t(t,n){this.url=t,this.variableConfiguration=n}return t.prototype.setVariables=function(t){Object.assign(this.variableConfiguration,t)},t.prototype.getConfiguration=function(){return this.variableConfiguration},t.prototype.getUrl=function(){var t=this.url;for(var n in this.variableConfiguration){var e=new RegExp("{"+n+"}","g");t=t.replace(e,this.variableConfiguration[n])}return t},t.prototype.makeRequestContext=function(t,n){return new nt.RequestContext(this.getUrl()+t,n)},t}();n.ServerConfiguration=e,n.server1=new e("https://tracking.vviinn.com",{}),n.server2=new e("https://tracking.stage.vviinn.com",{}),n.servers=[n.server1,n.server2]})),At=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createConfiguration=void 0,n.createConfiguration=function(t){void 0===t&&(t={});var n={baseServer:void 0!==t.baseServer?t.baseServer:Et.server1,httpApi:t.httpApi||new tt.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,et.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return n.middleware.push(new Ot.PromiseMiddlewareWrapper(t))})),n}})),St=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ApiException=void 0;var o=function(t){function n(n,e,r,i){var o=t.call(this,"HTTP-Code: "+n+"\nMessage: "+e+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=n,o.body=r,o.headers=i,o}return i(n,t),n}(Error);e.ApiException=o})),Tt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.RequiredError=e.BaseAPIRequestFactory=e.COLLECTION_FORMATS=void 0,e.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},e.BaseAPIRequestFactory=function(t){this.configuration=t};var o=function(t){function n(n,e,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+n+"."+e+".")||this;return i.api=n,i.method=e,i.field=r,i.name="RequiredError",i}return i(n,t),n}(Error);e.RequiredError=o})),Nt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectSerializer=void 0,i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(ft,e),i(st,e),i(ht,e),i(lt,e),i(vt,e),i(dt,e),i(pt,e),i(mt,e),i(bt,e),i(yt,e),i(wt,e),i(gt,e),i(_t,e);var o=rt,u=it,a=ot,c=ut,f=ct,s=ft,h=ht,l=lt,v=vt,d=pt,p=mt,m=gt,b=_t,y=["string","boolean","double","integer","long","float","number","any"],w={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},g=new Set(["EventConfirmationStatusEnum","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),_={ErrorObject:o.ErrorObject,ErrorResponse:u.ErrorResponse,Event:a.Event,EventConfirmation:c.EventConfirmation,FilterEvent:f.FilterEvent,FilterEventAllOf:s.FilterEventAllOf,ProductClickEvent:h.ProductClickEvent,ProductViewEvent:l.ProductViewEvent,ProductViewEventAllOf:v.ProductViewEventAllOf,SearchEvent:d.SearchEvent,SearchEventAllOf:p.SearchEventAllOf,WidgetEvent:m.WidgetEvent,WidgetEventAllOf:b.WidgetEventAllOf},j=function(){function t(){}return t.findCorrectType=function(t,n){if(null==t)return n;if(-1!==y.indexOf(n.toLowerCase()))return n;if("Date"===n)return n;if(g.has(n))return n;if(!_[n])return n;var e=_[n].discriminator;if(null==e)return n;if(t[e]){var r=t[e];return _[r]?r:n}return n},t.serialize=function(n,e,r){if(null==n)return n;if(-1!==y.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.serialize(n[u],i,r));return o}if("Date"===e){if("date"==r){var a=n.getMonth()+1;a=a<10?"0"+a.toString():a.toString();var c=n.getDate();return c=c<10?"0"+c.toString():c.toString(),n.getFullYear()+"-"+a+"-"+c}return n.toISOString()}if(g.has(e))return n;if(!_[e])return n;e=this.findCorrectType(n,e);var f=_[e].getAttributeTypeMap(),s={};for(var u in f){var h=f[u];s[h.baseName]=t.serialize(n[h.name],h.type,h.format)}return s},t.deserialize=function(n,e,r){if(e=t.findCorrectType(n,e),null==n)return n;if(-1!==y.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.deserialize(n[u],i,r));return o}if("Date"===e)return new Date(n);if(g.has(e))return n;if(!_[e])return n;var a=new _[e],c=_[e].getAttributeTypeMap();for(var u in c){var f=c[u];a[f.name]=t.deserialize(n[f.baseName],f.type,f.format)}return a},t.normalizeMediaType=function(t){if(void 0!==t)return t.split(";")[0].trim().toLowerCase()},t.getPreferredMediaType=function(t){if(!t)return"application/json";for(var n=void 0,e=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];w[o]>e&&(n=o,e=w[o])}if(void 0===n)throw new Error("None of the given media types are supported: "+t.join(", "));return n},t.stringify=function(t,n){if("application/json"===n)return JSON.stringify(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,n){if(void 0===n)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===n)return JSON.parse(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.parse.")},t}();e.ObjectSerializer=j})),Ct=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.canConsumeForm=n.isCodeInRange=void 0,n.isCodeInRange=function(t,n){if("0"===t)return!0;if(t==n.toString())return!0;var e=n.toString();if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=e.charAt(r))return!1;return!0},n.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),Pt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},u=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApiResponseProcessor=e.DefaultApiRequestFactory=void 0;var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.trackEvent=function(t,n){var e,r,i;return o(this,void 0,void 0,(function(){var o,a,c,f,s,h;return u(this,(function(u){switch(u.label){case 0:return(a=(o=n||this.configuration).baseServer.makeRequestContext("/event",nt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),c=Nt.ObjectSerializer.getPreferredMediaType(["application/json"]),a.setHeaderParam("Content-Type",c),f=Nt.ObjectSerializer.stringify(Nt.ObjectSerializer.serialize(t,"ProductViewEvent | ProductClickEvent | WidgetEvent | FilterEvent | SearchEvent",""),c),a.setBody(f),(null==(s=o.authMethods.bearerAuth)?void 0:s.applySecurityAuthentication)?[4,null==s?void 0:s.applySecurityAuthentication(a)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(h=(null===(e=null==n?void 0:n.authMethods)||void 0===e?void 0:e.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:h.applySecurityAuthentication)?[4,null==h?void 0:h.applySecurityAuthentication(a)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,a]}}))}))},n}(Tt.BaseAPIRequestFactory);e.DefaultApiRequestFactory=a;var c=function(){function t(){}return t.prototype.trackEvent=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c,f,s,h,l,v,d,p,m,b;return u(this,(function(u){switch(u.label){case 0:return n=Nt.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,Ct.isCodeInRange)("200",t.httpStatusCode)?(r=(e=Nt.ObjectSerializer).deserialize,o=(i=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,h=r.apply(e,[o.apply(i,[u.sent(),n]),"EventConfirmation",""])];case 2:return(0,Ct.isCodeInRange)("502",t.httpStatusCode)?(c=(a=Nt.ObjectSerializer).deserialize,s=(f=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw h=c.apply(a,[s.apply(f,[u.sent(),n]),"ErrorResponse",""]),new St.ApiException(502,"an error occurred",h,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(v=(l=Nt.ObjectSerializer).deserialize,p=(d=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,h=v.apply(l,[p.apply(d,[u.sent(),n]),"EventConfirmation",""])];case 6:return m=St.ApiException.bind,b=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(m.apply(St.ApiException,b.concat([u.sent(),t.headers])))}}))}))},t}();e.DefaultApiResponseProcessor=c})),Mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ObservableDefaultApi=void 0;var e=C,r=function(){function t(t,n,e){this.configuration=t,this.requestFactory=n||new Pt.DefaultApiRequestFactory(t),this.responseProcessor=e||new Pt.DefaultApiResponseProcessor}return t.prototype.trackEvent=function(t,n){for(var r=this,i=this.requestFactory.trackEvent(t,n),o=(0,C.from)(i),u=function(t){o=o.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},a=0,c=this.configuration.middleware;a<c.length;a++)u(c[a]);return o.pipe((0,e.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,C.of)(t),i=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=r.configuration.middleware;o<u.length;o++)i(u[o]);return n.pipe((0,e.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();n.ObservableDefaultApi=r})),kt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseDefaultApi=void 0;var e=function(){function t(t,n,e){this.api=new Mt.ObservableDefaultApi(t,n,e)}return t.prototype.trackEvent=function(t,n){return this.api.trackEvent(t,n).toPromise()},t}();n.PromiseDefaultApi=e})),Rt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApi=e.createConfiguration=void 0,i(nt,e),i(et,e),i(jt,e),Object.defineProperty(e,"createConfiguration",{enumerable:!0,get:function(){return At.createConfiguration}}),i(St,e),i(Et,e),Object.defineProperty(e,"DefaultApi",{enumerable:!0,get:function(){return kt.PromiseDefaultApi}})}));const Ut=(t,n)=>{const e=(t=>(t=>!t.includes("stage"))(t)?Rt.servers[0]:Rt.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((n=>n(t)))}}}))(n);return new Rt.DefaultApi(Rt.createConfiguration({baseServer:e,authMethods:r}))},xt=t=>n=>Object.assign(Object.assign({},n),t),It=xt({widget:"VPR",typ:"product_view_event"}),Ft=xt({widget:"VPS",typ:"product_view_event"}),Dt=xt({widget:"VPR",typ:"widget_event"}),Wt=xt({widget:"VPS",typ:"widget_event"}),Bt=xt({widget:"VPS",typ:"search_event"}),qt=xt({widget:"VPS",typ:"filter_event"});export{Ut as a,Dt as b,It as c,Ft as d,Bt as e,qt as f,Wt as g,f as v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as
|
|
1
|
+
import{r as t,c as i,h as e,H as s,g as r}from"./p-47183c9a.js";import{a as n}from"./p-b4caf042.js";import{S as a}from"./p-c853cba8.js";let o=class{constructor(e){t(this,e),this.globalSlotsChanged=i(this,"globalSlotsChanged",7),this.currencySign="€",this.locale="de-DE",this.pressed=!1}handleModalClosed(){this.pressed=!1}componentDidLoad(){const t=this.el.querySelectorAll("[slot]");this.globalSlotsChanged.emit(Array.from(t))}handleKeyDown(t){"Enter"!==t.code&&"Space"!==t.code||(this.pressed=!0)}handleClick(){this.pressed=!0}render(){return e(s,{tabindex:"0",role:"button",pressed:this.pressed,onClick:()=>this.handleClick(),onKeyDown:t=>this.handleKeyDown(t)},e("slot",null,e(n,null)),e(a,null),e("vviinn-vps-widget",{active:this.pressed,"currency-sign":"€",token:this.token,locale:this.locale,apiPath:this.apiPath,exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title, product-card"}))}get el(){return r(this)}};o.style=":host{cursor:pointer}";export{o as vviinn_vps_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t={packageVersion:"2.
|
|
1
|
+
const t={packageVersion:"2.4.2",packageName:"vviinn-widgets",environment:"local"};let e,n,l=!1,s=null,o=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),f=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=h(t,n),c=d(e,s),i=p(n);r.ael(o,l,c,i),(e.o=e.o||[]).push((()=>r.rel(o,l,c,i)))}))},d=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){lt(t)}},h=(t,e)=>16&e?i.body:t,p=t=>0!=(2&t),y=new WeakMap,m=t=>"sc-"+t.h,$={},w=t=>"object"==(t=typeof t)||"function"===t,b=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!w(l))&&(l+=""),s&&o?c[c.length-1].p+=l:c.push(s?g(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,j);const r=g(t,null);return r.m=e,c.length>0&&(r.$=c),r},g=(t,e)=>({t:0,g:t,p:e,v:null,$:null,m:null}),v={},j={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(k)},S=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.g,vtext:t.p}),k=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),b(t.vtag,e,...t.vchildren||[])}const e=g(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},O=(t,e,n,l,s,o)=>{if(n!==l){let i=nt(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,s=M(n),o=M(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const c=w(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):nt(c,a)?a.slice(2):a[2]+e.slice(3),n&&r.rel(t,e,n,!1),l&&r.ael(t,e,l,!1)}},C=/\s/,M=t=>t?t.split(C):[],x=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.m||$,c=e.m||$;for(l in o)l in c||O(s,l,o[l],void 0,n,e.t);for(l in c)O(s,l,o[l],c[l],n,e.t)},E=(t,n,s)=>{let o,c,r=n.$[s],a=0;if(null!==r.p)o=r.v=i.createTextNode(r.p);else{if(l||(l="svg"===r.g),o=r.v=i.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.g),l&&"foreignObject"===r.g&&(l=!1),x(null,r,l),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)c=E(t,r,a),c&&o.appendChild(c);"svg"===r.g?l=!1:"foreignObject"===o.tagName&&(l=!0)}return o},L=(t,e,l,s,o,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=E(null,l,o),i&&(s[o].v=i,r.insertBefore(i,e)))},P=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},T=(t,e)=>t.g===e.g,W=(t,e)=>{const n=e.v=t.v,s=t.$,o=e.$,c=e.g,i=e.p;null===i?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||x(t,e,l),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,i=e.length-1,r=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=e[++o]:null==a?a=e[--i]:null==f?f=l[++c]:null==d?d=l[--u]:T(r,f)?(W(r,f),r=e[++o],f=l[++c]):T(a,d)?(W(a,d),a=e[--i],d=l[--u]):T(r,d)?(W(r,d),t.insertBefore(r.v,a.v.nextSibling),r=e[++o],d=l[--u]):T(a,f)?(W(a,f),t.insertBefore(a.v,r.v),a=e[--i],f=l[++c]):(s=E(e&&e[c],n,c),f=l[++c],s&&r.v.parentNode.insertBefore(s,r.v));o>i?L(t,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&P(e,o,i)})(n,s,e,o):null!==o?(null!==t.p&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),l&&"svg"===c&&(l=!1)):t.p!==i&&(n.data=i)},A=t=>Z(t).k,F=(t,e,n)=>{const l=A(t);return{emit:t=>H(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const l=r.ce(e,n);return t.dispatchEvent(l),l},N=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},R=(t,e)=>{if(t.t|=16,!(4&t.t))return N(t,t.C),ht((()=>U(t,e)));t.t|=512},U=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>G(n,t,e))),t.u=null),l=G(n,"componentWillLoad")),I(l,(()=>V(t,n,e)))},V=async(t,e,n)=>{const l=t.k,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.k,l=e.t,s=((t,e)=>{let n=m(e),l=ct.get(n);if(t=11===t.nodeType?t:i,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=i.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);q(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>_(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},q=(t,l)=>{try{s=l,l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const s=t.k,o=t.M,c=t.L||g(null,null),i=(t=>t&&t.g===v)(l)?l:b(null,null,l);n=s.tagName,o.P&&(i.m=i.m||{},o.P.map((([t,e])=>i.m[e]=s[t]))),i.g=null,i.t|=4,t.L=i,i.v=c.v=s.shadowRoot||s,e=s["s-sc"],W(c,i)})(t,l)}catch(e){lt(e,t.k)}return s=null,null},D=()=>s,_=t=>{const e=t.k,n=t.i,l=t.C;64&t.t||(t.t|=64,J(e),G(n,"componentDidLoad"),t.T(e),l||B()),t.O&&(t.O(),t.O=void 0),512&t.t&&dt((()=>R(t,!1))),t.t&=-517},z=t=>{{const e=Z(t),n=e.k.isConnected;return n&&2==(18&e.t)&&R(e,!1),n}},B=()=>{J(i.documentElement),dt((()=>H(c,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},I=(t,e)=>t&&t.then?t.then(e):e(),J=t=>t.classList.add("hydrated"),K=(t,e,n)=>{if(e.W){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.W),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>Z(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=Z(t),o=s.k,c=s.F.get(e),i=s.t,r=s.i;if(n=((t,e)=>null==t||w(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.W[e][0]),!(8&i&&void 0!==c||n===c)&&(s.F.set(e,n),r)){if(l.A&&128&i){const t=l.A[e];t&&t.map((t=>{try{r[t](n,c,e)}catch(t){lt(t,o)}}))}2==(18&i)&&R(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){r.jmp((()=>{const e=n.get(t);this.hasOwnProperty(e)&&(l=this[e],delete this[e]),this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.P.push([t,s]),s}))}}return t},Q=t=>{G(t,"connectedCallback")},X=(t,e={})=>{const n=[],l=e.exclude||[],s=c.customElements,o=i.head,a=o.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let p,y=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",i.baseURI).href,t.map((t=>t[1].map((e=>{const o={t:e[0],h:e[1],W:e[2],H:e[3]};o.W=e[2],o.H=e[3],o.P=[],o.A={};const c=o.h,i=class extends HTMLElement{constructor(t){super(t),et(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?h.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=Z(t),n=e.M,l=()=>{};if(1&e.t)f(t,e,n.H),Q(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(e,e.C=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=ot(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.A=s.watchers,K(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){lt(t)}e.t&=-9,e.t|=128,t(),Q(e.i)}if(s.style){let t=s.style;const e=m(n);if(!ct.has(e)){const l=()=>{};((t,e,n)=>{let l=ct.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ct.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.C,c=()=>R(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const t=Z(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),G(e,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).N}};o.R=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,K(i,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,a?a.nextSibling:o.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>p=setTimeout(B,30)))},Y=new WeakMap,Z=t=>Y.get(t),tt=(t,e)=>Y.set(e.i=t,e),et=(t,e)=>{const n={t:0,k:t,M:e,F:new Map};return n.N=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],f(t,n,e.H),Y.set(t,n)},nt=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),st=new Map,ot=t=>{const e=t.h.replace(/-/g,"_"),n=t.R,l=st.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(st.set(n,t),t[e])),lt)},ct=new Map,it=[],rt=[],at=(t,e)=>n=>{t.push(n),o||(o=!0,e&&4&r.t?dt(ft):r.raf(ft))},ut=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){lt(t)}t.length=0},ft=()=>{ut(it),ut(rt),(o=it.length>0)&&r.raf(ft)},dt=t=>a().then(t),ht=at(rt,!0);export{t as E,v as H,D as a,X as b,F as c,z as f,A as g,b as h,a as p,tt as r}
|