vviinn-widgets 2.168.0 → 2.168.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ function fromString(s) {
14
14
  return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
15
15
  }
16
16
 
17
- const version = "2.168.0";
17
+ const version = "2.168.1";
18
18
 
19
19
  exports.campaignTypeNames = campaignTypeNames;
20
20
  exports.fold = fold;
@@ -7,7 +7,7 @@ var index$2 = require('./index-D_wGgGZa.js');
7
7
  var index$1 = require('./index-C3G9W48a.js');
8
8
  var Rectangle = require('./Rectangle-oExct0ft.js');
9
9
  var index$3 = require('./index-B7VfQ5vd.js');
10
- var _package = require('./package-ByWoLUA3.js');
10
+ var _package = require('./package-DeG1AEbB.js');
11
11
  var resources = require('./resources-fyqfpLC2.js');
12
12
  var index$4 = require('./index-DYvhURIh.js');
13
13
  var constants = require('./constants-CgBx7Czu.js');
@@ -3913,7 +3913,7 @@ const VviinnResults = class {
3913
3913
  this.getTextSearchResults(this.state.textSearchId);
3914
3914
  }
3915
3915
  else {
3916
- search_store.makeVisualSearchRequest(this.storeName, this.searchId);
3916
+ search_store.makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
3917
3917
  }
3918
3918
  };
