@covet-pics/covet-pics-widget 0.178.8 → 0.178.9

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.
Files changed (25) hide show
  1. package/dist/cjs/covet-pics-gallery-grid_8.cjs.entry.js +1 -2
  2. package/dist/cjs/covet-pics-gallery-header.cjs.entry.js +2 -4
  3. package/dist/cjs/covet-pics-widget.cjs.entry.js +8 -2
  4. package/dist/cjs/covet-pics-widget.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js +1 -16
  7. package/dist/collection/components/covet-pics-gallery-header/covet-pics-gallery-header.css +9 -6
  8. package/dist/collection/components/covet-pics-gallery-header/covet-pics-gallery-header.js +1 -20
  9. package/dist/collection/components/covet-pics-widget/covet-pics-widget.js +10 -9
  10. package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
  11. package/dist/covet-pics-widget/{p-8aa30ee1.entry.js → p-895aa17c.entry.js} +1 -1
  12. package/dist/covet-pics-widget/p-eabd65e0.entry.js +4 -0
  13. package/dist/covet-pics-widget/p-fc0a59c8.entry.js +4 -0
  14. package/dist/esm/covet-pics-gallery-grid_8.entry.js +1 -2
  15. package/dist/esm/covet-pics-gallery-header.entry.js +3 -5
  16. package/dist/esm/covet-pics-widget.entry.js +8 -2
  17. package/dist/esm/covet-pics-widget.js +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/types/components/covet-pics-gallery-grid/covet-pics-gallery-grid.d.ts +0 -4
  20. package/dist/types/components/covet-pics-gallery-header/covet-pics-gallery-header.d.ts +0 -5
  21. package/dist/types/components/covet-pics-widget/covet-pics-widget.d.ts +2 -1
  22. package/dist/types/components.d.ts +0 -24
  23. package/package.json +1 -1
  24. package/dist/covet-pics-widget/p-05a15d52.entry.js +0 -4
  25. package/dist/covet-pics-widget/p-74b8d833.entry.js +0 -4
