@covet-pics/covet-pics-widget 0.89.1 → 0.90.2

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.
@@ -4891,6 +4891,15 @@ let CovetPicsPopup = class {
4891
4891
  event.stopPropagation();
4892
4892
  this.showShareLink = true;
4893
4893
  };
4894
+ this.keyboardEventsHandler = (event) => {
4895
+ if (event.key === "Escape" || event.keyCode === 27)
4896
+ return this.closePopup();
4897
+ if (event.key === "ArrowLeft" || event.keyCode === 37)
4898
+ return this.previousClickHandler(event);
4899
+ if (event.key === "ArrowRight" || event.keyCode === 39)
4900
+ return this.nextClickHandler(event);
4901
+ return true;
4902
+ };
4894
4903
  }
4895
4904
  /** Open popup */
4896
4905
  async openPopup(popupId) {
@@ -4909,6 +4918,7 @@ let CovetPicsPopup = class {
4909
4918
  utils.sendToGoogleAnalytics(action, category, label);
4910
4919
  }
4911
4920
  this.sendModalOpenBeacon();
4921
+ this.bindKeyboardArrowKeys();
4912
4922
  }
4913
4923
  /** Close popup */
4914
4924
  async closePopup() {
@@ -4927,6 +4937,7 @@ let CovetPicsPopup = class {
4927
4937
  // get back to normal scroll state removing body overflow
4928
4938
  document.body.classList.remove("covet-pics-popup-scroll-lock");
4929
4939
  this.modalClose.emit();
4940
+ this.unBindKeyboardArrowKeys();
4930
4941
  }
4931
4942
  /**
4932
4943
  * listen to openDirectBuy event
@@ -5267,12 +5278,12 @@ let CovetPicsPopup = class {
5267
5278
  this.clearSwiper();
5268
5279
  const isCarousel = item.data_type === "carousel";
5269
5280
  const isImage = (item.data_type === "image" || isCarousel);
5281
+ const isPopupOpen = this.el.classList.contains("covet-pics-popup-open");
5270
5282
  popup.classList.toggle("popup-media-carousel", isCarousel);
5271
5283
  popup.classList.toggle("popup-media-video", item.data_type === "video");
5272
5284
  popup.classList.toggle("image", isImage);
5273
- if (isCarousel) {
5285
+ if (isCarousel && isPopupOpen)
5274
5286
  this.initSwiper();
5275
- }
5276
5287
  }
5277
5288
  bindSwipeGestures() {
5278
5289
  this.el.addEventListener("swiped-left", (event) => {
@@ -5303,15 +5314,10 @@ let CovetPicsPopup = class {
5303
5314
  });
5304
5315
  }
5305
5316
  bindKeyboardArrowKeys() {
5306
- document.onkeydown = (event) => {
5307
- const code = event.which;
5308
- if (code === 37) {
5309
- this.previousClickHandler(event);
5310
- }
5311
- else if (code === 39) {
5312
- this.nextClickHandler(event);
5313
- }
5314
- };
5317
+ document.addEventListener("keydown", this.keyboardEventsHandler);
5318
+ }
5319
+ unBindKeyboardArrowKeys() {
5320
+ document.removeEventListener("keydown", this.keyboardEventsHandler);
5315
5321
  }
5316
5322
  loadProducts() {
5317
5323
  if (!this.directBuyEnabled && this.isDefaultCurrency) {
@@ -5355,7 +5361,6 @@ let CovetPicsPopup = class {
5355
5361
  }
5356
5362
  }
5357
5363
  componentDidLoad() {
5358
- this.bindKeyboardArrowKeys();
5359
5364
  this.bindSwipeGestures();
5360
5365
  }
5361
5366
  render() {
@@ -3839,7 +3839,6 @@ let CovetPicsGallerySlider = class {
3839
3839
  constructor(hostRef) {
3840
3840
  index.registerInstance(this, hostRef);
3841
3841
  this.nextPage = index.createEvent(this, "nextPage", 7);
3842
- this.mobileBreakpoint = 768;
3843
3842
  /**
3844
3843
  * Number of CovetGalleryItems to show per row on large screens (>=768px)
3845
3844
  */
@@ -3913,14 +3912,6 @@ let CovetPicsGallerySlider = class {
3913
3912
  this.swiper.update();
3914
3913
  }
3915
3914
  }
