@covet-pics/covet-pics-widget 0.178.1 → 0.178.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/covet-pics-checkbox_9.cjs.entry.js +22 -20
- package/dist/cjs/covet-pics-crop-text_3.cjs.entry.js +824 -0
- package/dist/cjs/{covet-pics-gallery-grid_7.cjs.entry.js → covet-pics-gallery-grid_8.cjs.entry.js} +321 -35
- package/dist/cjs/covet-pics-gallery-header.cjs.entry.js +153 -0
- package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +9 -10
- package/dist/cjs/covet-pics-popup-freeflow-carousel_3.cjs.entry.js +19 -4
- package/dist/cjs/covet-pics-post.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-star-rating.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-widget.cjs.entry.js +32 -28
- package/dist/cjs/covet-pics-widget.cjs.js +1 -1
- package/dist/cjs/{getters-QyYi8Ngl.js → getters-Bflb753X.js} +1 -1
- package/dist/cjs/{items-B3AeIY3-.js → items-BO_h2wDO.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/popup-rW3mI8Bp.js +139 -0
- package/dist/cjs/{popup-BVFSZKpR.js → redux-toolkit.modern-w9CXZaGb.js} +0 -132
- package/dist/cjs/{shopcart-CCGo88U5.js → shopcart-61IYQW_5.js} +9 -9
- package/dist/cjs/{slider-CQsZjgRs.js → slider-DjbwBz8s.js} +3 -3
- package/dist/cjs/{sort-Cokh5MAe.js → sort-D8WiIXAa.js} +2 -2
- package/dist/cjs/{storeUtils-sFXfLcFp.js → storeUtils-hM8egDhh.js} +13 -14
- package/dist/cjs/{utils-CkIicOF2.js → utils-BAxT9Oy2.js} +37 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/covet-pics-crop-text/covet-pics-crop-text.js +1 -1
- package/dist/collection/components/covet-pics-direct-buy/covet-pics-direct-buy.js +9 -6
- package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js +22 -14
- package/dist/collection/components/covet-pics-gallery-header/covet-pics-gallery-header.js +16 -10
- package/dist/collection/components/covet-pics-gallery-item/covet-pics-gallery-item.css +2 -2
- package/dist/collection/components/covet-pics-gallery-item/covet-pics-gallery-item.js +13 -8
- package/dist/collection/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.css +1 -1
- package/dist/collection/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.js +13 -8
- package/dist/collection/components/covet-pics-gallery-slider/covet-material.js +3 -0
- package/dist/collection/components/covet-pics-gallery-slider/covet-pics-gallery-slider.js +11 -8
- package/dist/collection/components/covet-pics-gallery-slider-marquee/covet-pics-gallery-slider-marquee.css +54 -0
- package/dist/collection/components/covet-pics-gallery-slider-marquee/covet-pics-gallery-slider-marquee.js +375 -0
- package/dist/collection/components/covet-pics-gallery-slider-marquee/test/test-data.js +816 -0
- package/dist/collection/components/covet-pics-highlighted/covet-pics-highlighted-hotspots.js +15 -10
- package/dist/collection/components/covet-pics-highlighted/covet-pics-highlighted-page.js +22 -16
- package/dist/collection/components/covet-pics-highlighted/covet-pics-highlighted.js +14 -11
- package/dist/collection/components/covet-pics-hotspots/covet-pics-hotspots.js +10 -8
- package/dist/collection/components/covet-pics-notifications/covet-pics-notifications.js +6 -3
- package/dist/collection/components/covet-pics-popup/covet-pics-popup-review.js +1 -1
- package/dist/collection/components/covet-pics-popup/covet-pics-popup-slider.js +2 -2
- package/dist/collection/components/covet-pics-popup/covet-pics-popup.js +11 -8
- package/dist/collection/components/covet-pics-popup-freeflow/covet-pics-popup-freeflow-carousel.js +1 -1
- package/dist/collection/components/covet-pics-popup-freeflow/covet-pics-popup-freeflow-links.js +9 -7
- package/dist/collection/components/covet-pics-popup-freeflow/covet-pics-popup-freeflow.js +8 -5
- package/dist/collection/components/covet-pics-popup-freeflow/covet-pics-popup-slide.js +21 -6
- package/dist/collection/components/covet-pics-popup-links/covet-pics-popup-links.js +14 -9
- package/dist/collection/components/covet-pics-select/covet-pics-select.js +3 -2
- package/dist/collection/components/covet-pics-shop-cart/covet-pics-shop-cart.js +7 -4
- package/dist/collection/components/covet-pics-upload/covet-pics-upload.js +13 -8
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.css +2 -0
- package/dist/collection/components/covet-pics-widget/covet-pics-widget.js +18 -7
- package/dist/collection/store/settings.js +4 -6
- package/dist/collection/store/storeUtils.js +13 -14
- package/dist/collection/utils/utils.js +36 -0
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/{p-6a0cbffe.entry.js → p-058819df.entry.js} +1 -1
- package/dist/covet-pics-widget/p-2a1a5547.entry.js +4 -0
- package/dist/covet-pics-widget/p-72dc2387.entry.js +4 -0
- package/dist/covet-pics-widget/p-78af2ec7.entry.js +47 -0
- package/dist/covet-pics-widget/{p-7839df1a.entry.js → p-83f01638.entry.js} +1 -1
- package/dist/covet-pics-widget/p-965f3aca.entry.js +4 -0
- package/dist/covet-pics-widget/p-9de45b1a.entry.js +4 -0
- package/dist/covet-pics-widget/p-B2Dh8Prt.js +4 -0
- package/dist/covet-pics-widget/p-Bvh9529q.js +4 -0
- package/dist/covet-pics-widget/{p-62BBe1im.js → p-CeKs8AJm.js} +1 -1
- package/dist/covet-pics-widget/{p-DbCFwUJI.js → p-ChNKaWW0.js} +1 -1
- package/dist/covet-pics-widget/{p-Ctzj3V36.js → p-DEgZhBLj.js} +1 -1
- package/dist/covet-pics-widget/p-DbGL3AgT.js +4 -0
- package/dist/covet-pics-widget/{p-7c-kGfSw.js → p-DdXWzXPb.js} +1 -1
- package/dist/covet-pics-widget/p-Q5FVHPvW.js +4 -0
- package/dist/covet-pics-widget/p-a61bbf1e.entry.js +4 -0
- package/dist/covet-pics-widget/{p-3c4db5fe.entry.js → p-cda1855e.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-CDNNuZFa.js → p-jkAtTCbL.js} +1 -1
- package/dist/esm/covet-pics-checkbox_9.entry.js +22 -20
- package/dist/esm/covet-pics-crop-text_3.entry.js +820 -0
- package/dist/esm/{covet-pics-gallery-grid_7.entry.js → covet-pics-gallery-grid_8.entry.js} +321 -36
- package/dist/esm/covet-pics-gallery-header.entry.js +151 -0
- package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +9 -10
- package/dist/esm/covet-pics-popup-freeflow-carousel_3.entry.js +19 -4
- package/dist/esm/covet-pics-post.entry.js +1 -1
- package/dist/esm/covet-pics-star-rating.entry.js +1 -1
- package/dist/esm/covet-pics-widget.entry.js +24 -20
- package/dist/esm/covet-pics-widget.js +1 -1
- package/dist/esm/{getters-Ehdd87SV.js → getters-3-GuC23j.js} +1 -1
- package/dist/esm/{items-Dy93qdDG.js → items-Cv51aJUO.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/popup-CyzNdJEC.js +121 -0
- package/dist/esm/{popup-DmQr4L6B.js → redux-toolkit.modern-DbGL3AgT.js} +1 -116
- package/dist/esm/{shopcart-BioChXjk.js → shopcart-B2un-eKM.js} +3 -3
- package/dist/esm/{slider-B7uA_9b5.js → slider-StD5vjav.js} +1 -1
- package/dist/esm/{sort-ANNkroCm.js → sort-DyOe3hn7.js} +1 -1
- package/dist/esm/{storeUtils-Mc-D_Wnh.js → storeUtils-B2Dh8Prt.js} +13 -14
- package/dist/esm/{utils-Ctzj3V36.js → utils-DEgZhBLj.js} +37 -1
- package/dist/types/components/covet-pics-crop-text/covet-pics-crop-text.d.ts +2 -3
- package/dist/types/components/covet-pics-direct-buy/covet-pics-direct-buy.d.ts +1 -0
- package/dist/types/components/covet-pics-gallery-grid/covet-pics-gallery-grid.d.ts +5 -4
- package/dist/types/components/covet-pics-gallery-header/covet-pics-gallery-header.d.ts +3 -1
- package/dist/types/components/covet-pics-gallery-item/covet-pics-gallery-item.d.ts +5 -3
- package/dist/types/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.d.ts +6 -6
- package/dist/types/components/covet-pics-gallery-slider/covet-material.d.ts +6 -4
- package/dist/types/components/covet-pics-gallery-slider/covet-pics-gallery-slider.d.ts +5 -3
- package/dist/types/components/covet-pics-gallery-slider-marquee/covet-pics-gallery-slider-marquee.d.ts +67 -0
- package/dist/types/components/covet-pics-gallery-slider-marquee/test/test-data.d.ts +335 -0
- package/dist/types/components/covet-pics-highlighted/covet-pics-highlighted-hotspots.d.ts +3 -1
- package/dist/types/components/covet-pics-highlighted/covet-pics-highlighted-page.d.ts +7 -4
- package/dist/types/components/covet-pics-highlighted/covet-pics-highlighted.d.ts +4 -3
- package/dist/types/components/covet-pics-hotspots/covet-pics-hotspots.d.ts +2 -1
- package/dist/types/components/covet-pics-notifications/covet-pics-notifications.d.ts +3 -2
- package/dist/types/components/covet-pics-popup/covet-pics-popup-review.d.ts +2 -3
- package/dist/types/components/covet-pics-popup/covet-pics-popup.d.ts +3 -2
- package/dist/types/components/covet-pics-popup-freeflow/covet-pics-popup-freeflow-links.d.ts +6 -2
- package/dist/types/components/covet-pics-popup-freeflow/covet-pics-popup-freeflow.d.ts +2 -1
- package/dist/types/components/covet-pics-popup-freeflow/covet-pics-popup-slide.d.ts +17 -2
- package/dist/types/components/covet-pics-popup-links/covet-pics-popup-links.d.ts +6 -2
- package/dist/types/components/covet-pics-post/covet-pics-post.d.ts +2 -1
- package/dist/types/components/covet-pics-shop-cart/covet-pics-shop-cart.d.ts +1 -0
- package/dist/types/components/covet-pics-upload/covet-pics-upload.d.ts +1 -0
- package/dist/types/components/covet-pics-upload/uppy-adapter.d.ts +5 -2
- package/dist/types/components/covet-pics-widget/covet-pics-widget.d.ts +5 -3
- package/dist/types/components.d.ts +91 -84
- package/dist/types/services/gallery-loader-service.d.ts +3 -2
- package/dist/types/store/configureStore.d.ts +2 -2
- package/dist/types/store/popup.d.ts +2 -2
- package/dist/types/store/reducer.d.ts +2 -2
- package/dist/types/store/storeUtils.d.ts +4 -4
- package/dist/types/utils/slider.d.ts +2 -1
- package/dist/types/utils/types.d.ts +63 -12
- package/dist/types/utils/utils.d.ts +2 -0
- package/package.json +3 -2
- package/dist/cjs/covet-pics-crop-text.cjs.entry.js +0 -102
- package/dist/cjs/covet-pics-gallery-header_3.cjs.entry.js +0 -871
- package/dist/covet-pics-widget/p-00ea874d.entry.js +0 -4
- package/dist/covet-pics-widget/p-26abe93a.entry.js +0 -4
- package/dist/covet-pics-widget/p-6a4435af.entry.js +0 -4
- package/dist/covet-pics-widget/p-7a9f2f76.entry.js +0 -4
- package/dist/covet-pics-widget/p-80545a67.entry.js +0 -4
- package/dist/covet-pics-widget/p-C2ts5xN0.js +0 -4
- package/dist/covet-pics-widget/p-DmQr4L6B.js +0 -4
- package/dist/covet-pics-widget/p-Mc-D_Wnh.js +0 -4
- package/dist/covet-pics-widget/p-e25182e5.entry.js +0 -47
- package/dist/esm/covet-pics-crop-text.entry.js +0 -100
- package/dist/esm/covet-pics-gallery-header_3.entry.js +0 -867
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
6
6
|
var index = require('./index-CgoVQsIV.js');
|
|
7
|
-
var utils = require('./utils-
|
|
8
|
-
var popup = require('./popup-
|
|
9
|
-
var shopcart = require('./shopcart-
|
|
10
|
-
var getters = require('./getters-
|
|
11
|
-
var storeUtils = require('./storeUtils-
|
|
7
|
+
var utils = require('./utils-BAxT9Oy2.js');
|
|
8
|
+
var popup = require('./popup-rW3mI8Bp.js');
|
|
9
|
+
var shopcart = require('./shopcart-61IYQW_5.js');
|
|
10
|
+
var getters = require('./getters-Bflb753X.js');
|
|
11
|
+
var storeUtils = require('./storeUtils-hM8egDhh.js');
|
|
12
12
|
var funcComponents = require('./funcComponents-BpB42VvA.js');
|
|
13
13
|
var index$1 = require('./index-BMdsVEom.js');
|
|
14
14
|
var popupFuncComponents = require('./popupFuncComponents-C-BjCf1Q.js');
|
|
15
15
|
var slider = require('./slider-Yd_vzJhP.js');
|
|
16
16
|
var a11y = require('./a11y-BaxqETeA.js');
|
|
17
17
|
var navigation = require('./navigation-CvIgF3Cf.js');
|
|
18
|
+
require('./redux-toolkit.modern-w9CXZaGb.js');
|
|
18
19
|
|
|
19
20
|
const covetPicsCheckboxCss = () => `:host{display:block;border:1px solid #000000;padding:8px;font-weight:700;background-color:#FFFFFF;color:#000000;margin-top:4px;cursor:pointer;transition:color 0.25s ease, background-color 0.25s ease;box-sizing:border-box;overflow:hidden;max-width:calc(100% - 8px);min-width:0}:host .input{position:absolute;width:0;height:0;top:0;left:0;opacity:0}:host .label{display:block;font-size:16px;cursor:pointer;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([aria-checked=true]){color:#FFFFFF;background-color:#000000}`;
|
|
20
21
|
|
|
@@ -403,16 +404,16 @@ const CovetPicsDirectBuy = class {
|
|
|
403
404
|
}
|
|
404
405
|
render() {
|
|
405
406
|
var _a, _b, _c;
|
|
406
|
-
return (index.h(index.Host, { key: '
|
|
407
|
+
return (index.h(index.Host, { key: '364f386a7d757506fd3da8172a29a5822ef1d313', style: this.itemCSSVariables }, index.h("button", { key: '4358200e2abe9adf5c1e00bf2374c736c5331072', class: "close", onClick: this.closeClickHandler, tabindex: "0", "aria-label": "Direct buy close", type: "button" }, index.h(funcComponents.IconDirectBuyClose, { key: 'a7c4feab241744e025f0a61ffc4266ba45832372', iconClass: "icon-close" })), index.h("div", { key: 'bb10ead2d02deb597664483d5392da88467a3edd', class: "wrap" }, this.product && (index.h("div", { key: 'b26439a37a3801133ffe052aecc206546182c184', class: "main" }, index.h("h2", { key: 'ee8295e7b04e0b020228e444d9d7c7bfbedd7b33', class: "title" }, index.h("a", { key: '895e44aec734cd95e38dd6cb63323a0d40f9683d', class: "link-title", href: this.product.onlineStoreUrl, target: "_blank", "aria-label": `Link to '${this.product.title}'` }, this.product.title)), index.h("div", { key: 'd25af476cbfde1f5f38cb742d072d25e7e2a9398', class: "product-preview" }, index.h("div", { key: 'f0ada16577c6d3493d2283d3bb92a56308107c95', class: "preview-slide active" }, ((_a = this.selectedVariant) === null || _a === void 0 ? void 0 : _a.image)
|
|
407
408
|
? index.h("img", { src: this.selectedVariant.image.url, alt: this.selectedVariant.image.altText, class: "image" })
|
|
408
409
|
: index.h("img", { src: (_b = this.product.images.nodes[0]) === null || _b === void 0 ? void 0 : _b.url, alt: (_c = this.product.images.nodes[0]) === null || _c === void 0 ? void 0 : _c.altText, class: "image" }))), this.renderProductSlider(), this.selectedVariant &&
|
|
409
|
-
index.h("div", { key: '
|
|
410
|
+
index.h("div", { key: '0b7ca9092bede6988a6bfe34e25ddc0f4e15cc4a', class: "options" }, this.options.map((option) => {
|
|
410
411
|
if (option.optionValues.length < 2)
|
|
411
412
|
return null;
|
|
412
413
|
return option.optionValues.length < 4 ? this.renderCheckbox(option) : this.renderSelect(option);
|
|
413
414
|
})))), this.product &&
|
|
414
|
-
index.h("div", { key: '
|
|
415
|
-
index.h("div", { key: '
|
|
415
|
+
index.h("div", { key: '6bf8cc133bfc7a5a5b01e97367cc3bf7e22b9386', class: "footer" }, this.selectedVariant &&
|
|
416
|
+
index.h("div", { key: '21427f89745e2615e0a4c916bebc6c44bcac2e8b', class: "price-wrap" }, index.h("label", { key: '3ff68ac8c6e83c8b02f3c56753ef7d6738e81a42', class: "price-label" }, this.settings.price_label_caption), index.h("p", { key: '21a44c1152b02a495d11a0e4dbd49f43018c977f', class: "price-text" }, utils.formatMoneyNew(this.selectedVariant.price, `${this.shopCartState.locale.language}-${this.shopCartState.locale.country}`))), index.h("button", { key: 'c126a2d392066704f06171e1f5fdd3bc69a22448', onClick: this.addToCartClickHandler, class: `btn-buy btn-add-to-cart ${this.settings._buyButtonStyle}`, "aria-label": "Add to cart", innerHTML: this.selectedVariant ? this.settings.add_to_cart_button_caption : "out of stock", disabled: !this.isAvailableForSale || !this.selectedVariant, type: "button" })))));
|
|
416
417
|
}
|
|
417
418
|
get el() { return index.getElement(this); }
|
|
418
419
|
};
|
|
@@ -3763,8 +3764,8 @@ const CovetPicsHotspots = class {
|
|
|
3763
3764
|
}
|
|
3764
3765
|
getPositionForLink(link) {
|
|
3765
3766
|
return {
|
|
3766
|
-
"left": (link.position_x * 100).toString() + "%",
|
|
3767
|
-
"top": (link.position_y * 100).toString() + "%"
|
|
3767
|
+
"left": (Number(link.position_x) * 100).toString() + "%",
|
|
3768
|
+
"top": (Number(link.position_y) * 100).toString() + "%"
|
|
3768
3769
|
};
|
|
3769
3770
|
}
|
|
3770
3771
|
initTooltips() {
|
|
@@ -3776,7 +3777,7 @@ const CovetPicsHotspots = class {
|
|
|
3776
3777
|
});
|
|
3777
3778
|
}
|
|
3778
3779
|
render() {
|
|
3779
|
-
return (index.h(index.Host, { key: '
|
|
3780
|
+
return (index.h(index.Host, { key: 'bee7c020f10546f7d5d6e99c15c9853d5d134547', class: { "show-hotspot-numbers": this.showNumbers }, style: this.getItemCSSVariables() }, this.links.map(link => index.h("a", { class: "hotspot", tabindex: "0", href: link.link, target: "_top", style: this.getPositionForLink(link), "data-link-id": link.id, "data-tippy-content": `<span class="product-title">${link.title}</span><span class="price">${link.prices ? link.prices.price_label : ""} ></span>`, "aria-label": `Hotspot link to '${link.title}'` }, index.h("span", { class: "pulse" })))));
|
|
3780
3781
|
}
|
|
3781
3782
|
get el() { return index.getElement(this); }
|
|
3782
3783
|
};
|
|
@@ -3872,7 +3873,7 @@ const CovetPicsPopupLinks = class {
|
|
|
3872
3873
|
// TODO: check buttonStyle this old todo (style-3 -> not implanted yet)
|
|
3873
3874
|
const buttonStyle = this.settings.popup_buy_button_style.replace("buy_btn_", "").replace("_", "-");
|
|
3874
3875
|
const linkStyle = this.settings.popup_products_view_type.replace("_view", "");
|
|
3875
|
-
return (index.h("ul", { key: '
|
|
3876
|
+
return (index.h("ul", { key: 'fe57f16f2ca9ea699a3ad76171e9702efc679e61', class: `links ${linkStyle} ${this.greyBorderClass} links-${this.links.length.toString()}`, style: this.getItemCSSVariables(), role: "list" }, this.links.map((link, idx) => index.h("li", { class: "product", "data-link-id": link.id, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, role: "listitem" }, index.h("a", { class: "product-link", target: link.new_tab ? "_blank" : "_top", "data-ga-campaign": link.title, href: link.link, "aria-label": this.getProductLinkLabel(link), role: "link" }, index.h("div", { class: "img-wrap" }, this.renderLinkImage(link, idx, this.links.length)), index.h("div", { class: "product-details" }, index.h("span", { class: "product-title" }, link.title), this.settings.show_price_in_popup && link.prices &&
|
|
3876
3877
|
index.h("span", { class: "product-price", innerHTML: link.prices.price_label }), this.settings.show_price_in_popup && link.prices && link.prices.is_on_sale &&
|
|
3877
3878
|
index.h("span", { class: "product-price product-sale", innerHTML: link.prices.sale_price }))), index.h("a", { class: `btn-buy ${buttonStyle}`, href: link.link, target: link.new_tab ? "_blank" : "_top", "data-ga-campaign": link.title, onClick: this.buyButtonClickHandler, "data-product-id": link.shopify_product_id, "aria-label": "Link to direct buy", role: "link" }, buttonStyle === "style-5" &&
|
|
3878
3879
|
index.h("svg", { class: "icon-buy", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }, index.h("g", { fill: "none", "fill-rule": "evenodd" }, index.h("path", { d: "M0 0h14v14H0z" }), index.h("path", { class: "dynamic-fill", d: "M6.855 1.575c1.323 0 2.405 1.03 2.405 2.315v.352h1.57l.95 8.24H1.896l.95-8.24H4.45V3.89c0-1.23.994-2.229 2.241-2.31zM9.94 5.242h-.68l.001.262a.5.5 0 01-.41.492l-.09.008a.5.5 0 01-.5-.5v-.262H5.45v.262a.5.5 0 01-.41.492l-.09.008a.5.5 0 01-.5-.5v-.262h-.714l-.72 6.24h7.643l-.72-6.24zM6.855 2.575c-.781 0-1.405.594-1.405 1.315v.352h2.81V3.89c0-.679-.552-1.245-1.269-1.31z", fill: "#FFF", "fill-rule": "nonzero" }))), index.h("span", { class: "btn-title" }, this.getLinkLabel(link)))))));
|
|
@@ -3926,7 +3927,7 @@ const CovetPicsPopupReviewElement = class {
|
|
|
3926
3927
|
const starOnlyClass = this.caption === null ? "star-only" : "";
|
|
3927
3928
|
const starOnly = this.caption === null && this.itemType === "text";
|
|
3928
3929
|
const verifiedClass = this.verified ? "verified" : "";
|
|
3929
|
-
return (index.h(index.Host, { key: '
|
|
3930
|
+
return (index.h(index.Host, { key: '3d60da0c55049aedaa4365a1457ea41ff0612128', class: `popup-review ${starOnlyClass}`, style: this.reviewCSS }, index.h(funcComponents.StarRatingPopupRewiw, { key: 'e69dcd4bee66dc77087b399e3e26c20a7971944f', rating: this.rating, starOnlyClass: starOnlyClass }), index.h("p", { key: 'c214ad4f5f393d62cc141b6da0b62cafa6a73c15', class: `review-caption ${starOnlyClass} ${verifiedClass}`, innerHTML: this.caption }, this.verified && starOnly && this.renderVerified()), index.h("div", { key: 'c1de4203f60f7d60f3bb4592bc72f03f899da5b0', class: `review-bottom ${starOnlyClass}` }, index.h("p", { key: '5adbc5a4a0c27ce305cb2fa2ad199e10bd0f9427', class: "username" }, this.username), this.createdTime && index.h("span", { key: 'b49678718189143cd88154aa50e7f0a775a4874e', class: "slash" }, "/"), index.h("span", { key: '8aa068fbacac7e1f4c0f1630788363d2fbd1a889', class: "created-time" }, index$1.format(this.createdTime)), this.verified && !starOnly && this.renderVerified())));
|
|
3930
3931
|
}
|
|
3931
3932
|
get el() { return index.getElement(this); }
|
|
3932
3933
|
static get watchers() { return {
|
|
@@ -4122,9 +4123,9 @@ const CovetPicsPopupSlider = class {
|
|
|
4122
4123
|
: `post image, created ${utils.getDateFromTimestamp(createdTime)}${carouselAlt}`;
|
|
4123
4124
|
}
|
|
4124
4125
|
render() {
|
|
4125
|
-
return (index.h("div", { key: '
|
|
4126
|
+
return (index.h("div", { key: '0f5135c05a21ca0d43dc912bd0f33d07e8090288', id: "covet-popup-content-image-carousel", class: "carousel-media swiper" }, index.h("section", { key: '10b11343b2bc40552a9236a38e7b63a762fd4ff9', class: "swiper-wrapper" }, this.item.carousel_media.map((media_item, idx) => index.h("div", { class: "carousel-cell swiper-slide" }, media_item.type === "image" &&
|
|
4126
4127
|
index.h("img", { src: media_item.standard_resolution, alt: this.imgAltTag(media_item.alt_tag, this.item.caption, idx, this.item.carousel_media.length, this.item.created_time), onLoad: this.imageLoadedHandler, onError: this.imageLoadedHandler }), media_item.type === "video" &&
|
|
4127
|
-
index.h("div", { class: "post-video-element", onClick: this.playPauseVideoClickHandler, onKeyDown: this.playPauseVideoKeyboardClickHandler, tabindex: "0" }, index.h("video", { playsinline: true, muted: true, loop: true, poster: (idx === 0) ? this.item.cover_images.high_resolution : null, key: media_item.standard_resolution, onCanPlay: this.videoLoadedHandler }, index.h("source", { src: media_item.standard_resolution, type: "video/mp4" })))))), index.h("div", { key: '
|
|
4128
|
+
index.h("div", { class: "post-video-element", onClick: this.playPauseVideoClickHandler, onKeyDown: this.playPauseVideoKeyboardClickHandler, tabindex: "0" }, index.h("video", { playsinline: true, muted: true, loop: true, poster: (idx === 0) ? this.item.cover_images.high_resolution : null, key: media_item.standard_resolution, onCanPlay: this.videoLoadedHandler }, index.h("source", { src: media_item.standard_resolution, type: "video/mp4" })))))), index.h("div", { key: 'c951a3f4d6fca6e82256eec44694d95a98f2c3ae', class: "swiper-pagination swiper-pagination-white" }), index.h("button", { key: '2f632d513f427858479e50ed7c35872b4ab990ed', class: "swiper-button-next", type: "button" }, index.h(funcComponents.IconArrowPrev, { key: 'fcd69886b0ecefeb00f96ae18276e3122f00455f' })), index.h("button", { key: '4f154b0005ba39f685157661298443d7f6667829', class: "swiper-button-prev", type: "button" }, index.h(funcComponents.IconArrowNext, { key: '60c94d46922582e30999786fd4ecbd0baa226363' }))));
|
|
4128
4129
|
}
|
|
4129
4130
|
get el() { return index.getElement(this); }
|
|
4130
4131
|
};
|
|
@@ -4138,7 +4139,8 @@ const CovetPicsSelect = class {
|
|
|
4138
4139
|
this.labelClickHandler = (event) => {
|
|
4139
4140
|
event.preventDefault();
|
|
4140
4141
|
event.stopPropagation();
|
|
4141
|
-
|
|
4142
|
+
const keyCode = event.keyCode;
|
|
4143
|
+
if (event.type === "keydown" && keyCode !== 13 && keyCode !== 32)
|
|
4142
4144
|
return false;
|
|
4143
4145
|
if (this.el.classList.contains("opened")) {
|
|
4144
4146
|
return;
|
|
@@ -4166,7 +4168,7 @@ const CovetPicsSelect = class {
|
|
|
4166
4168
|
requestAnimationFrame(() => this.el.classList.add("hover-enable")); // prevent border flickering on first render
|
|
4167
4169
|
}
|
|
4168
4170
|
render() {
|
|
4169
|
-
return (index.h(index.Host, { key: '
|
|
4171
|
+
return (index.h(index.Host, { key: 'f1337646b759d2010e5b8cbc174c914b0831bb88', class: "options", id: this.selectId }, index.h("label", { key: '0c0964d93af6f8c4c60f4407073dde53a83af769', onClick: this.labelClickHandler, onKeyDown: this.labelClickHandler, tabindex: "0" }, index.h("span", { key: 'a32a76882032f68757802f6255559f9de253c12e', class: "option-name", title: this.optionData["name"] }, this.optionData["name"]), index.h("span", { key: 'f9c3cd6d7b7bff9ccd0feeb066e43d7d10b15c32', class: { "selected-option": true, "empty": this.label === "" } }, this.label)), index.h("div", { key: '60d55f2d94310738aa6fee33e860a1fe1c3a80f6', class: "options-container" }, this.optionData.optionValues.map((option) => index.h("div", { class: { "option-value": true, "selected": option.name === this.selectedValue, "disabled": option.disabled }, "data-value": option.name, "data-disabled": `${option.disabled}`, onClick: this.selectVariantHandler, onKeyDown: this.selectVariantHandler, tabindex: "0" }, index.h("div", { class: "selected-indic" }), index.h("div", { class: "value-text", innerHTML: option.name, title: option.name }))))));
|
|
4170
4172
|
}
|
|
4171
4173
|
get el() { return index.getElement(this); }
|
|
4172
4174
|
};
|
|
@@ -4260,8 +4262,8 @@ const CovetPicsShopCart = class {
|
|
|
4260
4262
|
return (index.h("article", { class: "product", key: product.key }, index.h("div", { class: "img-wrap is-loading" }, index.h("img", { class: "img", src: (_a = product.featured_image) === null || _a === void 0 ? void 0 : _a.url, alt: ((_b = product.featured_image) === null || _b === void 0 ? void 0 : _b.alt) || "product image", onLoad: this.imageLoadedHandler, onError: this.imageLoadedHandler })), index.h("div", { class: "description" }, index.h("div", { class: "top" }, index.h("h3", { class: "title" }, product.product_title), index.h("p", { class: "price" }, utils.formatCurrency(product.final_line_price / 100, this.appState.shopcart.currency, `${this.appState.shopcart.locale.language}-${this.appState.shopcart.locale.country}`))), index.h("h4", { class: "text" }, product.variant_title), index.h("div", { class: "bottom" }, index.h("div", { class: "change-count" }, index.h("button", { class: "btn-update", onClick: this.onUpdateLine, "data-line-id": product.key, "data-line-quantity": product.quantity - 1 }, "-"), index.h("span", { class: "count" }, product.quantity), index.h("button", { class: "btn-update", onClick: this.onUpdateLine, "data-line-id": product.key, "data-line-quantity": product.quantity + 1, "data-action": "add", disabled: this.notAvaliableForSaleKeys.includes(product.key) }, "+")), index.h("button", { class: "btn-delete", onClick: this.onRemoveLine, "data-line-id": product.key }, index.h("svg", { class: "icon-basket" }, index.h("path", { d: "M6.31 7.18c0-.51-.4-.92-.9-.92s-.9.41-.9.92v4.63c0 .51.4.93.9.93s.9-.42.9-.93V7.18z", style: { transform: "translateX(3px)" } }), index.h("path", { d: "M6.31 7.18c0-.51-.4-.92-.9-.92s-.9.41-.9.92v4.63c0 .51.4.93.9.93s.9-.42.9-.93V7.18z" }), index.h("path", { d: "m7 0c-1.634 0-2.965 1.33-3.021 2.993H.902C.404 2.993 0 3.407 0 3.918c0 .511.404.926.902.926h.689v5.828c0 .91 0 1.599.044 2.148.043.551.132.971.314 1.338.315.635.818 1.151 1.437 1.474.358.187.766.278 1.303.323.535.045 1.207.045 2.094.045h.434c.887 0 1.558 0 2.093-.045.537-.045.946-.136 1.304-.323a3.3 3.3 0 0 0 1.437-1.474c.182-.367.27-.787.314-1.338.044-.55.044-1.239.044-2.148V4.844h.69c.497 0 .901-.415.901-.926 0-.511-.404-.925-.901-.925h-3.078C9.965 1.33 8.634 0 7 0zm-1.326 3.102h2.652a1.54 1.54 0 0 0-.387-.961c.215.222.357.521.383.852.002.036.004.073.004.109H5.674zM7 1.85c.638 0 1.161.503 1.215 1.143H5.785C5.839 2.353 6.362 1.85 7 1.85zM3.394 4.844h7.212v5.823c0 .943-.001 1.545-.038 2.003-.035.436-.093.585-.124.648a2.42 2.42 0 0 1-.649.666c-.061.032-.206.091-.632.127-.445.037-1.032.039-1.951.039h-.424c-.919 0-1.506-.002-1.952-.039-.426-.036-.57-.095-.631-.127a2.42 2.42 0 0 1-.649-.666c-.031-.063-.09-.212-.124-.648-.037-.458-.038-1.06-.038-2.003V4.844z" })))))));
|
|
4261
4263
|
}
|
|
4262
4264
|
render() {
|
|
4263
|
-
return (index.h(index.Host, { key: '
|
|
4264
|
-
index.h("p", { key: '
|
|
4265
|
+
return (index.h(index.Host, { key: '47b6de394db7e8d47cf8fab1e706c8b301d715dc', style: this.setWidgetCSSVariables(), class: { "show": this.isCartVisible }, role: "dialog" }, index.h("div", { key: '6258598506db2c696b130c7d1b04800223a645c8', class: { "cart-body": true, "show": this.isCartVisible } }, index.h("div", { key: '3134b6a1db165256d1360c5afe31edd06320b903', class: "cart-top" }, index.h("h2", { key: '87ccd5066fed3ad9b70b4777b79a03085bf6ae8a', class: "cart-title" }, "Basket"), index.h("button", { key: 'd07d211cff6ef9556e3561fa9555ddcb65c33f11', onClick: this.closeShopCart, class: "btn-close" })), index.h("div", { key: '8c66f707ae35cc3b1f44b1fd65d7ebb278ead04e', class: "product-list" }, this.products.map((product) => this.renderProduct(product))), index.h("div", { key: '45a6ac4ad6e537b404d342b6b5fb844e694f6c93', class: "cost" }, this.discount !== "0" &&
|
|
4266
|
+
index.h("p", { key: '0ad62919be179e75e8ef5f4ee8834cae9da2a7f0', class: "cost-price discount" }, index.h("span", { key: 'b17f8fa10d5f038bf127b7be66620c3af854cbb4' }, "Discount"), index.h("span", { key: 'a3758f94cf5ee71d0bb30cf5a663655bacdf12c9' }, "- ", this.discount)), index.h("p", { key: 'fc58f47fdd8b327ac705abe3d5031fdd88faaa9e', class: "cost-price total" }, index.h("span", { key: 'b167ffce1170ab7e50521df5a9fae03e54bbf8d9' }, "Total"), index.h("span", { key: '44cd3d2722f82071f955777e485f8f2eaa3d8cd0' }, this.totalAmount))), index.h("a", { key: 'd8697dcfacb82dc4427b9d00de0cd4af7cd8cbe0', class: { "btn-checkout": true, "disabled": this.products.length === 0 }, href: "/checkout", target: "_top" }, "Proceed to checkout"))));
|
|
4265
4267
|
}
|
|
4266
4268
|
get el() { return index.getElement(this); }
|
|
4267
4269
|
};
|