@salla.sa/twilight-components 2.14.509 → 2.14.511
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/{filepond-Dn8WkI9_.js → filepond-0TrFNLsw.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-mufjzLbD.js → filepond-plugin-file-poster-sXFNeqzk.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-BC6t5UPj.js → filepond-plugin-file-validate-size-Cj55Y7tv.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CaQ5Kqok.js → filepond-plugin-file-validate-type-V1HMJfKc.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DvSmfnUl.js → filepond-plugin-image-edit-C9cY0syk.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Br5ovpCW.js → filepond-plugin-image-exif-orientation-DNg_Qcvp.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-C71ogaak.js → filepond-plugin-image-preview-CWOnO-Il.js} +1 -1
- package/dist/cjs/{functions-DgFPxTJv.js → functions-CDAUu5J8.js} +1 -1
- package/dist/cjs/{index-DHuZTkix.js → index-Dl2lYw7e.js} +1 -1
- package/dist/cjs/{index-CeEhEVDJ.js → index-RBECSfSj.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +36 -16
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +1 -1
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-exchange-product-card_5.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +1 -1
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card_2.cjs.entry.js +36 -6
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +26 -3
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +1 -1
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +7 -4
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -13
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DDnavSzb.js → tracked-promise-Cuo4mD3A.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CyrLIKBL.js → vanilla-picker-DCpYcH-A.js} +1 -1
- package/dist/collection/components/salla-cart-coupons/salla-cart-coupons.js +36 -15
- package/dist/collection/components/salla-products-list/salla-products-list.js +25 -2
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +35 -5
- package/dist/collection/components/salla-social-share/salla-social-share.js +6 -3
- package/dist/collection/components/salla-trust-badges/salla-trust-badges.js +0 -12
- package/dist/components/index.js +2 -2
- package/dist/components/salla-cart-coupons.js +36 -15
- package/dist/components/salla-products-list2.js +25 -2
- package/dist/components/salla-products-slider2.js +35 -5
- package/dist/components/salla-social-share2.js +6 -3
- package/dist/components/salla-trust-badges.js +0 -12
- package/dist/esm/{filepond-Cu0hGP46.js → filepond-CjaPhELa.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-DBfLrjkx.js → filepond-plugin-file-poster-C0LSpxdn.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Cq0e60aE.js → filepond-plugin-file-validate-size-f3M1LSPs.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CpRmNAFC.js → filepond-plugin-file-validate-type-BT4JpEVj.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-C-7yhkPK.js → filepond-plugin-image-edit-BEc6DVnn.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-CTn5LeXC.js → filepond-plugin-image-exif-orientation-CLI5Lnpc.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-BsETbqVf.js → filepond-plugin-image-preview-tL-elI_Z.js} +1 -1
- package/dist/esm/{functions-DtC2lEvS.js → functions-WS1lxmHI.js} +1 -1
- package/dist/esm/{index-BEjZOd--.js → index-BzXJjH3_.js} +2 -2
- package/dist/esm/{index-DskkoO4T.js → index-DPFFfWpp.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +1 -1
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +10 -10
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +36 -16
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +1 -1
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down_2.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +1 -1
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-exchange-product-card_5.entry.js +3 -3
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +1 -1
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-cancel.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +1 -1
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-card_2.entry.js +36 -6
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +26 -3
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +1 -1
- package/dist/esm/salla-review-factors-tags.entry.js +1 -1
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +7 -4
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -13
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-DzdT8znx.js → tracked-promise-8IpXGZrn.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-DzKX2qA5.js → vanilla-picker-zErRrQCU.js} +1 -1
- package/dist/twilight/{p-113e7032.entry.js → p-0966f8f7.entry.js} +1 -1
- package/dist/twilight/{p-74c84c67.entry.js → p-0a5abade.entry.js} +1 -1
- package/dist/twilight/{p-05f01920.entry.js → p-0f85f426.entry.js} +1 -1
- package/dist/twilight/{p-d76f186c.entry.js → p-10813f86.entry.js} +1 -1
- package/dist/twilight/{p-d66af968.entry.js → p-12028092.entry.js} +1 -1
- package/dist/twilight/{p-8f982a91.entry.js → p-122e4c59.entry.js} +1 -1
- package/dist/twilight/{p-384febda.entry.js → p-13ecf9e4.entry.js} +1 -1
- package/dist/twilight/{p-da441555.entry.js → p-15dc5b21.entry.js} +1 -1
- package/dist/twilight/{p-7e4fea4b.entry.js → p-163f69e6.entry.js} +1 -1
- package/dist/twilight/{p-f3f0ee9b.entry.js → p-1866f9c3.entry.js} +1 -1
- package/dist/twilight/{p-4317eeb9.entry.js → p-187ded90.entry.js} +1 -1
- package/dist/twilight/{p-5201eb4f.entry.js → p-19167e8e.entry.js} +1 -1
- package/dist/twilight/{p-8c6730a9.entry.js → p-1b5a5f72.entry.js} +1 -1
- package/dist/twilight/{p-1df6827d.entry.js → p-1d457356.entry.js} +1 -1
- package/dist/twilight/{p-c4f379a8.entry.js → p-1dec09dc.entry.js} +1 -1
- package/dist/twilight/{p-804cfed5.entry.js → p-1ed9218d.entry.js} +1 -1
- package/dist/twilight/{p-6d970be9.entry.js → p-25c71303.entry.js} +1 -1
- package/dist/twilight/p-2bcc8c86.entry.js +4 -0
- package/dist/twilight/{p-62abd25a.entry.js → p-2bd92b4c.entry.js} +1 -1
- package/dist/twilight/{p-ed698e64.entry.js → p-2bfb0fb2.entry.js} +1 -1
- package/dist/twilight/{p-1c03607d.entry.js → p-2ff6b717.entry.js} +1 -1
- package/dist/twilight/{p-d6d8d12e.entry.js → p-3047dfdc.entry.js} +1 -1
- package/dist/twilight/{p-3350c805.entry.js → p-30d838f8.entry.js} +1 -1
- package/dist/twilight/{p-0a3e9f94.entry.js → p-312b9913.entry.js} +1 -1
- package/dist/twilight/{p-1bec8b0a.entry.js → p-32115a7c.entry.js} +1 -1
- package/dist/twilight/{p-2643952e.entry.js → p-361f2c67.entry.js} +1 -1
- package/dist/twilight/{p-37310557.entry.js → p-371fa310.entry.js} +1 -1
- package/dist/twilight/{p-9807935d.entry.js → p-37b787f8.entry.js} +1 -1
- package/dist/twilight/{p-03505fdd.entry.js → p-3b392d81.entry.js} +1 -1
- package/dist/twilight/{p-b2789ab4.entry.js → p-4167598b.entry.js} +1 -1
- package/dist/twilight/{p-e1842675.entry.js → p-43969215.entry.js} +1 -1
- package/dist/twilight/{p-fa7c213b.entry.js → p-43ec1827.entry.js} +1 -1
- package/dist/twilight/{p-b6322bba.entry.js → p-43fe8a0a.entry.js} +1 -1
- package/dist/twilight/{p-e69c2c35.entry.js → p-4913d6ba.entry.js} +1 -1
- package/dist/twilight/{p-fef39c48.entry.js → p-4938bf81.entry.js} +1 -1
- package/dist/twilight/{p-48cf6b68.entry.js → p-4a817d85.entry.js} +1 -1
- package/dist/twilight/{p-a476f7b2.entry.js → p-4ca2825a.entry.js} +1 -1
- package/dist/twilight/{p-30d6436e.entry.js → p-4cebda70.entry.js} +1 -1
- package/dist/twilight/p-4f959ae5.entry.js +4 -0
- package/dist/twilight/p-4fd756c5.entry.js +4 -0
- package/dist/twilight/{p-3d44e1e9.entry.js → p-5252b5a2.entry.js} +1 -1
- package/dist/twilight/{p-516e9179.entry.js → p-529997bc.entry.js} +1 -1
- package/dist/twilight/{p-33756c72.entry.js → p-53550e95.entry.js} +1 -1
- package/dist/twilight/{p-8fcc4bb0.entry.js → p-5cd30322.entry.js} +1 -1
- package/dist/twilight/{p-effae25c.entry.js → p-62ad47dd.entry.js} +1 -1
- package/dist/twilight/{p-518b6032.entry.js → p-66ed854d.entry.js} +1 -1
- package/dist/twilight/{p-bbb48f58.entry.js → p-686449c6.entry.js} +1 -1
- package/dist/twilight/{p-9eade28d.entry.js → p-6c4db562.entry.js} +1 -1
- package/dist/twilight/{p-62a86556.entry.js → p-6e277fa5.entry.js} +1 -1
- package/dist/twilight/{p-758894b7.entry.js → p-6eaca1e9.entry.js} +1 -1
- package/dist/twilight/{p-ad8eda9d.entry.js → p-70343fbe.entry.js} +1 -1
- package/dist/twilight/{p-2c7e18c5.entry.js → p-7e5a9c05.entry.js} +1 -1
- package/dist/twilight/{p-0959b41c.entry.js → p-7f216092.entry.js} +1 -1
- package/dist/twilight/{p-fc18bd83.entry.js → p-835e1720.entry.js} +1 -1
- package/dist/twilight/{p-e7b03751.entry.js → p-84a2e146.entry.js} +1 -1
- package/dist/twilight/{p-734dfd28.entry.js → p-8ce3c79b.entry.js} +1 -1
- package/dist/twilight/{p-017a1a77.entry.js → p-8db68f3d.entry.js} +1 -1
- package/dist/twilight/{p-86df9649.entry.js → p-990d73e5.entry.js} +1 -1
- package/dist/twilight/{p-09cd7f70.entry.js → p-9af863dd.entry.js} +1 -1
- package/dist/twilight/{p-193cccd3.entry.js → p-9c4551d3.entry.js} +1 -1
- package/dist/twilight/{p-8c03c0d2.entry.js → p-9fde4f40.entry.js} +1 -1
- package/dist/twilight/{p-BDLhoSt2.js → p-BhhfXcnE.js} +1 -1
- package/dist/twilight/{p--UKCKF-7.js → p-Bhltl2or.js} +1 -1
- package/dist/twilight/{p-CCH8joDb.js → p-BwKXOq15.js} +1 -1
- package/dist/twilight/{p-D2_JplO8.js → p-BysanGjD.js} +1 -1
- package/dist/twilight/p-BzXJjH3_.js +5 -0
- package/dist/twilight/p-CEF833Pb.js +9 -0
- package/dist/twilight/{p-CGahPnsw.js → p-CjEMgJ1i.js} +1 -1
- package/dist/twilight/{p-COwpiJQt.js → p-E55oFDS1.js} +1 -1
- package/dist/twilight/{p-Da0xrmo3.js → p-H-aq6XJu.js} +1 -1
- package/dist/twilight/{p-CxQVHI3A.js → p-JRV6DyMs.js} +1 -1
- package/dist/twilight/{p-BTVc7r-Z.js → p-NOKgwy8A.js} +1 -1
- package/dist/twilight/p-a301a082.entry.js +4 -0
- package/dist/twilight/{p-925af19b.entry.js → p-a3067dbe.entry.js} +1 -1
- package/dist/twilight/{p-b847e008.entry.js → p-a5d2bc90.entry.js} +1 -1
- package/dist/twilight/{p-b25fd5f0.entry.js → p-aa240b44.entry.js} +1 -1
- package/dist/twilight/{p-52c0a1b5.entry.js → p-aaa2e8e1.entry.js} +1 -1
- package/dist/twilight/{p-3791a8d0.entry.js → p-ae947a2b.entry.js} +1 -1
- package/dist/twilight/{p-abd00b41.entry.js → p-b27714a1.entry.js} +1 -1
- package/dist/twilight/{p-25f8d253.entry.js → p-b36ef4ee.entry.js} +1 -1
- package/dist/twilight/{p-27252d50.entry.js → p-b3f87110.entry.js} +1 -1
- package/dist/twilight/{p-41ac2dc0.entry.js → p-b45977fc.entry.js} +1 -1
- package/dist/twilight/{p-42c57314.entry.js → p-b86386d2.entry.js} +1 -1
- package/dist/twilight/{p-bec996fb.entry.js → p-b88d695e.entry.js} +1 -1
- package/dist/twilight/{p-d53f9574.entry.js → p-ba5c7e3e.entry.js} +1 -1
- package/dist/twilight/{p-8b9c8776.entry.js → p-bbffb514.entry.js} +1 -1
- package/dist/twilight/{p-8ddfe69e.entry.js → p-c2acc36a.entry.js} +1 -1
- package/dist/twilight/{p-8d199be5.entry.js → p-c4d46f4b.entry.js} +1 -1
- package/dist/twilight/{p-d6fbb91c.entry.js → p-c99eb3de.entry.js} +1 -1
- package/dist/twilight/{p-6c3b50e2.entry.js → p-ca53abe7.entry.js} +1 -1
- package/dist/twilight/{p-7edc5c88.entry.js → p-cb38bb75.entry.js} +1 -1
- package/dist/twilight/{p-12c571d7.entry.js → p-cb4229d4.entry.js} +1 -1
- package/dist/twilight/{p-725eeeed.entry.js → p-d1d21f23.entry.js} +1 -1
- package/dist/twilight/{p-858f485b.entry.js → p-d2bbfd4f.entry.js} +1 -1
- package/dist/twilight/{p-6681db6a.entry.js → p-d6af92b7.entry.js} +1 -1
- package/dist/twilight/{p-47a7f1a5.entry.js → p-e08df4d8.entry.js} +1 -1
- package/dist/twilight/{p-557609aa.entry.js → p-e74e02fa.entry.js} +1 -1
- package/dist/twilight/{p-de07b85c.entry.js → p-ed37ffa6.entry.js} +1 -1
- package/dist/twilight/{p-6ba99048.entry.js → p-eef23f94.entry.js} +1 -1
- package/dist/twilight/{p-296df4c6.entry.js → p-eefef4f2.entry.js} +1 -1
- package/dist/twilight/{p-3ccbdb7a.entry.js → p-f3becfdd.entry.js} +1 -1
- package/dist/twilight/{p-69758093.entry.js → p-f67fea81.entry.js} +1 -1
- package/dist/twilight/{p-27acb426.entry.js → p-f7787aa5.entry.js} +1 -1
- package/dist/twilight/{p-4d76cd8f.entry.js → p-fb03f79e.entry.js} +1 -1
- package/dist/twilight/{p-e78fe137.entry.js → p-fb21f5ee.entry.js} +1 -1
- package/dist/twilight/{p-Dv2SelMn.js → p-mtDZC_bP.js} +2 -2
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-cart-coupons/salla-cart-coupons.d.ts +5 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +13 -0
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +13 -0
- package/dist/types/components/salla-social-share/salla-social-share.d.ts +1 -0
- package/dist/types/components/salla-trust-badges/salla-trust-badges.d.ts +0 -2
- package/package.json +5 -5
- package/dist/twilight/p-0950cbbb.entry.js +0 -4
- package/dist/twilight/p-19388aef.entry.js +0 -4
- package/dist/twilight/p-21870458.entry.js +0 -4
- package/dist/twilight/p-5958986c.entry.js +0 -4
- package/dist/twilight/p-BEjZOd--.js +0 -5
- package/dist/twilight/p-Dw58JgkP.js +0 -9
|
@@ -13,6 +13,8 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
13
13
|
this.__registerHost();
|
|
14
14
|
this.availableCoupons = [];
|
|
15
15
|
this.cartTotal = 0;
|
|
16
|
+
/** False until a sub_total is read from storage or the server — guards isEligible. */
|
|
17
|
+
this.cartTotalReady = false;
|
|
16
18
|
this.currentCoupon = '';
|
|
17
19
|
this.couponInputValue = '';
|
|
18
20
|
this.couponError = '';
|
|
@@ -31,7 +33,7 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
31
33
|
this.cartUpdatedHandler = (cartData) => {
|
|
32
34
|
// cart::updated carries the server-side cart. The multi-coupon flag comes from store
|
|
33
35
|
// config (set once in componentWillLoad), so only refresh total + chips here.
|
|
34
|
-
this.
|
|
36
|
+
this.syncCartTotal(cartData);
|
|
35
37
|
// Re-sync applied coupon state from the payload — mirroring refreshFromServer's guard:
|
|
36
38
|
// - Multi-coupon: only a real `coupons` array re-seeds the chips, so a summary-only
|
|
37
39
|
// cart::updated can't shrink them (add/remove refreshes the chips from the server).
|
|
@@ -158,14 +160,12 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
async loadCartTotal() {
|
|
161
|
-
//
|
|
162
|
-
//
|
|
163
|
-
//
|
|
164
|
-
//
|
|
165
|
-
//
|
|
166
|
-
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
163
|
+
// seedFromStorage() already gave the first paint an instant (possibly stale) total, so a
|
|
164
|
+
// minimum-amount coupon never flashes "غير متوافق". We STILL reconcile against the server
|
|
165
|
+
// here — for single- and multi-coupon alike — so a stale cached sub_total (cart changed in
|
|
166
|
+
// another tab or a server-side flow) can't keep a coupon wrongly (in)compatible until the
|
|
167
|
+
// next cart event. cart-coupons only mounts on the cart page, so this is one request per
|
|
168
|
+
// cart view, not a hot-path cost.
|
|
169
169
|
await this.refreshFromServer();
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
@@ -188,6 +188,22 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
188
188
|
if (stored && typeof stored === 'object' && 'coupon' in stored) {
|
|
189
189
|
this.applyCart(stored);
|
|
190
190
|
}
|
|
191
|
+
this.seedTotalsFromSummaryStorage();
|
|
192
|
+
}
|
|
193
|
+
/** SDK caches summary fields separately from the cart object (see cart.js updated()). */
|
|
194
|
+
seedTotalsFromSummaryStorage() {
|
|
195
|
+
const summary = salla.storage.get('cart.summary');
|
|
196
|
+
if (summary && typeof summary === 'object' && summary.sub_total != null) {
|
|
197
|
+
this.cartTotal = Number(summary.sub_total);
|
|
198
|
+
this.cartTotalReady = true;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
syncCartTotal(cart) {
|
|
202
|
+
const subTotal = cart?.summary?.sub_total ?? cart?.sub_total ?? cart?.total;
|
|
203
|
+
if (subTotal != null) {
|
|
204
|
+
this.cartTotal = Number(subTotal);
|
|
205
|
+
this.cartTotalReady = true;
|
|
206
|
+
}
|
|
191
207
|
}
|
|
192
208
|
/**
|
|
193
209
|
* Fetch the cart fresh from the server (salla.cart.details -> CartPresenter::forApi) and
|
|
@@ -212,10 +228,11 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
212
228
|
if (stored) {
|
|
213
229
|
this.applyCart(stored);
|
|
214
230
|
}
|
|
231
|
+
this.seedTotalsFromSummaryStorage();
|
|
215
232
|
}
|
|
216
233
|
/** Apply an authoritative cart object: total + applied chips (flag comes from store config). */
|
|
217
234
|
applyCart(cart) {
|
|
218
|
-
this.
|
|
235
|
+
this.syncCartTotal(cart);
|
|
219
236
|
this.syncAppliedFromCart(cart);
|
|
220
237
|
}
|
|
221
238
|
/**
|
|
@@ -398,10 +415,13 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
398
415
|
}
|
|
399
416
|
}
|
|
400
417
|
isEligible(coupon) {
|
|
401
|
-
|
|
402
|
-
|
|
418
|
+
// Until the cart sub_total is known, cartTotal is still the default 0 — treat the coupon as
|
|
419
|
+
// eligible so it doesn't flash "غير متوافق" on first paint and flip to compatible after the
|
|
420
|
+
// total loads (SP-21434).
|
|
421
|
+
if (!this.cartTotalReady || !coupon.minimum_amount) {
|
|
422
|
+
return true;
|
|
403
423
|
}
|
|
404
|
-
return
|
|
424
|
+
return this.cartTotal >= parseFloat(coupon.minimum_amount.amount);
|
|
405
425
|
}
|
|
406
426
|
renderCouponCard(coupon) {
|
|
407
427
|
const isEligible = this.isEligible(coupon);
|
|
@@ -411,7 +431,7 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
411
431
|
: `${salla.lang.get('pages.cart.expires_after')} ${coupon.remaining_days} ${salla.lang.get('pages.cart.day')}`)), coupon.minimum_amount && parseFloat(coupon.minimum_amount.amount) > 0 && (h("div", { class: "s-cart-coupons-minimum" }, salla.lang.get('pages.cart.minimum'), " ", h("span", { innerHTML: salla.money(coupon.minimum_amount.amount, coupon.minimum_amount.currency) })))), h("div", { class: "s-cart-coupons-action" }, isEligible ? salla.lang.get('pages.cart.save_coupon') : salla.lang.get('pages.cart.coupon_not_compatible'))))));
|
|
412
432
|
}
|
|
413
433
|
render() {
|
|
414
|
-
return (h(Host, { key: '
|
|
434
|
+
return (h(Host, { key: 'e3bed8f1f2019db5e1c5ca4280696933913e3081' }, h("div", { key: '9c6a7c383394f9bd19107db9b8e76fd9129648e3', class: "s-cart-coupons-wrapper" }, h("div", { key: '1e7f74969e709062c36aa19ff4ec27bde0bb10df', class: "s-cart-coupons-input-section" }, h("label", { key: 'f3bc1f4ffa9c8a64bee8af273597d6f8ff1f8fd0', htmlFor: "coupon-input", class: "s-cart-coupons-coupon-label" }, salla.lang.get('pages.cart.have_coupon')), h("div", { key: '7abbdbd41cf6e65b6c08928bb10a68bfb2677d85', class: "s-cart-coupons-coupon-input-container" }, this.multiCoupon ? [
|
|
415
435
|
// Multi-coupon: input stays active to append more codes; applied coupons render
|
|
416
436
|
// as removable chips below.
|
|
417
437
|
h("input", { type: "text", id: "coupon-input", name: "coupon", class: `form-input ${this.couponError ? 's-coupon-input-error' : ''}`, placeholder: salla.lang.get('pages.cart.coupon_placeholder'), value: this.couponInputValue, disabled: this.isApplying, onInput: this.onInput, onKeyUp: this.onKeyUp, "aria-label": salla.lang.get('pages.cart.apply_coupon'), key: "coupon-input" }),
|
|
@@ -422,13 +442,14 @@ const SallaCartCoupons$1 = /*@__PURE__*/ proxyCustomElement(class SallaCartCoupo
|
|
|
422
442
|
// a new code can only be entered after removing. Reuses the existing master classes.
|
|
423
443
|
h("input", { type: "text", id: "coupon-input", name: "coupon", class: `form-input ${this.couponError ? 's-coupon-input-error' : ''}`, placeholder: salla.lang.get('pages.cart.coupon_placeholder'), value: this.couponInputValue, disabled: !!this.currentCoupon || this.isApplying, onInput: this.onInput, onKeyUp: this.onKeyUp, "aria-label": salla.lang.get('pages.cart.apply_coupon'), key: "coupon-input" }),
|
|
424
444
|
h("salla-button", { ref: el => this.couponButtonRef = el, class: `s-cart-coupons-coupon-button ${this.currentCoupon ? 's-cart-coupons-coupon-button-remove' : 's-cart-coupons-coupon-button-apply'}`, color: this.currentCoupon ? 'danger' : 'primary', loading: this.isApplying, "loader-position": "center", onClick: () => this.handleCouponButtonClick(), key: "apply-button" }, this.currentCoupon ? (h("i", { class: "sicon-cancel" })) : (h("span", null, salla.lang.get('pages.cart.save_coupon')))),
|
|
425
|
-
]), this.couponError && (h("span", { key: '
|
|
445
|
+
]), this.couponError && (h("span", { key: '6c259fbca7a2a3c2ece3d4c335707c833be5f8d6', class: "s-cart-coupons-coupon-error" }, this.couponError)), this.multiCoupon && this.appliedCoupons.length > 0 && (h("div", { key: '87335fd875279e97fc7a02c9f3519af51a953a7b', class: "s-cart-coupons-applied-list" }, this.appliedCoupons.map(code => (h("div", { class: "s-cart-coupons-applied-item", key: code }, h("span", { class: "s-cart-coupons-applied-code" }, code), h("button", { type: "button", class: "s-cart-coupons-applied-remove", "aria-label": `${salla.lang.get('pages.cart.delete')} ${code}`, disabled: this.isApplying, onClick: () => this.removeCoupon(code) }, h("i", { class: "sicon-cancel" })))))))), this.availableCoupons && this.availableCoupons.length > 0 && (h("salla-slider", { key: '86c665d3135fa8bc393c4b7ad9daca3ce87bed50', type: "carousel", showControls: false, class: "s-cart-coupons-slider" }, h("div", { key: '45ddccd7e0c5d38e9b98f42862a6d64f6040c942', slot: "items" }, this.availableCoupons.map(coupon => this.renderCouponCard(coupon))))))));
|
|
426
446
|
}
|
|
427
447
|
get host() { return this; }
|
|
428
448
|
static get style() { return sallaCartCouponsCss; }
|
|
429
449
|
}, [0, "salla-cart-coupons", {
|
|
430
450
|
"availableCoupons": [32],
|
|
431
451
|
"cartTotal": [32],
|
|
452
|
+
"cartTotalReady": [32],
|
|
432
453
|
"currentCoupon": [32],
|
|
433
454
|
"couponInputValue": [32],
|
|
434
455
|
"couponError": [32],
|
|
@@ -1085,12 +1085,35 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
1085
1085
|
this.infiniteScroll.option({ scrollThreshold: false, loadOnScroll: false });
|
|
1086
1086
|
this.status.querySelector('.s-infinite-scroll-last').classList.remove('s-hidden');
|
|
1087
1087
|
}
|
|
1088
|
+
let items = await this.applyBeforeAppendItems(response.data);
|
|
1088
1089
|
const productCardsView = [];
|
|
1089
|
-
for (let i = 0; i <
|
|
1090
|
-
productCardsView.push(this.getItemHTML(
|
|
1090
|
+
for (let i = 0; i < items.length; i++) {
|
|
1091
|
+
productCardsView.push(this.getItemHTML(items[i]));
|
|
1091
1092
|
}
|
|
1092
1093
|
return productCardsView;
|
|
1093
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Allows bundles to modify or replace products before they are appended.
|
|
1097
|
+
*
|
|
1098
|
+
* @example
|
|
1099
|
+
* salla.hooks.registerHook(
|
|
1100
|
+
* 'salla-products-list',
|
|
1101
|
+
* 'beforeAppendItems',
|
|
1102
|
+
* async (ctx) => {
|
|
1103
|
+
* ctx.items = ctx.items.filter((item) => item.is_available);
|
|
1104
|
+
* },
|
|
1105
|
+
* );
|
|
1106
|
+
*/
|
|
1107
|
+
async applyBeforeAppendItems(items) {
|
|
1108
|
+
const ctx = { component: this, items };
|
|
1109
|
+
try {
|
|
1110
|
+
await salla.hooks.call('salla-products-list', 'beforeAppendItems', ctx);
|
|
1111
|
+
return Array.isArray(ctx.items) ? ctx.items : items;
|
|
1112
|
+
}
|
|
1113
|
+
catch {
|
|
1114
|
+
return items;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1094
1117
|
get host() { return this; }
|
|
1095
1118
|
static get watchers() { return {
|
|
1096
1119
|
"selectable": ["onSelectableChanged"]
|
|
@@ -44,7 +44,7 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
44
44
|
}
|
|
45
45
|
componentWillLoad() {
|
|
46
46
|
return salla.onReady()
|
|
47
|
-
.then(() => {
|
|
47
|
+
.then(async () => {
|
|
48
48
|
//TODO:: check why `this.includes` not working!!
|
|
49
49
|
this.includes = Helper.parseJson(this.includes || this.host.getAttribute('includes'));
|
|
50
50
|
if (!Array.isArray(this.includes)) {
|
|
@@ -58,7 +58,7 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
58
58
|
}
|
|
59
59
|
this.hasCustomComponent = !!customElements.get(this.productCardComponent);
|
|
60
60
|
if (this.source === 'json') {
|
|
61
|
-
this.productsData = this.getSourceValue();
|
|
61
|
+
this.productsData = await this.applyBeforeAppendItems(this.getSourceValue());
|
|
62
62
|
this.isReady = true;
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
@@ -66,18 +66,25 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
66
66
|
this.isReady = false;
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
|
+
if (this.getSource() === 'related' &&
|
|
70
|
+
salla.config.get('store.settings.product.related_products_enabled') &&
|
|
71
|
+
salla.config.get('store.settings.product.product-recommendation-type') === 'random' &&
|
|
72
|
+
salla.config.get('store.features')?.includes('ai-driven-personalized-product')) {
|
|
73
|
+
this.sourceValue = await salla.recommendations.similarProducts(this.sourceValue, { limit: this.limit || 12 }).extractProductIds();
|
|
74
|
+
this.source = 'selected';
|
|
75
|
+
}
|
|
69
76
|
return salla.api.withoutNotifier(() => salla.product.api.fetch({
|
|
70
77
|
source: Helper.getApiSource(this.getSource()),
|
|
71
78
|
source_value: this.getSourceValue(),
|
|
72
79
|
limit: this.limit
|
|
73
80
|
}))
|
|
74
81
|
.then(response => Helper.injectExtraFieldsToResponse(response))
|
|
75
|
-
.then(response => {
|
|
76
|
-
this.productsData = response.data;
|
|
82
|
+
.then(async (response) => {
|
|
83
|
+
this.productsData = await this.applyBeforeAppendItems(response.data);
|
|
77
84
|
this.isReady = true;
|
|
78
85
|
response.source = this.getSource();
|
|
79
86
|
response.sourceValue = this.getSourceValue();
|
|
80
|
-
salla.event.emit('salla-products-slider::products.fetched',
|
|
87
|
+
salla.event.emit('salla-products-slider::products.fetched', this.productsData);
|
|
81
88
|
});
|
|
82
89
|
});
|
|
83
90
|
}
|
|
@@ -137,6 +144,29 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
137
144
|
getSourceValue() {
|
|
138
145
|
return Helper.getProductsSourceValue(this.source, this.sourceValue);
|
|
139
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Allows bundles to modify or replace products before they are rendered.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* salla.hooks.registerHook(
|
|
152
|
+
* 'salla-products-slider',
|
|
153
|
+
* 'beforeAppendItems',
|
|
154
|
+
* async (ctx) => {
|
|
155
|
+
* ctx.items = ctx.items.filter((item) => item.is_available);
|
|
156
|
+
* },
|
|
157
|
+
* );
|
|
158
|
+
*/
|
|
159
|
+
async applyBeforeAppendItems(items) {
|
|
160
|
+
const originalItems = Array.isArray(items) ? items : [];
|
|
161
|
+
const ctx = { component: this, items: originalItems };
|
|
162
|
+
try {
|
|
163
|
+
await salla.hooks.call('salla-products-slider', 'beforeAppendItems', ctx);
|
|
164
|
+
return Array.isArray(ctx.items) ? ctx.items : originalItems;
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
return originalItems;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
140
170
|
render() {
|
|
141
171
|
if (!this.canRender()) {
|
|
142
172
|
return;
|
|
@@ -110,7 +110,7 @@ const SallaSocialShare = /*@__PURE__*/ proxyCustomElement(class SallaSocialShare
|
|
|
110
110
|
if (this.host.hasAttribute('aria-label')) {
|
|
111
111
|
this.host.removeAttribute('aria-label');
|
|
112
112
|
}
|
|
113
|
-
if (
|
|
113
|
+
if (this.supportsNativeShare() || document.getElementById('a2a-script')) {
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
116
|
const script = document.createElement('script');
|
|
@@ -239,8 +239,11 @@ const SallaSocialShare = /*@__PURE__*/ proxyCustomElement(class SallaSocialShare
|
|
|
239
239
|
this.deferOutsideClickGuard();
|
|
240
240
|
return this.open();
|
|
241
241
|
}
|
|
242
|
+
supportsNativeShare() {
|
|
243
|
+
return !!salla.mobile?.isSpaWebview?.();
|
|
244
|
+
}
|
|
242
245
|
handleShareClick() {
|
|
243
|
-
if (
|
|
246
|
+
if (this.supportsNativeShare()) {
|
|
244
247
|
salla.event.dispatch('mobile::share.open', { url: this.getShareUrl() });
|
|
245
248
|
return;
|
|
246
249
|
}
|
|
@@ -380,7 +383,7 @@ const SallaSocialShare = /*@__PURE__*/ proxyCustomElement(class SallaSocialShare
|
|
|
380
383
|
})));
|
|
381
384
|
}
|
|
382
385
|
render() {
|
|
383
|
-
return (h("div", { key: '
|
|
386
|
+
return (h("div", { key: 'cd2d10a50c7d07fb261471e7ca8e81891bc489e9', class: "s-social-share-wrapper" }, h("slot", { key: '94627cdb3aa11d3844c984d8890b13dc7e1f0e3c', name: "widget" }, h("salla-button", { key: '3b5ea25966484669a935e62ccbc3d383078337d8', "aria-label": "Share", onClick: () => this.handleShareClick(), class: "s-social-share-btn", shape: "icon", fill: "outline", color: "light" }, h("span", { key: '3de3ea0b6f4843a24eeab1f7d6f0be3c8f85de41', innerHTML: this.opened ? Cancel : ShareAlt }))), this.mode === 'modal' ? this.renderModal() : this.renderPopupList()));
|
|
384
387
|
}
|
|
385
388
|
get host() { return this; }
|
|
386
389
|
static get watchers() { return {
|
|
@@ -40,7 +40,6 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
40
40
|
el.style.setProperty('content-visibility', 'visible', 'important');
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
this.logHidePreventedOnce(badgeData.type);
|
|
44
43
|
};
|
|
45
44
|
this.runEnforce = () => {
|
|
46
45
|
this.clearEnforceTimers();
|
|
@@ -120,16 +119,6 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
120
119
|
}
|
|
121
120
|
return true;
|
|
122
121
|
}
|
|
123
|
-
// Log a prevented hide attempt once per device; never let telemetry block the repair.
|
|
124
|
-
logHidePreventedOnce(type) {
|
|
125
|
-
try {
|
|
126
|
-
if (salla.storage.get(SallaTrustBadges.HIDE_PREVENTED_LOGGED_KEY))
|
|
127
|
-
return;
|
|
128
|
-
salla.analytics?.log('salla::trust-badges.hide-prevented', { type });
|
|
129
|
-
salla.storage.set(SallaTrustBadges.HIDE_PREVENTED_LOGGED_KEY, true);
|
|
130
|
-
}
|
|
131
|
-
catch { }
|
|
132
|
-
}
|
|
133
122
|
clearEnforceTimers() {
|
|
134
123
|
if (this.enforceTimer !== undefined) {
|
|
135
124
|
clearTimeout(this.enforceTimer);
|
|
@@ -249,7 +238,6 @@ const SallaTrustBadges$1 = /*@__PURE__*/ proxyCustomElement(class SallaTrustBadg
|
|
|
249
238
|
SallaTrustBadges$1.OPACITY_THRESHOLD = 0.1;
|
|
250
239
|
SallaTrustBadges$1.ENFORCE_DEBOUNCE_MS = 1500;
|
|
251
240
|
SallaTrustBadges$1.ENFORCE_MAX_WAIT_MS = 3000;
|
|
252
|
-
SallaTrustBadges$1.HIDE_PREVENTED_LOGGED_KEY = 'salla::trust-badges-hide-prevented-logged';
|
|
253
241
|
function defineCustomElement$1() {
|
|
254
242
|
if (typeof customElements === "undefined") {
|
|
255
243
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-BzXJjH3_.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|