3916
- showPrevNextButtons() {
3917
- if (this.el.offsetWidth >= this.mobileBreakpoint) {
3918
- return this.items.length > this.desktopPhotosPerRow;
3919
- }
3920
- else {
3921
- return this.items.length > this.mobilePhotosPerRow;
3922
- }
3923
- }
3924
3915
  getAutoplay() {
3925
3916
  if (this.autoPlay > 0) {
3926
3917
  return { delay: this.autoPlay };
@@ -4075,9 +4066,7 @@ let CovetPicsGallerySlider = class {
4075
4066
  }
4076
4067
  render() {
4077
4068
  if (this.items !== undefined) {
4078
- const leftNav = index.h("button", { class: `swiper-button-next ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol next" }, index.h("svg", { viewBox: "0 0 100 100" }, index.h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })));
4079
- const rightNav = index.h("button", { class: `swiper-button-prev ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol prev" }, index.h("svg", { viewBox: "0 0 100 100" }, index.h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })));
4080
- return (index.h("div", { class: "gallery swiper" }, index.h("div", { class: "swiper-wrapper" }, this.itemStyle === "standard" && this.items.map((item) => this.renderStandardItem(item)), this.itemStyle !== "standard" && this.items.map((item) => this.renderDetailItem(item))), index.h("div", { class: "swiper-pagination" }), this.showPrevNextButtons() && leftNav, this.showPrevNextButtons() && rightNav));
4069
+ return (index.h("div", { class: "gallery swiper" }, index.h("div", { class: "swiper-wrapper" }, this.itemStyle === "standard" && this.items.map((item) => this.renderStandardItem(item)), this.itemStyle !== "standard" && this.items.map((item) => this.renderDetailItem(item))), index.h("div", { class: "swiper-pagination" }), index.h("button", { class: `swiper-button-next ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol next" }, index.h("svg", { viewBox: "0 0 100 100" }, index.h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " }))), index.h("button", { class: `swiper-button-prev ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol prev" }, index.h("svg", { viewBox: "0 0 100 100" }, index.h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })))));
4081
4070
  }
4082
4071
  }
4083
4072
  get el() { return index.getElement(this); }
@@ -6,7 +6,6 @@ import Swiper, { Autoplay, Lazy, Navigation, Pagination } from "swiper";
6
6
  import { buildEvent, createCovetPicsPopup, createUploadPopup, createUploadWidget, findAndOpenSharedItemPopup, getCoverImage, getSizesForResponsiveImage, } from "../../utils/utils";
7
7
  export class CovetPicsGallerySlider {
8
8
  constructor() {
9
- this.mobileBreakpoint = 768;
10
9
  /**
11
10
  * Number of CovetGalleryItems to show per row on large screens (>=768px)
12
11
  */
@@ -80,14 +79,6 @@ export class CovetPicsGallerySlider {
80
79
  this.swiper.update();
81
80
  }
82
81
  }
83
- showPrevNextButtons() {
84
- if (this.el.offsetWidth >= this.mobileBreakpoint) {
85
- return this.items.length > this.desktopPhotosPerRow;
86
- }
87
- else {
88
- return this.items.length > this.mobilePhotosPerRow;
89
- }
90
- }
91
82
  getAutoplay() {
92
83
  if (this.autoPlay > 0) {
93
84
  return { delay: this.autoPlay };
@@ -242,19 +233,17 @@ export class CovetPicsGallerySlider {
242
233
  }
243
234
  render() {
244
235
  if (this.items !== undefined) {
245
- const leftNav = h("button", { class: `swiper-button-next ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol next" },
246
- h("svg", { viewBox: "0 0 100 100" },
247
- h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })));
248
- const rightNav = h("button", { class: `swiper-button-prev ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol prev" },
249
- h("svg", { viewBox: "0 0 100 100" },
250
- h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })));
251
236
  return (h("div", { class: "gallery swiper" },
252
237
  h("div", { class: "swiper-wrapper" },
253
238
  this.itemStyle === "standard" && this.items.map((item) => this.renderStandardItem(item)),
254
239
  this.itemStyle !== "standard" && this.items.map((item) => this.renderDetailItem(item))),
255
240
  h("div", { class: "swiper-pagination" }),
256
- this.showPrevNextButtons() && leftNav,
257
- this.showPrevNextButtons() && rightNav));
241
+ h("button", { class: `swiper-button-next ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol next" },
242
+ h("svg", { viewBox: "0 0 100 100" },
243
+ h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " }))),
244
+ h("button", { class: `swiper-button-prev ${this.itemStyle}`, tabindex: "0", "aria-label": "slider contol prev" },
245
+ h("svg", { viewBox: "0 0 100 100" },
246
+ h("path", { d: "M35.5992906,51.1028539 L41.7768136,57.2847304 L41.7768136,61.570226 L30,49.785113 L41.7768136,38 L41.7768136,42.2854956 L35.9938338,48.0725509 L69.1769366,48.0725509 L69.1769366,51.1028539 L35.5992906,51.1028539 Z", class: "arrow", transform: "translate(100, 100) rotate(180) " })))));
258
247
  }
259
248
  }
260
249
  static get is() { return "covet-pics-gallery-slider"; }
@@ -233,6 +233,15 @@ export class CovetPicsPopup {
233
233
  event.stopPropagation();
234
234
  this.showShareLink = true;
235
235
  };
236
+ this.keyboardEventsHandler = (event) => {
237
+ if (event.key === "Escape" || event.keyCode === 27)
238
+ return this.closePopup();
239
+ if (event.key === "ArrowLeft" || event.keyCode === 37)
240
+ return this.previousClickHandler(event);
241
+ if (event.key === "ArrowRight" || event.keyCode === 39)
242
+ return this.nextClickHandler(event);
243
+ return true;
244
+ };
236
245
  }
237
246
  /** Open popup */
238
247
  async openPopup(popupId) {
@@ -251,6 +260,7 @@ export class CovetPicsPopup {
251
260
  sendToGoogleAnalytics(action, category, label);
252
261
  }
253
262
  this.sendModalOpenBeacon();
263
+ this.bindKeyboardArrowKeys();
254
264
  }
255
265
  /** Close popup */
256
266
  async closePopup() {
@@ -269,6 +279,7 @@ export class CovetPicsPopup {
269
279
  // get back to normal scroll state removing body overflow
270
280
  document.body.classList.remove("covet-pics-popup-scroll-lock");
271
281
  this.modalClose.emit();
282
+ this.unBindKeyboardArrowKeys();
272
283
  }
273
284
  /**
274
285
  * listen to openDirectBuy event
@@ -732,12 +743,12 @@ export class CovetPicsPopup {
732
743
  this.clearSwiper();
733
744
  const isCarousel = item.data_type === "carousel";
734
745
  const isImage = (item.data_type === "image" || isCarousel);
746
+ const isPopupOpen = this.el.classList.contains("covet-pics-popup-open");
735
747
  popup.classList.toggle("popup-media-carousel", isCarousel);
736
748
  popup.classList.toggle("popup-media-video", item.data_type === "video");
737
749
  popup.classList.toggle("image", isImage);
738
- if (isCarousel) {
750
+ if (isCarousel && isPopupOpen)
739
751
  this.initSwiper();
740
- }
741
752
  }
742
753
  bindSwipeGestures() {
743
754
  this.el.addEventListener("swiped-left", (event) => {
@@ -768,15 +779,10 @@ export class CovetPicsPopup {
768
779
  });
769
780
  }
770
781
  bindKeyboardArrowKeys() {
771
- document.onkeydown = (event) => {
772
- const code = event.which;
773
- if (code === 37) {
774
- this.previousClickHandler(event);
775
- }
776
- else if (code === 39) {
777
- this.nextClickHandler(event);
778
- }
779
- };
782
+ document.addEventListener("keydown", this.keyboardEventsHandler);
783
+ }
784
+ unBindKeyboardArrowKeys() {
785
+ document.removeEventListener("keydown", this.keyboardEventsHandler);
780
786
  }
781
787
  loadProducts() {
782
788
  if (!this.directBuyEnabled && this.isDefaultCurrency) {
@@ -820,7 +826,6 @@ export class CovetPicsPopup {
820
826
  }
821
827
  }
822
828
  componentDidLoad() {
823
- this.bindKeyboardArrowKeys();
824
829
  this.bindSwipeGestures();
825
830
  }
826
831
  render() {
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Copyright (c) 2020 by Space Squirrel Ltd.
3
3
  */
4
- import{d as o,N as e,w as t,p as l,b as r}from"./p-95184773.js";import{g as i}from"./p-ae8aaed8.js";(()=>{const r=Array.from(o.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e)),i={};return"onbeforeload"in r&&!history.scrollRestoration?{then(){}}:(i.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,t.location.href)).href,l(i))})().then((o=>(i(),r(JSON.parse('[["p-a8c4bdec",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"productsLayout":[1,"products-layout"],"productLinks":[16],"layout":[1],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"showPrice":[4,"show-price"],"btnBuyLabel":[1,"btn-buy-label"],"productsTitle":[1,"products-title"],"hideProductTitle":[8,"hide-product-title"],"hideBranding":[4,"hide-branding"],"pageIndex":[2,"page-index"],"mainSliderIndex":[2,"main-slider-index"],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"layout":[1],"activeHotspot":[2,"active-hotspot"],"pageLayout":[1,"page-layout"],"productsTitle":[1,"products-title"],"thumbnailUrl":[1,"thumbnail-url"],"btnBuyLabel":[1,"btn-buy-label"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"]}]]],["p-d4bc9f7c",[[1,"covet-pics-direct-buy",{"product":[8],"open":[4],"moneyFormat":[1,"money-format"],"buttonColor":[1,"button-color"],"buttonHoverColor":[1,"button-hover-color"],"buttonTextColor":[1,"button-text-color"],"buttonTextHoverColor":[1,"button-text-hover-color"],"buttonStyle":[1,"button-style"],"buttonAddToCartLabel":[1,"button-add-to-cart-label"],"previewMode":[4,"preview-mode"],"priceLabel":[1,"price-label"],"selectLabel":[1,"select-label"],"selectedOptions":[32]},[[16,"openDirectBuy","openDirectBuyHandler"],[8,"previousPopupEvent","previousPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"linkStyle":[1,"link-style"],"showOutOfStockProducts":[4,"show-out-of-stock-products"],"showPrice":[4,"show-price"],"priceLabel":[1,"price-label"],"selectLabel":[1,"select-label"],"buttonStyle":[1,"button-style"],"buttonColor":[1,"button-color"],"buttonHoverColor":[1,"button-hover-color"],"buttonTextColor":[1,"button-text-color"],"buttonTextHoverColor":[1,"button-text-hover-color"],"buttonBuyNowLabel":[1,"button-buy-now-label"],"buttonVisitLabel":[1,"button-visit-label"],"directBuyEnabled":[4,"direct-buy-enabled"]},[[16,"productLinkUpdated","productLinkUpdatedHandler"]]],[0,"covet-pics-gallery-item",{"animationDuration":[2,"animation-duration"],"altTag":[1,"alt-tag"],"highlighted":[4],"hoverAnimationStyle":[1,"hover-animation-style"],"hoverDisabled":[4,"hover-disabled"],"hoverBackgroundOpacity":[2,"hover-background-opacity"],"hoverBorderColor":[1,"hover-border-color"],"hoverColorFrom":[1,"hover-color-from"],"hoverColorTo":[1,"hover-color-to"],"hoverPreview":[4,"hover-preview"],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"labelCaptionWithLinks":[1,"label-caption-with-links"],"labelColor":[1,"label-color"],"labelFontSize":[2,"label-font-size"],"labelFontStyle":[1,"label-font-style"],"lazyLoad":[4,"lazy-load"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"showHoverIcon":[4,"show-hover-icon"],"url":[1],"tabIndex":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"layout":[1],"itemStyle":[1,"item-style"],"itemWidth":[2,"item-width"],"lazyLoad":[4,"lazy-load"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"url":[1],"backgroundColor":[1,"background-color"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"starColor":[1,"star-color"],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"tabIndex":[32],"captionCSS":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[1,"covet-pics-popup",{"itemId":[1026,"item-id"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"productHandle":[1,"product-handle"],"items":[1040],"products":[16],"animated":[4],"animatedBrowse":[4,"animated-browse"],"arrowsDesktopType":[1,"arrows-desktop-type"],"arrowsDesktopPosition":[1,"arrows-desktop-position"],"arrowsDesktopSize":[2,"arrows-desktop-size"],"arrowsDesktopSizeType":[1,"arrows-desktop-size-type"],"arrowsDesktopSymbolColor":[1,"arrows-desktop-symbol-color"],"arrowsDesktopBackgroundColor":[1,"arrows-desktop-background-color"],"arrowsDesktopColorTheme":[1,"arrows-desktop-color-theme"],"arrowsMobileType":[1,"arrows-mobile-type"],"arrowsMobilePosition":[1,"arrows-mobile-position"],"arrowsMobileSymbolColor":[1,"arrows-mobile-symbol-color"],"arrowsMobileBackgroundColor":[1,"arrows-mobile-background-color"],"arrowsMobileColorTheme":[1,"arrows-mobile-color-theme"],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"closeButtonType":[1,"close-button-type"],"closeButtonSymbolColor":[1,"close-button-symbol-color"],"closeButtonBackgroundColor":[1,"close-button-background-color"],"closeButtonSize":[1,"close-button-size"],"closeButtonPosition":[1,"close-button-position"],"closeButtonColorTheme":[1,"close-button-color-theme"],"hideBranding":[4,"hide-branding"],"hideSocialShareIcons":[4,"hide-social-share-icons"],"responsive":[4],"directBuyEnabled":[4,"direct-buy-enabled"],"hotspotsEnabled":[4,"hotspots-enabled"],"hotspotsShowNumbers":[4,"hotspots-show-numbers"],"hotspotsTextColor":[1,"hotspots-text-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"loader":[16],"linksTitle":[1,"links-title"],"showLinksTitle":[4,"show-links-title"],"isDefaultCurrency":[4,"is-default-currency"],"moneyFormat":[1,"money-format"],"directBuyIsOpen":[32],"showShareLink":[32],"copyLinkCopied":[32],"hideHotspots":[32],"openPopup":[64],"closePopup":[64]},[[16,"openDirectBuy","openDirectBuyHandler"],[16,"closeDirectBuy","closeDirectBuyHandler"],[4,"addToCart:covetPics","addToCartHandler"],[16,"productLinkClicked","productLinkClickedHandler"]]],[1,"covet-pics-upload",{"animated":[4],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"responsive":[4],"fontFamily":[1,"font-family"],"baseUrl":[1,"base-url"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"photoRequestId":[2,"photo-request-id"],"productHandle":[1,"product-handle"],"displayType":[1,"display-type"],"uploadTitle":[1,"upload-title"],"uploadBody":[1,"upload-body"],"uploadDragDrop":[1,"upload-drag-drop"],"uploadChoose":[1,"upload-choose"],"formNamePlaceholder":[1,"form-name-placeholder"],"formEmailPlaceholder":[1,"form-email-placeholder"],"formBodyPlaceholder":[1,"form-body-placeholder"],"formSendLabel":[1,"form-send-label"],"formUploading":[1,"form-uploading"],"completeBody":[1,"complete-body"],"completeCloseLabel":[1,"complete-close-label"],"activeStep":[2,"active-step"],"hideBranding":[4,"hide-branding"],"standalone":[4],"starRating":[32],"formSendDisabled":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"openUpload":[64]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]]]],["p-db92db98",[[0,"covet-pics-gallery-grid",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"imagesToShow":[2,"images-to-show"],"layout":[1],"highlightEnabled":[4,"highlight-enabled"],"highlightEvery":[2,"highlight-every"],"highlightStartsFrom":[2,"highlight-starts-from"],"items":[1040],"loadMoreBorder":[2,"load-more-border"],"loadMoreColor":[1,"load-more-color"],"loadMoreFontSize":[2,"load-more-font-size"],"loadMoreFontStyle":[1,"load-more-font-style"],"loadMoreLabel":[1,"load-more-label"],"loadMorePadding":[2,"load-more-padding"],"loadMoreStyle":[1,"load-more-style"],"loadMoreMode":[1,"load-more-mode"],"filtersEnabled":[4,"filters-enabled"],"filtersMultiselect":[4,"filters-multiselect"],"filters":[16],"filtersResetLabel":[1,"filters-reset-label"],"filtersPadding":[2,"filters-padding"],"filtersColor":[1,"filters-color"],"filtersFontSize":[2,"filters-font-size"],"filtersFontWeight":[1,"filters-font-weight"],"itemStyle":[1,"item-style"],"loader":[16],"isLoading":[32],"isPopupOpen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[0,"nextPage","nextPageHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[0,"covet-pics-gallery-slider",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"items":[1040],"itemStyle":[1,"item-style"],"autoPlay":[2,"auto-play"],"autoLoadMore":[4,"auto-load-more"],"loader":[16]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[0,"nextPage","nextPageHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-highlighted",{"layout":[1],"numberOfPages":[2,"number-of-pages"],"padding":[2],"showPrice":[4,"show-price"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"backgroundColor":[1,"background-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"items":[16],"productsLayout":[1,"products-layout"],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"productsTitle":[1,"products-title"],"hideProductTitle":[4,"hide-product-title"],"hideBranding":[4,"hide-branding"],"btnBuyLabel":[1,"btn-buy-label"],"productLinks":[32],"mainSliderIndex":[32],"isMobile":[32],"windowHeight":[32],"mainSliderAnimatingSlides":[32]}]]],["p-90680277",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"environment":[1],"customSettings":[1,"custom-settings"],"previewMode":[4,"preview-mode"],"isLoading":[32],"minNumberOfPhotos":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]}]]]]'),o))));
4
+ import{d as o,N as e,w as t,p as l,b as r}from"./p-95184773.js";import{g as i}from"./p-ae8aaed8.js";(()=>{const r=Array.from(o.querySelectorAll("script")).find((o=>new RegExp(`/${e}(\\.esm)?\\.js($|\\?|#)`).test(o.src)||o.getAttribute("data-stencil-namespace")===e)),i={};return"onbeforeload"in r&&!history.scrollRestoration?{then(){}}:(i.resourcesUrl=new URL(".",new URL(r.getAttribute("data-resources-url")||r.src,t.location.href)).href,l(i))})().then((o=>(i(),r(JSON.parse('[["p-a8c4bdec",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"productsLayout":[1,"products-layout"],"productLinks":[16],"layout":[1],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"showPrice":[4,"show-price"],"btnBuyLabel":[1,"btn-buy-label"],"productsTitle":[1,"products-title"],"hideProductTitle":[8,"hide-product-title"],"hideBranding":[4,"hide-branding"],"pageIndex":[2,"page-index"],"mainSliderIndex":[2,"main-slider-index"],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"layout":[1],"activeHotspot":[2,"active-hotspot"],"pageLayout":[1,"page-layout"],"productsTitle":[1,"products-title"],"thumbnailUrl":[1,"thumbnail-url"],"btnBuyLabel":[1,"btn-buy-label"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"]}]]],["p-76db9baa",[[1,"covet-pics-direct-buy",{"product":[8],"open":[4],"moneyFormat":[1,"money-format"],"buttonColor":[1,"button-color"],"buttonHoverColor":[1,"button-hover-color"],"buttonTextColor":[1,"button-text-color"],"buttonTextHoverColor":[1,"button-text-hover-color"],"buttonStyle":[1,"button-style"],"buttonAddToCartLabel":[1,"button-add-to-cart-label"],"previewMode":[4,"preview-mode"],"priceLabel":[1,"price-label"],"selectLabel":[1,"select-label"],"selectedOptions":[32]},[[16,"openDirectBuy","openDirectBuyHandler"],[8,"previousPopupEvent","previousPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"linkStyle":[1,"link-style"],"showOutOfStockProducts":[4,"show-out-of-stock-products"],"showPrice":[4,"show-price"],"priceLabel":[1,"price-label"],"selectLabel":[1,"select-label"],"buttonStyle":[1,"button-style"],"buttonColor":[1,"button-color"],"buttonHoverColor":[1,"button-hover-color"],"buttonTextColor":[1,"button-text-color"],"buttonTextHoverColor":[1,"button-text-hover-color"],"buttonBuyNowLabel":[1,"button-buy-now-label"],"buttonVisitLabel":[1,"button-visit-label"],"directBuyEnabled":[4,"direct-buy-enabled"]},[[16,"productLinkUpdated","productLinkUpdatedHandler"]]],[0,"covet-pics-gallery-item",{"animationDuration":[2,"animation-duration"],"altTag":[1,"alt-tag"],"highlighted":[4],"hoverAnimationStyle":[1,"hover-animation-style"],"hoverDisabled":[4,"hover-disabled"],"hoverBackgroundOpacity":[2,"hover-background-opacity"],"hoverBorderColor":[1,"hover-border-color"],"hoverColorFrom":[1,"hover-color-from"],"hoverColorTo":[1,"hover-color-to"],"hoverPreview":[4,"hover-preview"],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"labelCaptionWithLinks":[1,"label-caption-with-links"],"labelColor":[1,"label-color"],"labelFontSize":[2,"label-font-size"],"labelFontStyle":[1,"label-font-style"],"lazyLoad":[4,"lazy-load"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"showHoverIcon":[4,"show-hover-icon"],"url":[1],"tabIndex":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"labelCaption":[1,"label-caption"],"layout":[1],"itemStyle":[1,"item-style"],"itemWidth":[2,"item-width"],"lazyLoad":[4,"lazy-load"],"links":[16],"popupDisabled":[4,"popup-disabled"],"popupRedirectMode":[4,"popup-redirect-mode"],"url":[1],"backgroundColor":[1,"background-color"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"starColor":[1,"star-color"],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"tabIndex":[32],"captionCSS":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[1,"covet-pics-popup",{"itemId":[1026,"item-id"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"productHandle":[1,"product-handle"],"items":[1040],"products":[16],"animated":[4],"animatedBrowse":[4,"animated-browse"],"arrowsDesktopType":[1,"arrows-desktop-type"],"arrowsDesktopPosition":[1,"arrows-desktop-position"],"arrowsDesktopSize":[2,"arrows-desktop-size"],"arrowsDesktopSizeType":[1,"arrows-desktop-size-type"],"arrowsDesktopSymbolColor":[1,"arrows-desktop-symbol-color"],"arrowsDesktopBackgroundColor":[1,"arrows-desktop-background-color"],"arrowsDesktopColorTheme":[1,"arrows-desktop-color-theme"],"arrowsMobileType":[1,"arrows-mobile-type"],"arrowsMobilePosition":[1,"arrows-mobile-position"],"arrowsMobileSymbolColor":[1,"arrows-mobile-symbol-color"],"arrowsMobileBackgroundColor":[1,"arrows-mobile-background-color"],"arrowsMobileColorTheme":[1,"arrows-mobile-color-theme"],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"closeButtonType":[1,"close-button-type"],"closeButtonSymbolColor":[1,"close-button-symbol-color"],"closeButtonBackgroundColor":[1,"close-button-background-color"],"closeButtonSize":[1,"close-button-size"],"closeButtonPosition":[1,"close-button-position"],"closeButtonColorTheme":[1,"close-button-color-theme"],"hideBranding":[4,"hide-branding"],"hideSocialShareIcons":[4,"hide-social-share-icons"],"responsive":[4],"directBuyEnabled":[4,"direct-buy-enabled"],"hotspotsEnabled":[4,"hotspots-enabled"],"hotspotsShowNumbers":[4,"hotspots-show-numbers"],"hotspotsTextColor":[1,"hotspots-text-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"loader":[16],"linksTitle":[1,"links-title"],"showLinksTitle":[4,"show-links-title"],"isDefaultCurrency":[4,"is-default-currency"],"moneyFormat":[1,"money-format"],"directBuyIsOpen":[32],"showShareLink":[32],"copyLinkCopied":[32],"hideHotspots":[32],"openPopup":[64],"closePopup":[64]},[[16,"openDirectBuy","openDirectBuyHandler"],[16,"closeDirectBuy","closeDirectBuyHandler"],[4,"addToCart:covetPics","addToCartHandler"],[16,"productLinkClicked","productLinkClickedHandler"]]],[1,"covet-pics-upload",{"animated":[4],"backgroundColor":[1,"background-color"],"backgroundOpacity":[2,"background-opacity"],"responsive":[4],"fontFamily":[1,"font-family"],"baseUrl":[1,"base-url"],"galleryId":[2,"gallery-id"],"galleryEmbedId":[2,"gallery-embed-id"],"photoRequestId":[2,"photo-request-id"],"productHandle":[1,"product-handle"],"displayType":[1,"display-type"],"uploadTitle":[1,"upload-title"],"uploadBody":[1,"upload-body"],"uploadDragDrop":[1,"upload-drag-drop"],"uploadChoose":[1,"upload-choose"],"formNamePlaceholder":[1,"form-name-placeholder"],"formEmailPlaceholder":[1,"form-email-placeholder"],"formBodyPlaceholder":[1,"form-body-placeholder"],"formSendLabel":[1,"form-send-label"],"formUploading":[1,"form-uploading"],"completeBody":[1,"complete-body"],"completeCloseLabel":[1,"complete-close-label"],"activeStep":[2,"active-step"],"hideBranding":[4,"hide-branding"],"standalone":[4],"starRating":[32],"formSendDisabled":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"openUpload":[64]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]]]],["p-96d12196",[[0,"covet-pics-gallery-grid",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"imagesToShow":[2,"images-to-show"],"layout":[1],"highlightEnabled":[4,"highlight-enabled"],"highlightEvery":[2,"highlight-every"],"highlightStartsFrom":[2,"highlight-starts-from"],"items":[1040],"loadMoreBorder":[2,"load-more-border"],"loadMoreColor":[1,"load-more-color"],"loadMoreFontSize":[2,"load-more-font-size"],"loadMoreFontStyle":[1,"load-more-font-style"],"loadMoreLabel":[1,"load-more-label"],"loadMorePadding":[2,"load-more-padding"],"loadMoreStyle":[1,"load-more-style"],"loadMoreMode":[1,"load-more-mode"],"filtersEnabled":[4,"filters-enabled"],"filtersMultiselect":[4,"filters-multiselect"],"filters":[16],"filtersResetLabel":[1,"filters-reset-label"],"filtersPadding":[2,"filters-padding"],"filtersColor":[1,"filters-color"],"filtersFontSize":[2,"filters-font-size"],"filtersFontWeight":[1,"filters-font-weight"],"itemStyle":[1,"item-style"],"loader":[16],"isLoading":[32],"isPopupOpen":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[0,"nextPage","nextPageHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"],[16,"modalOpen:covetPics","onDisableTabIndex"],[16,"modalClose:covetPics","onEnableTabIndex"]]],[0,"covet-pics-gallery-slider",{"desktopPhotosPerRow":[2,"desktop-photos-per-row"],"desktopItemPadding":[2,"desktop-item-padding"],"mobilePhotosPerRow":[2,"mobile-photos-per-row"],"mobileItemPadding":[2,"mobile-item-padding"],"items":[1040],"itemStyle":[1,"item-style"],"autoPlay":[2,"auto-play"],"autoLoadMore":[4,"auto-load-more"],"loader":[16]},[[0,"imageLoaded","imagesLoadedHandler"],[0,"itemClicked","itemClickedHandler"],[0,"nextPage","nextPageHandler"],[8,"previousPopupEvent","prevPopupHandler"],[8,"nextPopupEvent","nextPopupHandler"],[8,"elementResize","elementResizeHandler"]]],[0,"covet-pics-highlighted",{"layout":[1],"numberOfPages":[2,"number-of-pages"],"padding":[2],"showPrice":[4,"show-price"],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"],"backgroundColor":[1,"background-color"],"hotspotsBackgoundColor":[1,"hotspots-backgound-color"],"items":[16],"productsLayout":[1,"products-layout"],"showHotspots":[4,"show-hotspots"],"hotspotsLayout":[1,"hotspots-layout"],"productsTitle":[1,"products-title"],"hideProductTitle":[4,"hide-product-title"],"hideBranding":[4,"hide-branding"],"btnBuyLabel":[1,"btn-buy-label"],"productLinks":[32],"mainSliderIndex":[32],"isMobile":[32],"windowHeight":[32],"mainSliderAnimatingSlides":[32]}]]],["p-90680277",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"environment":[1],"customSettings":[1,"custom-settings"],"previewMode":[4,"preview-mode"],"isLoading":[32],"minNumberOfPhotos":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]}]]]]'),o))));