@@ -3464,7 +3464,6 @@ const CovetPicsGalleryGrid = class {
3464
3464
  constructor(hostRef) {
3465
3465
  index.registerInstance(this, hostRef);
3466
3466
  this.nextPage = index.createEvent(this, "nextPage", 7);
3467
- this.sortUpdated = index.createEvent(this, "sortUpdated", 7);
3468
3467
  this.filtersUpdated = index.createEvent(this, "filtersUpdated", 7);
3469
3468
  /**
3470
3469
  * array of breakdown for header
@@ -3754,7 +3753,7 @@ const CovetPicsGalleryGrid = class {
3754
3753
  return cssVars;
3755
3754
  }
3756
3755
  render() {
3757
- return (index.h(index.Host, { key: '6769be2a3deaf0f33e9be4fd5456b3cc452227e6', role: "region", style: this.setCSSVariables() }, this.settings.show_header && this.renderHeader(), this.filtersEnabled && ["style_1", "style_2"].includes(this.settings.tags_style) && this.renderStandardFilters(), this.filtersEnabled && ["style_3", "style_4"].includes(this.settings.tags_style) && this.renderModalFilters(), index.h("div", { key: '06946fe79dcaae3413acc956fc4984eb394e4df1', class: `gallery ${this.layout}`, role: "list", "aria-label": `gallery of ${this.items.length} items` }, this.layout === "collage" && index.h("div", { key: '7de53c94a5b905c5efb82f8f44df0858053d8187', class: "grid-sizer" }), this.layout === "collage" && index.h("div", { key: 'ec019cf2b6f078a92126f2f66cefa265365f4751', class: "gutter-sizer" }), this.settings.item_style === "standard" && this.items.map((item, idx) => item.source === "upload_widget"
3756
+ return (index.h(index.Host, { key: '99db91bf47385a1a17081812c89b7e681c9db7df', role: "region", style: this.setCSSVariables() }, this.settings.show_header && this.renderHeader(), this.filtersEnabled && ["style_1", "style_2"].includes(this.settings.tags_style) && this.renderStandardFilters(), this.filtersEnabled && ["style_3", "style_4"].includes(this.settings.tags_style) && this.renderModalFilters(), index.h("div", { key: 'efa6e58b3e77f55deea27b25f9c3f1371026cd51', class: `gallery ${this.layout}`, role: "list", "aria-label": `gallery of ${this.items.length} items` }, this.layout === "collage" && index.h("div", { key: 'e6b47298342c5e8172deb472ee79a95db133db2a', class: "grid-sizer" }), this.layout === "collage" && index.h("div", { key: 'd8e07577abf1a404560cb356c116b07ba231ef75', class: "gutter-sizer" }), this.settings.item_style === "standard" && this.items.map((item, idx) => item.source === "upload_widget"
3758
3757
  ? this.renderStandardUploadItem(item, idx, this.items.length)
3759
3758
  : this.renderStandardItem(item, idx, this.items.length)), this.settings.item_style !== "standard" && this.items.map((item, idx) => item.source === "upload_widget"
3760
3759
  ? this.renderDetailUploadItem(item, idx, this.items.length)
@@ -9,12 +9,11 @@ var sort = require('./sort-D8WiIXAa.js');
9
9
  var funcComponents = require('./funcComponents-BpB42VvA.js');
10
10
  require('./redux-toolkit.modern-w9CXZaGb.js');
11
11
 
12
- const covetPicsGalleryHeaderCss = () => `.header.header1{display:flex;justify-content:space-between;padding:25px 20px 25px 20px}.header.header2{padding:25px 63px 0px 63px}@media only screen and (max-width: 799.98px){.header.header2{padding:25px 30px 0px 30px}}.header.header3{padding:25px 63px 25px 63px}@media only screen and (max-width: 799.98px){.header.header3{padding:25px 25px 25px 25px}}.header.header4{display:flex;justify-content:space-between;padding:0px 63px 35px 63px}@media only screen and (max-width: 799.98px){.header.header4{padding:0px 25px 35px 25px}}.rated-wrap{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between}@media only screen and (max-width: 799.98px){.rated-wrap.header2{flex-direction:column;align-items:center}.rated-wrap.header2:after{display:none}}.rated-wrap.header2.show-separation:after{content:"";position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#ECECEC;transform:translateX(-50%)}@media only screen and (max-width: 799.98px){.rated-wrap.header2.show-separation:after:after{display:none}}.rated-wrap.header4{display:flex;flex-direction:column}.rating-wrap.header1{position:relative}.rating-wrap.header2{display:flex;flex-direction:column}.rating-wrap.header3{display:flex;flex-direction:column}.rating-btn{display:flex;align-items:center;border:none;background-color:transparent;cursor:pointer;position:relative;padding:0}.rating-text{font-size:14px;font-weight:400;color:#919EAB}.top-title{text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:2px;color:#919EAB;margin-bottom:25px}.star-title{width:9px;height:9px;margin-right:9px}.rating-title{margin:0}.rating-title.header4{font-size:18px;font-weight:500;color:#000000}.rated{margin-left:20px;font-size:14px;font-weight:700;color:#919EAB}.rating-breakdown.header1{position:absolute;display:block;top:0;left:0;color:#919EAB;font-size:14px;background-color:white;transform:translateY(40px);max-height:0;overflow:hidden;opacity:0;padding:0;margin:0;transition:opacity 0.3s ease;border-radius:4px;border:1px solid transparent;flex:none}.rating-breakdown.header1.show-breakdown{box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:1px solid #ECECEC;opacity:1;z-index:1000;max-height:1000px;min-width:326px;padding-bottom:23px}.rating-breakdown.header2{padding-left:0;list-style:none;margin-top:0;margin-bottom:0}.rating-breakdown-title{font-size:14px;font-weight:700;margin-left:30px;color:#1F273D}.rating-breakdown-score{display:flex;align-items:center;margin:7px 30px 7px 30px}.rating-breakdown-text{margin:0px 0px 0px 20px;font-size:12px}.score.header1{margin-left:auto}.score.header2{margin-top:auto;font-size:14px;color:#1F273D;margin-bottom:0}@media only screen and (max-width: 799.98px){.score.header2{margin-bottom:20px}}.score.header3{color:#000000;padding-top:17px;margin:0}.score.header4{display:flex;align-items:center;font-size:14px;font-weight:400;color:#919EAB;margin:19px 0px 0px 0px}.score-number.header2{font-size:62px;line-height:62px}.score-number.header3{font-size:18px;font-weight:600;color:#000000}.score-number.header4{font-size:14px;font-weight:700;color:#919EAB;margin-left:17px}.score-slash{position:relative;width:1px;height:14px;display:block;background-color:#C7C7C7;margin-left:12px;margin-right:12px}.score-total.header2{color:#919EAB;font-size:14px;margin-left:13px;padding-left:10px;position:relative}.score-total.header2:after{content:"";position:absolute;top:50%;left:0;width:1px;height:14px;background-color:#C7C7C7;transform:translateY(-50%)}.score-total.header3{color:#919EAB;font-size:14px;padding-top:12px;margin:0}.score-total.header4{color:#919EAB;font-size:14px;font-weight:700;margin:0;position:relative}.score-total.header4.space-left{margin-left:17px}.sort-wrap.header2{display:flex;justify-content:flex-end;margin-top:15px;margin-bottom:15px}@media only screen and (max-width: 799.98px){.sort-wrap.header2{justify-content:center}}.sort-wrap.header3{margin-top:30px}.sort-wrap.header4{margin-top:auto}.sorting{display:inline-flex;align-items:center;position:relative;flex:none}.sorting.header4{border-radius:4px;margin-top:auto}.sort-title{font-size:14px;font-weight:700;color:#919EAB}.sort-title.header2{font-size:12px;font-weight:700;color:#000000}.sort-title.header3{font-size:12px;font-weight:700;color:#000000}.sort-title.header4{font-size:14px;font-weight:700;color:#007ACE}.sort-btn{background-color:transparent;border:none;color:#919EAB;font-size:14px;display:flex;align-items:center;transition:all 0.3s ease-out;cursor:pointer}.sort-btn.header2{color:#000000}.sort-btn.header3{border:1px solid #ECECEC;border-radius:4px;padding:8px 14px 8px 14px;margin-left:10px}.sort-btn.header4{color:#007ACE}.sort-select{position:absolute;display:block;top:0;right:0;color:#919EAB;font-size:14px;background-color:white;transform:translateY(30px);max-height:0;overflow:hidden;cursor:pointer;opacity:0;padding:0;margin:0;transition:opacity 0.3s ease;border-radius:4px;border:1px solid transparent;flex:none}@media only screen and (max-width: 799.98px){.sort-select.header2{right:50%;transform:translate(50%, 30px)}}.sort-select.show-sort{box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:1px solid #ECECEC;opacity:1;z-index:1000;max-height:1000px;min-width:186px}.sort-select.header3{left:0;right:auto;transform:translateY(40px)}.sort-check{width:12px;height:9px;margin-right:12px}.sort-check path{transition:all 0.3s ease-in;stroke:transparent}.sort__dropdown-item{display:flex;align-items:center;list-style:none;padding:12px 35px 0px 23px;transition:all 0.3s ease-out}.sort__dropdown-item:first-of-type{padding-top:23px}.sort__dropdown-item:last-of-type{padding-bottom:23px}.sort__dropdown-item.active{color:#626C75}.sort__dropdown-item.active .sort-check{transition:all 0.4s ease-out}.sort__dropdown-item.active .sort-check path{stroke:#919EAB}.sort__dropdown-item:hover,.sort__dropdown-item:active,.sort__dropdown-item:focus{color:#626C75}.sort-arrow{margin-left:7px;width:9px;height:6px}@media only screen and (max-width: 799.98px){.sort-arrow.header1{margin-left:0}}.sort-arrow.header2{width:8px;height:6px;margin-left:15px}.sort-arrow.header4{width:10px;height:6px;margin-left:15px}@media only screen and (max-width: 799.98px){.sort-arrow.header4{margin-left:0}}.sort-arrow-down{transform:rotateX(180deg)}.rating-row{display:flex;margin-bottom:12.2px}.star-score{width:57px;margin-bottom:0;margin-top:0;color:#C7C7C7;font-size:12px;line-height:1.4}.progressbar{width:180px;height:15px;border-radius:4px;background-color:#F7F8FC;margin:0px 10px 0 10px;position:relative}.progressbar-value{top:0;left:0;height:15px;width:10%;display:block;border-radius:4px;background-color:#5C6AC4}.percent-count{color:#5C6AC4;font-size:10px;margin-top:0;margin-bottom:0;line-height:1.4}.review-btn{display:flex;align-items:center;border:none;background-color:#5C6AC4;border-radius:4px;cursor:pointer;padding:10px 14px;color:#FFFFFF;font-size:14px}.icon-pen{width:12px;height:12px;margin-right:10px}@media only screen and (max-width: 799.98px){.icon-pen{margin-right:0}}`;
12
+ const covetPicsGalleryHeaderCss = () => `.header.header1{display:flex;justify-content:space-between;padding:25px 20px 25px 20px}.header.header2{padding:25px 63px 0px 63px}@media only screen and (max-width: 799.98px){.header.header2{padding:25px 30px 0px 30px}}.header.header3{padding:25px 63px 25px 63px}@media only screen and (max-width: 799.98px){.header.header3{padding:25px 25px 25px 25px}}.header.header4{display:flex;justify-content:space-between;padding:0px 63px 35px 63px}@media only screen and (max-width: 799.98px){.header.header4{padding:0px 25px 35px 25px}}.rated-wrap{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between}@media only screen and (max-width: 799.98px){.rated-wrap.header2{flex-direction:column;align-items:center}.rated-wrap.header2:after{display:none}}.rated-wrap.header2.show-separation:after{content:"";position:absolute;top:0;left:50%;width:1px;height:100%;background-color:#ECECEC;transform:translateX(-50%)}@media only screen and (max-width: 799.98px){.rated-wrap.header2.show-separation:after:after{display:none}}.rated-wrap.header4{display:flex;flex-direction:column}.rating-wrap.header1{position:relative}.rating-wrap.header2{display:flex;flex-direction:column}.rating-wrap.header3{display:flex;flex-direction:column}.rating-btn{display:flex;align-items:center;border:none;background-color:transparent;cursor:pointer;position:relative;padding:0}.rating-text{font-size:14px;font-weight:400;color:#919EAB}.top-title{text-transform:uppercase;font-size:11px;font-weight:700;letter-spacing:2px;color:#919EAB;margin-bottom:25px}.star-title{width:9px;height:9px;margin-right:9px}.rating-title{margin:0}.rating-title.header4{font-size:18px;font-weight:500;color:#000000}.rated{margin-left:20px;font-size:14px;font-weight:700;color:#919EAB}.rating-breakdown.header1{position:absolute;display:block;top:0;left:0;color:#919EAB;font-size:14px;background-color:white;transform:translateY(40px);max-height:0;overflow:hidden;opacity:0;padding:0;margin:0;transition:opacity 0.3s ease;border-radius:4px;border:1px solid transparent;flex:none}.rating-breakdown.header1.show-breakdown{box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:1px solid #ECECEC;opacity:1;z-index:1000;max-height:1000px;min-width:326px;padding-bottom:23px}.rating-breakdown.header2{padding-left:0;list-style:none;margin-top:0;margin-bottom:0}.rating-breakdown-title{font-size:14px;font-weight:700;margin-left:30px;color:#1F273D}.rating-breakdown-score{display:flex;align-items:center;margin:7px 30px 7px 30px}.rating-breakdown-text{margin:0px 0px 0px 20px;font-size:12px}.score.header1{margin-left:auto}.score.header2{margin-top:auto;font-size:14px;color:#1F273D;margin-bottom:0}@media only screen and (max-width: 799.98px){.score.header2{margin-bottom:20px}}.score.header3{color:#000000;padding-top:17px;margin:0}.score.header4{display:flex;align-items:center;font-size:14px;font-weight:400;color:#919EAB;margin:19px 0px 0px 0px}.score-number.header2{font-size:62px;line-height:62px}.score-number.header3{font-size:18px;font-weight:600;color:#000000}.score-number.header4{font-size:14px;font-weight:700;color:#919EAB;margin-left:17px}.score-slash{position:relative;width:1px;height:14px;display:block;background-color:#C7C7C7;margin-left:12px;margin-right:12px}.score-total.header2{color:#919EAB;font-size:14px;margin-left:13px;padding-left:10px;position:relative}.score-total.header2:after{content:"";position:absolute;top:50%;left:0;width:1px;height:14px;background-color:#C7C7C7;transform:translateY(-50%)}.score-total.header3{color:#919EAB;font-size:14px;padding-top:12px;margin:0}.score-total.header4{color:#919EAB;font-size:14px;font-weight:700;margin:0;position:relative}.score-total.header4.space-left{margin-left:17px}.sort-wrap.header2{display:flex;justify-content:flex-end;margin-top:15px;margin-bottom:15px}@media only screen and (max-width: 799.98px){.sort-wrap.header2{justify-content:center}}.sort-wrap.header3{margin-top:30px}.sort-wrap.header4{margin-top:auto}.sorting{display:inline-flex;align-items:center;position:relative;flex:none}.sorting.header4{border-radius:4px;margin-top:auto}.sort-title{font-size:14px;font-weight:700;color:#919EAB}.sort-title.header2{font-size:12px;font-weight:700;color:#000000}.sort-title.header3{font-size:12px;font-weight:700;color:#000000}.sort-title.header4{font-size:14px;font-weight:700;color:#007ACE}.sort-btn{background-color:transparent;border:none;display:flex;align-items:center;transition:all 0.3s ease-out;cursor:pointer}.sort-btn.header3{border:1px solid #ECECEC;border-radius:4px;padding:8px 14px 8px 14px;margin-left:10px}.sort-btn-text{color:#919EAB;font-size:14px}.sort-btn-text.header2{color:#000000}.sort-btn-text.header4{color:#007ACE}.sort-select{position:absolute;display:block;top:0;right:0;color:#919EAB;font-size:14px;background-color:white;transform:translateY(30px);max-height:0;overflow:hidden;cursor:pointer;opacity:0;padding:0;margin:0;transition:opacity 0.3s ease;border-radius:4px;border:1px solid transparent;flex:none}@media only screen and (max-width: 799.98px){.sort-select.header2{right:50%;transform:translate(50%, 30px)}}.sort-select.show-sort{box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:1px solid #ECECEC;opacity:1;z-index:1000;max-height:1000px;min-width:186px}.sort-select.header3{left:0;right:auto;transform:translateY(40px)}.sort-check{width:12px;height:9px;margin-right:12px}.sort-check path{transition:all 0.3s ease-in;stroke:transparent}.sort__dropdown-item{display:flex;align-items:center;list-style:none;padding:12px 35px 0px 23px;transition:all 0.3s ease-out}.sort__dropdown-item:first-of-type{padding-top:23px}.sort__dropdown-item:last-of-type{padding-bottom:23px}.sort__dropdown-item.active{color:#626C75}.sort__dropdown-item.active .sort-check{transition:all 0.4s ease-out}.sort__dropdown-item.active .sort-check path{stroke:#919EAB}.sort__dropdown-item:hover,.sort__dropdown-item:active,.sort__dropdown-item:focus{color:#626C75}.sort-arrow{margin-left:7px;width:9px;height:6px}@media only screen and (max-width: 799.98px){.sort-arrow.header1{margin-left:0}}.sort-arrow.header2{width:8px;height:6px;margin-left:15px}.sort-arrow.header4{width:10px;height:6px;margin-left:15px}@media only screen and (max-width: 799.98px){.sort-arrow.header4{margin-left:0}}.sort-arrow-down{transform:rotateX(180deg)}.rating-row{display:flex;margin-bottom:12.2px}.star-score{width:57px;margin-bottom:0;margin-top:0;color:#C7C7C7;font-size:12px;line-height:1.4}.progressbar{width:180px;height:15px;border-radius:4px;background-color:#F7F8FC;margin:0px 10px 0 10px;position:relative}.progressbar-value{top:0;left:0;height:15px;width:10%;display:block;border-radius:4px;background-color:#5C6AC4}.percent-count{color:#5C6AC4;font-size:10px;margin-top:0;margin-bottom:0;line-height:1.4}.review-btn{display:flex;align-items:center;border:none;background-color:#5C6AC4;border-radius:4px;cursor:pointer;padding:10px 14px;color:#FFFFFF;font-size:14px}.icon-pen{width:12px;height:12px;margin-right:10px}@media only screen and (max-width: 799.98px){.icon-pen{margin-right:0}}`;
13
13
 
14
14
  const CovetPicsGalleryHeader = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
- this.sortUpdated = index.createEvent(this, "sortUpdated", 7);
18
17
  /**
19
18
  * rating
20
19
  */
@@ -63,7 +62,6 @@ const CovetPicsGalleryHeader = class {
63
62
  if (target.getAttribute("aria-selected") === undefined)
64
63
  return false;
65
64
  this.appStore.dispatch(sort.sortUpdated(target.getAttribute("aria-selected")));
66
- this.sortUpdated.emit(target.getAttribute("aria-selected")); //TODO remove this (call this in component use sibscribe)
67
65
  // a11y focus
68
66
  const sortBtn = this.el.querySelector(".sort-btn");
69
67
  sortBtn.focus();
@@ -116,7 +114,7 @@ const CovetPicsGalleryHeader = class {
116
114
  const mobileSort = !this.isDesktopScreen && (this.headerType === "header1" || this.headerType === "header4");
117
115
  const iconActiveClass = this.showSortDropdown ? "sort-arrow-down" : "";
118
116
  const mobileSortSelected = mobileSort ? "" : (_a = this.appState.sort.options.find(el => el.value === this.appState.sort.selected)) === null || _a === void 0 ? void 0 : _a.name;
119
- return (index.h("div", { class: `sorting ${this.headerType}` }, index.h("span", { class: `sort-title ${this.headerType}` }, "Sort ", mobileSort ? "" : "by", " :"), index.h("button", { class: `sort-btn ${this.headerType}`, onClick: () => this.showSortDropdown = !this.showSortDropdown, "aria-haspopup": "listbox", "aria-expanded": "false", "aria-labelledby": "dropdown-label dropdown-button", "aria-controls": this.sortSelectId }, index.h("span", { class: "sort-btn-text" }, mobileSortSelected), this.headerType === "header2" &&
117
+ return (index.h("div", { class: `sorting ${this.headerType}` }, index.h("span", { class: `sort-title ${this.headerType}` }, "Sort ", mobileSort ? "" : "by", " :"), index.h("button", { class: `sort-btn ${this.headerType}`, onClick: () => this.showSortDropdown = !this.showSortDropdown, "aria-haspopup": "listbox", "aria-expanded": "false", "aria-labelledby": "dropdown-label dropdown-button", "aria-controls": this.sortSelectId }, index.h("span", { class: `sort-btn-text ${this.headerType}` }, mobileSortSelected), this.headerType === "header2" &&
120
118
  index.h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M4.5791 5.50671C4.37892 5.75887 3.99608 5.75887 3.79589 5.50671L0.663473 1.56088C0.403343 1.2332 0.636699 0.75 1.05508 0.75L7.31992 0.75C7.7383 0.75 7.97166 1.2332 7.71153 1.56088L4.5791 5.50671Z", fill: "#1F273D" })), (this.headerType === "header1" || this.headerType === "header3") &&
121
119
  index.h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 9 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M4.8916 5.50671C4.69142 5.75887 4.30858 5.75887 4.10839 5.50671L0.380581 0.810878C0.120451 0.483199 0.353806 0 0.772186 0L8.22781 0C8.64619 0 8.87955 0.483199 8.61942 0.810878L4.8916 5.50671Z", fill: "#919EAB" })), this.headerType === "header4" &&
122
120
  index.h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M1 1L5 5L9 1", stroke: "#007ACE", "stroke-linecap": "round", "stroke-linejoin": "round" }))), index.h("ul", { id: this.sortSelectId, class: `sort-select ${this.headerType} ${this.showSortDropdown ? "show-sort" : ""}`, role: "listbox", "aria-hidden": `${!this.showSortDropdown}`, "aria-labelledby": "dropdown-label", "aria-activedescendant": "selected-option", tabindex: "-1" }, this.appState.sort.options.map(el => index.h("li", { class: `sort__dropdown-item ${el.value === this.appState.sort.selected ? "active" : ""}`, "aria-selected": el.value, onClick: this.onSelectUpdate, role: "option" }, index.h("svg", { class: "sort-check", viewBox: "0 0 12 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M10.7273 1.5L4.72727 7.5L2 4.77273", stroke: "#919EAB", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), el.name)))));
@@ -498,13 +498,14 @@ const CovetPicsWidget = class {
498
498
  this.isLoading = true;
499
499
  this.fetchingError = null;
500
500
  this.preloadNextPage = false;
501
+ this.sortSelected = "";
501
502
  this.fontsLoaded = false;
502
503
  this.filters = {};
503
504
  this.notificationsEl = null;
504
505
  }
505
- async sortUpdatedHandler(event) {
506
+ async onSortChange(newSortType) {
506
507
  this.loader.resetPagination();
507
- this.loader.sortType = event.detail;
508
+ this.loader.sortType = newSortType;
508
509
  const json = await this.loader.fetchItems();
509
510
  if (typeof json !== "undefined") {
510
511
  this.appStore.dispatch(items.setItems(this.getItemsWithUpload(json.items)));
@@ -660,9 +661,11 @@ const CovetPicsWidget = class {
660
661
  this.appStore.dispatch(setPreviewMode(this.previewMode));
661
662
  this.appState = this.appStore.getState();
662
663
  this.preloadNextPage = getters.isNeedToPreloadNextPage(this.appState);
664
+ this.sortSelected = this.appState.sort.selected;
663
665
  this.unsubscribe = this.appStore.subscribe(() => {
664
666
  this.appState = this.appStore.getState();
665
667
  this.preloadNextPage = getters.isNeedToPreloadNextPage(this.appState);
668
+ this.sortSelected = this.appState.sort.selected;
666
669
  });
667
670
  this.setWidgetWidth();
668
671
  }
@@ -913,6 +916,9 @@ const CovetPicsWidget = class {
913
916
  }
914
917
  get el() { return index.getElement(this); }
915
918
  static get watchers() { return {
919
+ "sortSelected": [{
920
+ "onSortChange": 0
921
+ }],
916
922
  "preloadNextPage": [{
917
923
  "preloadNextPageHandler": 0
918
924
  }]
@@ -22,7 +22,7 @@ var patchBrowser = () => {
22
22
 
23
23
  patchBrowser().then(async (options) => {
24
24
  await appGlobals.globalScripts();
25
- return index.bootstrapLazy([["covet-pics-post.cjs",[[1,"covet-pics-post",{"postId":[2,"post-id"],"environment":[1],"item":[32],"fetchingError":[32]}]]],["covet-pics-star-rating.cjs",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["covet-pics-gallery-header.cjs",[[0,"covet-pics-gallery-header",{"rating":[2],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}]]],["covet-pics-highlighted-hotspots_2.cjs",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"activeHotspot":[2,"active-hotspot"],"thumbnailUrl":[1,"thumbnail-url"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]},null,{"thumbnailUrl":[{"refreshHotspot":0}],"activeHotspot":[{"activeHotspotHandler":0}]}]]],["covet-pics-popup-freeflow-carousel_3.cjs",[[0,"covet-pics-popup-slide",{"item":[16],"showCaption":[4,"show-caption"],"showStarRating":[4,"show-star-rating"],"sharedLinkEnable":[4,"shared-link-enable"],"dataLoaded":[32],"isPlaying":[32],"isMuted":[32],"carouselIndex":[32],"videoProgress":[32],"showCarouselVideoControls":[32],"loadMedia":[64],"videoPlay":[64],"videoPause":[64],"videoSoundOff":[64],"videoSoundOn":[64]}],[0,"covet-pics-popup-freeflow-carousel",{"item":[16],"isEnabled":[4,"is-enabled"],"dataLoaded":[1,"data-loaded"],"sliderIndex":[32],"videoPlay":[64],"videoPause":[64],"videoSoundOn":[64],"videoSoundOff":[64],"pauseAllVideos":[64]},null,{"isEnabled":[{"enableSlider":0}],"dataLoaded":[{"lazyLoadMedia":0}],"sliderIndex":[{"updateSliderIndex":0}]}],[1,"covet-pics-popup-freeflow-links",{"links":[16],"itemCreatedTime":[1,"item-created-time"],"isSliderEnabled":[4,"is-slider-enabled"]},null,{"isSliderEnabled":[{"enableSlider":0}]}]]],["covet-pics-crop-text_3.cjs",[[0,"covet-pics-gallery-item",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"links":[16],"url":[1],"videoUrl":[1,"video-url"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"videoUrl":[1,"video-url"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"itemType":[1,"item-type"],"links":[16],"url":[1],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-crop-text",{"text":[1],"textClass":[1,"text-class"],"textColor":[1,"text-color"],"ratio":[16],"cropCSS":[32]}]]],["covet-pics-checkbox_9.cjs",[[0,"covet-pics-direct-buy",{"covetProduct":[16],"itemId":[1,"item-id"],"appStore":[16],"settings":[32],"selectedVariant":[32],"product":[32],"options":[32],"selectedOptions":[32],"shopCartState":[32],"isAvailableForSale":[32]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]},null,{"caption":[{"watchPropHandler":0}]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}],[1,"covet-pics-checkbox",{"checked":[1540],"label":[1],"value":[1],"disabled":[516],"inputId":[1,"input-id"]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-select",{"selectId":[1,"select-id"],"optionData":[16],"label":[1],"selectedValue":[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{"appStore":[16],"isCartVisible":[32],"products":[32],"totalAmount":[32],"discount":[32],"totalQuantity":[32],"notAvaliableForSaleKeys":[32]}]]],["covet-pics-gallery-grid_8.cjs",[[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"settings":[32],"isPreviousEnable":[32],"isNextEnable":[32],"popupIsOpen":[32],"popupIsClosing":[32],"totalQuantity":[32],"openPopup":[64],"closePopup":[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{"item":[{"itemChangedHandler":0}],"popupIsOpen":[{"popupOpenHandler":0}]}],[0,"covet-pics-gallery-grid",{"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"filtersEnabled":[4,"filters-enabled"],"filters":[16],"showLoadMore":[4,"show-load-more"],"appStore":[16],"isGridDisabled":[32],"isDesktopScreen":[32],"itemSize":[32],"isFilterModalShow":[32],"items":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{"sliderStyle":[1,"slider-style"],"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{"galleryIndex":[{"changeSlide":0}]}],[0,"covet-pics-gallery-slider-marquee",{"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32],"popupIsOpen":[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"galleryIndex":[{"changeSlide":0}],"popupIsOpen":[{"onPopupToggle":0}],"items":[{"onItemsChange":0}]}],[1,"covet-pics-popup-freeflow",{"appStore":[16],"settings":[32],"items":[32],"sliderIndex":[32],"popupIsOpen":[32],"openPopupFreeflow":[64],"closePopupFreeflow":[64]},null,{"popupIsOpen":[{"popupOpenHandler":0}],"sliderIndex":[{"updateSliderIndex":0}],"items":[{"updateItems":0}]}],[0,"covet-pics-highlighted",{"numberOfPages":[2,"number-of-pages"],"items":[16],"appStore":[16],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{"appStore":[16],"notifications":[32],"showAll":[32]}],[1,"covet-pics-upload",{"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadIsOpen":[32],"uploadIsClosing":[32],"openUpload":[64],"closeUpload":[64]},null,{"uploadIsOpen":[{"uploadOpenHandler":0}]}]]],["covet-pics-widget.cjs",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"shopifyProductId":[2,"shopify-product-id"],"environment":[1],"baseUrl":[1,"base-url"],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"photoRequestId":[2,"photo-request-id"],"lazyLoad":[4,"lazy-load"],"isLoading":[32],"minNumberOfPhotos":[32],"appStore":[32],"fetchingError":[32],"preloadNextPage":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{"preloadNextPage":[{"preloadNextPageHandler":0}]}]]]], options);
25
+ return index.bootstrapLazy([["covet-pics-post.cjs",[[1,"covet-pics-post",{"postId":[2,"post-id"],"environment":[1],"item":[32],"fetchingError":[32]}]]],["covet-pics-star-rating.cjs",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["covet-pics-gallery-header.cjs",[[0,"covet-pics-gallery-header",{"rating":[2],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}]]],["covet-pics-highlighted-hotspots_2.cjs",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"activeHotspot":[2,"active-hotspot"],"thumbnailUrl":[1,"thumbnail-url"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]},null,{"thumbnailUrl":[{"refreshHotspot":0}],"activeHotspot":[{"activeHotspotHandler":0}]}]]],["covet-pics-popup-freeflow-carousel_3.cjs",[[0,"covet-pics-popup-slide",{"item":[16],"showCaption":[4,"show-caption"],"showStarRating":[4,"show-star-rating"],"sharedLinkEnable":[4,"shared-link-enable"],"dataLoaded":[32],"isPlaying":[32],"isMuted":[32],"carouselIndex":[32],"videoProgress":[32],"showCarouselVideoControls":[32],"loadMedia":[64],"videoPlay":[64],"videoPause":[64],"videoSoundOff":[64],"videoSoundOn":[64]}],[0,"covet-pics-popup-freeflow-carousel",{"item":[16],"isEnabled":[4,"is-enabled"],"dataLoaded":[1,"data-loaded"],"sliderIndex":[32],"videoPlay":[64],"videoPause":[64],"videoSoundOn":[64],"videoSoundOff":[64],"pauseAllVideos":[64]},null,{"isEnabled":[{"enableSlider":0}],"dataLoaded":[{"lazyLoadMedia":0}],"sliderIndex":[{"updateSliderIndex":0}]}],[1,"covet-pics-popup-freeflow-links",{"links":[16],"itemCreatedTime":[1,"item-created-time"],"isSliderEnabled":[4,"is-slider-enabled"]},null,{"isSliderEnabled":[{"enableSlider":0}]}]]],["covet-pics-crop-text_3.cjs",[[0,"covet-pics-gallery-item",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"links":[16],"url":[1],"videoUrl":[1,"video-url"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"videoUrl":[1,"video-url"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"itemType":[1,"item-type"],"links":[16],"url":[1],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-crop-text",{"text":[1],"textClass":[1,"text-class"],"textColor":[1,"text-color"],"ratio":[16],"cropCSS":[32]}]]],["covet-pics-checkbox_9.cjs",[[0,"covet-pics-direct-buy",{"covetProduct":[16],"itemId":[1,"item-id"],"appStore":[16],"settings":[32],"selectedVariant":[32],"product":[32],"options":[32],"selectedOptions":[32],"shopCartState":[32],"isAvailableForSale":[32]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]},null,{"caption":[{"watchPropHandler":0}]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}],[1,"covet-pics-checkbox",{"checked":[1540],"label":[1],"value":[1],"disabled":[516],"inputId":[1,"input-id"]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-select",{"selectId":[1,"select-id"],"optionData":[16],"label":[1],"selectedValue":[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{"appStore":[16],"isCartVisible":[32],"products":[32],"totalAmount":[32],"discount":[32],"totalQuantity":[32],"notAvaliableForSaleKeys":[32]}]]],["covet-pics-gallery-grid_8.cjs",[[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"settings":[32],"isPreviousEnable":[32],"isNextEnable":[32],"popupIsOpen":[32],"popupIsClosing":[32],"totalQuantity":[32],"openPopup":[64],"closePopup":[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{"item":[{"itemChangedHandler":0}],"popupIsOpen":[{"popupOpenHandler":0}]}],[0,"covet-pics-gallery-grid",{"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"filtersEnabled":[4,"filters-enabled"],"filters":[16],"showLoadMore":[4,"show-load-more"],"appStore":[16],"isGridDisabled":[32],"isDesktopScreen":[32],"itemSize":[32],"isFilterModalShow":[32],"items":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{"sliderStyle":[1,"slider-style"],"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{"galleryIndex":[{"changeSlide":0}]}],[0,"covet-pics-gallery-slider-marquee",{"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32],"popupIsOpen":[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"galleryIndex":[{"changeSlide":0}],"popupIsOpen":[{"onPopupToggle":0}],"items":[{"onItemsChange":0}]}],[1,"covet-pics-popup-freeflow",{"appStore":[16],"settings":[32],"items":[32],"sliderIndex":[32],"popupIsOpen":[32],"openPopupFreeflow":[64],"closePopupFreeflow":[64]},null,{"popupIsOpen":[{"popupOpenHandler":0}],"sliderIndex":[{"updateSliderIndex":0}],"items":[{"updateItems":0}]}],[0,"covet-pics-highlighted",{"numberOfPages":[2,"number-of-pages"],"items":[16],"appStore":[16],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{"appStore":[16],"notifications":[32],"showAll":[32]}],[1,"covet-pics-upload",{"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadIsOpen":[32],"uploadIsClosing":[32],"openUpload":[64],"closeUpload":[64]},null,{"uploadIsOpen":[{"uploadOpenHandler":0}]}]]],["covet-pics-widget.cjs",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"shopifyProductId":[2,"shopify-product-id"],"environment":[1],"baseUrl":[1,"base-url"],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"photoRequestId":[2,"photo-request-id"],"lazyLoad":[4,"lazy-load"],"isLoading":[32],"minNumberOfPhotos":[32],"appStore":[32],"fetchingError":[32],"preloadNextPage":[32],"sortSelected":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{"sortSelected":[{"onSortChange":0}],"preloadNextPage":[{"preloadNextPageHandler":0}]}]]]], options);
26
26
  });
27
27
 
28
28
  exports.setNonce = index.setNonce;
@@ -9,7 +9,7 @@ var appGlobals = require('./app-globals-Ds5XaOob.js');
9
9
  const defineCustomElements = async (win, options) => {
10
10
  if (typeof window === 'undefined') return undefined;
11
11
  await appGlobals.globalScripts();
12
- return index.bootstrapLazy([["covet-pics-post.cjs",[[1,"covet-pics-post",{"postId":[2,"post-id"],"environment":[1],"item":[32],"fetchingError":[32]}]]],["covet-pics-star-rating.cjs",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["covet-pics-gallery-header.cjs",[[0,"covet-pics-gallery-header",{"rating":[2],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}]]],["covet-pics-highlighted-hotspots_2.cjs",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"activeHotspot":[2,"active-hotspot"],"thumbnailUrl":[1,"thumbnail-url"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]},null,{"thumbnailUrl":[{"refreshHotspot":0}],"activeHotspot":[{"activeHotspotHandler":0}]}]]],["covet-pics-popup-freeflow-carousel_3.cjs",[[0,"covet-pics-popup-slide",{"item":[16],"showCaption":[4,"show-caption"],"showStarRating":[4,"show-star-rating"],"sharedLinkEnable":[4,"shared-link-enable"],"dataLoaded":[32],"isPlaying":[32],"isMuted":[32],"carouselIndex":[32],"videoProgress":[32],"showCarouselVideoControls":[32],"loadMedia":[64],"videoPlay":[64],"videoPause":[64],"videoSoundOff":[64],"videoSoundOn":[64]}],[0,"covet-pics-popup-freeflow-carousel",{"item":[16],"isEnabled":[4,"is-enabled"],"dataLoaded":[1,"data-loaded"],"sliderIndex":[32],"videoPlay":[64],"videoPause":[64],"videoSoundOn":[64],"videoSoundOff":[64],"pauseAllVideos":[64]},null,{"isEnabled":[{"enableSlider":0}],"dataLoaded":[{"lazyLoadMedia":0}],"sliderIndex":[{"updateSliderIndex":0}]}],[1,"covet-pics-popup-freeflow-links",{"links":[16],"itemCreatedTime":[1,"item-created-time"],"isSliderEnabled":[4,"is-slider-enabled"]},null,{"isSliderEnabled":[{"enableSlider":0}]}]]],["covet-pics-crop-text_3.cjs",[[0,"covet-pics-gallery-item",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"links":[16],"url":[1],"videoUrl":[1,"video-url"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"videoUrl":[1,"video-url"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"itemType":[1,"item-type"],"links":[16],"url":[1],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-crop-text",{"text":[1],"textClass":[1,"text-class"],"textColor":[1,"text-color"],"ratio":[16],"cropCSS":[32]}]]],["covet-pics-checkbox_9.cjs",[[0,"covet-pics-direct-buy",{"covetProduct":[16],"itemId":[1,"item-id"],"appStore":[16],"settings":[32],"selectedVariant":[32],"product":[32],"options":[32],"selectedOptions":[32],"shopCartState":[32],"isAvailableForSale":[32]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]},null,{"caption":[{"watchPropHandler":0}]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}],[1,"covet-pics-checkbox",{"checked":[1540],"label":[1],"value":[1],"disabled":[516],"inputId":[1,"input-id"]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-select",{"selectId":[1,"select-id"],"optionData":[16],"label":[1],"selectedValue":[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{"appStore":[16],"isCartVisible":[32],"products":[32],"totalAmount":[32],"discount":[32],"totalQuantity":[32],"notAvaliableForSaleKeys":[32]}]]],["covet-pics-gallery-grid_8.cjs",[[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"settings":[32],"isPreviousEnable":[32],"isNextEnable":[32],"popupIsOpen":[32],"popupIsClosing":[32],"totalQuantity":[32],"openPopup":[64],"closePopup":[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{"item":[{"itemChangedHandler":0}],"popupIsOpen":[{"popupOpenHandler":0}]}],[0,"covet-pics-gallery-grid",{"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"filtersEnabled":[4,"filters-enabled"],"filters":[16],"showLoadMore":[4,"show-load-more"],"appStore":[16],"isGridDisabled":[32],"isDesktopScreen":[32],"itemSize":[32],"isFilterModalShow":[32],"items":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{"sliderStyle":[1,"slider-style"],"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{"galleryIndex":[{"changeSlide":0}]}],[0,"covet-pics-gallery-slider-marquee",{"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32],"popupIsOpen":[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"galleryIndex":[{"changeSlide":0}],"popupIsOpen":[{"onPopupToggle":0}],"items":[{"onItemsChange":0}]}],[1,"covet-pics-popup-freeflow",{"appStore":[16],"settings":[32],"items":[32],"sliderIndex":[32],"popupIsOpen":[32],"openPopupFreeflow":[64],"closePopupFreeflow":[64]},null,{"popupIsOpen":[{"popupOpenHandler":0}],"sliderIndex":[{"updateSliderIndex":0}],"items":[{"updateItems":0}]}],[0,"covet-pics-highlighted",{"numberOfPages":[2,"number-of-pages"],"items":[16],"appStore":[16],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{"appStore":[16],"notifications":[32],"showAll":[32]}],[1,"covet-pics-upload",{"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadIsOpen":[32],"uploadIsClosing":[32],"openUpload":[64],"closeUpload":[64]},null,{"uploadIsOpen":[{"uploadOpenHandler":0}]}]]],["covet-pics-widget.cjs",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"shopifyProductId":[2,"shopify-product-id"],"environment":[1],"baseUrl":[1,"base-url"],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"photoRequestId":[2,"photo-request-id"],"lazyLoad":[4,"lazy-load"],"isLoading":[32],"minNumberOfPhotos":[32],"appStore":[32],"fetchingError":[32],"preloadNextPage":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{"preloadNextPage":[{"preloadNextPageHandler":0}]}]]]], options);
12
+ return index.bootstrapLazy([["covet-pics-post.cjs",[[1,"covet-pics-post",{"postId":[2,"post-id"],"environment":[1],"item":[32],"fetchingError":[32]}]]],["covet-pics-star-rating.cjs",[[1,"covet-pics-star-rating",{"rating":[2],"ratingCount":[2,"rating-count"],"starColor":[1,"star-color"],"emptyStarColor":[1,"empty-star-color"],"starBorderColor":[1,"star-border-color"],"starBorderWidth":[2,"star-border-width"],"starSize":[2,"star-size"],"spaceStars":[2,"space-stars"],"spaceStarsText":[2,"space-stars-text"],"showLabel":[4,"show-label"],"label":[1]}]]],["covet-pics-gallery-header.cjs",[[0,"covet-pics-gallery-header",{"rating":[2],"productTitle":[1,"product-title"],"breakdown":[16],"appStore":[16],"showBreakdownDropdown":[32],"showSortDropdown":[32],"isDesktopScreen":[32]}]]],["covet-pics-highlighted-hotspots_2.cjs",[[0,"covet-pics-highlighted-page",{"thumbnailUrl":[1,"thumbnail-url"],"thumbnailAlt":[1,"thumbnail-alt"],"ariaLabel":[1,"aria-label"],"thumbnailLayout":[1,"thumbnail-layout"],"videoUrl":[1,"video-url"],"videoPoster":[1,"video-poster"],"thumbnailCarouselImages":[16],"productLinks":[16],"productBaseImgAlt":[1,"product-base-img-alt"],"reverseClass":[1,"reverse-class"],"isMobile":[4,"is-mobile"],"pageIndex":[2,"page-index"],"caption":[1],"rating":[2],"createdTime":[1,"created-time"],"userName":[1,"user-name"],"mainSliderIndex":[2,"main-slider-index"],"pageId":[2,"page-id"],"appStore":[16],"hideHotspots":[32],"activeProductIndex":[32],"hoverHotspot":[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{"links":[16],"activeHotspot":[2,"active-hotspot"],"thumbnailUrl":[1,"thumbnail-url"],"hoverHotspot":[2,"hover-hotspot"],"isMobile":[4,"is-mobile"],"productBaseImgAlt":[1,"product-base-img-alt"],"pageId":[2,"page-id"],"appStore":[16]},null,{"thumbnailUrl":[{"refreshHotspot":0}],"activeHotspot":[{"activeHotspotHandler":0}]}]]],["covet-pics-popup-freeflow-carousel_3.cjs",[[0,"covet-pics-popup-slide",{"item":[16],"showCaption":[4,"show-caption"],"showStarRating":[4,"show-star-rating"],"sharedLinkEnable":[4,"shared-link-enable"],"dataLoaded":[32],"isPlaying":[32],"isMuted":[32],"carouselIndex":[32],"videoProgress":[32],"showCarouselVideoControls":[32],"loadMedia":[64],"videoPlay":[64],"videoPause":[64],"videoSoundOff":[64],"videoSoundOn":[64]}],[0,"covet-pics-popup-freeflow-carousel",{"item":[16],"isEnabled":[4,"is-enabled"],"dataLoaded":[1,"data-loaded"],"sliderIndex":[32],"videoPlay":[64],"videoPause":[64],"videoSoundOn":[64],"videoSoundOff":[64],"pauseAllVideos":[64]},null,{"isEnabled":[{"enableSlider":0}],"dataLoaded":[{"lazyLoadMedia":0}],"sliderIndex":[{"updateSliderIndex":0}]}],[1,"covet-pics-popup-freeflow-links",{"links":[16],"itemCreatedTime":[1,"item-created-time"],"isSliderEnabled":[4,"is-slider-enabled"]},null,{"isSliderEnabled":[{"enableSlider":0}]}]]],["covet-pics-crop-text_3.cjs",[[0,"covet-pics-gallery-item",{"altTag":[1,"alt-tag"],"highlighted":[4],"imageUrl":[1,"image-url"],"rating":[2],"itemWidth":[2,"item-width"],"userName":[1,"user-name"],"createdTime":[1,"created-time"],"caption":[1],"itemType":[1,"item-type"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"links":[16],"url":[1],"videoUrl":[1,"video-url"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-gallery-item-detail",{"altTag":[1,"alt-tag"],"highlighted":[4],"verified":[4],"imageUrl":[1,"image-url"],"imageHighResolutionUrl":[1,"image-high-resolution-url"],"imageResponsiveSizes":[1,"image-responsive-sizes"],"videoUrl":[1,"video-url"],"itemId":[1,"item-id"],"itemSource":[1,"item-source"],"itemType":[1,"item-type"],"links":[16],"url":[1],"rating":[2],"userName":[1,"user-name"],"caption":[1],"createdTime":[1,"created-time"],"itemIndex":[2,"item-index"],"itemSize":[1,"item-size"],"appStore":[16],"tabIndex":[32],"captionCSS":[32],"reviewClass":[32],"starOnlyClass":[32],"highlightedClass":[32],"sliderIndex":[32],"showImageAsVideoPoster":[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{"sliderIndex":[{"autoPlayVideos":0}]}],[0,"covet-pics-crop-text",{"text":[1],"textClass":[1,"text-class"],"textColor":[1,"text-color"],"ratio":[16],"cropCSS":[32]}]]],["covet-pics-checkbox_9.cjs",[[0,"covet-pics-direct-buy",{"covetProduct":[16],"itemId":[1,"item-id"],"appStore":[16],"settings":[32],"selectedVariant":[32],"product":[32],"options":[32],"selectedOptions":[32],"shopCartState":[32],"isAvailableForSale":[32]}],[0,"covet-pics-hotspots",{"links":[16],"backgroundColor":[1,"background-color"],"textColor":[1,"text-color"],"showNumbers":[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{"links":[16],"greyBorderClass":[1,"grey-border-class"],"itemCreatedTime":[1,"item-created-time"],"appStore":[16],"settings":[32]}],[0,"covet-pics-popup-review",{"rating":[2],"caption":[1],"username":[1],"itemType":[1,"item-type"],"verified":[4],"createdTime":[1,"created-time"],"reviewCSS":[32]},null,{"caption":[{"watchPropHandler":0}]}],[0,"covet-pics-popup-shared-links",{"item":[16],"galleryEmbedId":[2,"gallery-embed-id"],"showShareLink":[32],"copyLinkCopied":[32]}],[1,"covet-pics-checkbox",{"checked":[1540],"label":[1],"value":[1],"disabled":[516],"inputId":[1,"input-id"]}],[0,"covet-pics-popup-slider",{"item":[16],"getSwiperState":[64]}],[1,"covet-pics-select",{"selectId":[1,"select-id"],"optionData":[16],"label":[1],"selectedValue":[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{"appStore":[16],"isCartVisible":[32],"products":[32],"totalAmount":[32],"discount":[32],"totalQuantity":[32],"notAvaliableForSaleKeys":[32]}]]],["covet-pics-gallery-grid_8.cjs",[[1,"covet-pics-popup",{"appStore":[16],"item":[32],"product":[32],"directBuyIsOpen":[32],"settings":[32],"isPreviousEnable":[32],"isNextEnable":[32],"popupIsOpen":[32],"popupIsClosing":[32],"totalQuantity":[32],"openPopup":[64],"closePopup":[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{"item":[{"itemChangedHandler":0}],"popupIsOpen":[{"popupOpenHandler":0}]}],[0,"covet-pics-gallery-grid",{"breakdown":[16],"productTitle":[1,"product-title"],"rating":[2],"filtersEnabled":[4,"filters-enabled"],"filters":[16],"showLoadMore":[4,"show-load-more"],"appStore":[16],"isGridDisabled":[32],"isDesktopScreen":[32],"itemSize":[32],"isFilterModalShow":[32],"items":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{"sliderStyle":[1,"slider-style"],"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{"galleryIndex":[{"changeSlide":0}]}],[0,"covet-pics-gallery-slider-marquee",{"appStore":[16],"itemSize":[32],"items":[32],"galleryIndex":[32],"popupIsOpen":[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{"galleryIndex":[{"changeSlide":0}],"popupIsOpen":[{"onPopupToggle":0}],"items":[{"onItemsChange":0}]}],[1,"covet-pics-popup-freeflow",{"appStore":[16],"settings":[32],"items":[32],"sliderIndex":[32],"popupIsOpen":[32],"openPopupFreeflow":[64],"closePopupFreeflow":[64]},null,{"popupIsOpen":[{"popupOpenHandler":0}],"sliderIndex":[{"updateSliderIndex":0}],"items":[{"updateItems":0}]}],[0,"covet-pics-highlighted",{"numberOfPages":[2,"number-of-pages"],"items":[16],"appStore":[16],"mainSliderIndex":[32],"mainSliderAnimatingSlides":[32],"windowHeight":[32],"isDesktopScreen":[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{"appStore":[16],"notifications":[32],"showAll":[32]}],[1,"covet-pics-upload",{"standalone":[4],"appStore":[16],"starRating":[32],"isFormValid":[32],"showFormWarning":[32],"thumbnailLinks":[32],"toShowLinks":[32],"dropedImagesNumber":[32],"isAnimating":[32],"notificationMessage":[32],"isNotificationActive":[32],"widgetWidth":[32],"uploadIsOpen":[32],"uploadIsClosing":[32],"openUpload":[64],"closeUpload":[64]},null,{"uploadIsOpen":[{"uploadOpenHandler":0}]}]]],["covet-pics-widget.cjs",[[1,"covet-pics-widget",{"shop":[1],"galleryEmbedId":[2,"gallery-embed-id"],"shopifyProductId":[2,"shopify-product-id"],"environment":[1],"baseUrl":[1,"base-url"],"customSettings":[1,"custom-settings"],"hideElements":[1,"hide-elements"],"previewMode":[4,"preview-mode"],"photoRequestId":[2,"photo-request-id"],"lazyLoad":[4,"lazy-load"],"isLoading":[32],"minNumberOfPhotos":[32],"appStore":[32],"fetchingError":[32],"preloadNextPage":[32],"sortSelected":[32],"updateUploadWidgetCoverPreview":[64],"updatePreviewSettings":[64]},[[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{"sortSelected":[{"onSortChange":0}],"preloadNextPage":[{"preloadNextPageHandler":0}]}]]]], options);
13
13
  };
14
14
 
15
15
  exports.setNonce = index.setNonce;
@@ -296,7 +296,7 @@ export class CovetPicsGalleryGrid {
296
296
  return cssVars;
297
297
  }
298
298
  render() {
299
- return (h(Host, { key: '6769be2a3deaf0f33e9be4fd5456b3cc452227e6', role: "region", style: this.setCSSVariables() }, this.settings.show_header && this.renderHeader(), this.filtersEnabled && ["style_1", "style_2"].includes(this.settings.tags_style) && this.renderStandardFilters(), this.filtersEnabled && ["style_3", "style_4"].includes(this.settings.tags_style) && this.renderModalFilters(), h("div", { key: '06946fe79dcaae3413acc956fc4984eb394e4df1', class: `gallery ${this.layout}`, role: "list", "aria-label": `gallery of ${this.items.length} items` }, this.layout === "collage" && h("div", { key: '7de53c94a5b905c5efb82f8f44df0858053d8187', class: "grid-sizer" }), this.layout === "collage" && h("div", { key: 'ec019cf2b6f078a92126f2f66cefa265365f4751', class: "gutter-sizer" }), this.settings.item_style === "standard" && this.items.map((item, idx) => item.source === "upload_widget"
299
+ return (h(Host, { key: '99db91bf47385a1a17081812c89b7e681c9db7df', role: "region", style: this.setCSSVariables() }, this.settings.show_header && this.renderHeader(), this.filtersEnabled && ["style_1", "style_2"].includes(this.settings.tags_style) && this.renderStandardFilters(), this.filtersEnabled && ["style_3", "style_4"].includes(this.settings.tags_style) && this.renderModalFilters(), h("div", { key: 'efa6e58b3e77f55deea27b25f9c3f1371026cd51', class: `gallery ${this.layout}`, role: "list", "aria-label": `gallery of ${this.items.length} items` }, this.layout === "collage" && h("div", { key: 'e6b47298342c5e8172deb472ee79a95db133db2a', class: "grid-sizer" }), this.layout === "collage" && h("div", { key: 'd8e07577abf1a404560cb356c116b07ba231ef75', class: "gutter-sizer" }), this.settings.item_style === "standard" && this.items.map((item, idx) => item.source === "upload_widget"
300
300
  ? this.renderStandardUploadItem(item, idx, this.items.length)
301
301
  : this.renderStandardItem(item, idx, this.items.length)), this.settings.item_style !== "standard" && this.items.map((item, idx) => item.source === "upload_widget"
302
302
  ? this.renderDetailUploadItem(item, idx, this.items.length)
@@ -497,21 +497,6 @@ export class CovetPicsGalleryGrid {
497
497
  "resolved": "any",
498
498
  "references": {}
499
499
  }
500
- }, {
501
- "method": "sortUpdated",
502
- "name": "sortUpdated",
503
- "bubbles": true,
504
- "cancelable": true,
505
- "composed": true,
506
- "docs": {
507
- "tags": [],
508
- "text": "Emitted when Direct Buy is closed"
509
- },
510
- "complexType": {
511
- "original": "any",
512
- "resolved": "any",
513
- "references": {}
514
- }
515
500
  }, {
516
501
  "method": "filtersUpdated",
517
502
  "name": "filtersUpdated",
@@ -318,23 +318,26 @@
318
318
  .sort-btn {
319
319
  background-color: transparent;
320
320
  border: none;
321
- color: #919EAB;
322
- font-size: 14px;
323
321
  display: flex;
324
322
  align-items: center;
325
323
  transition: all 0.3s ease-out;
326
324
  cursor: pointer;
327
325
  }
328
- .sort-btn.header2 {
329
- color: #000000;
330
- }
331
326
  .sort-btn.header3 {
332
327
  border: 1px solid #ECECEC;
333
328
  border-radius: 4px;
334
329
  padding: 8px 14px 8px 14px;
335
330
  margin-left: 10px;
336
331
  }
337
- .sort-btn.header4 {
332
+
333
+ .sort-btn-text {
334
+ color: #919EAB;
335
+ font-size: 14px;
336
+ }
337
+ .sort-btn-text.header2 {
338
+ color: #000000;
339
+ }
340
+ .sort-btn-text.header4 {
338
341
  color: #007ACE;
339
342
  }
340
343
 
@@ -55,7 +55,6 @@ export class CovetPicsGalleryHeader {
55
55
  if (target.getAttribute("aria-selected") === undefined)
56
56
  return false;
57
57
  this.appStore.dispatch(sortUpdated(target.getAttribute("aria-selected")));
58
- this.sortUpdated.emit(target.getAttribute("aria-selected")); //TODO remove this (call this in component use sibscribe)
59
58
  // a11y focus
60
59
  const sortBtn = this.el.querySelector(".sort-btn");
61
60
  sortBtn.focus();
@@ -108,7 +107,7 @@ export class CovetPicsGalleryHeader {
108
107
  const mobileSort = !this.isDesktopScreen && (this.headerType === "header1" || this.headerType === "header4");
109
108
  const iconActiveClass = this.showSortDropdown ? "sort-arrow-down" : "";
110
109
  const mobileSortSelected = mobileSort ? "" : (_a = this.appState.sort.options.find(el => el.value === this.appState.sort.selected)) === null || _a === void 0 ? void 0 : _a.name;
111
- return (h("div", { class: `sorting ${this.headerType}` }, h("span", { class: `sort-title ${this.headerType}` }, "Sort ", mobileSort ? "" : "by", " :"), h("button", { class: `sort-btn ${this.headerType}`, onClick: () => this.showSortDropdown = !this.showSortDropdown, "aria-haspopup": "listbox", "aria-expanded": "false", "aria-labelledby": "dropdown-label dropdown-button", "aria-controls": this.sortSelectId }, h("span", { class: "sort-btn-text" }, mobileSortSelected), this.headerType === "header2" &&
110
+ return (h("div", { class: `sorting ${this.headerType}` }, h("span", { class: `sort-title ${this.headerType}` }, "Sort ", mobileSort ? "" : "by", " :"), h("button", { class: `sort-btn ${this.headerType}`, onClick: () => this.showSortDropdown = !this.showSortDropdown, "aria-haspopup": "listbox", "aria-expanded": "false", "aria-labelledby": "dropdown-label dropdown-button", "aria-controls": this.sortSelectId }, h("span", { class: `sort-btn-text ${this.headerType}` }, mobileSortSelected), this.headerType === "header2" &&
112
111
  h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M4.5791 5.50671C4.37892 5.75887 3.99608 5.75887 3.79589 5.50671L0.663473 1.56088C0.403343 1.2332 0.636699 0.75 1.05508 0.75L7.31992 0.75C7.7383 0.75 7.97166 1.2332 7.71153 1.56088L4.5791 5.50671Z", fill: "#1F273D" })), (this.headerType === "header1" || this.headerType === "header3") &&
113
112
  h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 9 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M4.8916 5.50671C4.69142 5.75887 4.30858 5.75887 4.10839 5.50671L0.380581 0.810878C0.120451 0.483199 0.353806 0 0.772186 0L8.22781 0C8.64619 0 8.87955 0.483199 8.61942 0.810878L4.8916 5.50671Z", fill: "#919EAB" })), this.headerType === "header4" &&
114
113
  h("svg", { class: `sort-arrow ${this.headerType} ${iconActiveClass}`, viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1 1L5 5L9 1", stroke: "#007ACE", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("ul", { id: this.sortSelectId, class: `sort-select ${this.headerType} ${this.showSortDropdown ? "show-sort" : ""}`, role: "listbox", "aria-hidden": `${!this.showSortDropdown}`, "aria-labelledby": "dropdown-label", "aria-activedescendant": "selected-option", tabindex: "-1" }, this.appState.sort.options.map(el => h("li", { class: `sort__dropdown-item ${el.value === this.appState.sort.selected ? "active" : ""}`, "aria-selected": el.value, onClick: this.onSelectUpdate, role: "option" }, h("svg", { class: "sort-check", viewBox: "0 0 12 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M10.7273 1.5L4.72727 7.5L2 4.77273", stroke: "#919EAB", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), el.name)))));
@@ -252,23 +251,5 @@ export class CovetPicsGalleryHeader {
252
251
  "isDesktopScreen": {}
253
252
  };
254
253
  }
255
- static get events() {
256
- return [{
257
- "method": "sortUpdated",
258
- "name": "sortUpdated",
259
- "bubbles": true,
260
- "cancelable": true,
261
- "composed": true,
262
- "docs": {
263
- "tags": [],
264
- "text": "Emitted sortUpdated"
265
- },
266
- "complexType": {
267
- "original": "any",
268
- "resolved": "any",
269
- "references": {}
270
- }
271
- }];
272
- }
273
254
  static get elementRef() { return "el"; }
274
255
  }
@@ -29,13 +29,14 @@ export class CovetPicsWidget {
29
29
  this.isLoading = true;
30
30
  this.fetchingError = null;
31
31
  this.preloadNextPage = false;
32
+ this.sortSelected = "";
32
33
  this.fontsLoaded = false;
33
34
  this.filters = {};
34
35
  this.notificationsEl = null;
35
36
  }
36
- async sortUpdatedHandler(event) {
37
+ async onSortChange(newSortType) {
37
38
  this.loader.resetPagination();
38
- this.loader.sortType = event.detail;
39
+ this.loader.sortType = newSortType;
39
40
  const json = await this.loader.fetchItems();
40
41
  if (typeof json !== "undefined") {
41
42
  this.appStore.dispatch(setItems(this.getItemsWithUpload(json.items)));
@@ -191,9 +192,11 @@ export class CovetPicsWidget {
191
192
  this.appStore.dispatch(setPreviewMode(this.previewMode));
192
193
  this.appState = this.appStore.getState();
193
194
  this.preloadNextPage = isNeedToPreloadNextPage(this.appState);
195
+ this.sortSelected = this.appState.sort.selected;
194
196
  this.unsubscribe = this.appStore.subscribe(() => {
195
197
  this.appState = this.appStore.getState();
196
198
  this.preloadNextPage = isNeedToPreloadNextPage(this.appState);
199
+ this.sortSelected = this.appState.sort.selected;
197
200
  });
198
201
  this.setWidgetWidth();
199
202
  }
@@ -656,7 +659,8 @@ export class CovetPicsWidget {
656
659
  "minNumberOfPhotos": {},
657
660
  "appStore": {},
658
661
  "fetchingError": {},
659
- "preloadNextPage": {}
662
+ "preloadNextPage": {},
663
+ "sortSelected": {}
660
664
  };
661
665
  }
662
666
  static get events() {
@@ -755,18 +759,15 @@ export class CovetPicsWidget {
755
759
  static get elementRef() { return "el"; }
756
760
  static get watchers() {
757
761
  return [{
762
+ "propName": "sortSelected",
763
+ "methodName": "onSortChange"
764
+ }, {
758
765
  "propName": "preloadNextPage",
759
766
  "methodName": "preloadNextPageHandler"
760
767
  }];
761
768
  }
762
769
  static get listeners() {
763
770
  return [{
764
- "name": "sortUpdated",
765
- "method": "sortUpdatedHandler",
766
- "target": undefined,
767
- "capture": false,
768
- "passive": false
769
- }, {
770
771
  "name": "filtersUpdated",
771
772
  "method": "filtersUpdatedHandler",
772
773
  "target": undefined,
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Copyright by Space Squirrel Ltd.
3
3
  */
4
- import{p as e,b as t}from"./p-j4t9dBFC.js";export{s as setNonce}from"./p-j4t9dBFC.js";import{g as i}from"./p-BMxoP_07.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-e4a4d34b",[[1,"covet-pics-post",{postId:[2,"post-id"],environment:[1],item:[32],fetchingError:[32]}]]],["p-a3bd510f",[[1,"covet-pics-star-rating",{rating:[2],ratingCount:[2,"rating-count"],starColor:[1,"star-color"],emptyStarColor:[1,"empty-star-color"],starBorderColor:[1,"star-border-color"],starBorderWidth:[2,"star-border-width"],starSize:[2,"star-size"],spaceStars:[2,"space-stars"],spaceStarsText:[2,"space-stars-text"],showLabel:[4,"show-label"],label:[1]}]]],["p-74b8d833",[[0,"covet-pics-gallery-header",{rating:[2],productTitle:[1,"product-title"],breakdown:[16],appStore:[16],showBreakdownDropdown:[32],showSortDropdown:[32],isDesktopScreen:[32]}]]],["p-5051cf7b",[[0,"covet-pics-highlighted-page",{thumbnailUrl:[1,"thumbnail-url"],thumbnailAlt:[1,"thumbnail-alt"],ariaLabel:[1,"aria-label"],thumbnailLayout:[1,"thumbnail-layout"],videoUrl:[1,"video-url"],videoPoster:[1,"video-poster"],thumbnailCarouselImages:[16],productLinks:[16],productBaseImgAlt:[1,"product-base-img-alt"],reverseClass:[1,"reverse-class"],isMobile:[4,"is-mobile"],pageIndex:[2,"page-index"],caption:[1],rating:[2],createdTime:[1,"created-time"],userName:[1,"user-name"],mainSliderIndex:[2,"main-slider-index"],pageId:[2,"page-id"],appStore:[16],hideHotspots:[32],activeProductIndex:[32],hoverHotspot:[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{links:[16],activeHotspot:[2,"active-hotspot"],thumbnailUrl:[1,"thumbnail-url"],hoverHotspot:[2,"hover-hotspot"],isMobile:[4,"is-mobile"],productBaseImgAlt:[1,"product-base-img-alt"],pageId:[2,"page-id"],appStore:[16]},null,{thumbnailUrl:[{refreshHotspot:0}],activeHotspot:[{activeHotspotHandler:0}]}]]],["p-faf4a921",[[0,"covet-pics-popup-slide",{item:[16],showCaption:[4,"show-caption"],showStarRating:[4,"show-star-rating"],sharedLinkEnable:[4,"shared-link-enable"],dataLoaded:[32],isPlaying:[32],isMuted:[32],carouselIndex:[32],videoProgress:[32],showCarouselVideoControls:[32],loadMedia:[64],videoPlay:[64],videoPause:[64],videoSoundOff:[64],videoSoundOn:[64]}],[0,"covet-pics-popup-freeflow-carousel",{item:[16],isEnabled:[4,"is-enabled"],dataLoaded:[1,"data-loaded"],sliderIndex:[32],videoPlay:[64],videoPause:[64],videoSoundOn:[64],videoSoundOff:[64],pauseAllVideos:[64]},null,{isEnabled:[{enableSlider:0}],dataLoaded:[{lazyLoadMedia:0}],sliderIndex:[{updateSliderIndex:0}]}],[1,"covet-pics-popup-freeflow-links",{links:[16],itemCreatedTime:[1,"item-created-time"],isSliderEnabled:[4,"is-slider-enabled"]},null,{isSliderEnabled:[{enableSlider:0}]}]]],["p-fe02cc6a",[[0,"covet-pics-gallery-item",{altTag:[1,"alt-tag"],highlighted:[4],imageUrl:[1,"image-url"],rating:[2],itemWidth:[2,"item-width"],userName:[1,"user-name"],createdTime:[1,"created-time"],caption:[1],itemType:[1,"item-type"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],itemId:[1,"item-id"],itemSource:[1,"item-source"],links:[16],url:[1],videoUrl:[1,"video-url"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16],tabIndex:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{sliderIndex:[{autoPlayVideos:0}]}],[0,"covet-pics-gallery-item-detail",{altTag:[1,"alt-tag"],highlighted:[4],verified:[4],imageUrl:[1,"image-url"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],videoUrl:[1,"video-url"],itemId:[1,"item-id"],itemSource:[1,"item-source"],itemType:[1,"item-type"],links:[16],url:[1],rating:[2],userName:[1,"user-name"],caption:[1],createdTime:[1,"created-time"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16],tabIndex:[32],captionCSS:[32],reviewClass:[32],starOnlyClass:[32],highlightedClass:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{sliderIndex:[{autoPlayVideos:0}]}],[0,"covet-pics-crop-text",{text:[1],textClass:[1,"text-class"],textColor:[1,"text-color"],ratio:[16],cropCSS:[32]}]]],["p-fa778299",[[0,"covet-pics-direct-buy",{covetProduct:[16],itemId:[1,"item-id"],appStore:[16],settings:[32],selectedVariant:[32],product:[32],options:[32],selectedOptions:[32],shopCartState:[32],isAvailableForSale:[32]}],[0,"covet-pics-hotspots",{links:[16],backgroundColor:[1,"background-color"],textColor:[1,"text-color"],showNumbers:[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{links:[16],greyBorderClass:[1,"grey-border-class"],itemCreatedTime:[1,"item-created-time"],appStore:[16],settings:[32]}],[0,"covet-pics-popup-review",{rating:[2],caption:[1],username:[1],itemType:[1,"item-type"],verified:[4],createdTime:[1,"created-time"],reviewCSS:[32]},null,{caption:[{watchPropHandler:0}]}],[0,"covet-pics-popup-shared-links",{item:[16],galleryEmbedId:[2,"gallery-embed-id"],showShareLink:[32],copyLinkCopied:[32]}],[1,"covet-pics-checkbox",{checked:[1540],label:[1],value:[1],disabled:[516],inputId:[1,"input-id"]}],[0,"covet-pics-popup-slider",{item:[16],getSwiperState:[64]}],[1,"covet-pics-select",{selectId:[1,"select-id"],optionData:[16],label:[1],selectedValue:[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{appStore:[16],isCartVisible:[32],products:[32],totalAmount:[32],discount:[32],totalQuantity:[32],notAvaliableForSaleKeys:[32]}]]],["p-8aa30ee1",[[1,"covet-pics-popup",{appStore:[16],item:[32],product:[32],directBuyIsOpen:[32],settings:[32],isPreviousEnable:[32],isNextEnable:[32],popupIsOpen:[32],popupIsClosing:[32],totalQuantity:[32],openPopup:[64],closePopup:[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{item:[{itemChangedHandler:0}],popupIsOpen:[{popupOpenHandler:0}]}],[0,"covet-pics-gallery-grid",{breakdown:[16],productTitle:[1,"product-title"],rating:[2],filtersEnabled:[4,"filters-enabled"],filters:[16],showLoadMore:[4,"show-load-more"],appStore:[16],isGridDisabled:[32],isDesktopScreen:[32],itemSize:[32],isFilterModalShow:[32],items:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{sliderStyle:[1,"slider-style"],appStore:[16],itemSize:[32],items:[32],galleryIndex:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{galleryIndex:[{changeSlide:0}]}],[0,"covet-pics-gallery-slider-marquee",{appStore:[16],itemSize:[32],items:[32],galleryIndex:[32],popupIsOpen:[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{galleryIndex:[{changeSlide:0}],popupIsOpen:[{onPopupToggle:0}],items:[{onItemsChange:0}]}],[1,"covet-pics-popup-freeflow",{appStore:[16],settings:[32],items:[32],sliderIndex:[32],popupIsOpen:[32],openPopupFreeflow:[64],closePopupFreeflow:[64]},null,{popupIsOpen:[{popupOpenHandler:0}],sliderIndex:[{updateSliderIndex:0}],items:[{updateItems:0}]}],[0,"covet-pics-highlighted",{numberOfPages:[2,"number-of-pages"],items:[16],appStore:[16],mainSliderIndex:[32],mainSliderAnimatingSlides:[32],windowHeight:[32],isDesktopScreen:[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{appStore:[16],notifications:[32],showAll:[32]}],[1,"covet-pics-upload",{standalone:[4],appStore:[16],starRating:[32],isFormValid:[32],showFormWarning:[32],thumbnailLinks:[32],toShowLinks:[32],dropedImagesNumber:[32],isAnimating:[32],notificationMessage:[32],isNotificationActive:[32],widgetWidth:[32],uploadIsOpen:[32],uploadIsClosing:[32],openUpload:[64],closeUpload:[64]},null,{uploadIsOpen:[{uploadOpenHandler:0}]}]]],["p-05a15d52",[[1,"covet-pics-widget",{shop:[1],galleryEmbedId:[2,"gallery-embed-id"],shopifyProductId:[2,"shopify-product-id"],environment:[1],baseUrl:[1,"base-url"],customSettings:[1,"custom-settings"],hideElements:[1,"hide-elements"],previewMode:[4,"preview-mode"],photoRequestId:[2,"photo-request-id"],lazyLoad:[4,"lazy-load"],isLoading:[32],minNumberOfPhotos:[32],appStore:[32],fetchingError:[32],preloadNextPage:[32],updateUploadWidgetCoverPreview:[64],updatePreviewSettings:[64]},[[0,"sortUpdated","sortUpdatedHandler"],[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{preloadNextPage:[{preloadNextPageHandler:0}]}]]]],e))));
4
+ import{p as e,b as t}from"./p-j4t9dBFC.js";export{s as setNonce}from"./p-j4t9dBFC.js";import{g as i}from"./p-BMxoP_07.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-e4a4d34b",[[1,"covet-pics-post",{postId:[2,"post-id"],environment:[1],item:[32],fetchingError:[32]}]]],["p-a3bd510f",[[1,"covet-pics-star-rating",{rating:[2],ratingCount:[2,"rating-count"],starColor:[1,"star-color"],emptyStarColor:[1,"empty-star-color"],starBorderColor:[1,"star-border-color"],starBorderWidth:[2,"star-border-width"],starSize:[2,"star-size"],spaceStars:[2,"space-stars"],spaceStarsText:[2,"space-stars-text"],showLabel:[4,"show-label"],label:[1]}]]],["p-eabd65e0",[[0,"covet-pics-gallery-header",{rating:[2],productTitle:[1,"product-title"],breakdown:[16],appStore:[16],showBreakdownDropdown:[32],showSortDropdown:[32],isDesktopScreen:[32]}]]],["p-5051cf7b",[[0,"covet-pics-highlighted-page",{thumbnailUrl:[1,"thumbnail-url"],thumbnailAlt:[1,"thumbnail-alt"],ariaLabel:[1,"aria-label"],thumbnailLayout:[1,"thumbnail-layout"],videoUrl:[1,"video-url"],videoPoster:[1,"video-poster"],thumbnailCarouselImages:[16],productLinks:[16],productBaseImgAlt:[1,"product-base-img-alt"],reverseClass:[1,"reverse-class"],isMobile:[4,"is-mobile"],pageIndex:[2,"page-index"],caption:[1],rating:[2],createdTime:[1,"created-time"],userName:[1,"user-name"],mainSliderIndex:[2,"main-slider-index"],pageId:[2,"page-id"],appStore:[16],hideHotspots:[32],activeProductIndex:[32],hoverHotspot:[32]},[[0,"changeActiveHotspot","onChangeActiveHotspot"]]],[0,"covet-pics-highlighted-hotspots",{links:[16],activeHotspot:[2,"active-hotspot"],thumbnailUrl:[1,"thumbnail-url"],hoverHotspot:[2,"hover-hotspot"],isMobile:[4,"is-mobile"],productBaseImgAlt:[1,"product-base-img-alt"],pageId:[2,"page-id"],appStore:[16]},null,{thumbnailUrl:[{refreshHotspot:0}],activeHotspot:[{activeHotspotHandler:0}]}]]],["p-faf4a921",[[0,"covet-pics-popup-slide",{item:[16],showCaption:[4,"show-caption"],showStarRating:[4,"show-star-rating"],sharedLinkEnable:[4,"shared-link-enable"],dataLoaded:[32],isPlaying:[32],isMuted:[32],carouselIndex:[32],videoProgress:[32],showCarouselVideoControls:[32],loadMedia:[64],videoPlay:[64],videoPause:[64],videoSoundOff:[64],videoSoundOn:[64]}],[0,"covet-pics-popup-freeflow-carousel",{item:[16],isEnabled:[4,"is-enabled"],dataLoaded:[1,"data-loaded"],sliderIndex:[32],videoPlay:[64],videoPause:[64],videoSoundOn:[64],videoSoundOff:[64],pauseAllVideos:[64]},null,{isEnabled:[{enableSlider:0}],dataLoaded:[{lazyLoadMedia:0}],sliderIndex:[{updateSliderIndex:0}]}],[1,"covet-pics-popup-freeflow-links",{links:[16],itemCreatedTime:[1,"item-created-time"],isSliderEnabled:[4,"is-slider-enabled"]},null,{isSliderEnabled:[{enableSlider:0}]}]]],["p-fe02cc6a",[[0,"covet-pics-gallery-item",{altTag:[1,"alt-tag"],highlighted:[4],imageUrl:[1,"image-url"],rating:[2],itemWidth:[2,"item-width"],userName:[1,"user-name"],createdTime:[1,"created-time"],caption:[1],itemType:[1,"item-type"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],itemId:[1,"item-id"],itemSource:[1,"item-source"],links:[16],url:[1],videoUrl:[1,"video-url"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16],tabIndex:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"]],{sliderIndex:[{autoPlayVideos:0}]}],[0,"covet-pics-gallery-item-detail",{altTag:[1,"alt-tag"],highlighted:[4],verified:[4],imageUrl:[1,"image-url"],imageHighResolutionUrl:[1,"image-high-resolution-url"],imageResponsiveSizes:[1,"image-responsive-sizes"],videoUrl:[1,"video-url"],itemId:[1,"item-id"],itemSource:[1,"item-source"],itemType:[1,"item-type"],links:[16],url:[1],rating:[2],userName:[1,"user-name"],caption:[1],createdTime:[1,"created-time"],itemIndex:[2,"item-index"],itemSize:[1,"item-size"],appStore:[16],tabIndex:[32],captionCSS:[32],reviewClass:[32],starOnlyClass:[32],highlightedClass:[32],sliderIndex:[32],showImageAsVideoPoster:[32]},[[10,"updateUploadWidgetCover","updateUploadWidgetCoverHandler"],[8,"elementResize","elementResizeHandler"]],{sliderIndex:[{autoPlayVideos:0}]}],[0,"covet-pics-crop-text",{text:[1],textClass:[1,"text-class"],textColor:[1,"text-color"],ratio:[16],cropCSS:[32]}]]],["p-fa778299",[[0,"covet-pics-direct-buy",{covetProduct:[16],itemId:[1,"item-id"],appStore:[16],settings:[32],selectedVariant:[32],product:[32],options:[32],selectedOptions:[32],shopCartState:[32],isAvailableForSale:[32]}],[0,"covet-pics-hotspots",{links:[16],backgroundColor:[1,"background-color"],textColor:[1,"text-color"],showNumbers:[4,"show-numbers"]},[[0,"linkInactivate","linkInactivateHandler"],[0,"linkActivate","linkActivateHandler"]]],[0,"covet-pics-popup-links",{links:[16],greyBorderClass:[1,"grey-border-class"],itemCreatedTime:[1,"item-created-time"],appStore:[16],settings:[32]}],[0,"covet-pics-popup-review",{rating:[2],caption:[1],username:[1],itemType:[1,"item-type"],verified:[4],createdTime:[1,"created-time"],reviewCSS:[32]},null,{caption:[{watchPropHandler:0}]}],[0,"covet-pics-popup-shared-links",{item:[16],galleryEmbedId:[2,"gallery-embed-id"],showShareLink:[32],copyLinkCopied:[32]}],[1,"covet-pics-checkbox",{checked:[1540],label:[1],value:[1],disabled:[516],inputId:[1,"input-id"]}],[0,"covet-pics-popup-slider",{item:[16],getSwiperState:[64]}],[1,"covet-pics-select",{selectId:[1,"select-id"],optionData:[16],label:[1],selectedValue:[1,"selected-value"]},[[9,"mousedown","handleClickOutside"]]],[1,"covet-pics-shop-cart",{appStore:[16],isCartVisible:[32],products:[32],totalAmount:[32],discount:[32],totalQuantity:[32],notAvaliableForSaleKeys:[32]}]]],["p-895aa17c",[[1,"covet-pics-popup",{appStore:[16],item:[32],product:[32],directBuyIsOpen:[32],settings:[32],isPreviousEnable:[32],isNextEnable:[32],popupIsOpen:[32],popupIsClosing:[32],totalQuantity:[32],openPopup:[64],closePopup:[64]},[[16,"productLinkClicked","productLinkClickedHandler"]],{item:[{itemChangedHandler:0}],popupIsOpen:[{popupOpenHandler:0}]}],[0,"covet-pics-gallery-grid",{breakdown:[16],productTitle:[1,"product-title"],rating:[2],filtersEnabled:[4,"filters-enabled"],filters:[16],showLoadMore:[4,"show-load-more"],appStore:[16],isGridDisabled:[32],isDesktopScreen:[32],itemSize:[32],isFilterModalShow:[32],items:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[9,"mousedown","handleClickOutside"],[0,"itemLoaded","handleItemLoaded"]]],[0,"covet-pics-gallery-slider",{sliderStyle:[1,"slider-style"],appStore:[16],itemSize:[32],items:[32],galleryIndex:[32]},[[0,"imageLoaded","imagesLoadedHandler"],[8,"elementResize","elementResizeHandler"],[0,"itemLoaded","handleItemLoaded"]],{galleryIndex:[{changeSlide:0}]}],[0,"covet-pics-gallery-slider-marquee",{appStore:[16],itemSize:[32],items:[32],galleryIndex:[32],popupIsOpen:[32]},[[1,"pointerenter","onPointerEnter"],[1,"pointerleave","onPointerLeave"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"]],{galleryIndex:[{changeSlide:0}],popupIsOpen:[{onPopupToggle:0}],items:[{onItemsChange:0}]}],[1,"covet-pics-popup-freeflow",{appStore:[16],settings:[32],items:[32],sliderIndex:[32],popupIsOpen:[32],openPopupFreeflow:[64],closePopupFreeflow:[64]},null,{popupIsOpen:[{popupOpenHandler:0}],sliderIndex:[{updateSliderIndex:0}],items:[{updateItems:0}]}],[0,"covet-pics-highlighted",{numberOfPages:[2,"number-of-pages"],items:[16],appStore:[16],mainSliderIndex:[32],mainSliderAnimatingSlides:[32],windowHeight:[32],isDesktopScreen:[32]},[[0,"pageLoaded","handleItemLoaded"],[0,"keydown","handleKeydown"]]],[1,"covet-pics-notifications",{appStore:[16],notifications:[32],showAll:[32]}],[1,"covet-pics-upload",{standalone:[4],appStore:[16],starRating:[32],isFormValid:[32],showFormWarning:[32],thumbnailLinks:[32],toShowLinks:[32],dropedImagesNumber:[32],isAnimating:[32],notificationMessage:[32],isNotificationActive:[32],widgetWidth:[32],uploadIsOpen:[32],uploadIsClosing:[32],openUpload:[64],closeUpload:[64]},null,{uploadIsOpen:[{uploadOpenHandler:0}]}]]],["p-fc0a59c8",[[1,"covet-pics-widget",{shop:[1],galleryEmbedId:[2,"gallery-embed-id"],shopifyProductId:[2,"shopify-product-id"],environment:[1],baseUrl:[1,"base-url"],customSettings:[1,"custom-settings"],hideElements:[1,"hide-elements"],previewMode:[4,"preview-mode"],photoRequestId:[2,"photo-request-id"],lazyLoad:[4,"lazy-load"],isLoading:[32],minNumberOfPhotos:[32],appStore:[32],fetchingError:[32],preloadNextPage:[32],sortSelected:[32],updateUploadWidgetCoverPreview:[64],updatePreviewSettings:[64]},[[0,"filtersUpdated","filtersUpdatedHandler"],[0,"nextPage","nextPageHandler"],[4,"popupFreeflowNextPage","nextPageHandlerFreeflow"]],{sortSelected:[{onSortChange:0}],preloadNextPage:[{preloadNextPageHandler:0}]}]]]],e))));