@salla.sa/twilight-components 2.14.484 → 2.14.486
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/{Helper-CgGR9Qf8.js → Helper-DvyEpCgx.js} +13 -0
- package/dist/cjs/{filepond-CgzJykLb.js → filepond-BtDP9OW9.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-QDPQ7mwB.js → filepond-plugin-file-poster-CTf1Ej_n.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Bad-w2I9.js → filepond-plugin-file-validate-size-_wVJpYXF.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-DISG2_qB.js → filepond-plugin-file-validate-type-DWoo5Lcs.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CVHAGWaB.js → filepond-plugin-image-edit-DBb_5aN9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-Dwsj5VyO.js → filepond-plugin-image-exif-orientation-Nnwt-m9k.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-I9g9nrNa.js → filepond-plugin-image-preview-CjBwZm3E.js} +1 -1
- package/dist/cjs/{functions-hUb6T9a1.js → functions-DkS9Jmao.js} +1 -1
- package/dist/cjs/{index-BADADy4V.js → index-C0yFagl6.js} +1 -1
- package/dist/cjs/{index-BKQzclgF.js → index-C_WIlgE2.js} +8 -8
- 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 +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- 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-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
- 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.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 +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +21 -5
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- 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-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 +2 -2
- 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-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-options-modal_3.cjs.entry.js +17 -2
- 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 +2 -2
- 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-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +23 -12
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- 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 +1 -1
- 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 -1
- 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-czeUB0TX.js → tracked-promise-TyxTPR6e.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CuMQuW8m.js → vanilla-picker-DyJFw96R.js} +1 -1
- package/dist/collection/Helpers/Helper.js +13 -0
- package/dist/collection/components/salla-gifting/salla-gifting.js +21 -4
- package/dist/collection/components/salla-products-list/salla-products-list.js +21 -10
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +18 -0
- package/dist/components/Helper.js +13 -0
- package/dist/components/index.js +8 -8
- package/dist/components/salla-gifting.js +21 -4
- package/dist/components/salla-products-list2.js +21 -10
- package/dist/components/salla-products-slider2.js +17 -0
- package/dist/esm/{Helper-BXj4f_Qj.js → Helper-CD8d-Brd.js} +13 -0
- package/dist/esm/{filepond-BOBokEx5.js → filepond-ZiatSU0Y.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-D9HYZEnq.js → filepond-plugin-file-poster-2WAWdRm2.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-B1BkZh58.js → filepond-plugin-file-validate-size-DhLjP7aF.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-CT0ni0hb.js → filepond-plugin-file-validate-type-HH8AZXAq.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-CvSKiYON.js → filepond-plugin-image-edit-BWBtBfk1.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Cu1zifQ6.js → filepond-plugin-image-exif-orientation-CQyPB3lV.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-6m913ljw.js → filepond-plugin-image-preview-D6MiVWr1.js} +1 -1
- package/dist/esm/{functions-CioYIS_L.js → functions-DflaFDbL.js} +1 -1
- package/dist/esm/{index-k6XsozPW.js → index-BF901xIc.js} +8 -8
- package/dist/esm/{index-CiFCAiRL.js → index-Co2lT5R8.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 +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- 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-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +2 -2
- 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.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 +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +21 -5
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- 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-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 +2 -2
- 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-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-options-modal_3.entry.js +17 -2
- 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 +2 -2
- 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-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +23 -12
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- 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 +1 -1
- 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 -1
- 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-CdkA_JjX.js → tracked-promise-CNdO8SSl.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BZWJ0V9v.js → vanilla-picker-YVpipuL-.js} +1 -1
- package/dist/twilight/{p-99372423.entry.js → p-02350ded.entry.js} +1 -1
- package/dist/twilight/{p-54feea36.entry.js → p-04f5d67b.entry.js} +1 -1
- package/dist/twilight/{p-fc77d2ae.entry.js → p-0c36ee7c.entry.js} +1 -1
- package/dist/twilight/p-0d94f890.entry.js +4 -0
- package/dist/twilight/{p-faecf830.entry.js → p-0e2a2a9a.entry.js} +1 -1
- package/dist/twilight/{p-680ee21a.entry.js → p-0fcc3b26.entry.js} +1 -1
- package/dist/twilight/{p-894d4262.entry.js → p-134988db.entry.js} +1 -1
- package/dist/twilight/{p-f9d747fd.entry.js → p-18ad7499.entry.js} +1 -1
- package/dist/twilight/{p-6a520655.entry.js → p-1a8525af.entry.js} +1 -1
- package/dist/twilight/{p-b586e687.entry.js → p-1c4e7c18.entry.js} +1 -1
- package/dist/twilight/{p-6fce9b27.entry.js → p-1d3efd00.entry.js} +1 -1
- package/dist/twilight/{p-78b63b85.entry.js → p-2192d7c2.entry.js} +1 -1
- package/dist/twilight/{p-e00ab427.entry.js → p-22405eaa.entry.js} +1 -1
- package/dist/twilight/{p-df2b2d2c.entry.js → p-2b58b700.entry.js} +1 -1
- package/dist/twilight/p-2cc32d1f.entry.js +4 -0
- package/dist/twilight/{p-7e16042a.entry.js → p-2e4fe427.entry.js} +1 -1
- package/dist/twilight/{p-1d8eeff8.entry.js → p-2eb78125.entry.js} +1 -1
- package/dist/twilight/{p-6bcd63ae.entry.js → p-368d3b26.entry.js} +1 -1
- package/dist/twilight/{p-f04e749d.entry.js → p-3d732135.entry.js} +1 -1
- package/dist/twilight/{p-08fe51be.entry.js → p-3eb54d75.entry.js} +1 -1
- package/dist/twilight/{p-69f6aea4.entry.js → p-4288893b.entry.js} +1 -1
- package/dist/twilight/{p-80898e8c.entry.js → p-43ab561c.entry.js} +1 -1
- package/dist/twilight/{p-12221625.entry.js → p-4427e994.entry.js} +1 -1
- package/dist/twilight/{p-43caeaa9.entry.js → p-4544ca7d.entry.js} +1 -1
- package/dist/twilight/{p-4a466458.entry.js → p-4b0aa371.entry.js} +1 -1
- package/dist/twilight/{p-4361f318.entry.js → p-4b558e37.entry.js} +1 -1
- package/dist/twilight/{p-48c49122.entry.js → p-4e2f144a.entry.js} +1 -1
- package/dist/twilight/{p-027b0223.entry.js → p-506a2720.entry.js} +1 -1
- package/dist/twilight/{p-4ccb7dbf.entry.js → p-518bab79.entry.js} +1 -1
- package/dist/twilight/{p-876984e8.entry.js → p-5476bd33.entry.js} +1 -1
- package/dist/twilight/{p-4cdc5eb0.entry.js → p-5c37420e.entry.js} +1 -1
- package/dist/twilight/{p-5e6745be.entry.js → p-632766e3.entry.js} +1 -1
- package/dist/twilight/{p-910ca1ce.entry.js → p-67b225d5.entry.js} +1 -1
- package/dist/twilight/{p-8fddef9f.entry.js → p-6976c445.entry.js} +1 -1
- package/dist/twilight/{p-faedf801.entry.js → p-6b9780be.entry.js} +1 -1
- package/dist/twilight/{p-2b80d6bd.entry.js → p-77b6fbf2.entry.js} +1 -1
- package/dist/twilight/{p-afdcb549.entry.js → p-7ce2c5ca.entry.js} +1 -1
- package/dist/twilight/{p-b4e487a3.entry.js → p-85b235dc.entry.js} +1 -1
- package/dist/twilight/{p-6e708a89.entry.js → p-8f006eca.entry.js} +1 -1
- package/dist/twilight/{p-f10c4351.entry.js → p-8f9e0a7a.entry.js} +1 -1
- package/dist/twilight/{p-3be35606.entry.js → p-90c58cc5.entry.js} +1 -1
- package/dist/twilight/{p-6221c7fd.entry.js → p-9b2f674f.entry.js} +1 -1
- package/dist/twilight/{p-65e84413.entry.js → p-9db7e318.entry.js} +1 -1
- package/dist/twilight/{p-e0eb1171.entry.js → p-9f6a0804.entry.js} +1 -1
- package/dist/twilight/{p-DIe-ZaHw.js → p-BEb9UIZ7.js} +1 -1
- package/dist/twilight/p-BF901xIc.js +5 -0
- package/dist/twilight/{p-CYnG82Sr.js → p-BPGtYFVu.js} +1 -1
- package/dist/twilight/p-Bmy5YF6e.js +4 -0
- package/dist/twilight/{p-RS-U17dA.js → p-BrcsejOr.js} +1 -1
- package/dist/twilight/{p-DThnTW1t.js → p-BuOjsqYX.js} +1 -1
- package/dist/twilight/{p-BcbKK1Xp.js → p-C-3GuKNW.js} +1 -1
- package/dist/twilight/{p-C8JaiU7x.js → p-CMmiX5T8.js} +1 -1
- package/dist/twilight/{p-k6hKHe3o.js → p-CwLXCdYY.js} +1 -1
- package/dist/twilight/{p-Dt7QetEN.js → p-DVM0Orh8.js} +1 -1
- package/dist/twilight/{p-Do0Z2RvW.js → p-DwHaUky6.js} +1 -1
- package/dist/twilight/{p-BjmKgRE2.js → p-KNG8mGcV.js} +1 -1
- package/dist/twilight/{p-c54b5512.entry.js → p-a047ed06.entry.js} +1 -1
- package/dist/twilight/{p-0882266c.entry.js → p-a3a1bf15.entry.js} +1 -1
- package/dist/twilight/{p-215f22bf.entry.js → p-a4107435.entry.js} +1 -1
- package/dist/twilight/{p-e2b9a669.entry.js → p-a445225d.entry.js} +1 -1
- package/dist/twilight/{p-ca338609.entry.js → p-a5895e0f.entry.js} +1 -1
- package/dist/twilight/{p-71371a68.entry.js → p-a6afc8ab.entry.js} +1 -1
- package/dist/twilight/{p-f84a2d1f.entry.js → p-a7d99355.entry.js} +1 -1
- package/dist/twilight/{p-1308a7f4.entry.js → p-a853a50f.entry.js} +1 -1
- package/dist/twilight/{p-fda44045.entry.js → p-aa928350.entry.js} +1 -1
- package/dist/twilight/{p-7b9f7996.entry.js → p-ad5c8d34.entry.js} +1 -1
- package/dist/twilight/p-b2a11170.entry.js +4 -0
- package/dist/twilight/{p-338810f6.entry.js → p-b32e5ad7.entry.js} +1 -1
- package/dist/twilight/{p-fd0d78b0.entry.js → p-b7b29da3.entry.js} +1 -1
- package/dist/twilight/{p-38831a43.entry.js → p-b8d180fe.entry.js} +1 -1
- package/dist/twilight/{p-ae40baf7.entry.js → p-bcfe04fa.entry.js} +1 -1
- package/dist/twilight/{p-0567c659.entry.js → p-bd0075c9.entry.js} +1 -1
- package/dist/twilight/{p-6b7a391d.entry.js → p-be632d40.entry.js} +1 -1
- package/dist/twilight/{p-f2155a0e.entry.js → p-beb2df03.entry.js} +1 -1
- package/dist/twilight/{p-98cb2ad9.entry.js → p-c01e3f1d.entry.js} +1 -1
- package/dist/twilight/{p-c4dd7259.entry.js → p-c5050e10.entry.js} +1 -1
- package/dist/twilight/{p-df18ce74.entry.js → p-c590dcf0.entry.js} +1 -1
- package/dist/twilight/{p-4a2522e6.entry.js → p-c92915e0.entry.js} +1 -1
- package/dist/twilight/{p-aefc937f.entry.js → p-cd4b2301.entry.js} +1 -1
- package/dist/twilight/{p-159fb121.entry.js → p-ce38e5a1.entry.js} +1 -1
- package/dist/twilight/{p-df9735e4.entry.js → p-ce633fa0.entry.js} +1 -1
- package/dist/twilight/p-ce8571e3.entry.js +4 -0
- package/dist/twilight/{p-65986434.entry.js → p-d1048676.entry.js} +1 -1
- package/dist/twilight/{p-cd3a81d5.entry.js → p-d2cc8587.entry.js} +1 -1
- package/dist/twilight/{p-e7c43f45.entry.js → p-d2cdd923.entry.js} +1 -1
- package/dist/twilight/{p-b4e6ee26.entry.js → p-d3f904d0.entry.js} +1 -1
- package/dist/twilight/{p-f30850eb.entry.js → p-d4eeed4b.entry.js} +1 -1
- package/dist/twilight/{p-5d0017eb.entry.js → p-d6da8710.entry.js} +1 -1
- package/dist/twilight/{p-43e35e87.entry.js → p-d92a7d91.entry.js} +1 -1
- package/dist/twilight/{p-277fa567.entry.js → p-dc093d27.entry.js} +1 -1
- package/dist/twilight/{p-ae1ff5a4.entry.js → p-e304cb5e.entry.js} +1 -1
- package/dist/twilight/{p-6b622cdf.entry.js → p-e692322c.entry.js} +1 -1
- package/dist/twilight/{p-6fd14051.entry.js → p-ed1e0c2e.entry.js} +1 -1
- package/dist/twilight/{p-fe435826.entry.js → p-f32df318.entry.js} +1 -1
- package/dist/twilight/{p-67b9bef4.entry.js → p-f3b24cce.entry.js} +1 -1
- package/dist/twilight/{p-34bb19ed.entry.js → p-f4564fdc.entry.js} +1 -1
- package/dist/twilight/{p-b3b5f52a.entry.js → p-f5e55c13.entry.js} +1 -1
- package/dist/twilight/{p-236d6236.entry.js → p-f5e943bb.entry.js} +1 -1
- package/dist/twilight/{p-98bd4d1d.entry.js → p-f71a7a24.entry.js} +1 -1
- package/dist/twilight/{p-a986efd7.entry.js → p-fe69512c.entry.js} +1 -1
- package/dist/twilight/{p-3nNP8OVW.js → p-gacShRe2.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/Helper.d.ts +1 -0
- package/dist/types/components/salla-gifting/gift-schema.d.ts +2 -0
- package/dist/types/components/salla-gifting/salla-gifting.d.ts +8 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +3 -0
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-01a4c68d.entry.js +0 -4
- package/dist/twilight/p-10d25bed.entry.js +0 -4
- package/dist/twilight/p-C6HZIai8.js +0 -4
- package/dist/twilight/p-ad24f7b7.entry.js +0 -4
- package/dist/twilight/p-af0f3c54.entry.js +0 -4
- package/dist/twilight/p-k6XsozPW.js +0 -5
|
@@ -144,6 +144,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
144
144
|
this.selectCity = salla.lang.get('pages.checkout.select_city');
|
|
145
145
|
this.selectCountry = salla.lang.get('pages.checkout.select_country');
|
|
146
146
|
this.selectCityInfo = salla.lang.get('blocks.buy_as_gift.city_info');
|
|
147
|
+
this.cityChangeNotice = salla.lang.get('blocks.buy_as_gift.city_change_notice');
|
|
147
148
|
this.receiverCityFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_city');
|
|
148
149
|
this.receiverRegionFieldLabel = salla.lang.get('blocks.buy_as_gift.receiver_region') || salla.lang.get('pages.checkout.region');
|
|
149
150
|
this.selectRegion = salla.lang.get('pages.checkout.select_region');
|
|
@@ -163,6 +164,21 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
163
164
|
isPhysical() {
|
|
164
165
|
return this.physicalProducts || this.physical;
|
|
165
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Resolves the city notice text shown in the physical-product gift step:
|
|
169
|
+
* - recipient can't change address -> default city info notice
|
|
170
|
+
* - recipient can change, fixed shipping cost -> city-change notice
|
|
171
|
+
* - recipient can change, any shipping cost -> no notice
|
|
172
|
+
*/
|
|
173
|
+
cityNoticeText() {
|
|
174
|
+
if (!this.gift?.recipient_can_change_address) {
|
|
175
|
+
return this.selectCityInfo;
|
|
176
|
+
}
|
|
177
|
+
if (!this.gift?.allows_different_shipping_cost) {
|
|
178
|
+
return this.cityChangeNotice;
|
|
179
|
+
}
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
166
182
|
componentDidLoad() {
|
|
167
183
|
salla.event.product.onPriceUpdated(() => {
|
|
168
184
|
const quantityInput = document.querySelector(`.s-quantity-input-input`);
|
|
@@ -754,7 +770,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
754
770
|
}
|
|
755
771
|
render() {
|
|
756
772
|
return [
|
|
757
|
-
h("div", { key: '
|
|
773
|
+
h("div", { key: '416981417bec78c8c3fda43e6f80745f4d735154' }, h("salla-list-tile", { key: '495255205e1c226669a14a94e50442aabd9818da', class: this.generateClass() }, h("div", { key: 'f2dbdc4ea0dc76d806f18563739a116e15cbbe08', slot: "title" }, this.vertical ? h("span", { innerHTML: SIGiftSharing }) : '', h("h3", { key: '9ed4f1d995eaf2341a9ec237ebfb486ed3db988e' }, !!this.widgetTitle ? this.widgetTitle : this.sectionTitle)), h("div", { key: 'b5d5512fcb2513177eaa1e25eacce9092f7d845f', slot: "subtitle" }, h("div", { key: '0a8223b41973b72d942ce91c5f478a3edaa5dfd3' }, !!this.widgetSubtitle ? this.widgetSubtitle : this.sectionSubtitle)), h("div", { key: 'a6d5a077131117c6854ffc2b39e506be7953051e', slot: "action" }, h("salla-button", { key: '99b14364789884b0010e50941c27cbcfe7445785', color: "primary", fill: "outline", width: "wide", class: "s-gifting-widget-action", onClick: () => this.handleGiftButtonClick() }, h("slot", { key: '27f6be7b07084f48da83af6240933d619407307f', name: "widget-btn-content" }, h("div", { key: 'ee5d04e96dd1e3849a33813b3737b476b5470497', class: "s-gifting-widget-action-content" }, h("span", { key: 'd02bb1f6cd4dff335eeca1341da2c86d2976b4fc', innerHTML: SIGiftSharing }), " \u00A0", h("span", { key: '98a3594e6d01133c4f448d8e5df22ba2984cf09e' }, this.sectionBtnText)))))), h("salla-modal", { key: '0be87b9d369e92a71b68f570b9bf19a0ddb7dd6b', id: this.hostId, isLoading: true, class: "s-gifting-modal", width: "sm", ref: modal => this.modal = modal }, h("div", { key: '978995d399506ff82ac0f2385a1f85a808c7da3e', slot: "loading" }, h("div", { key: '7d1f141fd9131d35edb81326062e8f7cadfa2cab', class: "s-gifting-skeleton" }, h("div", { key: 'b33cfd58381c7c1b545ffedf6739e42fdb75c8de', class: "s-gifting-modal-header" }, h("salla-skeleton", { key: 'e03a505ad3720c25077ca91c7eec2843cdaee225', type: 'circle', height: '5rem', width: '5rem' }), h("h2", { key: '6f630d2582c96fc71406ef4557143c6e9dbd4a88', class: "s-gifting-modal-title" }, h("div", { key: '8d1a3540993c9b40e705f2145bf0514754c36dab', class: "s-gifting-modal-badge-wrapper" }, h("salla-skeleton", { key: 'd965c353f19cf785a13eba6332b715eed9748836', height: '15px', width: '150px' })))), h("div", { key: 'abacc03d1e30075d3d24dfd577dc9a60f7b52810', class: "s-gifting-skeleton-content" }, h("salla-skeleton", { key: '03db84cfccc546602a6f521b015d0c12b93caa6f', height: '10px', width: '150px' }), h("salla-skeleton", { key: 'e8e2d4e70d208055baaae44a8d7da8aa5c6a33da', height: '230px' }), h("salla-skeleton", { key: '2c90d91fb63551685b2041f2bc51fdb5219cbbb7', height: '10px', width: '150px' }), h("salla-skeleton", { key: '8962bc17f43cb04563caa02db3df585189579f8f', height: '30px' }), h("salla-skeleton", { key: '73730453aa6f8d0ec2a653b4711b80b32a18b916', height: '40px' })))), h("slot", { key: '4bcf5a6d53485c461c35f53ce7e265bcf770989e', name: "header" }), !!this.hasError ?
|
|
758
774
|
h("salla-placeholder", { alignment: "center" }, h("span", { slot: "title" }, this.errorMessage || salla.lang.get('common.errors.empty_results')), h("span", { slot: "description" }, " "))
|
|
759
775
|
:
|
|
760
776
|
[
|
|
@@ -775,9 +791,9 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
775
791
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.region'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-region` }, this.receiverRegionFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectRegion, items: this.regions ?? [], selectedItem: this.selectedRegion, loading: this.loadingRegions, disabled: this.loadingRegions || !this.regions?.length, required: true, inputId: `${this.hostId}-region`, searchable: false, keepParentScroll: true, onItemSelected: (e) => this.handleRegionSelected(e.detail), onDropdownClosed: () => this.handleRegionDropdownClosed() }), this.errors && this.errors['receiver.region'] ?
|
|
776
792
|
h("span", { class: "s-gifting-error" }, this.errors['receiver.region']) : ''), this.isPhysical() &&
|
|
777
793
|
h("div", { class: this.step2ItemClass(this.errors?.['receiver.city_id'] ? 's-form-group s-form-has-error' : 's-form-group') }, h("label", { class: "s-form-label", htmlFor: `${this.hostId}-city` }, this.receiverCityFieldLabel), h("salla-searchable-dropdown", { placeholder: this.selectCity, items: this.displayedCities, selectedItem: this.selectedCity, loading: this.loadingCities, searching: this.searchingCities, disabled: this.loadingCities || (this.isKSA && !this.selectedRegionId), required: true, inputId: `${this.hostId}-city`, searchQuery: this.citySearchQuery, clientSearch: !this.enableCityAjaxSearch, dropUp: true, keepParentScroll: true, onItemSelected: (e) => this.handleCitySelected(e.detail), onSearchInput: (e) => this.handleCitySearch(e.detail), onDropdownClosed: () => this.handleCityDropdownClosed() }), this.errors && this.errors['receiver.city_id'] ?
|
|
778
|
-
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() &&
|
|
779
|
-
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.
|
|
780
|
-
], h("slot", { key: '
|
|
794
|
+
h("span", { class: "s-gifting-error" }, this.errors['receiver.city_id']) : ''), this.isPhysical() && this.cityNoticeText() &&
|
|
795
|
+
h("div", { class: this.step2ItemClass('s-gifting-info') }, h("span", { innerHTML: Alert }), h("span", null, this.cityNoticeText())), !this.isPhysical() && h("div", { class: this.step2ItemClass() }, h("label", { class: "s-gifting-schedule s-gifting-clickable", htmlFor: `schedule-${this.hostId}` }, h("input", { type: "checkbox", name: 'schedule', id: `schedule-${this.hostId}`, onChange: () => this.toggleCalendar(), class: "s-checkbox" }), h("span", { class: "s-form-label" }, " ", this.sendLater, " "))), h("div", { class: this.getCalendarClasses(), ref: (el) => this.calendarFormGroup = el }, h("label", { class: "s-form-label" }, this.selectSendDateAndTime), h("salla-datetime-picker", { value: this.deliveryDate, placeholder: this.selectSendDateAndTime, "enable-time": true, "date-format": "Y-m-d h:i K", onPicked: (event) => this.handleDateTimePicker(event) }), h("span", { class: "s-gifting-calendar-hint" }, this.canNotEditOrderAfterSelectDate)), h("div", { class: this.step2ItemClass('s-gifting-step-two-footer') }, !this.skipStep1() && h("a", { href: "#!", innerHTML: IconArrowLeft, onClick: (e) => this.goToStep1(e) }), h("salla-button", { onClick: () => this.submitForm(), color: "primary", width: 'wide' }, h("span", null, this.sendGift)))))
|
|
796
|
+
], h("slot", { key: 'a4d37b893e4a0867c044817434ade65b16fbe89a', name: "footer" })))
|
|
781
797
|
];
|
|
782
798
|
}
|
|
783
799
|
static get style() { return sallaGiftingCss; }
|
|
@@ -809,6 +825,7 @@ const SallaGifting$1 = /*@__PURE__*/ proxyCustomElement(class SallaGifting exten
|
|
|
809
825
|
"selectCountry": [32],
|
|
810
826
|
"selectCity": [32],
|
|
811
827
|
"selectCityInfo": [32],
|
|
828
|
+
"cityChangeNotice": [32],
|
|
812
829
|
"receiverCityFieldLabel": [32],
|
|
813
830
|
"receiverRegionFieldLabel": [32],
|
|
814
831
|
"selectRegion": [32],
|
|
@@ -100,6 +100,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
100
100
|
this.emitSelection();
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
+
this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.wrapper, `${this.productCardComponent}, salla-product-card`);
|
|
103
104
|
//TODO:: check why `this.includes` not working!!
|
|
104
105
|
this.includes = Helper.parseJson(this.includes || this.host.getAttribute('includes'));
|
|
105
106
|
if (!Array.isArray(this.includes)) {
|
|
@@ -121,11 +122,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
121
122
|
window.addEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
|
|
122
123
|
salla.event.on('salla-filters::changed', filters => this.setFilters(filters));
|
|
123
124
|
salla.event.on('wishlist::removed', this.onWishlistItemRemoved);
|
|
125
|
+
salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
124
126
|
}
|
|
125
127
|
disconnectedCallback() {
|
|
126
128
|
window.removeEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
|
|
127
129
|
window.removeEventListener('scroll', this.boundHandleScroll);
|
|
128
130
|
salla.event.off('wishlist::removed', this.onWishlistItemRemoved);
|
|
131
|
+
salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
129
132
|
}
|
|
130
133
|
/**
|
|
131
134
|
* Set parsed filters data from URI
|
|
@@ -369,6 +372,17 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
369
372
|
this.selectionChanged.emit(detail);
|
|
370
373
|
salla.event.emit('salla-products-list::selection.changed', detail);
|
|
371
374
|
}
|
|
375
|
+
appendProductCards(cards) {
|
|
376
|
+
if (!this.wrapper) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
const list = Array.isArray(cards) ? cards : [cards];
|
|
380
|
+
list.forEach(card => this.wrapper.append(card));
|
|
381
|
+
this.onWishlistStorageSynced();
|
|
382
|
+
}
|
|
383
|
+
refreshWishlistIconsAfterHydration() {
|
|
384
|
+
return salla.wishlist.api.syncStorageFromServer();
|
|
385
|
+
}
|
|
372
386
|
/**
|
|
373
387
|
* Re-render the list when selection mode is toggled at runtime (e.g. enabled
|
|
374
388
|
* by the wishlist actions panel after the list already loaded).
|
|
@@ -573,9 +587,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
573
587
|
this.page = pageIndex;
|
|
574
588
|
this.nextPage = nextPage;
|
|
575
589
|
// more performant on larger set of data
|
|
576
|
-
|
|
577
|
-
this.wrapper.append(this.getItemHTML(currentPageData?.[i]));
|
|
578
|
-
}
|
|
590
|
+
this.appendProductCards(currentPageData.map((product) => this.getItemHTML(product)));
|
|
579
591
|
return true;
|
|
580
592
|
}
|
|
581
593
|
catch (error) {
|
|
@@ -708,6 +720,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
708
720
|
}
|
|
709
721
|
const items = await this.handleResponse(response);
|
|
710
722
|
this.infiniteScroll.appendItems(items);
|
|
723
|
+
this.onWishlistStorageSynced();
|
|
711
724
|
if (this.infiniteScroll.pageIndex === 2) {
|
|
712
725
|
if (!this.autoload && this.nextPage) {
|
|
713
726
|
this.loadMoreWrapper.style.display = 'block';
|
|
@@ -822,7 +835,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
822
835
|
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
823
836
|
return;
|
|
824
837
|
}
|
|
825
|
-
(await this.handleResponse(response))
|
|
838
|
+
this.appendProductCards(await this.handleResponse(response));
|
|
826
839
|
}));
|
|
827
840
|
}
|
|
828
841
|
/**
|
|
@@ -925,8 +938,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
925
938
|
}
|
|
926
939
|
//todo:: avoid using timeout, just assigne the data to the this.firstPageResponse and it should work fine, because it will be rendered in componentDidLoad
|
|
927
940
|
setTimeout(() => {
|
|
928
|
-
|
|
929
|
-
productsList.map(product => this.wrapper.append(this.getItemHTML(product)));
|
|
941
|
+
this.appendProductCards(this.getSourceValue().map((product) => this.getItemHTML(product)));
|
|
930
942
|
});
|
|
931
943
|
return;
|
|
932
944
|
}
|
|
@@ -959,9 +971,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
959
971
|
this.getInitialData()
|
|
960
972
|
.then(async () => {
|
|
961
973
|
if (this.firstPageResponse) {
|
|
962
|
-
(await this.handleResponse(this.firstPageResponse, false))
|
|
963
|
-
this.wrapper.append(card);
|
|
964
|
-
});
|
|
974
|
+
this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
|
|
965
975
|
setTimeout(() => {
|
|
966
976
|
if (!this.autoload && this.nextPage && this.infiniteScroll.pageIndex == 1) {
|
|
967
977
|
const loadMoreWrapper = this.host.querySelector('.s-infinite-scroll-wrapper');
|
|
@@ -979,8 +989,9 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
979
989
|
}
|
|
980
990
|
else {
|
|
981
991
|
this.firstPageResponse &&
|
|
982
|
-
(await this.handleResponse(this.firstPageResponse, false))
|
|
992
|
+
this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
|
|
983
993
|
}
|
|
994
|
+
await this.refreshWishlistIconsAfterHydration();
|
|
984
995
|
}
|
|
985
996
|
canRender() {
|
|
986
997
|
return this.sourceValueIsValid && this.isReady;
|
|
@@ -40,6 +40,7 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
40
40
|
*/
|
|
41
41
|
this.productCardComponent = 'custom-salla-product-card';
|
|
42
42
|
this.apiUrl = '';
|
|
43
|
+
this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.host, `${this.productCardComponent}, salla-product-card`);
|
|
43
44
|
}
|
|
44
45
|
componentWillLoad() {
|
|
45
46
|
return salla.onReady()
|
|
@@ -90,9 +91,20 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
90
91
|
}
|
|
91
92
|
}, 1000);
|
|
92
93
|
}
|
|
94
|
+
connectedCallback() {
|
|
95
|
+
salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
96
|
+
}
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
99
|
+
}
|
|
93
100
|
async componentDidLoad() {
|
|
94
101
|
await Salla.hooks.registerComponent('salla-products-slider', this);
|
|
95
102
|
}
|
|
103
|
+
onReadyChanged(isReady) {
|
|
104
|
+
if (!isReady)
|
|
105
|
+
return;
|
|
106
|
+
void salla.wishlist.api.syncStorageFromServer();
|
|
107
|
+
}
|
|
96
108
|
isSourceWithoutValue() {
|
|
97
109
|
return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
|
|
98
110
|
}
|
|
@@ -132,6 +144,9 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
132
144
|
return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, ...(this.sliderProps || {}), "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
|
|
133
145
|
}
|
|
134
146
|
get host() { return this; }
|
|
147
|
+
static get watchers() { return {
|
|
148
|
+
"isReady": ["onReadyChanged"]
|
|
149
|
+
}; }
|
|
135
150
|
static get style() { return sallaProductsSliderCss; }
|
|
136
151
|
}, [0, "salla-products-slider", {
|
|
137
152
|
"blockTitle": [1, "block-title"],
|
|
@@ -152,6 +167,8 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
152
167
|
"hasCustomComponent": [32],
|
|
153
168
|
"apiUrl": [32],
|
|
154
169
|
"parsedSourceValue": [32]
|
|
170
|
+
}, undefined, {
|
|
171
|
+
"isReady": ["onReadyChanged"]
|
|
155
172
|
}]);
|
|
156
173
|
function defineCustomElement() {
|
|
157
174
|
if (typeof customElements === "undefined") {
|
|
@@ -441,6 +441,19 @@ class Helper {
|
|
|
441
441
|
(config.sms || config.mobile || config.whatsapp) && channels.push('sms');
|
|
442
442
|
return channels.join(',');
|
|
443
443
|
}
|
|
444
|
+
syncWishlistIcons(root, cardSelector) {
|
|
445
|
+
root?.querySelectorAll(cardSelector).forEach((card) => {
|
|
446
|
+
const rawId = card.product?.id;
|
|
447
|
+
const id = typeof rawId === 'number' ? rawId : Number(rawId);
|
|
448
|
+
if (Number.isNaN(id))
|
|
449
|
+
return;
|
|
450
|
+
const added = salla.wishlist.api.has(id);
|
|
451
|
+
card.querySelectorAll('.s-product-card-wishlist-btn, .btn--wishlist').forEach((btn) => {
|
|
452
|
+
btn.classList.toggle('s-product-card-wishlist-added', added);
|
|
453
|
+
btn.classList.toggle('wishlist-added', added);
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}
|
|
444
457
|
}
|
|
445
458
|
var Helper$1 = new Helper;
|
|
446
459
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-BF901xIc.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);
|