3919
3919
  this.filterTriggeredHandler = ({ detail, }) => {
@@ -4192,13 +4192,13 @@ const VviinnResults = class {
4192
4192
  render() {
4193
4193
  var _a;
4194
4194
  const resultsLength = this.getResults().length;
4195
- return (index.h(index.Host, { key: 'f0a2455bc55761aae507ce65687e3294cdeafc3a', id: "results-block", class: {
4195
+ return (index.h(index.Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
4196
4196
  "show-in-widget": this.showInWidget,
4197
4197
  "matching-discovery": this.oneClickDiscoveryMode === "append-slider",
4198
- }, exportparts: `${index$4.productCardParts}, ${index$4.productCardsGridPart}` }, index.h("div", { key: '6dc47f8081ced979ac66694cb15ac6aa219848c4', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (index.h("vviinn-empty-results", { key: 'f6ba1974efe2e7359f36647d93ab5e54bf4d23d7', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { key: '54a451b718740e6f397b12be97b6e82e7f129e13', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), index.h("div", { key: 'd21a8febf8b7e66f51204407f9c8f6a10651d45c', class: {
4198
+ }, exportparts: `${index$4.productCardParts}, ${index$4.productCardsGridPart}` }, index.h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (index.h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), index.h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
4199
4199
  hidden: this.showAspectRatioError || resultsLength === 0,
4200
4200
  products: true,
4201
- }, part: index$4.productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { key: 'b5e8bd8aa4e16b1b56e48f72293f7b3acc5422d5', id: "one-click-discovery-append", style: {
4201
+ }, part: index$4.productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
4202
4202
  order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
4203
4203
  } }))));
4204
4204
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var index = require('./index-A2FtmPS7.js');
4
4
  var search_store = require('./search.store-BLHPjH2B.js');
5
- var _package = require('./package-ByWoLUA3.js');
5
+ var _package = require('./package-DeG1AEbB.js');
6
6
  var index$1 = require('./index-D_wGgGZa.js');
7
7
  var constants = require('./constants-CgBx7Czu.js');
8
8
  var Rectangle = require('./Rectangle-oExct0ft.js');
@@ -5,7 +5,7 @@ var search_store = require('./search.store-BLHPjH2B.js');
5
5
  var Rectangle = require('./Rectangle-oExct0ft.js');
6
6
  var WarningIcon = require('./WarningIcon-DOMzuRV9.js');
7
7
  var customizedSlots = require('./customized-slots-Da3rVnNM.js');
8
- var _package = require('./package-ByWoLUA3.js');
8
+ var _package = require('./package-DeG1AEbB.js');
9
9
  var index$1 = require('./index-DYvhURIh.js');
10
10
  var constants = require('./constants-CgBx7Czu.js');
11
11
  var index$2 = require('./index-B7VfQ5vd.js');
@@ -134,7 +134,7 @@ export class VviinnResults {
134
134
  this.getTextSearchResults(this.state.textSearchId);
135
135
  }
136
136
  else {
137
- makeVisualSearchRequest(this.storeName, this.searchId);
137
+ makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
138
138
  }
139
139
  };
140
140
  this.filterTriggeredHandler = ({ detail, }) => {
@@ -413,13 +413,13 @@ export class VviinnResults {
413
413
  render() {
414
414
  var _a;
415
415
  const resultsLength = this.getResults().length;
416
- return (h(Host, { key: 'f0a2455bc55761aae507ce65687e3294cdeafc3a', id: "results-block", class: {
416
+ return (h(Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
417
417
  "show-in-widget": this.showInWidget,
418
418
  "matching-discovery": this.oneClickDiscoveryMode === "append-slider",
419
- }, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: '6dc47f8081ced979ac66694cb15ac6aa219848c4', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: 'f6ba1974efe2e7359f36647d93ab5e54bf4d23d7', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: '54a451b718740e6f397b12be97b6e82e7f129e13', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: 'd21a8febf8b7e66f51204407f9c8f6a10651d45c', class: {
419
+ }, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
420
420
  hidden: this.showAspectRatioError || resultsLength === 0,
421
421
  products: true,
422
- }, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: 'b5e8bd8aa4e16b1b56e48f72293f7b3acc5422d5', id: "one-click-discovery-append", style: {
422
+ }, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
423
423
  order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
424
424
  } }))));
425
425
  }
@@ -12,6 +12,6 @@ function fromString(s) {
12
12
  return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
13
13
  }
14
14
 
15
- const version = "2.168.0";
15
+ const version = "2.168.1";
16
16
 
17
17
  export { fold as a, campaignTypeNames as c, fromString as f, version as v };
@@ -5,7 +5,7 @@ import { P as PlusIcon, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, c as createWidg
5
5
  import { s as setLocalStorageItems, g as getLocalStorageItems, c as cleanLocalStorage } from './index-C5MrXMjM.js';
6
6
  import { f as fromImage, i as instance } from './Rectangle-Blhy9XN1.js';
7
7
  import { a as addEventListenersWithSignal, f as findSlotElements, g as getSlotNames } from './index-CGjTkEbG.js';
8
- import { v as version, c as campaignTypeNames } from './package-BJGM6EPZ.js';
8
+ import { v as version, c as campaignTypeNames } from './package-CJeeTzkr.js';
9
9
  import { r as resources } from './resources-DcA7Zxs5.js';
10
10
  import { a as productCardsGridPart, p as productCardParts, m as modalParts, e as extendedFiltersParts, f as filtersParts, s as searchBarParts, b as searchWidgetFilterParts, d as searchWidgetButtonParts } from './index-CYUAT3RF.js';
11
11
  import { R as RESULTS_WIDGET_IMAGE_RESOLUTION_WIDTH, S as SEARCH_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
@@ -3911,7 +3911,7 @@ const VviinnResults = class {
3911
3911
  this.getTextSearchResults(this.state.textSearchId);
3912
3912
  }
3913
3913
  else {
3914
- makeVisualSearchRequest(this.storeName, this.searchId);
3914
+ makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
3915
3915
  }
3916
3916
  };
3917
3917
  this.filterTriggeredHandler = ({ detail, }) => {
@@ -4190,13 +4190,13 @@ const VviinnResults = class {
4190
4190
  render() {
4191
4191
  var _a;
4192
4192
  const resultsLength = this.getResults().length;
4193
- return (h(Host, { key: 'f0a2455bc55761aae507ce65687e3294cdeafc3a', id: "results-block", class: {
4193
+ return (h(Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
4194
4194
  "show-in-widget": this.showInWidget,
4195
4195
  "matching-discovery": this.oneClickDiscoveryMode === "append-slider",
4196
- }, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: '6dc47f8081ced979ac66694cb15ac6aa219848c4', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: 'f6ba1974efe2e7359f36647d93ab5e54bf4d23d7', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: '54a451b718740e6f397b12be97b6e82e7f129e13', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: 'd21a8febf8b7e66f51204407f9c8f6a10651d45c', class: {
4196
+ }, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
4197
4197
  hidden: this.showAspectRatioError || resultsLength === 0,
4198
4198
  products: true,
4199
- }, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: 'b5e8bd8aa4e16b1b56e48f72293f7b3acc5422d5', id: "one-click-discovery-append", style: {
4199
+ }, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
4200
4200
  order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
4201
4201
  } }))));
4202
4202
  }
@@ -1,6 +1,6 @@
1
1
  import { h, r as registerInstance, c as createEvent, F as Fragment, H as Host, g as getElement } from './index-BcMtFp89.js';
2
2
  import { o as has, q as tuple, c as addIfNotEmpty, _ as _functionExports, v as _ArrayExports, g as globalState, u as useSearchStore, w as requireSemigroup, O as OptionExports, E as EitherExports, s as searchState, x as pipe$1, y as chainW, z as makeRequest, A as fromEither, B as getApiPath, C as createInitPostRequest, D as Apply, a as updateGlobalState, l as trackEvent, T as TaskEitherExports } from './search.store-yqygS_Os.js';
3
- import { c as campaignTypeNames, f as fromString, a as fold, v as version } from './package-BJGM6EPZ.js';
3
+ import { c as campaignTypeNames, f as fromString, a as fold, v as version } from './package-CJeeTzkr.js';
4
4
  import { C as CONTENT_GROUP_CSS_CLASS, i as CAROUSEL_IMAGE_WIDTH_CSS_VAR, S as SET_MODE_IMAGE_WIDTH_CSS_VAR, j as CAROUSEL_CONTENT_WIDTH_CSS_VAR, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, D as DEFAULT_COLUMNS_NUMBER, g as getCustomLabels, P as PlusIcon, v as v4, b as createAddToBasketEvent, d as createAddToWishlistEvent, c as createWidgetEvent, e as createResultEventByType, f as createProductEventByType, k as getRecommendationsBody } from './index-DHDA4hJT.js';
5
5
  import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
6
6
  import { i as instance, a as isClickedInRectBound } from './Rectangle-Blhy9XN1.js';
@@ -3,7 +3,7 @@ import { _ as _functionExports, O as OptionExports, d as detectedObjectEq, s as
3
3
  import { s as scaleWithSized, c as center, i as instance } from './Rectangle-Blhy9XN1.js';
4
4
  import { W as WarningIcon } from './WarningIcon-d_dhTVTw.js';
5
5
  import { s as slotChangeListener } from './customized-slots-s64pq2zp.js';
6
- import { c as campaignTypeNames, v as version } from './package-BJGM6EPZ.js';
6
+ import { c as campaignTypeNames, v as version } from './package-CJeeTzkr.js';
7
7
  import { m as modalParts } from './index-CYUAT3RF.js';
8
8
  import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
9
9
  import { a as addEventListenersWithSignal } from './index-CGjTkEbG.js';